[System] My simple FrameworkLoader

What Is This?

FrameworkLoader is a lightweight Roblox framework designed to streamline service creation by automatically separating client/server logic. Key features:

  • :desktop_computer: ServerScriptService/Services and ReplicatedFirst/Services auto-loading.
  • :jigsaw: Zero boilerplate for client-server communication.
  • :arrows_counterclockwise: Shared logic via Shared tables and OnLoad() initialization.
  • :open_file_folder: Automatic module pruning (e.g., removes server code on the client).

How It Works

  1. 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 the Shared table.
  2. Setup:

    • Place the Framework module in ReplicatedStorage.
    • Create folder:
      • ServerScriptService/Services (server-side services).
    • Create Service Module here and enjoy.

Why Use This?

  • :white_check_mark: Clean separation of client/server code.
  • :white_check_mark: Automatic module loading with error logging.
  • :white_check_mark: Async initialization via task.spawn.
  • :white_check_mark: Minimal setup – focus on logic, not boilerplate.

The file have example of Service using my NetworkManager module:

2 Likes