It is currently too hard to test or understand simple code examples on the Developer Hub without switching over to Studio, setting up a new place, and manually trying it out.
This creates a high barrier for new developers or event participants who are just learning the platform. Even with clear examples, they often struggle to visualize what the code does, especially if they don’t already have a test place open or don’t fully understand how to structure a working script from scratch.
If this issue is addressed, it would improve my development experience because new learners could instantly understand what each code snippet does by running it in place, without leaving the documentation.
As someone who organizes workshops and helps onboard new developers, I constantly see people hit this problem. They copy a code sample from the docs, paste it into Studio, and it breaks due to context or missing setup. An interactive preview would eliminate that and make early learning easier.
Feature Proposal:
Allow certain code blocks (especially for beginner-friendly APIs or patterns) to be run directly on the DevHub through an embedded mini simulator or sandboxed preview window. For example:
-
print()
statements output to a console viewer below the code block - A simple
Part.Touched
example shows a visual trigger - UI creation snippets show the actual UI on the page
This could be limited to a curated set of use cases or added as a toggle per section (e.g., “Try This Code”).
Use Cases:
- Teaching scripting at beginner workshops or summer camps
- Self-taught devs trying to understand how properties like
Transparency
orCFrame
work - Quick testing of basic logic like loops, functions, or events without setting up a place file
- Onboarding new team members who are new to Lua