What Is This?
FrameworkLoader is a lightweight Roblox framework designed to streamline service creation by automatically separating client/server logic. Key features:
-
ServerScriptService/Services and ReplicatedFirst/Services auto-loading.
-
Zero boilerplate for client-server communication.
-
Shared logic via
Shared
tables andOnLoad()
initialization. -
Automatic module pruning (e.g., removes server code on the client).
How It Works
-
Service Structure:
Each service follows this hierarchy:Service / -- Can be both or one ├── Client -- Client-specific logic └── Server -- Server-specific logic
- The framework auto-detects and loads these modules.
- Uses
InheritFromSubmodule()
to merge client/server logic into theShared
table.
-
Setup:
- Place the
Framework
module in ReplicatedStorage. - Create folder:
-
ServerScriptService/Services
(server-side services).
-
- Create
Service Module
here and enjoy.
- Place the
Why Use This?
-
Clean separation of client/server code.
-
Automatic module loading with error logging.
-
Async initialization via
task.spawn
. -
Minimal setup – focus on logic, not boilerplate.
The file have example of Service
using my NetworkManager module:
- FrameworkLoaderWithExample (15,5 КБ)
- CleanFrameworkLoader (3,7 КБ)