Button2DownConnectionCount (Property)

From Legacy Roblox Wiki
Revision as of 06:19, 27 April 2023 by Realjame (talk | contribs) (Text replacement - "</SyntaxHighlight>" to "</syntaxhighlight>")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search
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 )