Skip to content

Examples

High-quality Cluaupp systems you can copy. Each page is a full service in CL++. Live sample: examples/game. Language reference: kartzrbx.github.io/CLPP.

These are not dumps of int main(). Entry is void init(). Types are struct + Class:: methods. Canonical Leaderstats: handbook.

src/
ReplicatedStorage/Shared/Constants/Datas/TemplateData.clh
ReplicatedStorage/Shared/Net/Net.flare
ServerScriptService/Boot/DataBoot.server.clpp
ServerScriptService/Handlers/PlayerHandler.server.clpp
ServerScriptService/Handlers/Connection.server.clpp
StarterPlayer/StarterPlayerScripts/Controllers/DataController.client.clpp

Boot Keep once. Other services WaitFor after that. Gameplay remotes live in .flare, not in Net.

ExampleTeaches
Data bootServer.Init / Client.Init, your Template, not main()
Connection (Flare).flare Ready / Welcome / Session after Keep loads
LeaderstatsFolder leaderstats, Mint, GetChangedSignal, per-player Sweep
Combat (server validation)Client sends intent; server checks range, cooldown, health, then TakeDamage
ShopFlare buy query, prices on the server, Keep debit
HUDGleam + Mint + Bloom
NPCShift FSM + Hive ECS
Sword / TouchedHitbox on the server, debounce, no client damage

Read with Libraries, OOP structure, and Safety.