Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Should I use one remote for all players or a remote for each player?

I'm planning on having a remote where players will fire the remote possibly once every 10 seconds to around once every 0.1 seconds, and I was wondering what would be best for server performance, a remote for each player or a remote for all players, or is there no difference? Thanks

1 comment

1

One remote for all players. That's how it's meant to be. Why do you think there's the player parameter?

1 answer

I'm just going to elaborate on Phlegethon's Comment so it's clear why the answer is one Remote.

If you're using multiple remotes, you are taking up more RAM space, which can eventually be overloaded and cause an error as well as crash the game.

Each player can Fire along the same Remote through LocalScripts, and every client can also be fired at the same time using FireAllClients on a (Server) Script (Remote Events Only) as well as individually, so it is not necessary to have multiple Remotes when they enact the same Function, even if it would be run by more than one person.

The exception to this being that Remote Functions can only be run one at a time (this is because they require a callback), while multiple Remote Events can be run at once.

1 comment

0

A couple extra remote objects won't have any effect on the performance of the server nor the client. The only reason you shouldn't have a remote for each player is because the game structure becomes unnecessary messy. RemoteFunctions can also be invoked without waiting for the last invokation to finish.

This discussion is preserved as it was. New answers, comments, and votes are closed.