So I have been learning scripting for a few days now, and I made this script that makes the stairs turn black, go through the ground, and unanchor. But I can't figure out how to regen this model. I tried cloning it several ways but that didn't work. (Maybe I am doing it wrong) Please help guys!
local Model = game.Workspace.Stairs
for _,v in pairs(Model:GetChildren()) do
if v:IsA("BasePart") then
v.Touched:connect(function(Hit)
if Hit.Parent and Hit.Parent:FindFirstChild("Humanoid") then
v.Color = Color3.new(0,0,0) --Color turns black
wait(0.3)
v.CanCollide = false
v.Anchored = false
end
end)
end
end

1 comment
You could turn them back anchored and collidable after a certain time before they fall to the void...you could make clones by doing local x = v:Clone() v.Anchored = false wait(sometime) x.Parent = V'sParent...you could reanchor them when they hit a certain height