Class:ClickDetector

The ClickDetector class is used to make an object able to be selected, and if applied, perform an action. To apply it, select a brick, then go to Insert > Object > ClickDetector. If you apply a script to purchase an object by clicking, then when you hover over the object, your cursor will turn to a hand, and if you click, the script will be executed. You can also use this technique on doors, e.g. placing a ClickDetector brick that when selected sets an object CanCollide setting to false, allowing passage. Good for making doors and such. It was released on April 2, 2008. At an unknown date, the ClickDetector pointer was revamped.

Usage
When a player clicks a ClickDetector's parent brick, this event will fire including the player who clicked.

Example: