Don’t know why but the camera is really choppy, the only script that really affects the camera is this one
local RunService = game:GetService("RunService")
local plr = game.Players.LocalPlayer
local char = plr.Character or plr.CharacterAdded:Wait()
local head = char:WaitForChild("Head")
local HumRootPart = char:WaitForChild("HumanoidRootPart")
local CameraPart = nil
local function CreateCameraPart(char)
CameraPart = Instance.new("Part")
CameraPart.Anchored = true
CameraPart.Size = Vector3.new(0.1, 0.1, 0.1)
CameraPart.Transparency = 1
CameraPart.CanCollide = false
CameraPart.CFrame = HumRootPart.CFrame * CFrame.new(0,0,2)
CameraPart.Parent = char
local plrCamera = game.Workspace.CurrentCamera
if plrCamera then
plrCamera.CameraSubject = CameraPart
end
end
CreateCameraPart(char)
RunService.RenderStepped:Connect(function ()
if CameraPart then
CameraPart.CFrame = CameraPart.CFrame:Lerp(head.CFrame, 0.2)
end
end)
If you just want an offset, you can use Humanoid.CameraOffset. If you want the smoothness (like its animated), you should use a tween, or even better, springs. spr is my personal favorite; really simple yet so powerful, and has a visualizer. The only line you’ll change is the one where u set the camera’s CFrame. With springs you probably won’t need the CamraPart thing.