the job script is not working for some reason someone help pls
local player = game.Players:GetPlayers()
local Jobbing = false
function onClicked(playerWhoClicked)if Jobbing == false then Jobbing = true playerWhoClicked.Character.LowerTorso.Anchored = true playerWhoClicked.Character.Head.Title.F.Working.Visible = true wait(5) playerWhoClicked.Character.LowerTorso.Anchored = false playerWhoClicked.readerstats.Wallet.Value=playerWhoClicked.readerstats.Wallet.Value+95; playerWhoClicked.Character.Head.Title.F.Working.Visible = true playerWhoClicked.Character.Head.Title.F.HowMuch.Visible = true wait(1) playerWhoClicked.Character.Head.Title.F.HowMuch.Visible = false Jobbing = false end end
script.Parent.ClickDetector.MouseClick:connect(onClicked)

2 comments
Put the code between the codeblock (lua button) and also
:connectis deprecated use:ConnectinsteadAlso what error does it show and which line errors