I have looked at this already but the answer that was given I believe was old and doesn't apply to the current Roblox updates. I have a feeling how it would be done is setting the CameraMinZoomDistance and max distance equal to the same thing when the player hovers over the frame, but I can't figure out how to get the value of the distance. On the script that was given, he wrote it in pseudocode which said:
Pseudocode:
local camDist = (Cam.CoordinateFrame.p - Head.Position).magnitude
However, I simply can't figure out how to get the cameraDistance or any other way that might work. Any suggestions?
EDIT: This has to be done in a LocalScript as I'm working with GUIs.
