Camera Tweening Lagging

So, I am trying to make a quick cutscene for a mini project but when I tween the camera, you can clearly see the camera doesnt move smooth. I don’t know why it does it and I have already tried lerping with RunService.RenderStepped.

CurrentDurationMove = OptionalVariables[3]
		CurrentMoveVariables = OptionalVariables --This is from another variable to all people on devforum btw. This won't have to do anything with the error.
		BeginMoveCFrame = Camera.CFrame
		local Tween = TweenService:Create(workspace.CurrentCamera, TweenInfo.new(CurrentDurationMove, Enum.EasingStyle.Linear, Enum.EasingDirection.In, 0, false), {CFrame = CFrame.new(CurrentMoveVariables[1].Position, CurrentMoveVariables[2].Position)})
		Tween:Play()```
1 Like

Are you tweening rapidly or to a part?

I’m just tweening to a CFrame with an offset from the position of the guy that I hit.
Not rapidly and not to a part. The function isn’t in a loop either.

Try using a part (not as a final, but to see if it fixes the issue). If it works then change accordingly.

I always use parts and have neverhad that issue.

Nope, tried it and same thing.
Here’s the script.

CurrentDurationMove = OptionalVariables[3]
		CurrentMoveVariables = OptionalVariables
		local Part = Instance.new("Part")
		Part.Parent = game.Workspace
		Part.CFrame = CFrame.lookAt(CurrentMoveVariables[1].Position, CurrentMoveVariables[2].Position)
		Part.Size = Vector3.new(1, 1, 1)
		Part.Anchored = true
		Part.Transparency = 1
		--local Tween = TweenService:Create(workspace.CurrentCamera, TweenInfo.new(CurrentDurationMove, Enum.EasingStyle.Linear, Enum.EasingDirection.In, 0, false), {CFrame = CFrame.lookAt(CurrentMoveVariables[1].Position, CurrentMoveVariables[2].Position)})
		local Tween = TweenService:Create(workspace.CurrentCamera, TweenInfo.new(CurrentDurationMove, Enum.EasingStyle.Linear, Enum.EasingDirection.In, 0, false), {CFrame = Part.CFrame})
		Tween:Play()

Nevermind, I found the issue, the camera was still moving from the shake script, sorry to waste your time.

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