Camera frame drop when jumping

i have a script that makes the camera 2d, but the fact is,the camera’s frame looks…off like a laggy camera
here’s the script:

local player = game.Players.LocalPlayer

local camera = workspace.CurrentCamera

player.CharacterAdded:Wait()

player.Character:WaitForChild("HumanoidRootPart")

camera.CameraSubject = player.Character.HumanoidRootPart

camera.CameraType = Enum.CameraType.Attach

camera.FieldOfView = 40

game:GetService('RunService').Stepped:Connect(function()

camera.CFrame = CFrame.new(player.Character.HumanoidRootPart.Position) * CFrame.new(0,2,30)

end)

I personally can’t see a difference on my monitor.

Though try to position the camera before the frame is going to be rendered.

local player = game.Players.LocalPlayer

local camera = workspace.CurrentCamera

player.CharacterAdded:Wait()

player.Character:WaitForChild("HumanoidRootPart")

camera.CameraSubject = player.Character.HumanoidRootPart

camera.CameraType = Enum.CameraType.Attach

camera.FieldOfView = 40

game:GetService('RunService').Heartbeat:Connect(function()

camera.CFrame = CFrame.new(player.Character.HumanoidRootPart.Position) * CFrame.new(0,2,30)

end)