search/
Start typing to search packages!
package_2
init
By @kashtheking
Roblox
Mirrored from WallyInit
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 scripting | Install the Init Framework plugin, press Setup. Guide |
| Using an AI (Claude, Cursor, ChatGPT) | Paste the prompt from Install with AI. |
| Using Rojo + Wally | Init = "kashtheking/init@1.0.1" in wally.toml. Guide |
| Using Studio, no plugin | Drag 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
| Path | What |
|---|---|
src/Init | The package (kashtheking/init) |
templates | Module templates (Service, Controller, Binder, ...), used by the plugin and by AI |
example | A starter place: boot scripts, folders, one service and one controller |
plugin | The Init Framework Studio plugin (FSL-1.1-ALv2) |
skills/init/SKILL.md | The AI skill (also a Claude Code plugin: /plugin marketplace add KashTheKing/init) |
docs | The docs site (Moonwave) |
tests | Lune 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
Safe for commercial use
Automated license review — not legal advice.
