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: Walking while Facing

Previous Thread :: Next Thread 
AlphaBlock is not online. AlphaBlock
Joined: 02 Jan 2008
Total Posts: 599
18 Mar 2013 03:59 PM
Is there a way to make a humanoid walk one way while facing another, like when you are in first person?
Report Abuse
Flash77 is not online. Flash77
Joined: 14 Jun 2008
Total Posts: 550
18 Mar 2013 04:13 PM
You could try making the player's camera to be the players head instead, then using a hopper bin to get when the player is trying to walk, and if so using Humanoid:MoveTo(Torso.Position + Direction you want to walk) to get that character to walk like that.

Probably overly complicated way to do that, but it is the first way i came up with :/
Report Abuse
AlphaBlock is not online. AlphaBlock
Joined: 02 Jan 2008
Total Posts: 599
18 Mar 2013 04:25 PM
A humanoid, NOT a player specifically
Report Abuse
AlphaBlock is not online. AlphaBlock
Joined: 02 Jan 2008
Total Posts: 599
18 Mar 2013 05:04 PM
bump?
Report Abuse
ChuckTestaDotAvi is not online. ChuckTestaDotAvi
Joined: 03 Sep 2012
Total Posts: 439
18 Mar 2013 05:07 PM
Use BodyGyro placed in body.
Report Abuse
AlphaBlock is not online. AlphaBlock
Joined: 02 Jan 2008
Total Posts: 599
18 Mar 2013 05:08 PM
That's what I've been doing. but it causes the humanoid to occasionally wobble everywhere and eventually fall down
Report Abuse
ChuckTestaDotAvi is not online. ChuckTestaDotAvi
Joined: 03 Sep 2012
Total Posts: 439
18 Mar 2013 05:18 PM
Ah. Just to get rid of that wobble, I've learned rotation matrix. I needed it for my perspective place.


pos = --look at(CFrame)
x,y,z,xx,xy,xz,yx,yy,yz,zx,zy,zz = pos:components()

gyro.cframe = CFrame.new(x,y,z, xx,0,xz, yx,yy,0, zx,0,zz)

Hope it works.
Report Abuse
AlphaBlock is not online. AlphaBlock
Joined: 02 Jan 2008
Total Posts: 599
18 Mar 2013 05:37 PM
Thanks Brau
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