When I set my camera's CFrame to a part, it's not changing and it just gets fixed on the humanoid that it was on before.
1 | wait( 5 ) |
2 | local currentCam = game.Workspace.CurrentCamera |
3 | local camObj = game.Workspace.Camera |
4 | currentCam.CameraType = Enum.CameraType.Scriptable |
5 | currentCam.CameraSubject = camObj |
6 | currentCam.CFrame = camObj.CFrame |
7 | currentCam.Focus = camObj.CFrame |
I think its because of the "CamObj" game.Workspace.Camera already exists and its the "CurrentCamera" not the Part, You need to rename it ( the part ) to a different name
if This helped you Please accept it as an answer
Solved it myself: My part was named Camera so I was indexing the actual camera object instead of the part itself.