Hello,
I've been trying to make a LocalScript in which the player's camera becomes Birds' Eye view.
local cameraHeight = 20
game:GetService("RunService").RenderStepped:connect(function()
local p = game.Players.LocalPlayer
local char = game.Players.LocalPlayer.Character
local cam = game.Workspace.CurrentCamera
p.CameraMaxZoomDistance = cameraHeight
p.CameraMinZoomDistance = cameraHeight
cam.CoordinateFrame = CFrame.new(char.Head.Position + Vector3.new(0,cameraHeight,0), char.Head.Position)
end)
Unfortunately, it has not been working correctly. Here's the two issues I am having with this script:
1) I cannot move my Player with the WASD keys nor the arrow keys. It's just stuck.
2) The camera won't turn the direction the player is going. Therefore, it only follows the player, but never turns.
Please help me fix this script. I'd appreciate any help.
Thanks,
Pikachu84639
• The answer to a math question is the question itself. Proof: 9+10 = 9+10 - Correct ✔ |