while true do
script.Parent.Parent.ServerStorage.BrightRedLava:Clone().Parent = script.Parent
end
COMMUNITY QUESTION
Why is this simple script not working? Please answer as soon as possible! [NOT ANSWERED]
3 answers
You forgot to add a wait to the loop. Without this it will run repeatedly with out waiting, causing the game to crash.
while true do
script.Parent.Parent.ServerStorage.BrightRedLava:Clone().Parent = script.Parent
wait() -- Put a number in the brackets for the length of time to wait for
end
Check for an error in the scripting.
1 comment
0
No error, but thanks for answering!
For starters, that will instantly crash ROBLOX/Your computer, and even if you add a wait, it will still be really slow, and create infinite copies, in essence.
What is it you are trying to do? And i noticed you kept saying nothing happens, are you in studio? If so, are you using play solo? Scripts will not just run, you have to start a play solo instance.
2 comments
0
I do that.
0
I play on solo
This discussion is preserved as it was. New answers, comments, and votes are closed.

1 comment
Nothing happens, but thanks for an answer!