So when I was testing my double jump script, I thought it would be cool to add a 'front-flip' animation. I did, but I felt like something was missing.

I decided that I wanted the camera to be fixed onto the player's head, so that the camera:

a) Cannot move side-to-side and up-and-down b) Shows what the character sees

So I tried doing this onto a LocalScript:

local camera = workspace.CurrentCamera

local player = game.Players.LocalPlayer or game.Players.PlayerAdded:Wait()
local character = player.Character or player.CharacterAdded:Wait()
local head = character:WaitForChild('Head')

camera.CameraType = Enum.CameraType.Fixed
camera.CameraSubject = head

But the thing is, that the camera is just stuck in one position while I can see the player moving around.

I don't know what's happening or what I'm doing wrong.

Can anyone help me please?