Roblox Cloud icon

Roblox Cloud

Access Roblox Open Cloud APIs for groups, users, universes, places, storage, and more

Actions94

Luau Execution → Create Session Task

AI-generated

Overview

This node operation creates a session task to execute a Luau script within the Roblox Cloud environment. It is useful for running custom Luau scripts on a specified Roblox universe and place, optionally with a timeout, binary input, and binary output. This operation is beneficial for developers who want to automate script execution or test scripts programmatically within Roblox's cloud infrastructure.

Use Case Examples

  1. Automate running a Luau script to update game data in a specific Roblox universe and place.
  2. Execute a Luau script with a timeout to perform server-side logic and retrieve results, optionally handling binary input and output.

Properties

Name Meaning
Universe ID The unique identifier of the Roblox universe where the script will be executed.
Place ID The unique identifier of the Roblox place within the universe where the script will run.
Script The Luau script code to be executed in the session task.
Timeout Optional duration to limit the script execution time, between 1 and 300 seconds.
Binary Input Optional path to a binary input resource to be used by the session task.
Enable Binary Output Flag to indicate whether the task should store binary output for later download.

Output

Binary

Binary output data stored by the session task if enabled.

JSON

  • taskId - Identifier of the created session task.
  • status - Current status of the session task.
  • result - Result or output of the executed Luau script.
  • logs - Execution logs related to the session task.

Dependencies

  • Roblox Cloud API with an API key credential for authentication.

Troubleshooting

  • Ensure Universe ID and Place ID are valid and accessible.
  • Verify the Luau script syntax and logic to avoid execution errors.
  • Check timeout value is within allowed range (1s to 300s).
  • If enabling binary output, confirm sufficient storage and permissions.
  • Network or SSL issues may require proxy configuration or ignoring SSL certificate validation.

Discussion