I want to put a cooldown on their clicking, and obviously I need to know who clicked something. Is there a certain function, or do I do something with the parameter?
✓ ANSWER ACCEPTED
How to detect who clicked a ClickDetector?
1 answer
✓ Accepted answer
A ClickDetector has the event MouseClick which passes the player who clicked it.
This is the example from the wiki:-
Workspace.Part.ClickDetector.MouseClick:connect(function(playerWhoClicked)
print("Part was clicked by: " .. playerWhoClicked.Name)
end)
I hope this helps.
This discussion is preserved as it was. New answers, comments, and votes are closed.

1 comment
Thanks, didn't know it was something with the parameter or the function.