coroutine.wrap(function()
for Index,Part in pairs(script.Parent:GetChildren()) do
while wait() do
local RandomPart = math.random(1,30)
print(Part)
if Part.ClassName == "Part" then
if Part.Name == "Rock"..RandomPart then
for c=0,-20,-.5 do
Part.Position = Vector3.new(Part.Position.X,Part.Position.Y+c,Part.Position.Z)
print(c)
wait(.5)
end
Part:Destroy()
end
end
end
end
end)()