How to have global scripts using rojo and separate places

I’m trying to have global scripts that I can have appear in ALL places in my experience, however each place needs it’s own code as well.

I have this in both project.json files

"ServerScriptService": {
      "$className": "ServerScriptService",
      "$ignoreUnknownInstances": true,
      "$path": "src/afk/ServerScriptService",
      "ServerPackages": {
        "$path": "ServerPackages"
      },
      "Server": {
        "$path": "src/afk/ServerScriptService/Server",
        "ServerPackages": {
          "$path": "src/afk/ServerScriptService/Server/Services",
          "Data": {
            "$path": "src/global/Server/Data"
          }
        }
      }      
    },

This is how I have the plcae setup (afk), and global is supposed to be any code that goes to all places
image (1)
However when I connect rojo, studio does this
image
it creates duplicates of Server + inserting ServerPackages into Server as well? Unsure how or what to do.

Basically, every game needs

Server
>    Services
> >        All the games services

And then global would basically insert any global services into that Services folder

1 Like