I was working on a custom top down camera script for a game. But for some reason the camera seems to force the player through the earth whenever I zoom in and out with my custom camera.
Heres a gif and also a link to the codeshare if you want to use it in Studio and see if you have the same problem.
https://gyazo.com/0dbce0233c0e6e7e0395bf13d4b4c170
https://codeshare.io/5M34Ye
Thank you for your time and hopefully we can solve this because I am really confused.