|
| 16 Jul 2015 05:59 PM |
| I have a hopperbin. I want to make my torso follow my mouse whenever I select that hopperbin. I know it has to do something with "hit" Cuz when I looked in the wiki for mouse, it said that "hit" is the location where the mouse is pointing. So anyone have any idea? |
|
|
| Report Abuse |
|
|
| |
|
| |
|
| |
|
MrNicNac
|
  |
| Joined: 29 Aug 2008 |
| Total Posts: 26567 |
|
|
| 16 Jul 2015 06:11 PM |
local Bin = script.Parent local MouseConnection
Bin.Selected:connect(function(Mouse) local Torso = game.Players.LocalPlayer.Character:WaitForChild("Torso") MouseConnection = Mouse.Move:connect(function() Torso.CFrame = CFrame.new(Torso.Position, Mouse.Hit.p) end) end)
Bin.Deselected:connect(function() MouseConnection:disconnect() end) |
|
|
| Report Abuse |
|
|
| |
|
|
| 16 Jul 2015 06:40 PM |
| Ahh can I not make it go at a reasonable speed because I am trying to make a plane and it basically kills my plane. |
|
|
| Report Abuse |
|
|
| |
|
| |
|
| |
|
|
| 16 Jul 2015 07:32 PM |
| I am seated, I select my hopperbin and it goes too fast and flings out of the map. How do I make it go slower so I can atleast manage to make it move at x and z only without y? |
|
|
| Report Abuse |
|
|
gooey333
|
  |
| Joined: 24 Mar 2013 |
| Total Posts: 1208 |
|
|
| 16 Jul 2015 07:32 PM |
| You don't want to use this method for a plane. Try something different |
|
|
| Report Abuse |
|
|
|
| 16 Jul 2015 07:34 PM |
| Ik that. I am just experimenting |
|
|
| Report Abuse |
|
|