Answered by
8 years ago Edited 8 years ago
What you are trying to do is change a player's CameraMode
property to a Camera
object's CameraType
, which you cannot do.
If you just want a player to have a first-person or third-person view, you would do something like this:
1 | player.CameraMode = Enum.CameraMode.LockFirstPerson |
2 | player.CameraMode = Enum.CameraMode.Classic |
However, seeing how you want to change it to "Custom," you would have to do so by changing the local camera's CameraType
like this:
1 | local player = game.Players.LocalPlayer |
2 | local cam = game.Workspace.CurrentCamera |
4 | cam.CameraType = "Custom" |
Hope this helps! If it does, don't forget to click "Accept Answer" and/or +1 my Rep!