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

Script where player cant fully zoom in?

Asked by 4 years ago

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.

0
ok attempt it first then ask for help and its really easy to search this up on google 123nabilben123 499 — 4y
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 123nabilben123 499 — 4y

2 answers

Log in to vote
0
Answered by
Fifkee 2017 Community Moderator Moderation Voter
4 years ago

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.

0
thank you mohawk2005ishacked12 13 — 4y
Ad
Log in to vote
0
Answered by 4 years ago

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)

Answer this question