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 would I a part rotate only on the Y axis?

Previous Thread :: Next Thread 
TehPootisman_DxD is not online. TehPootisman_DxD
Joined: 11 Oct 2009
Total Posts: 2826
08 Nov 2016 03:16 PM
I've tried looking it up on Scriptinghelpers but I haven't had much luck getting the only solution that Google showed me to work.
Report Abuse
Wunder_Wulfe is online. Wunder_Wulfe
Joined: 13 Sep 2016
Total Posts: 8356
08 Nov 2016 03:17 PM
part.CFrame = part.CFrame * CFrame.Angles(0,math.rad(degrees),0)

if you want global rotation

part.CFrame = CFrame.Angles(0,math.rad(degrees),0) * part.CFrame
Report Abuse
Wunder_Wulfe is online. Wunder_Wulfe
Joined: 13 Sep 2016
Total Posts: 8356
08 Nov 2016 03:17 PM
or i think thats global
if not then you need to make it rotation relative to the parts current rotation
Report Abuse
TehPootisman_DxD is not online. TehPootisman_DxD
Joined: 11 Oct 2009
Total Posts: 2826
08 Nov 2016 03:32 PM
Says that "degrees" is an unknown global...
Report Abuse
qqtt991 is online. qqtt991
Joined: 14 Dec 2007
Total Posts: 1387
08 Nov 2016 03:55 PM
Okay well, if you don't know how variables work then you're not going to be able to do anything with what you're given here.

You have to define degrees and its value yourself.


Report Abuse
Wunder_Wulfe is online. Wunder_Wulfe
Joined: 13 Sep 2016
Total Posts: 8356
08 Nov 2016 04:52 PM
Well duh, it stands for your degree of rotation
you put your degrees in there lmao
Report Abuse
TehPootisman_DxD is not online. TehPootisman_DxD
Joined: 11 Oct 2009
Total Posts: 2826
08 Nov 2016 05:04 PM
oh, i think i see now.
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