I don’t want the character to rotate I just want it to go up
here is my code, please tell me what is wrong with it, and why it makes the character rotate
AutoRotate is off
local TargetCF = CFrame.new(Vector3.new(UpRayCastResult.Position.X,UpRayCastResult.Position.Y,UpRayCastResult.Position.Z))
local goal = {CFrame = TargetCF}
local ti = TweenInfo.new(0.2, Enum.EasingStyle.Sine, Enum.EasingDirection.InOut,0,false,0)
local Tween = TweenService:Create(HRP, ti, goal)
Tween:Play()