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

How to rotate a model once without using a for or while loop?

Asked by 3 years ago

I tried but I cant seem to find a way trying to rotate only 90 degrees but without for or while loop here's my code I been using:

NewMask:SetPrimaryPartCFrame(NewMask:GetPrimaryPartCFrame()* CFrame.fromEulerAnglesXYZ(90,0,0))
0
Works fine. Azarth 3141 — 3y

1 answer

Log in to vote
0
Answered by 3 years ago

You could use CFrame.Angles?

NewMask:SetPrimaryPartCFrame(NewMask:GetPrimaryPartCFrame() * CFrame.Angles(math.rad(90),0,0)) 
0
I will try vortex767 20 — 3y
Ad

Answer this question