Reproduction Steps
Currently, as of 11/25/21, if StarterPlayer.CameraMinZoomDistance is set to a value higher than the default, the ability for the player to zoom the camera out on gamepad (by clicking the right thumbstick) becomes broken.
Steps to reproduce:
Open a new baseplate place
Set StarterPlayer.CameraMinZoomDistance to 10
Zoom the camera in by clicking the right thumbstick on an xbox controller
Observe that you cannot zoom the camera back out like normal
Set StarterPlayer.CameraMinZoomDistance to 0.5
Observe that you can now zoom the camera back out when clicking the right thumbstick
Expected Behavior
It is expected that clicking the right thumbstick will zoom the camera out on gamepad, regardless of what StarterPlayer.CameraMinZoomDistance is set to
Actual Behavior
Clicking the right thumbstick does not zoom the camera out if StarterPlayer.CameraMinZoomDistance is set to anything higher than 0.5
Workaround
None
Issue Area: Engine Issue Type: Other Impact: High Frequency: Constantly
This is still occurring as of 3/3/22. Again, this causes a major UX problem on XBOX. I’ve gotten a lot of player reports about this issue, and it is caused by the corescripts.
I ran into this issue for the first time in 2018, so this bug has existed for a long time. It’s extremely worsening the UX in my game since players will remain stuck in first-person mode.
The reason from what I know from looking at the script is that the script has fixed values on the steps for controller zooming. When CameraMinZoomDistance, it doesn’t zoom out since it’s not at the 0.5 mark. My solution was to use math.max for the check of what state it is for the time being until Roblox natively fixes it.