of     1   

takato1996
#141843583Monday, July 28, 2014 4:10 PM GMT

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.
dreaddraco2
#141843827Monday, July 28, 2014 4:12 PM GMT

So set it to 5, it sounds like you've been rerunning the same script / had the loop still on. Set it to 5, save, quit and test it.
takato1996
#141844397Monday, July 28, 2014 4:19 PM GMT

Already tried. There are models, with this script inside them, when you buy one, this script should start working. Have a try, http://www.roblox.com/Vector-Inc-Tycoon-place?id=5296988
takato1996
#141845361Monday, July 28, 2014 4:31 PM GMT

I really an answer to my problem, and QUICK.
ehern11
#141849020Monday, July 28, 2014 5:10 PM GMT

use 10,15,20?
takato1996
#141850712Monday, July 28, 2014 5:31 PM GMT

Tried. Still nothing.
ehern11
#141856075Monday, July 28, 2014 6:35 PM GMT

well then use 60?
minminopop
#141856370Monday, July 28, 2014 6:38 PM GMT

Add prints to everyline and then say which ones print.
dreaddraco2
#141862748Monday, July 28, 2014 7:49 PM GMT

Capitalise the A in waitamount. Lua is case sensitive. CaseAmount is 5, but Caseamount is nil (as it's undefined), therefore it's waiting the minimum amount of time (last i checked it was 0.03 seconds or something on servers).
takato1996
#141875501Monday, July 28, 2014 9:31 PM GMT

Thanks alot man. It works now.
dreaddraco2
#141897450Tuesday, July 29, 2014 12:56 AM GMT

Took me a while to realise lol
dreaddraco2
#141897525Tuesday, July 29, 2014 12:56 AM GMT

Also, I typed caseamount? Don't even know how.

    of     1