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

Is :FireAllServers() a thing? If not, what can I use?

I have a nuke in my game that fires an event, is there a way I could fire it for all the servers?

Thanks, JailBreaker_13

2 comments

1

think of it like this: each player is a client, and the server is a nonxistant admin that exists, theres no fire all servers

1

To update for all servers in your entire game that are currently running, you would need to do what leaderboards do

2 answers

✓ Accepted answer

Not sure what you mean "fire all the servers". When an event is fired from any local script, the corresponding server script will respond to it. Local

remoteevent:FireServer()

Server

remoteevent.OnServerEvent:Connect(function(player)

3 comments

0

Like if somebody bought a nuke, could it fire the event for all the servers instead of just the current server.

0

So players on another server get effected by the nuke too.

1

Oh i understand now, take a look at the following article: https://devforum.roblox.com/t/global-announcements-that-show-across-all-servers/127920/3

There’s only one server. FireAllServers() method wouldn’t make sense. However there are multiple clients(players) in a game so that’s why there is a FireAllClients() method for RemoteEvents.

2 comments

0

No, like in games like jailbreak there is a thousand servers, not one.

0

I see what you mean. You should be specific on what type of server you mean, Mentioning a method of a RemoteEvent lead me to think you meant a server in the Roblox client-server model. And yes, there’s only one server. However since you are talking about Roblox game servers, I understand.

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