I’m trying to make realistic camera shake, and my method of doing so was to make the camera slightly move with the characters animated head, that way it has realistic camera shake that follows animations, however this takes control away from the head entirely.
Essentially it blocks the player from being able to look up and down, and the character also slightly turns left and right from the camera shake.
I tried making a system using a true camera rotation but that didn’t really work
-- Player --
local Player : Player = game.Players.LocalPlayer
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)