Yeah so I have tried to make a script where as long as the player as standing on a brick every 5 seconds their Money Gui goes up by 10. But the problem is well, I am not sure thats the problem. For whatever reason it just doesn't do anything. What am I doing wrong here?
local player = game.Players.LocalPlayer local paybrick = script.Parent local MoneyGui = game.Players.LocalPlayer.MoneyGui function payperson(player) repeat if player.PlayerGui.Job.Jobname.Text == "Cashier" then MoneyGui.Value = 0 + 10 wait(7) else end until(player.touched == false) end script.Parent.touched:connect(payperson)
I am pretty sure the problem is:
local MoneyGui = game.Players.LocalPlayer.MoneyGui
The GUI would be in the players Player Gui So replace that line with:
local MoneyGui = game.Players.LocalPlayer.PlayerGui.MoneyGui