Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

Better alternatives to a locked camera angle?

Asked by 11 years ago

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?

1local cam = game.Workspace.CurrentCamera
2cam.CameraType = "Attach"
3function follow()
4cam.CoordinateFrame = CFrame.new(game.Players.LocalPlayer.Character.Torso.Position) * CFrame.Angles(0, 80, 0) * CFrame.new(0, 20, 0)
5end
6 
7while wait() do
8follow()
9end
0
How do you want to lock it? Set the type to "Scriptable" if you want to stop all movement. Vathriel 510 — 11y

1 answer

Log in to vote
0
Answered by 11 years ago

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

cam.CameraType = "Fixed"

Ad

Answer this question