Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
-2

Why is this simple script not working? Please answer as soon as possible! [NOT ANSWERED]

Asked by 9 years ago

Please make your question title relevant to your question content. It should be a one-sentence summary in question form.
while true do
    script.Parent.Parent.ServerStorage.BrightRedLava:Clone().Parent = script.Parent
end

3 answers

Log in to vote
0
Answered by
BlackJPI 2658 Snack Break Moderation Voter Community Moderator
9 years ago

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

0
Nothing happens, but thanks for an answer! GatitosMansion 187 — 9y
Ad
Log in to vote
0
Answered by 9 years ago

Check for an error in the scripting.

0
No error, but thanks for answering! GatitosMansion 187 — 9y
Log in to vote
0
Answered by
iaz3 190
9 years ago

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.

0
I do that. GatitosMansion 187 — 9y
0
I play on solo GatitosMansion 187 — 9y

Answer this question