Part not rotating correctly with scripts?

I have a cylinder that is to rotate to a specific orientation. The orientation is supposed to be -45, 90, 180 but is instead 0, 45, 135. Can someone help please?

local a = 45
tweenService:Create(v, TweenInfo.new(0.5), { Rotation = Vector3.new(-a, 90, 180)}):Play()

Isn’t it “Orientation” and not “Rotation”?

1 Like

I don’t really like messing around with a part’s Rotation. I find it’s always just inconsistent. Using CFrame.Angles has never failed for me, though make sure to use math.rad when working with degrees as CFrame.Angles uses radians.

Try this:

TweenService:Create(
    v, 
    TweenInfo.new(0.5), 
    {CFrame = v.CFrame * CFrame.Angles(math.rad(-45), math.rad(90), math.rad(180))}
)