It is a relatively short question, but I am looking for feedback on how to deal with the networking of such a thing? I want the server to deal with the bullets and such, so my options are either:
Send a remote for when the pressing starts and one for when the pressing ends;
While pressing, send remotes and have the server filter them out.
Probably the best solution would be to after a the mouse is pressed down, wait maybe a second, if it is still down fire a remote indicating that the button is being held down, and then when it is lifted fire another to indicate to stop.
A small example
function gunClick()
remote:FireServer('Fire')
task.wait(.1)
if mouse.IsDown then
remote:FireServer('ProlongFire')
mouse.MouseButton1Up:Wait()
remote:FireServer('StopFire')
end
end