Updating multiple places all at once

The current game im working on is stage based with multiple game places so as not to put too much lag in the place where the player first joins in, the problem is that I have a data store saving the player’s tools. For the script to work it needs a folder inside the game and if I wanted to modify any tool or add anything, I would need to update every single place and when I want to continously update the game with more and more stages to complete. It can get very time consuming to update every single game place

Is it possible to update one thing only to fix this like inserting free models through code or is there an alternative way to solve this problem?

1 Like

I didnt fully understand what precisely is that you’re tryna update, but if you wanna update a script that runs in multiple places you can write the code in a ModuleScript, upload it to roblox, and then require() this module by using its asset ID in a script.

so like:

module = {}

module.Run() = function()
--load stuff from datastore, create folders needed for the tools, etc.
end

return module

and lets say you publish it to roblox and the asset id is something like 1234567

so for the script in your places it must be like:

local m = require(1234567)
m.Run()

keep in mind that if you do decide to do this, when you upload the module, the modulescript object has to be named precisely MainModule, or it wont run.

then you can just update the code in your modulescript and make changes to the game without even having to publish the place, just update the mainmodule asset.

5 Likes