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

Can anyone help me with a money take away script and a money gainer script? [closed]

Asked by 7 years ago

i have a money script:

01function onPlayerEntered(newPlayer)
02 
03    local stats = Instance.new("IntValue")
04    stats.Name = "leaderstats"
05 
06    local cash = Instance.new("IntValue")
07    cash.Name = "Cash"
08    cash.Value = 35000
09 
10    cash.Parent = stats
11    stats.Parent = newPlayer
12end
13 
14 
15 
16game.Players.ChildAdded:connect(onPlayerEntered)

what should i put in there that would give me money every 5 minutes. and if i buy something it takes money out?

Closed as Not Constructive by lukeb50, hiimgoodpack, and Andorks

This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.

Why was this question closed?

1 answer

Log in to vote
0
Answered by 7 years ago

Im not gonna give the code but it would need a while true do loop then a wait time and after that you would give the player the cash.

Ad