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

How to change CameraMaxZoomDistance or CameraMinZoomDistance via a script?

Asked by 4 years ago
Edited 4 years ago

how can I change CameraMaxZoomDistance or CameraMinZoomDistance via a script? I have tried many options but nothing helps(

local player = game.Players.LocalPlayer

player.CameraMaxZoomDistance = 10

player.CameraMinZoomDistance = 1

this is on the official Roblox website (does not work).

here's another solution that doesn't work -

game.StarterPlayer.StarterPlayerScripts.CameraMaxZoomDistance = 10

please help me ;(

1 answer

Log in to vote
0
Answered by 4 years ago

put the script in server script service

game.StarterPlayer.CameraMaxZoomDistance = 10
0
ooow thaaanks a lot!!! rewsautaster11 9 — 4y
0
np ScriptToon 70 — 4y
Ad

Answer this question