I am trying to make a Money GUI show how long until you get the money, but so far it's not working. Can anyone tell me if I did something wrong, and if so what?
local award = 50 local defwait = 120 local wait = 120 local player = script.Parent.Parent.Parent.Parent while wait(1) do if wait > 0 then wait = wait - 1 script.Parent.Text = "You will recieve $"..award.." in "..wait.." seconds." else script.Parent.Text = "Awarding money.." player.leaderstats.Money.Value = player.leaderstats.Money.Value + award wait(.50) wait = defwait end end
Well, problem with this is that "wait" is a built in function of RBX.lua. You mite want to change it and see if it works.