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>}} | ||
==See Also== | ==See Also== |
Revision as of 05:02, 27 April 2023
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)