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

A way to do something like SetCameraZoomDistance?

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

✓ Accepted answer

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.

1 comment

0

Thank you!

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