Orientation Not Working (New Issue)

Earlier today, I had an issue with orientation not working. Another issue popped up, with no errors. The character won’t rotate towards the character. Heres the script:

local HitGoto = RootPart.CFrame.LookVector*3
	TweenService:Create(HitRootPart, TweenInfo.new(1, Enum.EasingStyle.Quint, Enum.EasingDirection.Out, 0, false, 0), {CFrame = RootPart.CFrame + HitGoto, Orientation = RootPart.Orientation + Vector3.new(0, 180, 0)}):Play()

I tried making it + vector 3, and it still did not work. I tried using the other axis’s, it didn’t work either.

1 Like

Hello! I do not know how to fix this, but I am encountering the same issue. I was trying to tween a parts orientation yesterday. (it worked when i made it a localscript in starterplayerscripts, but when i put it as a serverscript in the part it did not work)

Maybe you could try that? Localscript in starterplayerscripts

You cant tween cframe and orientation because cframe sets both position and rotation

So how would I solve this issue?

Apply an offset to the target cframe.

local destCFrame = RootPart.CFrame + HitGoto
destCFrame *= CFrame.Angles(0,math.rad(180),0)

TweenService:Create(HitRootPart, TweenInfo.new(1, Enum.EasingStyle.Quint, Enum.EasingDirection.Out, 0, false, 0), {CFrame = destCFrame}):Play()
2 Likes