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

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

Asked by 4 years ago
Edited 4 years ago

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

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 greatneil80 2647 — 4y
1
To update for all servers in your entire game that are currently running, you would need to do what leaderboards do greatneil80 2647 — 4y

2 answers

Log in to vote
1
Answered by 4 years ago

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)
0
Like if somebody bought a nuke, could it fire the event for all the servers instead of just the current server. JailBreaker_13 350 — 4y
0
So players on another server get effected by the nuke too. JailBreaker_13 350 — 4y
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 mrorangethegamer 81 — 4y
Ad
Log in to vote
0
Answered by
Alphexus 498 Moderation Voter
4 years ago

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.

0
No, like in games like jailbreak there is a thousand servers, not one. JailBreaker_13 350 — 4y
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. Alphexus 498 — 4y

Answer this question