see who clicked clickdetector roblox 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)