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 6 years ago
Edited 6 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 — 6y

1 answer

Log in to vote
0
Answered by 6 years ago
Edited 6 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 — 6y
Ad

Answer this question