my scirpt is
local playerr = game.Players.LocalPlayer local Money = playerr:WaitForChild("leaderstats").Money while true do Money.Value = Money.Value +12323 end
my scirpt is
local playerr = game.Players.LocalPlayer local Money = playerr:WaitForChild("leaderstats").Money while true do Money.Value = Money.Value +12323 end
cool answer
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
Ok wait
It works thank youu
This discussion is preserved as it was. New answers, comments, and votes are closed.
3 comments
you need to include wait() in your infinite loop.
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.
yes you need a wait() in the loop