Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

how to make a script that makes all parts rusty? (material)

Asked by 2 years ago

like there is a shaking (like an explosion) and then you get out of the bunker and everything becomes rusty.

1 answer

Log in to vote
0
Answered by 2 years ago

You can change the material of all the parts with a loop.

local modelToRust = -- your model

for i, part in pairs(modelToRust:GetDescendants()) do
    if part:IsA("BasePart") then
        part.Material = Enum.Material.CorrodedMetal
    end
end
0
Thanks! DijoHuZIO 2 — 2y
Ad

Answer this question