How Can I Adjust The Min Zoom Distance Of Camera In Local Script?

How can I adjust the minimum zoom distance of the Camera in a local script. I’m trying to make it so when the player is first person and they open a Gui then their mouse will not be stuck in the middle. I cannot seem to find the property to set the Zoom distance in a local script

local Camera = game.Workspace.CurrentCamera

This doesn’t seem to have any properties I can use that will adjust where the Minimum zoom distance would be.

If there is a GuiButton on screen with the Modal set to true, the mouse will not be locked to the centre of the screen (unless Mouse2 is down).

You can find it here in the Roblox documentation.

1 Like

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