Hey, so I made some simple ray casting filtering enabled guns, with automatic fire.

However, they lag when multiple people are firing at once, I believe this is because I am continuously firing the event: ( script.Parent.shoot:FireServer(mouse.Hit.p) )

I'm not sure of any way else to make the guns work with Filtering Enabled, can anyone help?

4 comments

0

https://scriptinghelpers.org/guides/how-to-use-remoteevents-properly There's an example with a gun a bit down the page.

0

I should clarify I mean the game itself lags, like the entire server lags out.

0

Provide the script for us.