Skip to content

Structs and methods

Language details: CL++. Filename tags decide Script / LocalScript / ModuleScript.

Declare the type in a .clh, implement Class::Method in a .clp / .clpp. Capture one service table in void init().

#pragma once
#include <clpp/roblox.clh>
#include <clpp/libs/sweep.clh>
struct LeaderstatsServer {
static constexpr int STARTING_COINS = 0;
Janitor janitor;
string GetPlayerJanitorKey(Player player);
void PlayerEntered(Player player);
};
PageWhat you learn
File tags.server.clpp / .client.clpp / .clh
Servicesinit() singletons
Modulesshared .clp