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 10 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?

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
0
How do you want to lock it? Set the type to "Scriptable" if you want to stop all movement. Vathriel 510 — 10y

1 answer

Log in to vote
0
Answered by 10 years ago

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

cam.CameraType = "Fixed"

Ad

Answer this question