I made a gun but after you hold mouse button 1, it keeps firing at only one static point (does not follow mouse), i wanted to know how tndicate to server that player is moving mouse in order to update the mouse hit pos instead of using while true do and infinitely spam the remote event for preventing lag.
✓ ANSWER ACCEPTED
Fire event every time mouse moves?
1 answer
✓ Accepted answer
the event mouse.Move works. (ps. u dont need to infinitely spam the remoteEvent, u only need to while the player is firing but i can understand that is a trash way to do it)
This discussion is preserved as it was. New answers, comments, and votes are closed.

1 comment
There's a property in humanoid "TargetPoint" which represents the 3D position of player's target. That's a very simple way to track that and it doesn't require any remote events/functions. However it has some latency so it's not as perfect.