roblox-world-building
БесплатноБез исполняемых скриптовНе проверенBuilding worlds with code - parts, models and pivots, materials, Lighting (LightingStyle, Atmosphere, post-processing), day/night, Terrain API, in-game CSG…
от EL4CTEO★ 169 звёзд на GitHubОб этом скилле
World building with code
Parts and models
--!strict
local function makePart(size: Vector3, cframe: CFrame, props: { [string]: any }?): Part
local part = Instance.new("Part")
part.Anchored = true
part.Size = size
part.CFrame = cframe
part.TopSurface = Enum.SurfaceType.Smooth
part.BottomSurface = Enum.SurfaceType.Smooth
for key, value in props or {} do
(part :: any)[key] = value
end
return part -- caller sets Parent last
end
local floor = makePart(Vector3.new(64, 1, 64), CFrame.new(0, 0, 0), {
Material = Enum.Material.Slate,
Color = Color3.fromRGB(90, 90, 100),
})
local model = Instance.new("Model")
model.Name = "Arena"
floor.Parent = model
model.WorldPivot = floor.CFrame
model.Parent = workspace
model:PivotTo(CFrame.new(0, 10, 0) * CFrame.Angles(0, math.rad(45), 0))
- Set properties first, parent last (one replication/physics insert). Anchor static geometry.
- Move/rotate models with
PivotTo/GetPivot;Model.WorldPivot/PrimaryPartdefine the pivot. - Group logically related parts in Models (streaming, LOD,
ModelStreamingMode), not giant containers. - Decorative parts:
CanCollide/CanTouch/CanQuery = false,CastShadow = falsefor tiny details. - Materials:
Enum.Material.*; custom looks viaMaterialVariantinMaterialService(setpart.MaterialVariant = "Name") orSurfaceAppearanceon MeshParts (PBR).Decal.Textureis superseded byColorMapContent. - Pixel art: set
ResampleMode = Enum.ResamplerMode.PixelatedonSurfaceAppearance,Decal, orTexture(notMeshPart.TextureID, terrain, orMaterialVariant) and upload at original size; these stay uncompressed and fully loaded, so keep them small. - Many identical meshes are cheap (instanced); many unique meshes/unions are not.
Lighting
| Property | Guidance |
|---|---|
Lighting.LightingStyle |
Realistic (naturalistic) or Soft (stylized). Replaces the superseded Lighting.Technology. |
Lighting.LightAttenuationMode |
Legacy or Realistic (new in Studio 0.748): how point and spot light intensity falls off with distance. Compare both before switching an existing map. |
Lighting.PrioritizeLightingQuality |
Prefer quality (e.g. shadow maps with Soft) vs performance on lower-end devices. |
ClockTime / GeographicLatitude |
Sun position; animate ClockTime for day/night. |
Brightness, ExposureCompensation, Ambient/OutdoorAmbient |
Overall exposure and fill light. |
EnvironmentDiffuseScale/EnvironmentSpecularScale |
Skybox contribution to lighting and reflections. |
| Children | Atmosphere (haze/density, replaces fog), Sky, Clouds (in Terrain), BloomEffect, ColorCorrectionEffect, ColorGradingEffect, DepthOfFieldEffect, SunRaysEffect, BlurEffect. |
--!strict
-- Server: smooth day/night cycle (one full day every 20 minutes).
local Lighting = game:GetService("Lighting")
local RunService = game:GetService("RunService")
local DAY_LENGTH_SECONDS = 20 * 60
RunService.Heartbeat:Connect(function(deltaTime)
Lighting.ClockTime = (Lighting.ClockTime + deltaTime * 24 / DAY_LENGTH_SECONDS) % 24
end)
For per-frame visual changes, prefer computing ClockTime on each client from
workspace:GetServerTimeNow() (no replication traffic, perfectly smooth). Local lights: PointLight,
SpotLight, SurfaceLight — few with Shadows = true.
Terrain
--!strict
local terrain = workspace.Terrain
terrain:FillBlock(CFrame.new(0, -10, 0), Vector3.new(512, 20, 512), Enum.Material.Grass)
terrain:FillBall(Vector3.new(0, 0, 0), 24, Enum.Material.Air) -- carve a crater
terrain:FillBlock(CFrame.new(40, -2, 0), Vector3.new(30, 4, 30), Enum.Material.Water)
terrain:FillCylinder(CFrame.new(-40, 5, 0), 20, 8, Enum.Material.Rock)
- Bulk generation: build a
Region3(aligned with:ExpandToGrid(4)) and useReadVoxels/WriteVoxelswith materials/occupancy arrays (4-stud voxels), in chunks, yielding between chunks. terrain:Clear(); water look viaTerrain.WaterColor,WaterWaveSize, etc.- Custom terrain materials (fully launched): up to 62 custom materials painted onto terrain, plus smaller files and faster loads. Opt in per place: Workspace → Expanded Terrain = Enabled, save, reopen; manage them in Window → 3D → Terrain Materials Manager. Thin terrain can show LOD gaps — keep it thick.
- Procedural heightmaps: sample
math.noise(x * scale, z * scale, seed)with octaves; use aRandom.new(seed)for deterministic worlds; generate on the server or use Parallel Luau for heavy math.
In-game solid modeling and destruction (GeometryService)
--!strict
local GeometryService = game:GetService("GeometryService")
-- Punch a hole through a wall (e.g. explosions, building games).
local function carve(wall: BasePart, cutter: BasePart): { Instance }?
local ok, results = pcall(function()
return GeometryService:SubtractAsync(wall, { cutter }, {
CollisionFidelity = Enum.CollisionFidelity.Default,
Установить roblox-world-building в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл roblox-world-building?
Building worlds with code - parts, models and pivots, materials, Lighting (LightingStyle, Atmosphere, post-processing), day/night, Terrain API, in-game CSG and destruction (GeometryService Subtract/Union/Fragment), ProceduralModel, EditableMesh/EditableImage, particles/beams/trails/highlights. Use when creating maps, environments, lighting, destructible objects, procedural levels, or visual effects.
Как установить скилл roblox-world-building?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл roblox-world-building запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic