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

Roblox Studio is crashing because a script?

my scirpt is

local playerr = game.Players.LocalPlayer local Money = playerr:WaitForChild("leaderstats").Money while true do Money.Value = Money.Value +12323 end

3 comments

0

you need to include wait() in your infinite loop.

0

Studio crashes if you do not add wait at while true do. They will loop infinite without they waits.if it works, Money will be inf.

0

yes you need a wait() in the loop

3 answers

Make sure you add wait(-- number here --) while you are using while true do. else it adds the number infinitely without waiting.

try this out :

local playerr = game.Players.LocalPlayer
 local Money = playerr:WaitForChild("leaderstats").Money 
while true do 
wait()
Money.Value = Money.Value +12323 
end

3 comments

0

Ok wait

0

It works thank youu

0
    1. You didn't explain your answer.

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