I want to get my character to rotate smoothly when the camera moves. (have a little bit of delay when rotating the camera)
the issue is that when the camera is being rotated too fast the character rotation cant keep up and it looks weird.
i think its because of the delay from the tween, so i thought about making the delay shorter the faster the camera moves… But how do I do that? (and would it even work?)
local _, y = workspace.CurrentCamera.CFrame.Rotation:ToEulerAnglesYXZ()
local tweenInfo = TweenInfo.new(0.1, Enum.EasingStyle.Linear)
local newCFrame = CFrame.new(root.Position) * CFrame.Angles(0,y,0) -- Root = Humanoid.RootPart
local rotationTween = TweenService:Create(root, tweenInfo, {CFrame = newCFrame})
rotationTween:Play()
im not really sure how to use :Lerp, ive also tried this V but it seems to be the same as i did above and it did not fix my problem. (maybe im doing it incorrectly… idk)
root.CFrame = root.CFrame:Lerp(CFrame.new(root.Position) * CFrame.Angles(0,y,0), 0.1)
i saw the exact same problem in this forum yesterday, but i can find it now :<