Roblox Cloud icon

Roblox Cloud

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

Actions94

Luau Execution → Create Session Task for Version

AI-generated

Overview

This node operation creates a session task to execute a Luau script on a specific version of a Roblox place. It is useful for running custom Luau scripts in a controlled environment tied to a particular place version within the Roblox platform. For example, developers can use this to automate testing or execute scripts for game logic validation on a specific version of their game place.

Use Case Examples

  1. Running a Luau script to test new game features on a specific place version before release.
  2. Automating script execution for debugging or data collection on a particular version of a Roblox place.

Properties

Name Meaning
Universe ID The unique identifier of the Roblox universe where the place resides.
Place ID The unique identifier of the Roblox place where the script will be executed.
Version ID The specific version ID of the place on which the Luau script will be executed.
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 for the session task.
Enable Binary Output Flag to determine if the task should store binary output for later download.

Output

JSON

  • taskId - Identifier of the created session task.
  • status - Current status of the session task.
  • createdAt - Timestamp when the session task was created.
  • result - Result or output of the executed Luau script, if available.

Dependencies

  • An API key credential for Roblox Cloud API authentication

Troubleshooting

  • Ensure Universe ID, Place ID, and Version ID are correctly provided and correspond to existing Roblox resources.
  • Verify the Luau script syntax and logic to avoid execution errors.
  • Check network connectivity and API credentials if requests fail.
  • Timeout errors may occur if the script runs longer than the specified timeout duration; adjust timeout accordingly.

Discussion