Skip to main content
Glama

roblox_script

Manage Lua scripts in Roblox Studio: create, read, update, and execute code for game development workflows.

Instructions

Create, read, update, and execute Lua scripts in Roblox Studio.

Actions:

  • "create": Create a new script. Params: source (required), scriptType ("Script"|"LocalScript"|"ModuleScript"), name, parent, disabled.

  • "read": Read a script's source. Params: path (required).

  • "update": Update a script's source code. Params: path (required), source (required).

  • "execute": Run a Lua snippet in Studio (server context). Returns the result or error. Params: source (required). Code runs in a function body — use 'return' to get values back.

Common parent locations: "ServerScriptService" (server scripts), "StarterPlayerScripts" (local scripts), "ReplicatedStorage" (modules).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
actionYesWhich script operation to perform
pathNoPath to existing script
sourceNoLua source code
scriptTypeNoType of script to create (default Script)
nameNoScript name
parentNoParent path
disabledNoCreate in disabled state

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/paralov/roblox-studio-opencode-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server