#Need help with camera script please

1 messages · Page 1 of 1 (latest)

heavy saddle
#

so 2 questions:
1- How can I rotate this top view camera so that my character looks to the right and the blue square is above him
2- How do I stop the camera from moving (bobbing when I walk or do an idle animation)
This is my script:

while not game.Players.LocalPlayer.Character:FindFirstChild('Head') do wait() end

local cam = workspace.CurrentCamera
cam.CameraType = 'Custom'
cam.CameraType = 'Scriptable'

local RunService = game:GetService('RunService')
while RunService.Stepped:wait() do
    local head = game.Players.LocalPlayer.Character:FindFirstChild('Head')
    local distance = script.DistanceFromHead.Value
    cam.CoordinateFrame = CFrame.new(Vector3.new(head.Position.x - 0.001, head.Position.y + distance, head.Position.Z),head.Position)
end```
dry spire
#

Don’t position camera based on head

#

Use primary part

heavy saddle
#

Thanks, that worked. Now I just need to rotate the camera, any idea how I should do that please?

verbal lanternBOT
#

studio** You are now Level 1! **studio