local Character : Model = Player.Character
local Humanoid : Humanoid = Character:WaitForChild("Humanoid")
local HumanoidRootPart : BasePart = Character:WaitForChild("HumanoidRootPart")
local Camera = workspace.CurrentCamera
-- Services --
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local ServerScriptService = game:GetService("ServerScriptService")
local RunService = game:GetService("RunService")
local TweenService = game:GetService("TweenService")
local UserInputService = game:GetService("UserInputService")
local CamOffset = CFrame.new()
RunService.RenderStepped:Connect(function(DT)
Camera.CFrame = Camera.CFrame:Lerp(Character.Head.CFrame,0.1)
end)
This code works partially, the head will rotate to follow the camera giving me accurate camera shake effects, however it doesn't allow for looking downwards, and the character will turn slightly to face the camera