ClickDetector

extends Instance

Class fields

FieldXML typeValue
NamestringClickDetector
summarystringRaises mouse events for parent object
ExplorerOrderstring3
ExplorerImageIndexstring41

Properties

1
MaxActivationDistance
float
FieldXML typeValue
NamestringMaxActivationDistance
summarystringThe maximum distance a Player's character can be from the ClickDetector's parent Part that will allow the Player's mouse to fire events on this object.

Events

4
MouseClick
(playerWhoClicked: Instance) → void
FieldXML typeValue
NamestringMouseClick
summarystringFired when a player clicks on the parent Part of ClickDetector. The argument provided is always of type Player.
MouseHoverEnter
(playerWhoHovered: Instance) → void
FieldXML typeValue
NamestringMouseHoverEnter
summarystringFired when a player's mouse enters on the parent Part of ClickDetector. The argument provided is always of type Player.
MouseHoverLeave
(playerWhoHovered: Instance) → void
FieldXML typeValue
NamestringMouseHoverLeave
summarystringFired when a player's mouse leaves the parent Part of ClickDetector. The argument provided is always of type Player.
mouseClick
(playerWhoClicked: Instance) → void
FieldXML typeValue
NamestringmouseClick