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

How do I change the maximum amount someone can zoom out?

Asked by
Xcog 0
8 years ago

If a player zooms out enough, they can see outside the obstacle course. Is there a way to limit how much someone can zoom out? I have looked at similar questions and answers and found that you can change it through code. However, the code I used,

game.Players.LocalPlayer.CameraMaxZoomDistance = (x)

breaks the game. I've put in a few different numbers but all of them break the game. Is this code obsolete? Is it the wrong code? Is what I'm doing even possible?

P.S.: It is located directly in the Workspace, if that helps clear up anything.

Answer this question