
KeylessUniversal

local faces = {"Front", "Back", "Bottom", "Top", "Right", "Left"}
local materials = {
{"Wood", "rbxassetid://3258599312"},
{"WoodPlanks", "rbxassetid://8676581022"},
{"Brick", "rbxassetid://8558400252"},
{"Cobblestone", "rbxassetid://5003953441"},
{"Concrete", "rbxassetid://7341687607"},
{"DiamondPlate", "rbxassetid://6849247561"},
{"Fabric", "rbxassetid://118776397"},
{"Granite", "rbxassetid://4722586771"},
{"Grass", "rbxassetid://4722588177"},
{"Ice", "rbxassetid://3823766459"},
{"Marble", "rbxassetid://62967586"},
{"Metal", "rbxassetid://62967586"},
{"Sand", "rbxassetid://152572215"}
}
local function applyTexture(part, textureId)
for _, face in ipairs(faces) do
local tex = Instance.new("Texture")
tex.Texture = textureId
tex.Face = Enum.NormalId[face]
tex.Color3 = part.Color
tex.Transparency = part.Transparency
tex.Parent = part
end
end
for _, part in ipairs(workspace:GetDescendants()) do
if part:IsA("BasePart") then
for _, mat in ipairs(materials) do
if part.Material.Name == mat[1] then
applyTexture(part, mat[2])
part.Material = Enum.Material.SmoothPlastic
break
end
end
end
endNo comments yet for this script.



