Skip to content

[[server]]

Attribute

Function exists on the server only.

[[server]]
void SaveData(Player player) { }

None.

Per function.

omitted on client files; RunService:IsServer() wrapper in modules

On a .client.clpp, the function is omitted. On a .server.clpp, it emits normally. In a module, emit wraps RunService:IsServer().

[[server]]
void SaveData(Player player) {}

Emits:

-- emitted only when the file is a server Script / IsServer()

attr-client · ../files