Need Help on Camera similar to Booga Booga

I am trying to make a camera similar to Booga Booga.

By that, I mean, when the character rotates, the Camera rotates with him.
A camera similar to Fortnite basically.

I tried to set LockFirstPerson and add an Offset to make a third person camera basically.
It doesn’t work.

local LocalPlayer = game:GetService("Players").LocalPlayer 
local Humanoid = LocalPlayer.Character or LocalPlayer.CharacterAdded:Wait()

Humanoid.CameraOffset =, 0 ,0)```

What would be a good way to do what I am trying to do or fix the script?

I found this tutorial, you might wanna look into it because the thing that Booga Booga does is lock the camera in shift lock.