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

CameraMaxZoomDistance is not working?

Asked by 10 years ago

CameraMaxZoomDistance = [[3]]

What's wrong this this?

2 answers

Log in to vote
2
Answered by
Nexx 51
10 years ago

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

CameraMaxZoomDistance = 3
0
Double brackets indicate a string literal, and you're right: this should be a number. adark 5487 — 10y
Ad
Log in to vote
0
Answered by
adark 5487 Badge of Merit Moderation Voter Community Moderator
10 years ago

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)

Answer this question