Hey, what I’m trying to do is create a minigame game where a random one is selected. Although, I’m struggling on what the best way to store/start them is.
Should I have them all in the one module script under different functions, or in different scripts which I can enable/disable, or anything else? I’m not sure which one would be most efficient.
No offense but for its time it’s likely better than anything you have ever produced. I didn’t say you should use it, I said you should learn from it as the same concepts still apply one decade later.
You should add folders of the maps in serverstorage. Then make a script that would change the parent of map in a new folder in workspace. Make sure that it waits some time before doing the map change (and moves the parent of the old chosen map and replaces it with a new one).
This would be a bad idea as it’s possible the map could undergo some irreversible change while the minigame is being played, typically in most minigame systems the map is cloned and the cloned map is then parented to the workspace, when the minigame is over the cloned map is then destroyed.
my idea is to store the minigame name in a table, and then pick that randomly with table[math.random(1)]. with the random name picked, you can match the string to the name of the minigame model wherever you put it.
copy it in workspace, enable everything… voila! if that doesn’t work, please refer to every other suggestion here
Better idea I was gonna say clone the maps so that if something unexpected happens to the map like it destroys then that would be bad and you can’t get the map back. I don’t know why I didn’t type that.
More of how many scripts to use, or whether to use a module script, normal script, etc for each minigame. I’m thinking I’ll just go with 1 module script though.