So I have a Survive The Disasters game, and I was wondering what is the most effective way to have these disasters happen. Here are my ideas:
- Functions
So this one is the most simple. I have a Script in ServerScriptService (SSS), inside which is a loop which executes functions inside this script. This is very simple, however what if I want to execute two disasters at once? I mean, its not too flexible, is it.
- RemoteEvents
This one is also quite simple, I have a script, and a RemoteEvent. Everytime the RemoveEvent is called, the script executes a disaster depending on the argument which was passed through the RemoveEvent.
Alternatively, I could have a separate RemoteEvent for each disaster, but I mean, thats not effective.
- ModuleScripts
This might be the best idea. So I have ModuleScripts for each disaster in ServerStorage, and a Script in SSS which Clone()s these ModuleScripts, sets their parent to SSS, and then require()s them. The ModuleScript which was called would execute the disaster, and then delete itself.
- Something else
Perhaps theres a more effective way, but I don't know. I have heard of BindableEvents, but idk about those and maybe they wouldn't be effective at all.
What do you think? What's the most effective way?

1 comment
BindableEvents do not work to make games FE compatible. They are for server-server communication, and for client-client communication. Same for BindableFunctions.