Button1Up (Event): Difference between revisions

From Legacy Roblox Wiki
Jump to navigationJump to search
m Text replacement - "<code lua>" to "<SyntaxHighlight code="lua">"
m Text replacement - "</SyntaxHighlight>" to "</syntaxhighlight>"
Line 15: Line 15:
end)
end)
end)
end)
</SyntaxHighlight>}}
</syntaxhighlight>}}


==See Also==
==See Also==

Revision as of 05:02, 27 April 2023

Button1Up ( )
Description Fired when the mouse is in the left mouse up state.
Member of: Mouse


Example

This code, if put in an HopperBin would print Left mouse button is in up state. whenever the left mouse button is released:

script.Parent.Selected:connect(function(mouse)
	mouse.Button1Up:connect(function()
		print('Left mouse button is in up state.')
	end)
end)


See Also