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?
1 | local cam = game.Workspace.CurrentCamera |
2 | cam.CameraType = "Attach" |
3 | function follow() |
4 | cam.CoordinateFrame = CFrame.new(game.Players.LocalPlayer.Character.Torso.Position) * CFrame.Angles( 0 , 80 , 0 ) * CFrame.new( 0 , 20 , 0 ) |
5 | end |
6 |
7 | while wait() do |
8 | follow() |
9 | end |
cam.CameraType should be fixed if you want to lock it.
cam.CameraType = "Fixed"