Z_lqify
(Kuzey)
#1
Hello! I want to rotate a model in Y axis 45 degrees. But I only know how to rotate a model 90 degrees instead 45.
Rotating 90 Degrees in Y axis: Model:SetPrimaryPartCFrame(CFrame.new(0,0,0) * CFrame.Angles(0,math.pi / 2, 0))
Since I don’t really know math.pi, I’m having issues.
Anybody have any clue to rotate it in 45 Degrees?
Use math.pi/4 for 45 degrees instead of math.pi/2
math.pi radians = 180 degrees
math.pi/2 radians = 90 degrees (180/2 = 90)
math.pi/4 radians = 45 degrees (180/4 = 45)
1 Like
You can click the part, and in the properties tab, you can change the number of rotation on that axis to 45 degrees.
Z_lqify
(Kuzey)
#4
I just meant it by script lmao
Z_lqify
(Kuzey)
#5
Thank you very much!
I was looking for the answer for a year!
Oh, never mind then. Just ignore me, I just figured it would be an easier way of doing it.
1 Like