Universal Script 📌
766 Views
27.4k Executions

minecraft texture script

10K executions
Universal Script 📌
David_basuki
David_basuki10K executions
4 months ago
Get an executor
Please login to perform these actions:

Does it work?

No reports yet

No reports yet. Tried it? Be the first to say.

Also noticed:

Description

We added Minecraft texture on any u guys try it on please rate it 5 we tried our best

View Raw
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
end


Comments

0
Log in to join the conversation. Login
No comments yet. Be the first!

Tags

More universal scripts

See all
Script hub
400
1.7k
Bumped 1 hour ago
Key System
Script hub
93
79
Approved 4 hours ago

Script hub

Blythe

Universal Script 📌
142
585
Approved 4 hours ago
Universal Script 📌
162
1.1k
Approved 5 hours ago
Universal Script 📌
1.9k
7.4k
Bumped 7 hours ago