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

Make a part maintain rotation after creating a new CFrame using Vector3?

Asked by 2 years ago
Edited 2 years ago

****IGHT ITS REALLY SIMPLE

Part.CFrame =  CFrame.new(Part.CFrame.Position) *  CFrame.Angles(0,math.rad(90),0)

Basically I am trying to make it so that the CFrame is set exactly to 90 in radians in the Y Axis

because of this

I can't just multiply the CFrame altogether like

Part.CFrame =  Part.CFrame *  CFrame.Angles(0,math.rad(90),0)

Because I need to set the angle exactly 90 degrees

Basically by doing this it will rotate 90 degrees from its original cframe meaning its either gonna go 90 or 180

but I just want 90

0
isn't Part.CFrame = Part.CFrame * CFrame.Angles(0,math.rad(90),0) just like adding 0 to 90?? Puppynniko 1059 — 2y
0
Ngl you are everywhere anyways, Specifically what I meant was setting the parts cframe angle to exactly 90 Overseer_Prince 188 — 2y
0
By adding the CFrame using the second method I am "Literally" adding the CFrames meaning it will be 90 at first but after that it will add onto that and change to something like 180 I want it to be specifically 90 at all times Overseer_Prince 188 — 2y
0
Basically the "PART HAS TO BE ROTATED AT 90 DEGREES AT TIMES" Not 180 not 240 not 360 Specifically "90" degrees in radians Overseer_Prince 188 — 2y

Answer this question