Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do I change the limit of the zooming?

Asked by 10 years ago

I'm working on a FPS game, I just made a weapon selection, but the FPS script I currently added does not let players click the class rank they want to use.

Here's the FPS GUI script I use:

game.Players.LocalPlayer.CameraMode = Enum.CameraMode.LockFirstPerson

I couldn't find anything on the Roblox wiki, can it be scripted with the script above?

2 answers

Log in to vote
0
Answered by
Perci1 4988 Trusted Moderation Voter Community Moderator
10 years ago

You could wait until they select their class to change the camera mode.

Ad
Log in to vote
0
Answered by
Vividex 162
10 years ago

Most commonly by using Player.CameraMinZoomDistance and/or Player.CameraMaxZoomDistance. I've heard this is still glitchy, so please be aware it might not work due to roblox. Also, I've heard this does not work in studio mode, and put it inside a LocalScript

game.Players.LocalPlayer.CameraMinZoomDistance = 0 --Put the Minimum amount the player can zoom in here
game.Players.LocalPlayer.CameraMaxZoomDistance = 0 --Put the Maximum amount the play can zoom here

Answer this question