Not rotating at perfect angles

Hello everyone! I am trying to tween a part 90 degrees every 1 second (don’t ask why, it’s just for fun) and it’s not rotating at the perfect 90 degree angle.

Script:

local tween = TweenService:Create(circle.PrimaryPart, tweenInfo2, {CFrame = circle.PrimaryPart.CFrame * CFrame.Angles(0, 90, 0)})
tween:Play()
tween.Completed:Wait()

Please help!

3 Likes

I think you should use Orientation instead of CFrame

local tween = TweenService:Create(circle.PrimaryPart, tweenInfo2, {Orientation = circle.PrimaryPart + Vector3.new(0, 90, 0)})
1 Like

Woah! I didn’t believe it was that easy! Thanks so much!

2 Likes

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