Button2DownConnectionCount (Property): Difference between revisions
From Legacy Roblox Wiki
Jump to navigationJump to search
m Text replacement - "<code lua>" to "<SyntaxHighlight code="lua">" |
m Text replacement - "</code>" to "</SyntaxHighlight>" |
||
Line 14: | Line 14: | ||
end | end | ||
end )</ | end )</SyntaxHighlight>}} | ||
[[Category:Properties]] | [[Category:Properties]] |
Revision as of 03:57, 27 April 2023
Button2DownConnectionCount | |
Property | int Button2DownConnectionCount |
Description | The amount of times the right mouse trigger was connected by being pushed. |
Member of | PlayerMouse |
Example
This example will only work if in a LocalScript.game.Players.LocalPlayer.PlayerMouse.Changed:connect( function( property )
if property == "Button2DownConnectionCount" then
print( "The Player has pressed the Right Mouse Button " .. game.Players.LocalPlayer.PlayerMouse.Button2DownConnectionCount .. " times." )
end
end )