Hello guys, I have a problem with a script.
local Tycoon = script.Parent.Parent
local Owner = Tycoon.Owner
local CashType = "Money"
local MoneyGiveAmount = 10
local WaitAmount = 0
while true do
wait(Waitamount)
local Player = game.Players:findFirstChild(Owner.Value)
Player.leaderstats:findFirstChild(CashType).Value = Player.leaderstats:findFirstChild(CashType).Value + MoneyGiveAmount
end
Any number that I set in WaitAmount, the results are the same, the money are making too fast. Whether I set 5 or 5.0 or 50.0 or even 50000.000000, is the same. Is like the script is broken or something. I want it to be like 5 seconds. |