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

MaxZoomDistance Script Help?

I wanted to make a limit to the characters zoom but this script is just not working! It has worked before but maybe an update changed some of the codes. Can someone please help me figure out the problem??

Is there even a problem with this script?

Here is the script I used:

game.Players.PlayerAdded:connect(function(player)
	player.CameraMaxZoomDistance = 10	
end)

2 comments

0

Try player.Character.CameraMaxZoomDistance = 10

0

Thanks to the Roblox update, there's now a StarterPlayer service that lets you edit the CameraMaxZoomDistance to make life a little bit easier. You can adjust CameraMaxZoomDistance and other properties on each player also.

1 answer

There is currently no way to do this (11/25/14). player.Character.CameraMaxZoomDistance is borked, and doesn't work. You would need to block the player view when they zoom out far or compensate somehow for zoom (not sure if possible).

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