Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How can I add a number value to a CFrame angle?

What I want the script to do is every 1 second rotate the brick +1 on the Y axis

Workspace.Part1.BodyGyro.cframe = CFrame.Angles(0,0,0)
wait(1)
 --[[I tried CFrame.Angles(0,0,0) = CFrame.Angles(0,+1,0) But It wont work]]

1 answer

✓ Accepted answer
wait(1)
Workspace.Part1.BodyGyro.cframe = Workspace.Part1.BodyGyro.cframe * CFrame.Angles(0,math.rad(1),0)

You have to use math.rad function, because CFrame.Angles requires radians, instead of degrees.

1 comment

0

Thanks! Really Appreciate the help!

This discussion is preserved as it was. New answers, comments, and votes are closed.