Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

What if multiple players fire on the same remote event at the same time?

Asked by 4 years ago

I have a single remote event that handles when a client wants to place a part onto the server, but I'm wondering, how would this setup respond to multiple clients trying to place parts at around the same time? Does FireServer queue requests, or will they be lost if the server is already executing when a request is received? Also, if this is an issue, how should I restructure to avoid it?

1 answer

Log in to vote
1
Answered by 4 years ago

functions attatched to RBXScriptSignals can be run multiple times at the same time without breaking because they do not yield. This means that if Player A fires a remote and somewhere in the function attatched to the remote there is a wait, Player B can still fire the remote and it will run instantly

Ad

Answer this question