generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: is the Button2Down event functional now?

Previous Thread :: Next Thread 
WishNite is not online. WishNite
Joined: 11 Feb 2009
Total Posts: 15828
10 May 2013 04:30 PM
I see a lot of places use it. are they using Button2Down or are they using some sort of workaround?
Report Abuse
Postured is not online. Postured
Joined: 02 Feb 2012
Total Posts: 114
10 May 2013 04:33 PM
Button2Down can now be used.

At least, with the :GetMouse() event in a local script.

local player = game.Players.LocalPlayer
local mouse = player:GetMouse()
mouse.Button2Down:connect(function()
print "The right mouse button has been clicked."
end)
Report Abuse
Zkiller11 is not online. Zkiller11
Joined: 25 Aug 2009
Total Posts: 2914
10 May 2013 04:34 PM
Yes.

http://wiki.roblox.com/index.php/Button2Down_(Event)
Report Abuse
WishNite is not online. WishNite
Joined: 11 Feb 2009
Total Posts: 15828
10 May 2013 04:35 PM
Can it be used with the old way of getting the mouse? Using tools/hopperbins?
Report Abuse
Zkiller11 is not online. Zkiller11
Joined: 25 Aug 2009
Total Posts: 2914
10 May 2013 04:38 PM
From the wiki:

" Button2Down ( )
Description Fired when the right mouse button is pressed.
Member of: Mouse"

"RBX.lua.Mouse (Object)From Roblox Wiki
Local: This item should be used with a LocalScript in order to work as expected in online mode."


"A Mouse object is not creatable, but can be obtained using the Selected event of HopperBins or the Equipped event of Tools. A Mouse object is only usable while the Player has the Tool or HopperBin selected. Once they are deselected, the Mouse's events will no longer be triggered and reading the properties will cause an error. "
Report Abuse
WishNite is not online. WishNite
Joined: 11 Feb 2009
Total Posts: 15828
10 May 2013 04:39 PM
That wiki page is outdated
Report Abuse
Zkiller11 is not online. Zkiller11
Joined: 25 Aug 2009
Total Posts: 2914
10 May 2013 04:43 PM
From the wiki, same page:

"This page was last modified on 19 December 2012, at 01:12."

Report Abuse
WishNite is not online. WishNite
Joined: 11 Feb 2009
Total Posts: 15828
10 May 2013 04:46 PM
like I said, that wiki page is outdated
Report Abuse
Zkiller11 is not online. Zkiller11
Joined: 25 Aug 2009
Total Posts: 2914
10 May 2013 04:48 PM
19 December 2012

How modern do you want princess?
Report Abuse
WishNite is not online. WishNite
Joined: 11 Feb 2009
Total Posts: 15828
10 May 2013 04:52 PM
that's 6 months ago

Obviously the game has been updated /a lot/ in those 6 months, as demonstrated by the :GetMouse() function. That didn't exist 6 months ago.
Report Abuse
Zkiller11 is not online. Zkiller11
Joined: 25 Aug 2009
Total Posts: 2914
10 May 2013 04:55 PM
6 Months? That's it?

Dude, this is Roblox we're talking about. They never move fast. If you don't want to use the wiki page, test it yourself. It's really not that hard to test, and would probably take all of 10 minutes. From my own expierence, you can use Button1Down with a hopperbin, but I really don't care if you believe me or not. If you can't test it yourself, use the wiki, if you don't like the wiki's answer, accept mine or someone else on this forum.
Report Abuse
WishNite is not online. WishNite
Joined: 11 Feb 2009
Total Posts: 15828
10 May 2013 05:00 PM
I'm sorry for being inquisitive and challenging your "authority."

Also, next time, I would prefer that someone who knows what they are talking about to answer my question. I already checked the wiki article beforehand - and the fact that you copypasted it makes me pretty sure you don't know what you are talking about in this instance.
Report Abuse
Zkiller11 is not online. Zkiller11
Joined: 25 Aug 2009
Total Posts: 2914
10 May 2013 05:07 PM
-.-

I wasn't trying to imply I had any authority; I just got tired of you not listening to me. If you already checked the Wiki, you should have known the answer. I gave you the answer personally multiple times. What made me mad was the fact that you weren't going to check yourself, let alone listen to me. You can be as inquisitive as you want; that's what this forum is. I have no authority over it. I just found it ironic that you wanted help, but wouldn't accept mine.
Report Abuse
WishNite is not online. WishNite
Joined: 11 Feb 2009
Total Posts: 15828
10 May 2013 05:09 PM
Thanks for the attempt at helping, but I already knew about getting the mouse via the tool. I thought I made that clear, but apparently not

Anyway, I'm done w/ this topic
Report Abuse
Zkiller11 is not online. Zkiller11
Joined: 25 Aug 2009
Total Posts: 2914
10 May 2013 05:11 PM
Oh. I figured "Can it be used with the old way of getting the mouse? Using tools/hopperbins?" implied that you were wanting help.
Report Abuse
WishNite is not online. WishNite
Joined: 11 Feb 2009
Total Posts: 15828
10 May 2013 05:12 PM
yeah, I should have added more context to that post

My fault
Report Abuse
Zkiller11 is not online. Zkiller11
Joined: 25 Aug 2009
Total Posts: 2914
10 May 2013 05:14 PM
Sorry for acting like a jerk. I overreacted.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image