I have a Brick with a Click Detector and I am trying to make it so when you click, the TextLAbel on your screen changes. Right now it does not work.I need it to change the Gui for that player only. I know this doesn't work but I tried and it went wrong. Here is the little thing I got:
function onClicked(playerWhoClicked)
game.StarterGui.Job.Jobname.Text = "Cashier"
end
script.Parent.ClickDetector.mouseClick:connect(OnClicked)
I know it's all wrong that's why I came here. Also should this be in a Local script? This is a normal Script inside the Brick with the ClickDetector.

2 comments
Still doesn't work. Not sure why but the Gui remains unchanged.
Any output error?