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

Better alternatives to a locked camera angle?

Any time I put in my top-down camera script into a player, the controls are unresponsive. Is there any way for me to lock the camera into position or somthing else?

local cam = game.Workspace.CurrentCamera
cam.CameraType = "Attach"
function follow()
cam.CoordinateFrame = CFrame.new(game.Players.LocalPlayer.Character.Torso.Position) * CFrame.Angles(0, 80, 0) * CFrame.new(0, 20, 0) 
end

while wait() do
follow()
end

1 comment

0

How do you want to lock it? Set the type to "Scriptable" if you want to stop all movement.

1 answer

cam.CameraType should be fixed if you want to lock it.

cam.CameraType = "Fixed"

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