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

Roblox Studio is crashing because a script?

Asked by 4 years ago

my scirpt is

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

0
you need to include wait() in your infinite loop. 123nabilben123 499 — 4y
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. User#30294 0 — 4y
0
yes you need a wait() in the loop SuperAstroGame -2 — 4y

3 answers

Log in to vote
0
Answered by 4 years ago

cool answer

Ad
Log in to vote
0
Answered by 4 years ago

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

Log in to vote
-1
Answered by 4 years ago

try this out :

local playerr = game.Players.LocalPlayer
 local Money = playerr:WaitForChild("leaderstats").Money 
while true do 
wait()
Money.Value = Money.Value +12323 
end
0
Ok wait DarfKevinSpielen3 5 — 4y
0
It works thank youu DarfKevinSpielen3 5 — 4y
0
- 1. You didn't explain your answer. namespace25 594 — 4y

Answer this question