You can install this plugin here.
Simply select the instance you want converted into a tree, and click on the plugin to generate its tree.
Outputted trees look like so:
type SpawnLocation = SpawnLocation & {
Decal: Decal;
Data: Configuration & {
NumSpawns: IntValue;
GiveForceField: BoolValue;
};
}
The plugin also supports overriding services which are browsable in Roblox Studio. For example:
interface Workspace extends Model {
Terrain: Terrain;
Camera: Camera;
Baseplate: Part & {
BFC: BoolValue;
};
SpawnLocation: SpawnLocation & {
Decal: Decal;
Data: Configuration & {
NumSpawns: IntValue;
GiveForceField: BoolValue;
};
};
}
Then, anywhere you access Workspace
, you can access the defined members!
const workspace = game.GetService("Workspace");
print(++workspace.SpawnLocation.Data.NumSpawns.Value);
To automatically insert these files into your project open up your project and run npx io-serve
, then click the plugin in studio to generate your files.