Maintaining scripts across places?

I’m trying to do a similar thing games such as Dungeon Quest and World Zero do, where they create places that are different yet still have the same scripts. And the scripts would transfer so if I edit the damage script, for example, it gets changed on all the places. How would I do this?

These games are likely using Rojo to sync the files.

1 Like

From the DevHub’s blurb on ModuleScripts:

If a ModuleScript object is has its Name property set to ‘MainModule’ and is uploaded to Roblox as a model to your account, Scripts can use require with the uploaded model’s AssetId instead. This allows you to create private modules on your Roblox account!

So, in your case, you would hold all the damage tables on this module. If you wanted to make a change, you would just have do edit the module and push an update to the model.

You may also find use in packages, although I haven’t spent enough time working with them to know if they’ll fit the bill or not.

4 Likes

I just tried packages. They seem to be what I’m looking for. Thank you for telling me about them

2 Likes