WEPPY

Scripts & Code Execution Guide

How to delegate script writing and Luau code execution to the AI.

Manage script source code and execute arbitrary Luau code in Studio.

Included Tools

ToolDescription
manage_scriptsCreate, read, edit, search, and analyze script dependencies
execute_luauExecute arbitrary Luau code in the Roblox Studio sandbox

Key Workflows

Editing a Script

"In the GameManager script in ServerScriptService, change maxPlayers from 12 to 24"

Use manage_scripts’s search to find the line, then edit_replace to modify it.

Validate Syntax Without Playtest

"Validate the Luau syntax in ServerScriptService.GameManager and show every error"

manage_scripts.validate checks either raw source or one existing Script path. It does not start Playtest and checks only whether the Luau source parses.

Turn on Controls → Luau Syntax Validation in Dashboard to check the source that was actually saved after successful set_source, edit_replace, edit_insert, and edit_delete calls. A syntax error or unavailable check does not undo the applied change, so the AI can fix it in the same Script immediately.

Bulk Refactoring

"Replace 'OldModule' with 'NewModule' across all scripts"

Use manage_scripts’s replace to update multiple scripts in one operation.

Querying Runtime Data

"Calculate the average Health of all Humanoids currently in Workspace"

Use execute_luau to run arbitrary Luau code and retrieve runtime data.

Action Reference

Manage Scripts

ActionDescription
get_sourceGet script source code
set_sourceSet script source code
createCreate a new script
deleteDelete a script
edit_replaceReplace specific lines in a script
edit_insertInsert lines at a specific position
edit_deleteDelete specific lines
searchSearch for text in scripts
get_dependenciesGet script dependencies
validateCheck Luau syntax in raw source or an existing Script
replaceBulk replace across multiple scripts

Execute Luau

Executes arbitrary Luau code in the Roblox Studio sandbox.

  • Blocked services: HttpService, DataStoreService, MessagingService
  • No access: CoreGui, CorePackages