Having problem with attaching the camera to a part

I want the camera to move on a course, so what I’m doing is moving a part, and moving the camera’s cframe to that part with a while loop. This looks kind of glitchy though, so I’m looking for an alternative.

Use BindToRenderStep and Camera.Focus.

local camera = workspace.CurrentCamera
local part = part to follow

game:GetService("RunService"):BindToRenderStep("Camera", Enum.RenderPriority.Camera.Value,function()
   camera.CoordinateFrame = cframe
   camera.Focus = part
end)
1 Like