Camera Bug With Changing View

Hello, I am trying to make so the Camera looks at the player from the top but this what’s happening. I just opened a Flat Terrain and made the script but when I press play, The Voodoo Magic occurs…

SCRIPT: (Located In StarterGui)

wait(10)

local player = game.Players.LocalPlayer

local Character = player.Character

local HumanoidRootPart = Character.PrimaryPart

local Camera = workspace.CurrentCamera

Camera.CameraType = Enum.CameraType.Scriptable

Camera.CameraSubject = HumanoidRootPart

local Height = 50

game:GetService("RunService").Heartbeat:Connect(function()

local position = HumanoidRootPart.Position

Camera.CFrame = CFrame.new(Vector3.new(position.X, Height, position.Z), position)

end)

https://gyazo.com/245dbe889d6379f696025f8a9af01121