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

Earn Cash by playing [Easy Script] Help!?

Asked by 5 years ago
Edited 5 years ago

Basically i need a script that gives you Cash by playing.

For instance

When a Player plays my game for 1 minute he gets 100+ Cash

game.Players.PlayerAdded:Connect(function(plr)

    local leaderstats = Instance.new("Folder")
    leaderstats.Name = "leaderstats"
    leaderstats.Parent = plr

    local cash = Instance.new("IntValue")
    cash.Name = "Cash"
    cash.Value = 0
    cash.Parent = leaderstats

end)

0
Dude, can we make a game together? I will be the scripter. toman655 58 — 5y

1 answer

Log in to vote
0
Answered by 5 years ago
Edited 5 years ago

Do this and insert it in a Script.

game.Players.PlayerAdded:Connect(function(plr)
    while true do
        wait(60)
        local lead = plr:WaitForChild("leaderstats")
        lead.Cash.Value = lead.Cash.Value +100
    end
end)

There have a nice day.

0
Thank you very much! Vibesgus 35 — 5y
Ad

Answer this question