LockFirstPerson Doesnt Work At All

LockFirstPerson really doesn’t work, even with MaxZoomDistance at 0.5.

3 Likes

how about setting max and min zoom to 0?

image_2023-07-22_004926932
This works perfectly for me?

I have that checked, but when I test the game, im in the Orbit Camera Mode, not FirstPerson

1 Like

Cant do that for some reason, the min and max is 0.5

Can try just having a local script change the local camera via something like this

game.Workspace.CurrentCamera.CameraMode = "LockFirstPerson"

You should use Enum.CameraMode.LockFirstPerson.

Is using enum just better or will my way without enum not work?

1 Like

It has to be an Enum.CameraMode value. The type of the property is not a string, so using a string will not work. It would throw an error. It must be Enum.CameraMode.LockFirstPerson.

That’s not even mentioning the fact that the camera object (which would be what workspace.CurrentCamera is equal to while playing) does not even have a CameraMode property.
If you want to change the player’s CameraMode to Classic or LockFirstPerson, you would change it on their player object. It would be Player.CameraMode = Enum.CameraMode.LockFirstPerson.

1 Like

Can you explain the problem more, please? I have nothing to work with.

1 Like

Ok thank you for the explanation, im actually going to use this for a rewrite I’m doing

3 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.