Camera zoom doesn't work

I want a working camera script that is able to move linearly, and zoom on all of Roblox’s supported platforms. I’ve finished working on PC and now I’m working on mobile support.

In Studio, the zooming works perfectly fine, but in-game, the zooming breaks completely, not responding to input. Strangely, the horizontal movement works just fine. The “prints” in the zoom code don’t print anything either, indicating that the events aren’t even fired. I didn’t notice this issue up until I joined in-game.

I’ve tried adding a wait(). None of the DevForum issues apply to my code. Interestingly, making the code trigger outside of the function with a LocalPlayer.CharacterAdded:Wait() broke the zoom in Studio too.

I managed to fix it, and now it works well.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.