Skip to main content
Glama

Roblox Studio MCP Server

set_script_source

Update script source code safely in Roblox Studio without using loadstring. Input the script instance path and the new source code to modify scripts directly in the Studio environment.

Instructions

Safely set the source code of a script object without using loadstring (Studio only)

Input Schema

NameRequiredDescriptionDefault
instancePathYesPath to the script instance (e.g., "game.ServerScriptService.MainScript")
sourceYesNew source code for the script

Input Schema (JSON Schema)

{ "properties": { "instancePath": { "description": "Path to the script instance (e.g., \"game.ServerScriptService.MainScript\")", "type": "string" }, "source": { "description": "New source code for the script", "type": "string" } }, "required": [ "instancePath", "source" ], "type": "object" }

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/boshyxd/robloxstudio-mcp'

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