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: Hopperbin Help

Previous Thread :: Next Thread 
Actoz is not online. Actoz
Joined: 28 Apr 2011
Total Posts: 2745
06 Aug 2011 02:38 PM
How do you tell where a person clicks when using a hopperbin?
What would be the connect line for the clicking in a hopperbin?
How do you detect the bricks name when the players mouse is over it, using a hopperbin?

Please answer my questions I am making building tools and this will help...
Report Abuse
Actoz is not online. Actoz
Joined: 28 Apr 2011
Total Posts: 2745
06 Aug 2011 02:40 PM
Anything...?
Report Abuse
Actoz is not online. Actoz
Joined: 28 Apr 2011
Total Posts: 2745
06 Aug 2011 02:44 PM
Help...
Report Abuse
TheNewScripter is not online. TheNewScripter
Joined: 02 Mar 2010
Total Posts: 2432
06 Aug 2011 02:44 PM
mouse.Hit
Returns CFrame of where they clicked

mouse.Hit.p
Returns Vector3 of where they clicked
Report Abuse
MARIOSTAR6464 is not online. MARIOSTAR6464
Joined: 21 Jul 2008
Total Posts: 13674
06 Aug 2011 02:45 PM
mouse.Hit
Returns CFrame of where they clicked

mouse.Hit.p
Returns Vector3 of where they clicked

your welcome
Report Abuse
Actoz is not online. Actoz
Joined: 28 Apr 2011
Total Posts: 2745
06 Aug 2011 02:47 PM
@TheNew

What would be the connect line?
Report Abuse
MARIOSTAR6464 is not online. MARIOSTAR6464
Joined: 21 Jul 2008
Total Posts: 13674
06 Aug 2011 02:49 PM
y nawt ask mi?
Report Abuse
Actoz is not online. Actoz
Joined: 28 Apr 2011
Total Posts: 2745
06 Aug 2011 03:02 PM
@Mario

What would be the connect line?
Report Abuse
MARIOSTAR6464 is not online. MARIOSTAR6464
Joined: 21 Jul 2008
Total Posts: 13674
06 Aug 2011 03:04 PM
mouse.Hit.p
Report Abuse
TheNewScripter is not online. TheNewScripter
Joined: 02 Mar 2010
Total Posts: 2432
06 Aug 2011 03:10 PM
function Mouse1Down(mouse)
-- Things to happen when they left cilck
end

function Mouse1Up(mouse)
-- Things to happen when they let go of left mouse
end

function Mouse2Down(mouse)
-- Things to happen when they right click
end

function Mouse2Up(mouse)
-- Things to happen when they let go of right mouse
end

function MouseMove(mouse)
-- Things to happen when they move the mouse
end

function KeyDown(mouse, key)
-- Things to happen when they press a key
if (key == "a") then
print("Pressed a")
end
end

function KeyUp(mouse, key)
-- Things to happen when they let go of key
if (key == "a") then
print("Let go of a key")
end
end

function Selected(mouse)

mouse.Button1Down:connect(function() Mouse1Down(mouse) end)
mouse.Button1Up:connect(function() Mouse1Up(mouse) end)
mouse.Button2Down:connect(function() Mouse2Down(mouse) end)
mouse.Button2Up:connect(function() Mouse2Up(mouse) end)
mouse.Move:connect(function() MouseMove(mouse) end)
mouse.KeyDown:connect(function(key) KeyDown(mouse, key) end)
mouse.KeyUp:connect(function(key) KeyUp(mouse, key) end)

end


Hopper.Selected:connect(Selected)


All Events execpt for Hopperbin, except deselect.
Report Abuse
yosuppeeps is not online. yosuppeeps
Joined: 06 Jul 2009
Total Posts: 20107
04 Nov 2012 07:19 PM
That's pretty much it...

.:ʙᴏɴ ʙᴏɴ ᴏғ S&I:.
Report Abuse
1Topcop is not online. 1Topcop
Joined: 09 Jun 2009
Total Posts: 6635
04 Nov 2012 07:22 PM
Button2Up and Button2Down are currently disabled.
Report Abuse
1Topcop is not online. 1Topcop
Joined: 09 Jun 2009
Total Posts: 6635
04 Nov 2012 07:22 PM
Oh dumbit, you bumped an old thread..


print("Flood checks:",1)
Report Abuse
yosuppeeps is not online. yosuppeeps
Joined: 06 Jul 2009
Total Posts: 20107
04 Nov 2012 08:18 PM
I used the "search" bar, sorry.

.:ʙᴏɴ ʙᴏɴ ᴏғ S&I:.
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