Fires when the left mouse button is released.
For information on how to obtain the
Mouse object, please see the
Developers can find out the position of the mouse in world-space, and if it is pointing at any
BasePart using the
Note, developers are recommended to use
UserInputService instead of the
Mouse object in new work.
Color Randomizer Tool (Button1Up)
The follow example changes the
BasePart/BrickColor of every
BasePart the player clicks and releases their mouse on.
In order for a part to change color, the player’s mouse must be over the part both when the player presses their left mouse button down and when the player releases their left mouse button.