Forest Logo
search
package_2

init

By @kashtheking

Roblox

Mirrored from Wally

Init

A module loader for Roblox games. Put your modules in folders. Init requires them in the order you choose, calls every module's Init, then every module's Start, and connects OnPlayerAdded, Step, OnCharacterAdded and the rest for you.

📖 Docs: https://kashtheking.com/init/ · 🧩 Plugin: Init Framework · 📦 Wally: kashtheking/init · 💬 Discord

Install

You are...Do this
New to scriptingInstall the Init Framework plugin, press Setup. Guide
Using an AI (Claude, Cursor, ChatGPT)Paste the prompt from Install with AI.
Using Rojo + WallyInit = "kashtheking/init@1.0.1" in wally.toml. Guide
Using Studio, no pluginDrag Init.rbxm from Releases into ReplicatedStorage.Packages.

What it looks like

-- ServerScriptService/InitServer (Script)
local Init = require(ReplicatedStorage.Packages.Init)

Init.start({
	{ Folders = { ReplicatedStorage.Network } },
	{ Folders = { ReplicatedStorage.Services, ServerScriptService.Services }, Predicate = Init.matchesName("Service$") },
})
-- ServerScriptService/Services/CoinService
local CoinService = {}

function CoinService.Init(self) self.Coins = {} end           -- own state only
function CoinService.Start(self) end                           -- other modules are ready
function CoinService.OnPlayerAdded(self, player) self.Coins[player] = 0 end
function CoinService.OnPlayerRemoving(self, player) self.Coins[player] = nil end

return CoinService

This repository

PathWhat
src/InitThe package (kashtheking/init)
templatesModule templates (Service, Controller, Binder, ...), used by the plugin and by AI
exampleA starter place: boot scripts, folders, one service and one controller
pluginThe Init Framework Studio plugin (FSL-1.1-ALv2)
skills/init/SKILL.mdThe AI skill (also a Claude Code plugin: /plugin marketplace add KashTheKing/init)
docsThe docs site (Moonwave)
testsLune tests: lune run tests/run
rokit install                                   # rojo, wally, lune, selene, stylua, luau-lsp
lune run tests/run                              # tests, no Studio needed
selene src templates example plugin tests/run.luau
rojo serve example.project.json                 # try the example in Studio
rojo build plugin.project.json -o InitFramework.rbxmx   # after `wally install` in plugin/

MIT licensed, except plugin/ (FSL-1.1-ALv2: free to use and change, not for a competing product; each version becomes Apache-2.0 after two years). Promise is evaera/roblox-lua-promise (MIT), bundled so Init has no dependencies.

Package Details

Install command (Click to copy)


Version

1.0.1

License

MIT

check_circle

Safe for commercial use

Automated license review — not legal advice.