Skip to content

Roblox instances and services

auto coins = new IntValue(leaderstats);
auto janitor = new Janitor();
ConstructEmit
new Folder(player)Instance.new("Folder"); folder.Parent = player
new Janitor()Janitor.new()
Vector3(8, 1, 8)Vector3.new(8, 1, 8)
Players players = GetService<Players>();
RunService run = GetService<RunService>();
players.PlayerAdded~>Connect(func (Player player) {
post(player.Name);
});
player.GetPropertyChangedSignal("Name")~>Connect(func () {
post("renamed");
});

~> registers the connection on janitor, self.janitor, or a synthetic __janitor (with BindToClose inside init()).

#include <clpp/libs/janitor.clh> both documents Janitor and emits require. DataService tables use DataService.Server / DataService.Client.

Next: Observable and signals.