Hello, I’ve recently been working on a simple puzzle game that utilizes some of the vanilla Roblox camera types to achieve a semi-original camera.
Here’s how the script works:
Within the script, I have the player character suspended really far up and I used a BodyPosition to smoothly move and match the character’s X and Z position to the part…
I set the Camera Subject to the part instead of the player and I used RunService and RenderStepped to change the BodyPosition’s well… position.
The issue:
The issue is that to keep the player from seeing the edge of the map, I set the Camera’s CameraType to Orbital. Whenever I’ve set the CameraType to Orbital, the PlayerModule seems to spew out a bunch of errors. On my end, I replicated the glitch by simply opening a new baseplate, going to StarterPlayer and setting DevComputerCameraMode to Orbital.
The code I made for the camera works perfectly fine whenever paired with literally any other CameraType. I’ve tested it with every other camera type and Orbital seems to fall short.
I could go about simply using another CameraType but I’m genuinely curious as to why I should, my game worked perfectly without needing to compromise on the camera. I’m also worried if this issue could bleed into any other types of projects I make.
I’m genuinely unsure how to fix the issue because the errors are coming from the PlayerModule. If I wanted to fix the player module I’d have to do a lot of work, and I replicated this issue by only changing a single value inside of the StarterCharacter…
I wanna apologize if this post was hard to read or if any other issues are present in this post. I’m relatively new to the DevForum despite coding for quite a long time.