I am attempting to create a "Bird's Eye View" camera. Setting the camera's coordinate frame to above the character's head works properly, but setting the focus does nothing. What am I doing or not doing that prevents my camera from looking straight down onto the player?
The script:
camera = game.Workspace.CurrentCamera
camera.CameraType = "Scriptable"
player = game.Players.LocalPlayer
repeat wait() until player.Character
character = player.Character
game:GetService("RunService").RenderStepped:connect(function()
wait()
camera.CFrame = CFrame.new(character.Head.Position + Vector3.new(0,10,0))
camera.Focus = CFrame.new(character.Head.Position)
end)

8 comments
The camera now works as it is supposed to, but I am unable to move my character...
You should. It's probably just a studio bug, Try again. Are you running any other pieces of code that may interfere with this?
No, just the above as I had it before with the lookVector added to the CFrame of the camera.
So, it worked before? Try disabling the camera script and see what happens.
The one that's automatically in PlayerScripts? I've already disabled the one I'm messing around with, and the camera goes back to normal, and I can move.
I'm not sure, sorry. The code above doesn't change anything to do with the character, I've done this hundreds of times.
I found through testing that if I put the camera anywhere but above the player, my player can move. However, when I put it directly above the player (what I need), I can only jump.
I think I'm just going to re-script the movement (I probably would have had to for the game eventually anyway). Thanks for all your help!