API
Init
Starts the server worker. Put your API key in FluxServerInit. Put other SDK options in FluxConfig.
Server setup
You must call FluxServer.Init before any server logging. If you used the Studio plugin, edit ServerScriptService.FluxServerInit and paste your key there.
local ServerScriptService = game:GetService("ServerScriptService")
local FluxServer = require(ServerScriptService:WaitForChild("FluxServer"))
FluxServer.Init("flux_your_project_key")For published games you can pass a Roblox secret name instead of the raw key: FluxServer.Init("flux_api_key"). See Quick start step 2.
Related settings
Uncaught errors, Studio batch previews, and client flush timing live in FluxConfig, not in Init. Client logging starts from FluxClientInit in StarterPlayerScripts (added by the plugin).
Parameter
| Parameter | Type | Required | Description |
|---|---|---|---|
| apiKeyOrSecretName | string | Yes | Your flux_…project key, or the name of a secret in Roblox's secrets store. |