Incorrect direction of cylinder axis

My problem is that I want to spawn a cylinder up the Y coordinate, like in the picture the green cylinder, but for me it spawns like in the picture the red one, I don’t know how to change the axis.

rotate it

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

--change the numbers around, make sure to encapsulate any non-0 number in math.rad()

Thank you. But in my case the correct script looked like this: part.CFrame*=CFrame.Angles(0,0,math.rad(90)).

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.