roblox let gui click detector code example
Example: how to know who clicked a click detector roblox
function GoGoGo()
print("executing some code")
print("code code code")
error("error!!")
end
script.Parent.ClickDetector.MouseClick:Connect(GoGoGo)