How would I set the camera so that you can only move it in a certain direction.
For an example of what I mean, look at the Apocalypse Rising character creation screen. Where you can move the camera left and right but not up and down.
In Apocalypse Rising, there is no way to move the camera other then left and right, But with what I have tried so far, it glitches out and still lets you move the camera for a second.
This is what I have tried.
local Camera = game.Workspace.CurrentCamera
local Part = game.Workspace.Players:FindFirstChild(Player.Name)
Camera.CameraSubject = Part
Camera.CameraType = "Fixed"
Camera.CoordinateFrame = CFrame.new(Part.Position.X, Part.Position.Y + 25, Part.Position.Z)
Camera.Focus = CFrame.new(Part.Position)
while true do
wait()
Camera.CoordinateFrame = CFrame.new(Part.Position.X, Part.Position.Y + 25, Part.Position.Z)
Camera.Focus = CFrame.new(Part.Position)
end |