A Roblox Luau lazy-library loader with built-in libraries and functions.
So you want to use Loader, but don’t know where to begin. Or you do know where to begin, and that’s why you’re here. Whatever the case may be, I am delighted to inform you that it is extremely easy to install.
You can install Loader with three methods, though it is recommended that if you want a stable release, install Loader via the rbxm model located in the releases. The quickest route is via Deliver, a command-line interface in Studio.
--install Loader game.ReplicatedStorage
rbxm model hereReplicatedStoragesrc of this repositoryReplicatedStoragesrc of this repositorysrc folder into your Roblox-TS projectsrc to Loadertypings folders contents into LoaderReplicatedStorageLoader should be installed in the following hierarchy:
ReplicatedStorage
└─ Loader
├─ DataSync
├─ Interface
├─ Manager
├─ Network
├─ Roblox
└─ index.d.ts* - only for Roblox-TS
Initialize Loader by requiring the module located in ReplicatedStorage. Paste this to each new script you make to stay consistent:
local require = require(game:GetService("ReplicatedStorage"):WaitForChild("Loader"))
It’s recommended to set Loader as a require replacement since it works the same, with added perks of diagnosing problems.
Learn more about Loader & it’s API in the Reference page.