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

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

Asked by 6 years ago

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!

0
You can change the player's CameraMinZoomDistance and CameraMaxZoomDistance in the StarterPlayer oSyM8V3N 429 — 6y

1 answer

Log in to vote
0
Answered by 6 years ago
Edited 6 years ago

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
Ad

Answer this question