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

Move script wont loop?

Okay here is the script I got

while true do workspace.Mario:remove() game.Lighting.Mario1:Clone().Parent = game.Workspace wait(8) workspace.Mario1:remove() game.Lighting.Mario2:Clone().Parent = game.Workspace

wait(60)
workspace.Mario2:remove()
game.Lighting.Mario3:Clone().Parent = game.Workspace
wait(20)
workspace.Mario3:remove()
game.Lighting.Mario4:Clone().Parent = game.Workspace
wait(1)

end

What do I do to make it loop?

1 answer

Hello! So the only error I saw was you were using the "remove" method. This method I'm pretty sure only applies to scripts or tables. Destroy gets rid of the model.

while true do 
game.Workspace.Mario:Destroy() 
game.Lighting.Mario1:Clone().Parent = game.Workspace 
wait(8) 
game.Workspace.Mario1:Destroy()
 game.Lighting.Mario2:Clone().Parent = game.Workspace
wait(60)
game.Workspace.Mario2:Destroy()
game.Lighting.Mario3:Clone().Parent = game.Workspace
wait(20)
game.Workspace.Mario3:Destroy()
game.Lighting.Mario4:Clone().Parent = game.Workspace
wait(1)
end
-- It should work, but I'm not entirely sure. If this doesn't work, IDK WHAT WILL.

EDIT: Ok, so what remove does is set the objects parent to nil. I'm not sure if that would screw it up or not, but yeah.

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