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: having problems with this function caller

Previous Thread :: Next Thread 
carbondudeoxide is not online. carbondudeoxide
Joined: 04 Mar 2011
Total Posts: 556
08 Aug 2011 05:17 AM
hi guys the mouse.Button2Up and mouse.Button2Down function callers are not working... any ideas on why?
Report Abuse
RoflBread is not online. RoflBread
Joined: 18 Jun 2009
Total Posts: 3803
08 Aug 2011 05:22 AM
A quick scan on the wiki reveals that they don't exist.
Report Abuse
RoflBread is not online. RoflBread
Joined: 18 Jun 2009
Total Posts: 3803
08 Aug 2011 05:22 AM
Nope my bad lol. Are you using the functions in a hopperbin or gui script?
Report Abuse
carbondudeoxide is not online. carbondudeoxide
Joined: 04 Mar 2011
Total Posts: 556
08 Aug 2011 05:23 AM
http://wiki.roblox.com/index.php/Button2Down_%28Event%29

whats that then!??!!
Report Abuse
RoflBread is not online. RoflBread
Joined: 18 Jun 2009
Total Posts: 3803
08 Aug 2011 05:24 AM
I did correct myself before you posted that, so your post is INVALID MUAHAHHAHAHA
Report Abuse
carbondudeoxide is not online. carbondudeoxide
Joined: 04 Mar 2011
Total Posts: 556
08 Aug 2011 05:25 AM
lol hopper bin
Report Abuse
RoflBread is not online. RoflBread
Joined: 18 Jun 2009
Total Posts: 3803
08 Aug 2011 05:28 AM
Tools/hopperbins, whatever floats your boat. Umm yeah, is the script local? That' all i can think off, sorry
Report Abuse
carbondudeoxide is not online. carbondudeoxide
Joined: 04 Mar 2011
Total Posts: 556
08 Aug 2011 05:29 AM
yup and its still not calling... i just tryed that :P
Report Abuse
BloxBuilder900 is not online. BloxBuilder900
Joined: 31 Mar 2009
Total Posts: 2231
08 Aug 2011 05:31 AM
In a localscript inside hopperbin,


local bin = script.Parent

bin.Selected:connect(function(m) --m = mouse, selected returns the mouse
--mouse can access keyboard
m.Button1Down:connect(function()
print("Left click!")
end)
m.Button2Down:connect(function()
print("Right click!")
end)
end)
Report Abuse
BloxBuilder900 is not online. BloxBuilder900
Joined: 31 Mar 2009
Total Posts: 2231
08 Aug 2011 05:31 AM
Btw, function caller = Event

:]
Report Abuse
carbondudeoxide is not online. carbondudeoxide
Joined: 04 Mar 2011
Total Posts: 556
08 Aug 2011 05:35 AM
function onSelected(mouse)
onButton1Up(mouse)

mouse.Button1Down:connect(function() onButton1Down(mouse) end)
mouse.Button1Up:connect(function() onButton1Up(mouse) end)
mouse.Button2Down:connect(function() onButton2Down(mouse) end)
mouse.Button2Up:connect(function() onButton2Up(mouse) end)
mouse.KeyDown:connect(onKeyDown)
mouse.KeyUp:connect(onKeyUp)
end

thats the one i got but the Button1Down and up work fine...
Report Abuse
carbondudeoxide is not online. carbondudeoxide
Joined: 04 Mar 2011
Total Posts: 556
08 Aug 2011 05:52 AM
the functions currently are

function Button2Up(mouse)
print("working")
end

function Button2Down(mouse)
print("working")
end

there like that for debugging currently
but they are not printing

the Button1Up and Button1Down are parts of moving a ship and targeting computer :P i wanted to move the targeting computer to right click but no avail currently...
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