why wont Camera revert to players head?
ok so I was working on a cutscene and the localscript that handles the camera position works mostly fine but whenever the cutscene ends the camera will freeze and not go back to the player
btw the script is named CameraScript because for some reason it won't work any other way'
01 | local cam = game.Workspace.CurrentCamera |
02 | cam.CameraType = Enum.CameraType.Scriptable |
06 | if game.Workspace.camveiw 1 then |
07 | cam.CFrame = game.Workspace.camveiw 1. CFrame |
11 | if b = = 250 or not game.Workspace.camveiw 1 then |
16 | cam.CameraType = Enum.CameraType.Custom |
17 | char = game.Players.LocalPlayer.Character |
20 | cam.CameraSubject = char.Head |
it counts to 200, prints "gaming" then it just freezes the camera (and the brick the camera is following flys away)