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

A way to do something like SetCameraZoomDistance?

Asked by
SirNoobly 165
9 years ago

Is there a way to do something like GetCameraZoomDistance and SetCameraZoomDistance? I tried to set the camera min distance to what I wanted it at then back to 0.5 but it doesn't work well on servers without a long wait. Thanks.

1 answer

Log in to vote
1
Answered by
adark 5487 Badge of Merit Moderation Voter Community Moderator
9 years ago

To get the zoom you'll have to get the magnitude of (Camera.CoordinateFrame.p - player.Character.Head.Position) and to set it you'll have to "squeeze" the MaxZoomDistance and MinZoomDistance properties to the value you want, wait(), and then set them to normal.

Since you have to do camera manipulation from a LocalScript, there shouldn't be any between a Play Solo test and a live server.

0
Thank you! SirNoobly 165 — 9y
Ad

Answer this question