Button2DownConnectionCount (Property): Difference between revisions

From Legacy Roblox Wiki
Jump to navigationJump to search
>ArceusInator
No edit summary
>SoulStealer9875
No edit summary
Line 7: Line 7:
|object              = PlayerMouse
|object              = PlayerMouse
|}}</onlyinclude>
|}}</onlyinclude>
 
{{clear floats}}
[[Category:Properties]]
{{Example|This example will only work if in a'''LocalScript'''.<pre>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
{{Example|<pre>
game.Players.LocalPlayer.PlayerMouse.Changed:connect( function( property )
game.Players.LocalPlayer.PlayerMouse.Changed:connect( function( property )
   if property == "Button2DownConnectionCount" then
   if property == "Button2DownConnectionCount" then
Line 32: Line 15:
   end
   end
end )</pre>}}
end )</pre>}}
[[Category:Properties]]

Revision as of 11:27, 16 August 2011

Button2DownConnectionCount
Property Int Button2DownConnectionCount
Description Returns the amount of times the right mouse trigger was connected by being pushed.
Member of PlayerMouse
Example
This example will only work if in aLocalScript.
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 )