Button2DownConnectionCount (Property): Difference between revisions

From Legacy Roblox Wiki
Jump to navigationJump to search
>ArceusInator
New page: {{CatUp|Properties}} <onlyinclude>{{Property |name = Button2DownConnectionCount |property = Int ''Button2DownConnectionCount'' |description = Retu...
>ArceusInator
No edit summary
Line 26: Line 26:


{{Example|<pre>
{{Example|<pre>
game.Players.LocalPlayer.PlayerMouse.Changed:connect( function( playermouse, property )
game.Players.LocalPlayer.PlayerMouse.Changed:connect( function( property )
   if property == "Button2DownConnectionCount" then
   if property == "Button2DownConnectionCount" then
       print( "The Player has pressed the Right Mouse Button " .. playermouse.Button2DownConnectionCount .. " times." )
       print( "The Player has pressed the Right Mouse Button " .. game.Players.LocalPlayer.PlayerMouse.Button2DownConnectionCount .. " times." )


   end
   end
end )</pre>}}
end )</pre>}}

Revision as of 16:29, 24 January 2011

Button2DownConnectionCount
Property Int Button2DownConnectionCount
Description Returns the amount of times the right mouse trigger was connected by being pushed.
Member of PlayerMouse









Example
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 )