Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

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

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

1 answer

✓ Accepted answer

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

1 comment

0

Thanks!

This discussion is preserved as it was. New answers, comments, and votes are closed.