I normally get some kind of error stating that I need to make sure I've implemented OnServerEvent
or the likes, and I can only assume because I fire the event too much, an example would be:
Client A fires their weapon, and fires a RemoteEvent
.
The server receives the incoming data from Client A (where the tracer starts, ends, etc.) and passes it to all clients.
Clients X create the tracer based on that data.
Rather than fire an event every time the weapon fires, and assuming the weapon is an automatic, could I fire when firing starts and stops - passing data such as the weapon's fire rate, etc., so the clients can then create tracers based on that?
I'm just trying to get a gist of when it's appropriate to do things like this, and whether there's some kind of rule of thumb I should follow.