I've revisiting a game I was making, and no matter what I do the camera is jittery.

The camera script wich is nammed camera script, and is in the StarterPlayerScripts

wait(0.3)
local cam = workspace.CurrentCamera
local RunService = game:GetService("RunService")
-- Move the camera to the location of the player's torso
cam.CameraType = "Scriptable"
--cam.FieldOfView = 3
cam.CameraSubject = workspace.Dummy1.Torso	
--cam.CoordinateFrame = CFrame.new(workspace.Dummy1.Torso.Position,workspace.Dummy1.Torso.Position)
-- Now move the camera off of the player's side 

-- Now orient the camera to look at the player


RunService:BindToRenderStep("Camera", Enum.RenderPriority.Camera.Value, function()
	-- In this loop, move the camera's X and Y to match the player's.  
	-- This will create a 2D-style look like that in a platformer
	cam.CoordinateFrame = game.Workspace.Dummy1.HumanoidRootPart.CFrame * CFrame.Angles(0,math.rad(100),0) * CFrame.new(0,0,25)
end)

2 comments

0

Switch to 'RenderStepped'.

0

Okay