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: Torso Rotates to Mouse?

Previous Thread :: Next Thread 
1billybob1 is not online. 1billybob1
Joined: 15 Jun 2008
Total Posts: 4852
08 Jan 2015 07:09 PM
I've looked everywhere, wiki, youtube, other models to study, nothing.


I've been trying to find a way to make the player's torso rotate to the position of the mouse to give a realistic feel of first person.

I'm not requesting a script, just some basic help on it.
Report Abuse
chimmihc is not online. chimmihc
Joined: 01 Sep 2014
Total Posts: 17143
08 Jan 2015 07:13 PM
" I've been trying to find a way to make the player's torso rotate to the position of the mouse to give a realistic feel of first person."

... the torso moves with the mouse side to side while in first person
Report Abuse
1billybob1 is not online. 1billybob1
Joined: 15 Jun 2008
Total Posts: 4852
08 Jan 2015 07:16 PM

No, I mean rotation as in if you look down, your torso rotates down.
Report Abuse
jashwa is not online. jashwa
Joined: 08 Feb 2010
Total Posts: 378
08 Jan 2015 08:04 PM
Not sure what you mean?

Do you mean like how I made it in my game?

http://www.roblox.com/The-Binding-Of-Isaac-Under-Dev-place?id=200333667
Report Abuse
SenseiWarrior is online. SenseiWarrior
Joined: 09 Apr 2011
Total Posts: 12140
08 Jan 2015 08:07 PM
He means to make it look like you lean forwards or backwards.
Report Abuse
jashwa is not online. jashwa
Joined: 08 Feb 2010
Total Posts: 378
08 Jan 2015 08:07 PM
Ohhh Okay I see what your saying now.
Report Abuse
SenseiWarrior is online. SenseiWarrior
Joined: 09 Apr 2011
Total Posts: 12140
08 Jan 2015 08:08 PM
Also, Im working on a similar Binding of Isaac game, and if I actually finish it, Im gonna crush you >:c
Report Abuse
jashwa is not online. jashwa
Joined: 08 Feb 2010
Total Posts: 378
08 Jan 2015 08:08 PM
We'll see :3
Report Abuse
Goulstem is not online. Goulstem
Joined: 04 Jul 2012
Total Posts: 7177
08 Jan 2015 08:12 PM
lol. Bids on Binding of Isaac Creation - jashwa vs SenseiWarrior?

I got 100 r$ on Sensei.

But @OP

local mouse = game.Players.LocalPlayer:GetMouse()
local reference = game.Players.LocalPlayer.Character.Torso

while wait() do
reference.CFrame = CFrame.new(reference.CFrame.p,mouse.Hit.p);
end

(Lol dis gonna be extremely buggy.. I suggest using BodyGyro or something)
Report Abuse
1billybob1 is not online. 1billybob1
Joined: 15 Jun 2008
Total Posts: 4852
09 Jan 2015 04:23 PM
Sweet, ty so much for the script. I've been trying to get this to work for the past 3-4 hours. How would I make the legs stay on the baseplate instead of following with the torso?

I rewelded a ton of things, still not working. :P
Report Abuse
1billybob1 is not online. 1billybob1
Joined: 15 Jun 2008
Total Posts: 4852
09 Jan 2015 04:25 PM
btw, not requesting a script for this either, but like, basic idea how to keep the legs staying on the ground?
Report Abuse
ComplexMoney is not online. ComplexMoney
Joined: 18 May 2014
Total Posts: 1384
09 Jan 2015 04:29 PM
im a big fan, what do you mean keep the legs on the ground?
Report Abuse
SenseiWarrior is online. SenseiWarrior
Joined: 09 Apr 2011
Total Posts: 12140
09 Jan 2015 11:20 PM
Your whole body rotates but your feet stays on the ground. Basically, your torso rotates around your feet.

Billy, you better watch out, my upcoming survival games is gonna eat yours >:x

Well dont I got projects
Report Abuse
anaIyze is not online. anaIyze
Joined: 29 May 2014
Total Posts: 2048
09 Jan 2015 11:25 PM
Ah, yes. This is very easy. All you do is add a weld or Motor6D to your RootJoint (game.Players.localPlayer.Character['HumanoidRootPart']['RootJoint']), and rotate it about 5 radians (of course, tween it so it gives it that 'realistic' look).
Report Abuse
anaIyze is not online. anaIyze
Joined: 29 May 2014
Total Posts: 2048
09 Jan 2015 11:26 PM
Actually, if you're planning on creating super advanced custom realistic animations, I prefer studying over the math library well, you'll need it. Also, create custom joints (like elbows, knees). It may take some time yes, but it's worth it in the end
Report Abuse
SenseiWarrior is online. SenseiWarrior
Joined: 09 Apr 2011
Total Posts: 12140
09 Jan 2015 11:30 PM
First non troll post by anaIyze!!
Report Abuse
ash877 is not online. ash877
Joined: 18 Feb 2008
Total Posts: 5142
09 Jan 2015 11:36 PM
use bodyforce and set the gravity to counter roblox gravity? idk :C
Report Abuse
instawin is not online. instawin
Joined: 04 Jun 2013
Total Posts: 8777
09 Jan 2015 11:39 PM
First non troll post by anaIyze!! [2]
Report Abuse
ash877 is not online. ash877
Joined: 18 Feb 2008
Total Posts: 5142
09 Jan 2015 11:40 PM
[3] --> He's in a good mood today; not.
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