Guest422349
(Guest 422349)
September 15, 2023, 6:44pm
#1
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
Guest422349
(Guest 422349)
September 15, 2023, 6:48pm
#3
Woah! I didn’t believe it was that easy! Thanks so much!
2 Likes
system
(system)
Closed
September 29, 2023, 6:49pm
#4
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.