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)

1 comment
Oh yeah, and their job Gui must be Cashier.