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

Should I manage my RemoteEvents with multiple server scripts, or preferably a single one?

Asked by 8 years ago

Just wondering, does it matter how many server events you have in a single server script? For example, if I had this single server script, with 3 remote event listeners...

Single server script

Remote1.OnServerEvent:connect(function(...)
    print(...)
end)

Remote2.OnServerEvent:connect(function(...)
    print(...)
end)

Remote3.OnServerEvent:connect(function(...)
    print(...)
end)

... would the listeners fire at the same speed they would in separate server scripts? Or does it not matter?

I'm only asking because I would like to have a single server script in my game manage all remote event listeners, instead of having a separate server script for each one.

If anyone is experienced in this and would like to share an explanation, I'd be more than happy to hear it!

0
They should work fine either way. Pyrondon 2089 — 8y

Answer this question