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

Script where player cant fully zoom in?

i need a script that doesnt allow the player to fully zoom in, in my game that im making when the player zooms all the way in it really messes everything up.

2 comments

0

ok attempt it first then ask for help and its really easy to search this up on google

0

here's some wiki pages based on what u need https://developer.roblox.com/en-us/articles/customizing-the-camera tell me once you read it and i can help you

2 answers

✓ Accepted answer

Funny how you don't need a script for this. In Studio, look in the StarterPlayer service. There are two properties: "CameraMinZoomDistance" and "CameraMaxZoomDistance." Change these to prevent people from zooming too far in / too far out.

1 comment

0

thank you

You can do this 2 ways. Change the CameraMinZoomDistance in StarterPlayer. Or put this in the Workspace:

game.Players.PlayerAdded:Connect(function(p)
	p.CameraMinZoomDistance = 5
end)

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