Importing the Library
From Source
Tip
This is the recommended method.
-
Clone it into your
packages/_index
folder:Note
You can also download the source manually from Github and place it into your packages index folder.
-
Add a loader module directly into your
packages
folder: -
At this point your project should look something like this:
-
Now you can easily access the Cascade API:
Pre-built releases
Cascade also has pre-built luau
modules.
Over HTTP
This method will download the release dynamically using HttpGet.
local function import(owner, release, version, file)
local tag = (version == "latest" and "latest" or "download/"..version)
return loadstring(game:HttpGet(("https://github.com/%s/%s/releases/%s/%s"):format(owner, release, tag, file)), file)()
end
local cascade = import("biggaboy212", "Cascade", "latest", "dist.luau")
-- If you want to use a specific release (i.e, beta releases), replace 'latest' with it's release tag.
Manual
This method is usually unstable on bundlers like darklua, however if it does work, it is faster than dynamic loading since it is already included in source and not fetched via web.
-
Download a valid release:
-
Place the
luau
module into your project (e.g., underpackages/
).