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: Rotation along Y axis

Previous Thread :: Next Thread 
0supadude0 is not online. 0supadude0
Joined: 11 Aug 2010
Total Posts: 649
03 Aug 2013 06:49 AM
I want to have a character be rotated to the same angle as a brick, but only along the Y axis. This is for moving a character, so they are facing the same direction as the brick but aren't leading forward/backwards or side to side. (Whereas the brick is)

The problem is, if I go;

yrot = Vector3.new(part:toEulerAnglesXYZ()).y
torso.CFrame = CFrame.new(part.Position) * CFrame.Angles(0,yrot,0)

It works for 180 degrees of rotation, but otherwise turns you a random direction

Any help would be appreciated
Report Abuse
Epic1230 is not online. Epic1230
Joined: 07 Dec 2011
Total Posts: 289
03 Aug 2013 06:53 AM
for I = 0,360 do
Report Abuse
0supadude0 is not online. 0supadude0
Joined: 11 Aug 2010
Total Posts: 649
03 Aug 2013 06:55 AM
Pretty sure you don't understand/didn't read all of my question
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