Mouse.Hit Inaccurate at longer ranges

Problem
So I’m trying to make a cannon that fires shells at the Mouse.Hit.p. But if the camera is too far away from what the mouse is pointing at, the Mouse.Hit.p just goes off in the distance about 10 000 studs. Which is strange considering it is supposed to only be 1000 studs long according to Robloxes API references.


The part is just there to show where the Mouse.Hit.Position is at.

What I have tried so far and clarification to somethings

  1. No, the Part is not colliding with the ray messing things up
  2. I have tried to just ditch the mouse.Hit completely by using my own raycasting, but that just kills performance if I go anywhere above 1000 studs as the maximum range (Which is necessary)
    image
1 Like