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

Why isn't this auto money giver working?

Asked by 10 years ago
while wait(1) do
    for i, player in ipairs(game.Players:GetPlayers()) do
        if player.Character then        
            local balance = player.Character.leaderstats:FindFirstChild('Money')
            balance = balance + 1
        end
    end
end

What I want to do is make it so every second it gives them a dollar, I'm not keeping the wait value and the amount given value, It will be more like 120 seconds and 100 per 2 mins.

Answer this question