Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Finding Specific Angle Values?

Asked by
Hibobb 40
9 years ago

I created a script that changes the X angle of a BodyGyro to rotate a part. However, I also want specific things to happen if the angle is negative. Is it possible to find the value of this angle? Here is the example line from my script:

plane.Engine.Gyro.cframe = plane.Engine.Gyro.cframe * CFrame.Angles(math.rad(3.5),0,0)

So maybe something like...:

if plane.Engine.Gyro.cframe.Angles.X < 0 then
0
Did the second part work? Orlando777 315 — 9y
0
No, it was just me trying to explain better with a nonfunctioning example Hibobb 40 — 9y

Answer this question