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
|
  |
| Joined: 28 Apr 2011 |
| Total Posts: 2745 |
|
| |
|
Actoz
|
  |
| Joined: 28 Apr 2011 |
| Total Posts: 2745 |
|
| |
|
|
| 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 |
|
|
|
| 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
|
  |
| Joined: 28 Apr 2011 |
| Total Posts: 2745 |
|
|
| 06 Aug 2011 02:47 PM |
@TheNew
What would be the connect line? |
|
|
| Report Abuse |
|
|
| |
|
Actoz
|
  |
| Joined: 28 Apr 2011 |
| Total Posts: 2745 |
|
|
| 06 Aug 2011 03:02 PM |
@Mario
What would be the connect line? |
|
|
| Report Abuse |
|
|
| |
|
|
| 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 |
|
|
|
| 04 Nov 2012 07:19 PM |
That's pretty much it...
.:ʙᴏɴ ʙᴏɴ ᴏғ S&I:. |
|
|
| Report Abuse |
|
|
1Topcop
|
  |
| Joined: 09 Jun 2009 |
| Total Posts: 6635 |
|
|
| 04 Nov 2012 07:22 PM |
| Button2Up and Button2Down are currently disabled. |
|
|
| Report Abuse |
|
|
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 |
|
|
|
| 04 Nov 2012 08:18 PM |
I used the "search" bar, sorry.
.:ʙᴏɴ ʙᴏɴ ᴏғ S&I:. |
|
|
| Report Abuse |
|
|