MouseClick (Event): Difference between revisions

From Legacy Roblox Wiki
Jump to navigationJump to search
>JulienDethurens
No edit summary
>JulienDethurens
No edit summary
 
(No difference)

Latest revision as of 00:22, 26 March 2012

MouseClick ( Player playerWhoClicked )
Description Fired after the ClickDetector's parent is clicked.
Member of: ClickDetector

Example

This code would print Part was clicked by: , followed by the name of the player who clicked the part, whenever it is clicked.

Workspace.Part.ClickDetector.MouseClick:connect(function(playerWhoClicked)
  print("Part was clicked by: " .. playerWhoClicked.Name)
end)