Is there a way to stop Rojo overwriting/deleting scripts?

When I connect Rojo to Roblox Studio, I want it to “$ignoreUnknownInstances” so that scripts that exist in roblox studio, but not in VSCode, would not be deleted. So for example, a script (that doesn’t exist in VSCode) is descendant of another script (which is in VSCode) wouldn’t be deleted on connection.

When I do this, and set “$ignoreUnknownInstances” to true, it still deletes. I also try to create a init.rojo.json with the same setting set to true inside of the folders that should ignoreUnkownInstances, which works for children, but not any descendants specifically.

This is pretty much to find a work-around to the way the forbidden API is parented with lots of descendants.

Here is the project.json:

"tree": {
    "$className": "DataModel",
	"$ignoreUnknownInstances": true,
	
    "ReplicatedStorage": {
		"Libraries": {
			"$path": "src/ReplicatedStorage/Libraries"
		},
		"Forbidden": {
			"$path": "src/ReplicatedStorage/Libraries/Forbidden",
			"$ignoreUnknownInstances": true
		},
		"AI": {
			"$path": "src/ReplicatedStorage/Libraries/Forbidden/ForbiddenModules/AI.luau",
			"$ignoreUnknownInstances": true
		},
		"Math": {
			"$path": "src/ReplicatedStorage/Libraries/Forbidden/ForbiddenModules/Math.luau",
			"$ignoreUnknownInstances": true
		},
		"Standard": {
			"$path": "src/ReplicatedStorage/Libraries/Forbidden/ForbiddenModules/Standard.luau",
			"$ignoreUnknownInstances": true
		}
    },

// rest of settings

(I

1 Like