I want to send the player’s mouse position to the server from local script after every wait()
. However, I am concerned that this will cause massive lag due to the excessive amounts of times the server is fired in one second. Is this assumption wrong, and it won’t cause any lag, or is this a problem?
Here is my code:
while shooting do
input:FireServer(mouse.Hit)
wait()
end
If it does cause lag, what alternatives are there for my objective?