Roblox SDK · Version 0.1.0
SDK quickstart
Run a Studio playtest with the local sink, then verify server-health delivery from a private staging place.
Run locally in Studio
- Copy the complete
PrismaSDKModuleScript tree from the SDK package intoServerScriptService. Keep its bundled modules and keepClientReporterdisabled in the source tree. - Use the bundled server bootstrap or add the example below as a server Script. Use one bootstrap per server.
- Start a playtest and check the server output for accepted events after about 20 seconds. Offline mode uses an in-memory sink and needs no credentials or HTTP Requests setting.
local ServerScriptService = game:GetService("ServerScriptService")
local Prisma = require(ServerScriptService.PrismaSDK)
local client = Prisma.Start({
Mode = "offline",
Environment = "local",
})
task.delay(20, function()
local diagnostics = client:GetDiagnostics()
print("Accepted events:", diagnostics.AcceptedEvents)
print("Dropped events:", diagnostics.DroppedEvents)
end)
game:BindToClose(function(reason)
client:Shutdown(5, reason.Name)
end)
Connect an authorized staging source
- Give the Prisma operator your universe ID and the place IDs you want to test. The operator provisions a staging source, its credential, and the exact HTTPS ingestion origin.
- Add
PRISMA_INGESTION_KEYto the experience’s Roblox Secrets Store, restricted to the provided hostname. Enable Allow HTTP Requests for the staging place. - On the bundled bootstrap, set
EnableStagingtotrueandStagingBaseUrlto the operator-provided origin. The format ishttps://ingest.example.com, with the example hostname replaced and no path or trailing slash. - Run the private published staging place. Check
GetDiagnostics()for accepted events, queue depth, and drops. Ask the operator to confirm that the lifecycle reports arrived in the serving store.
Check delivery
Look for a startup event, a snapshot roughly every 15 seconds, and an end event when shutdown is observed. A successful flush drains the queue. Use AcceptedEvents and DroppedEvents to tell whether events were delivered or discarded.
On enrollment failure, confirm the credential’s hostname restriction and verify that the universe, place, and environment match the registered source. For HTTP response semantics, see the API overview.