mouse.Hit breaks with a custom rig system

Hello! I have a custom gun gear which uses Mouse.Hit for the gun beam position, the position is inaccurate when i have my custom rig system enabled, here are some comparisons:

Without the Custom Rig System enabled


With the Custom Rig System enabled

As you can see the gun shoots to the floor instead of the wall when i got my custom rig system enabled, i dont know if this issue is related to the Mouse instance or not. Any help?

from doing further testing, this seems to happen with InputObject.Position too

From my experience, it’s most likely that something else is causing the incorrect positioning of the beam, not mouse.Hit. Probably the raycast is set up improperly for the custom rig. Try adding a line of code to print the outcome of mouse.hit so you can see if it’s arriving at the correct destination or not.