Warning
This is a sample project intended to demonstrate how a feature can be used. It is not battle tested or maintained and creators should proceed with caution when adapting it for their own experiences.
This repository contains a demonstration of how to use the Binary Input / Output features of the Open Cloud Luau Execution API.
It includes:
DemoSDK.luau
A quick SDK for Luau Execution Sessions thrown together to unlock the demodemo.luau
An example of how to use both binary inputs + outputsscriptToRun.luau
The payload executed
This demo runs in Lune.
Be sure to install Lune, the quickest way is using Rokit. More info can be found in Lune's docs.
Next, create a Open Cloud API key with luau-execution-sessions:write
access to a specific Place. Then update demo.luau
to include your universeId and placeId
Ensure your cwd is this directory, then add your API key to the environment then run the lune script.
Shell (MacOs / Linux):
export ROBLOX_API_KEY=abcdefg
lune run demo.luau
Batch (Windows):
set ROBLOX_API_KEY=abcdefg
lune run demo.luau
Creating binary input...
Uploading binary file...
Creating task...
Waiting for task completion...
Logs:
- Deserialized Part from input buffer
Task succeeded. Return values: Part
Downloading binary output...
Binary output saved to output.rbxm