If it didn't have the Gui part it would work fine but with it it takes two clicks to activate it for some reason, I'm not quite sure what I'm doing wrong.
function onClicked()
script.Parent.ClickDetector.MouseClick:connect(function(playerWhoClicked)
local gui = playerWhoClicked:FindFirstChild("PlayerGui")
gui.ScreenGui.TextLabel.Text = ("stuff")
print("other script stuff here")
end)
end
script.Parent.ClickDetector.MouseClick:connect(onClicked)

1 comment
Thanks, that seems to have worked!