Initial commit: Roblox Studio MCP Server for Claude Code
- MCP server with 12 tools for Roblox manipulation - WebSocket communication with Roblox Studio - Create scripts, parts, models, GUIs - Execute Lua code, control playtest - Full documentation and examples 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
44
examples/demo_game.lua
Normal file
44
examples/demo_game.lua
Normal file
@@ -0,0 +1,44 @@
|
||||
-- Example: Simple Obby Game
|
||||
-- This demonstrates creating a complete mini-game using Claude + MCP
|
||||
|
||||
-- 1. Create starting platform
|
||||
local startPart = Instance.new("Part")
|
||||
startPart.Name = "StartPlatform"
|
||||
startPart.Size = Vector3.new(20, 1, 20)
|
||||
startPart.Position = Vector3.new(0, 1, 0)
|
||||
startPart.Anchored = true
|
||||
startPart.BrickColor = BrickColor.new("Bright green")
|
||||
startPart.Parent = workspace
|
||||
|
||||
-- 2. Create checkpoint platforms
|
||||
local colors = {"Bright red", "Bright orange", "Bright yellow", "Bright blue", "Bright violet"}
|
||||
for i = 1, 5 do
|
||||
local platform = Instance.new("Part")
|
||||
platform.Name = "Checkpoint" .. i
|
||||
platform.Size = Vector3.new(10, 1, 10)
|
||||
platform.Position = Vector3.new(0, i * 15, i * 20)
|
||||
platform.Anchored = true
|
||||
platform.BrickColor = BrickColor.new(colors[i])
|
||||
platform.Parent = workspace
|
||||
end
|
||||
|
||||
-- 3. Create kill brick (lava)
|
||||
local lava = Instance.new("Part")
|
||||
lava.Name = "Lava"
|
||||
lava.Size = Vector3.new(100, 1, 200)
|
||||
lava.Position = Vector3.new(0, -5, 50)
|
||||
lava.Anchored = true
|
||||
lava.BrickColor = BrickColor.new("Bright red")
|
||||
lava.Material = Enum.Material.Neon
|
||||
lava.Parent = workspace
|
||||
|
||||
-- 4. Spawn location
|
||||
local spawn = Instance.new "SpawnLocation"
|
||||
spawn.Name = "SpawnLocation"
|
||||
spawn.Size = Vector3.new(8, 1, 8)
|
||||
spawn.Position = Vector3.new(0, 1, 0)
|
||||
spawn.Anchored = true
|
||||
spawn.Transparency = 1
|
||||
spawn.Parent = workspace
|
||||
|
||||
print("Obby game created! Press Play to test.")
|
||||
Reference in New Issue
Block a user