Most accurate way to get mouse position?

hi, I was wondering if there is a better way to get the mouse position rather than using mouse.Hit.Position as it seems to be inaccurate when im coding a gun, thanks

2 Likes

Mouse.Hit is deprecated, as it uses .Ray (which is also deprecated). You’ll want to use the more modern form of raycasting instead.

3 Likes

ah, so I have to use :screenPointToRay(), thanks!

4 Likes

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