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

How to change CameraMaxZoomDistance or CameraMinZoomDistance via a script?

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

✓ Accepted answer

put the script in server script service

game.StarterPlayer.CameraMaxZoomDistance = 10

2 comments

0

ooow thaaanks a lot!!!

0

np

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