Add launchable

This commit is contained in:
usernames122
2025-10-23 20:58:19 +02:00
parent 300bb16e5e
commit d9d5460856
27 changed files with 1743 additions and 85 deletions

View File

@@ -10,6 +10,16 @@ export class DataModel extends Instance {
return this.Children.find(c => c.ClassName === name) || null;
}
GetDataModel() {return this;} // Override to return self
LuaBridge () {
const obj = super.LuaBridge();
obj.GetService = (name) => {
if (name === "RunService") name = "RenderService"; // Alias
const service = this.GetService(name);
return service ? service.LuaBridge() : null;
}
}
} // Just a container for the whole instance tree
// cuz this is an Entity Component System, we need a root entity
// Assume all children of DataModel are services or top-level game objects