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

CameraMaxZoomDistance is not working?

CameraMaxZoomDistance = [[3]]

What's wrong this this?

2 answers

Why is the number in brackets? Shouldn't it just be

CameraMaxZoomDistance = 3

1 comment

0

Double brackets indicate a string literal, and you're right: this should be a number.

Like Nexx said, you should be using just

CameraMaxZoomDistance = 3

But you have to set it for every player individually. I don't know if you have code to do that or not, but here is an example of it:

--Script, ServerScriptService
game.Players.PlayerAdded:connect(function(player)
	player.CameraMaxZoomDistance = 3
end)

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