Get the mouse position on the server side in a loop

I try to make a laser that does damage but when I want to move it via the mouse position I can only get the mouse position at the time I did “Event:FireServer” so the mouse position never changes

please explain what the issue is in more detail.

Have the client continuously send the server their mouse position while firing the laser.

I make an ability that creates a beam from the hand to a part, the part must move to the position of the mouse but the problem is that as we can not use mouse.Hit.p from the server I can not get the position of the mouse repeatedly

could you tell me more about ?

Start a loop once the player starts firing their laser
Within the loop, send the mouse position to the server
End the loop when the player stops firing their laser