# lfdyn/robloxexecutor architecture

> Architecture diagram of the GitHub repository lfdyn/robloxexecutor, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-25). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/lfdyn/robloxexecutor
- Repository: https://github.com/lfdyn/robloxexecutor

## Overview

This is a Roblox client-side Luau execution and environment project: its documented capabilities include drawing, transport, packet logging, and an expanded library environment. The main visible startup path enters through Entry.cpp, installs a task-scheduler hook, and initializes scheduler work; the environment registers a broad set of libraries. The Luau parser/compiler/VM and several capability modules are represented from the tree, but their runtime wiring is not shown in the excerpts. Edges are limited to indexed references and the sampled TP handler; uncertain runtime links are omitted.

Main entry points: [`workspace/client/Environment/Env.cpp`](https://github.com/lfdyn/robloxexecutor/blob/main/workspace/client/Environment/Env.cpp) (Library environment), [`Entry.cpp`](https://github.com/lfdyn/robloxexecutor/blob/main/Entry.cpp) (Entrypoint), [`workspace/handler/TPHandler.cpp`](https://github.com/lfdyn/robloxexecutor/blob/main/workspace/handler/TPHandler.cpp) (Task hook), [`workspace/core/Scheduler/Scheduler.h`](https://github.com/lfdyn/robloxexecutor/blob/main/workspace/core/Scheduler/Scheduler.h) (Scheduler)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_startup["Startup and scheduling"]
  node_entry["Entrypoint<br/>[Entry.cpp]"]
  node_watcher["File watcher<br/>[FileWatcher.cpp]"]
  node_tp_hook["Task hook<br/>[TPHandler.cpp]"]
  node_scheduler["Scheduler<br/>[Scheduler.h]"]
  node_scheduler_helpers["Scheduler helpers<br/>[Helper.cpp]"]
end

subgraph group_luau["Luau runtime"]
  node_execution["Script execution<br/>[Execution.cpp]"]
  node_parser["Luau parser<br/>[Parser.cpp]"]
  node_compiler["Luau compiler<br/>[Compiler.cpp]"]
  node_vm["Luau VM<br/>[lvmexecute.cpp]"]
end

subgraph group_environment["Client environment"]
  node_environment["Library environment<br/>[Env.cpp]"]
  node_drawing["Drawing library<br/>[Drawing.cpp]"]
  node_filesystem["Filesystem library<br/>[Helper.cpp]"]
  node_signals["Signals library<br/>[Helper.cpp]"]
  node_other_libs["Other libraries<br/>[Helper.cpp]"]
end

subgraph group_network["Transport and updates"]
  node_transport["Transport library"]
  node_observer["Network observer<br/>[Observer.cpp]"]
  node_updates["Client updates<br/>[Update.h]"]
end

node_client(("Roblox client"))

node_client -.->|"starts"| node_entry
node_entry -->|"references"| node_watcher
node_entry -->|"references"| node_tp_hook
node_entry -->|"references"| node_scheduler
node_entry -->|"references"| node_transport
node_tp_hook -->|"initializes"| node_scheduler
node_tp_hook -->|"reads via"| node_scheduler_helpers
node_scheduler -->|"uses"| node_scheduler_helpers
node_environment -->|"imports"| node_drawing
node_environment -->|"imports"| node_filesystem
node_environment -->|"imports"| node_signals
node_environment -->|"imports"| node_other_libs
node_environment -->|"imports"| node_transport
node_execution -.->|"invokes"| node_parser
node_parser -.->|"feeds"| node_compiler
node_compiler -.->|"produces bytecode"| node_vm

click node_entry "https://github.com/lfdyn/robloxexecutor/blob/main/Entry.cpp"
click node_watcher "https://github.com/lfdyn/robloxexecutor/blob/main/workspace/utils/FileWatcher.cpp"
click node_tp_hook "https://github.com/lfdyn/robloxexecutor/blob/main/workspace/handler/TPHandler.cpp"
click node_scheduler "https://github.com/lfdyn/robloxexecutor/blob/main/workspace/core/Scheduler/Scheduler.h"
click node_scheduler_helpers "https://github.com/lfdyn/robloxexecutor/blob/main/workspace/core/Scheduler/Helpers/Helper.cpp"
click node_execution "https://github.com/lfdyn/robloxexecutor/blob/main/workspace/core/Execution/Execution.cpp"
click node_parser "https://github.com/lfdyn/robloxexecutor/blob/main/Dependencies/luau/Ast/src/Parser.cpp"
click node_compiler "https://github.com/lfdyn/robloxexecutor/blob/main/Dependencies/luau/Compiler/src/Compiler.cpp"
click node_vm "https://github.com/lfdyn/robloxexecutor/blob/main/Dependencies/luau/VM/src/lvmexecute.cpp"
click node_environment "https://github.com/lfdyn/robloxexecutor/blob/main/workspace/client/Environment/Env.cpp"
click node_drawing "https://github.com/lfdyn/robloxexecutor/blob/main/workspace/client/Environment/Libraries/Drawing/Drawing.cpp"
click node_filesystem "https://github.com/lfdyn/robloxexecutor/blob/main/workspace/client/Environment/Libraries/Filesystem/Helpers/Helper.cpp"
click node_signals "https://github.com/lfdyn/robloxexecutor/blob/main/workspace/client/Environment/Libraries/Signals/Helpers/Helper.cpp"
click node_other_libs "https://github.com/lfdyn/robloxexecutor/blob/main/workspace/client/Environment/Libraries/Oth/Helpers/Helper.cpp"
click node_transport "https://github.com/lfdyn/robloxexecutor/tree/main/workspace/client/Environment/Libraries/Raknet"
click node_observer "https://github.com/lfdyn/robloxexecutor/blob/main/workspace/core/Network/Observer.cpp"
click node_updates "https://github.com/lfdyn/robloxexecutor/blob/main/workspace/core/Roblox/Update.h"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_entry,node_watcher,node_tp_hook,node_scheduler,node_scheduler_helpers,node_client toneBlue
class node_execution,node_parser,node_compiler,node_vm toneAmber
class node_environment,node_drawing,node_filesystem,node_signals,node_other_libs toneMint
class node_transport,node_observer,node_updates toneRose
```

## Components

### Startup and scheduling

- [Entrypoint](https://github.com/lfdyn/robloxexecutor/blob/main/Entry.cpp): `Entry.cpp`
- [File watcher](https://github.com/lfdyn/robloxexecutor/blob/main/workspace/utils/FileWatcher.cpp): `workspace/utils/FileWatcher.cpp`
- [Task hook](https://github.com/lfdyn/robloxexecutor/blob/main/workspace/handler/TPHandler.cpp): `workspace/handler/TPHandler.cpp`
- [Scheduler](https://github.com/lfdyn/robloxexecutor/blob/main/workspace/core/Scheduler/Scheduler.h): `workspace/core/Scheduler/Scheduler.h`
- [Scheduler helpers](https://github.com/lfdyn/robloxexecutor/blob/main/workspace/core/Scheduler/Helpers/Helper.cpp): `workspace/core/Scheduler/Helpers/Helper.cpp`

### Luau runtime

- [Script execution](https://github.com/lfdyn/robloxexecutor/blob/main/workspace/core/Execution/Execution.cpp): `workspace/core/Execution/Execution.cpp`
- [Luau parser](https://github.com/lfdyn/robloxexecutor/blob/main/Dependencies/luau/Ast/src/Parser.cpp): `Dependencies/luau/Ast/src/Parser.cpp`
- [Luau compiler](https://github.com/lfdyn/robloxexecutor/blob/main/Dependencies/luau/Compiler/src/Compiler.cpp): `Dependencies/luau/Compiler/src/Compiler.cpp`
- [Luau VM](https://github.com/lfdyn/robloxexecutor/blob/main/Dependencies/luau/VM/src/lvmexecute.cpp): `Dependencies/luau/VM/src/lvmexecute.cpp`

### Client environment

- [Library environment](https://github.com/lfdyn/robloxexecutor/blob/main/workspace/client/Environment/Env.cpp): `workspace/client/Environment/Env.cpp`
- [Drawing library](https://github.com/lfdyn/robloxexecutor/blob/main/workspace/client/Environment/Libraries/Drawing/Drawing.cpp): `workspace/client/Environment/Libraries/Drawing/Drawing.cpp`
- [Filesystem library](https://github.com/lfdyn/robloxexecutor/blob/main/workspace/client/Environment/Libraries/Filesystem/Helpers/Helper.cpp): `workspace/client/Environment/Libraries/Filesystem/Helpers/Helper.cpp`
- [Signals library](https://github.com/lfdyn/robloxexecutor/blob/main/workspace/client/Environment/Libraries/Signals/Helpers/Helper.cpp): `workspace/client/Environment/Libraries/Signals/Helpers/Helper.cpp`
- [Other libraries](https://github.com/lfdyn/robloxexecutor/blob/main/workspace/client/Environment/Libraries/Oth/Helpers/Helper.cpp): `workspace/client/Environment/Libraries/Oth/Helpers/Helper.cpp`

### Transport and updates

- [Transport library](https://github.com/lfdyn/robloxexecutor/tree/main/workspace/client/Environment/Libraries/Raknet): `workspace/client/Environment/Libraries/Raknet`
- [Network observer](https://github.com/lfdyn/robloxexecutor/blob/main/workspace/core/Network/Observer.cpp): `workspace/core/Network/Observer.cpp`
- [Client updates](https://github.com/lfdyn/robloxexecutor/blob/main/workspace/core/Roblox/Update.h): `workspace/core/Roblox/Update.h`

### Other components

- **Roblox client**

## Connections

- Roblox client → Entrypoint: starts
- Entrypoint → File watcher: references (evidence: `Entry.cpp`)
- Entrypoint → Task hook: references (evidence: `Entry.cpp`)
- Entrypoint → Scheduler: references (evidence: `Entry.cpp`)
- Entrypoint → Transport library: references (evidence: `Entry.cpp`)
- Task hook → Scheduler: initializes (evidence: `workspace/handler/TPHandler.cpp`)
- Task hook → Scheduler helpers: reads via (evidence: `workspace/handler/TPHandler.cpp`)
- Scheduler → Scheduler helpers: uses
- Library environment → Drawing library: imports (evidence: `workspace/client/Environment/Env.cpp`)
- Library environment → Filesystem library: imports (evidence: `workspace/client/Environment/Env.cpp`)
- Library environment → Signals library: imports (evidence: `workspace/client/Environment/Env.cpp`)
- Library environment → Other libraries: imports (evidence: `workspace/client/Environment/Env.cpp`)
- Library environment → Transport library: imports (evidence: `workspace/client/Environment/Env.cpp`)
- Script execution → Luau parser: invokes
- Luau parser → Luau compiler: feeds
- Luau compiler → Luau VM: produces bytecode
