Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How do I change the side the camera is looking at?

So I am making a script that makes the camera look at one place but when ever I try to do this the camera keeps looking in the opposite direction so I am looking for a script that will make it face the right way.

Here's the script:

game.Players.PlayerAdded:connect(function(player)
    player.CharacterAdded:connect(function(character)
        script.LocalScript:clone().Parent = character
    end)
end)
local cam = workspace.CurrentCamera
cam.CameraSubject=workspace.Part
cam.CameraType = "Attach"
cam.CoordinateFrame=CFrame.new(2869.235, 82.092, -2385.386)
cam.Focus=CFrame.new(2869.235, 82.092, -2385.386)

Thanks

1 answer

You could try doing

cam.CFrame=CFrame.Angles(math.rad(degrees X),math.rad(degrees Y),math.rad(degrees Z))

That will aim the camera at the radius's you set for each angle.

This discussion is preserved as it was. New answers, comments, and votes are closed.