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 » Scripters
Home Search
 

Re: How to make my torso follow my mouse.

Previous Thread :: Next Thread 
demonshadow553 is not online. demonshadow553
Joined: 06 Sep 2013
Total Posts: 2626
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
demonshadow553 is not online. demonshadow553
Joined: 06 Sep 2013
Total Posts: 2626
16 Jul 2015 06:03 PM
Bump?
Report Abuse
demonshadow553 is not online. demonshadow553
Joined: 06 Sep 2013
Total Posts: 2626
16 Jul 2015 06:06 PM
Bump plz help :C
Report Abuse
demonshadow553 is not online. demonshadow553
Joined: 06 Sep 2013
Total Posts: 2626
16 Jul 2015 06:10 PM
HALP
Report Abuse
MrNicNac is not online. 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
demonshadow553 is not online. demonshadow553
Joined: 06 Sep 2013
Total Posts: 2626
16 Jul 2015 06:14 PM
Thanks! It worked!
Report Abuse
demonshadow553 is not online. demonshadow553
Joined: 06 Sep 2013
Total Posts: 2626
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
demonshadow553 is not online. demonshadow553
Joined: 06 Sep 2013
Total Posts: 2626
16 Jul 2015 06:44 PM
No?
Report Abuse
demonshadow553 is not online. demonshadow553
Joined: 06 Sep 2013
Total Posts: 2626
16 Jul 2015 07:17 PM
No?
Report Abuse
clonerichy is not online. clonerichy
Joined: 17 Mar 2011
Total Posts: 182
16 Jul 2015 07:31 PM
Define "reasonable speed"
Report Abuse
demonshadow553 is not online. demonshadow553
Joined: 06 Sep 2013
Total Posts: 2626
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 is not online. 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
demonshadow553 is not online. demonshadow553
Joined: 06 Sep 2013
Total Posts: 2626
16 Jul 2015 07:34 PM
Ik that. I am just experimenting
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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