Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How to automatically zoom out the player so they can use GUIs?

In this game, you are playing the entire game in first person. However, when you win or lose, I want the player to choose between different options on what to do. (go to main menu, go to next level, restart level, ect.) Currently, I don't know of any way that lets you automatically zoom out the characters camera. What can I do to make the players camera automatically zoom out?

Thanks!

1 comment

0

You can change the player's CameraMinZoomDistance and CameraMaxZoomDistance in the StarterPlayer

1 answer

✓ Accepted answer

You could just set the CameraMode back to Classic, which should save a lot of hassle. When they enter the 'main menu' or open it, then when they exit it set it back to 'LockFirstPerson' CameraMode.

local player = game.Players.LocalPlayer
local camera = player.Camera

camera.CameraMode = Enum.CameraMode.Classic

This discussion is preserved as it was. New answers, comments, and votes are closed.