roblox-luau
Что он делает
Этот скилл учит агента писать игровые скрипты Roblox на языке Luau. Он нужен тем, кто создает опыты в Roblox Studio.
Когда использовать
- ✓Когда вы пишете или исправляете скрипты Luau в Roblox Studio.
- ✓Когда нужно решить, должен ли код работать на сервере или на клиенте.
- ✓Когда вы хотите, чтобы клиент и сервер общались через RemoteEvent или RemoteFunction.
Ссылка на скилл
https://github.com/gamedev-skills/awesome-gamedev-agent-skills/blob/main/skills/other-engines/roblox-luau/SKILL.mdСкопируйте и вставьте её в ваш ИИ (Claude, ChatGPT или Cursor) с просьбой следовать инструкциям.
Как использовать
Самый простой способ: скопируйте сообщение и вставьте его в свой ИИ. Он прочитает скилл и выполнит инструкции.
Готовое сообщение для вставки
Для Claude Code, Codex или Cursor: запустите в папке проекта, и скилл установится.
Скачайте SKILL.md и положите его в папку скиллов вашего агента.
Пример запроса к вашему ИИ
“Сделай деталь в Roblox, которая дает игроку 10 очков при касании и хранит счет на сервере.”
5 новых скиллов в неделю. 1 минута чтения.
Как это работает
Скилл объясняет, как получить сервисы Roblox, создавать и размещать объекты, подключать события и делить работу между серверными и клиентскими скриптами с помощью безопасных сообщений.
Технический текст (оригинальный SKILL.md)
Оригинальный текст автора на английском, прямо с GitHub.
Roblox Luau Scripting
Script a Roblox experience in Luau: services, Instances, events, the
server/client split, and secure cross-boundary communication. Targets the current
Roblox engine and Studio.
When to use
- Use when writing Roblox scripts: getting services, creating/parenting instances,
connecting events, deciding server vs client, or wiring
RemoteEvent/RemoteFunctioncommunication. - Use when the project has
Script/LocalScript/ModuleScriptobjects,.rbxl(x)places, or a Rojo*.project.json, and code callsgame:GetService(...).
When not to use: persisting data across sessions → roblox-datastores.
Remote protocol architecture, exploit hardening, rate limits, high-frequency replication, and
multi-client abuse testing → roblox-networking. Generic Lua questions unrelated to the Roblox
API. Engine-agnostic input/save architecture → input-systems / save-systems.
Core workflow
- Get services with
game:GetService("Name"). Common ones:Players,Workspace,ReplicatedStorage(shared client+server),ServerScriptService(server-only code),ServerStorage,RunService,UserInputService(client). - Know where code runs. A
Scriptruns on the server; aLocalScriptruns on a client (inStarterPlayerScripts,StarterGui, or the player's character). AScriptwhoseRunContextisClientalso runs on clients, fromReplicatedStorage; checkRunContextbefore deciding where aScriptruns. AModuleScriptis shared code yourequire. - Create instances deliberately.
local p = Instance.new("Part"), set its properties, then setp.Parentlast (parenting triggers replication). - React with events.
:Connectto signals likePlayers.PlayerAdded,part.Touched, orRunService.Heartbeat. Disconnect when done to avoid leaks. - Cross the client/server boundary with Remotes — and never trust the client.
Clients request via
RemoteEvent:FireServer(...); the server validates and applies. The server is authoritative for all game state. - Test in Studio with Test / Test Here / Server & Clients; use the Output window and the Client/Server toggle to confirm where code ran.
- Run static checks before Studio when the project already has the tools. Put
std = "roblox"in the rootselene.toml, then runselene .. For a Rojo project, write the sourcemap once withrojo sourcemap default.project.json --output sourcemap.json, then runluau-lsp analyze --sourcemap=sourcemap.json src, passing the Roblox type definitions with--definitions(luau-lsp analyze --helplists the flags). Studio Script Sync projects may not have a sourcemap.
Patterns
1. Server Script: react to players joining (leaderstats)
-- ServerScriptService/Leaderboard.server.luau (a Script = runs on the server)
local Players = game:GetService("Players")
local function onPlayerAdded(player: Player)
local stats = Instance.new("Folder")
stats.Name = "leaderstats" -- this name makes it show on the leaderboard
local coins = Instance.new("IntValue")
coins.Name = "Coins"
coins.Value = 0
coins.Parent = stats
stats.Parent = player -- parent LAST
end
Players.PlayerAdded:Connect(onPlayerAdded)
2. Create and configure an instance
local Workspace = game:GetService("Workspace")
local part = Instance.new("Part")
part.Size = Vector3.new(4, 1, 4)
part.Position = Vector3.new(0, 10, 0)
part.Anchored = true -- won't fall under gravity
part.BrickColor = BrickColor.new("Bright blue")
part.Parent = Workspace -- set Parent last so it replicates once, fully
3. Connect an event (and disconnect to avoid leaks)
local debounce = false
local connection
connection = part.Touched:Connect(function(hit: BasePart)
local character = hit.Parent
local humanoid = character and character:FindFirstChildOfClass("Humanoid")
if not humanoid or debounce then return end
debounce = true
humanoid.Health -= 10
task.wait(1) -- task.wait, NOT the deprecated wait()
debounce = false
end)
-- Later, when the part is removed or the round ends:
-- connection:Disconnect()
4. Client → server with a RemoteEvent (validate on the server!)
-- ReplicatedStorage: create a RemoteEvent named "BuyItem" (in Studio or via code).
-- CLIENT (
Частые вопросы
Что такое Luau?
Luau — это язык программирования, который используется в Roblox для игровых скриптов.
В чем разница между Script и LocalScript?
Script работает на сервере, а LocalScript работает на устройстве каждого игрока.
Покрывает ли он сохранение данных?
Нет. Сохранение данных покрывает отдельный скилл DataStore.
Подробности
Оригинальное описание автора
Script a Roblox experience in Luau: get services, create and parent Instances, connect events, run server Scripts vs client LocalScripts, and communicate across the client/server boundary with RemoteEvents/RemoteFunctions (server-authoritative). Use when building or debugging Roblox Studio scripts — when the user mentions Roblox, Luau, services, RemoteEvent, Instance.new, PlayerAdded, or client vs server. For saving player data use roblox-datastores.
Популярность
- Звёзды на GitHub
- 6.6k
- Место в рейтинге
- #13838
- Лицензия
- Apache-2.0
- Обновлён
- 28.10.2026
Комментарии
- …
Другие скиллы из этого репозитория
router
6.6kПомогает агенту выбрать нужный скилл для игровой разработки, определив движок и тип задачи.
ai-behavior-trees-utility-ai
6.6kПомогает агенту построить дерево поведения и систему утилитарного ИИ для врагов и персонажей игры, которые выбирают действия по приоритету и оценке.
audio-design
6.6kУчит агента сведению звука в играх: шины, громкость в децибелах, приглушение под диалоги, адаптивная музыка и вариации звуковых эффектов.
camera-systems
6.6kПомогает агенту создавать игровые камеры, которые плавно следуют за объектом, остаются в пределах уровня и вращаются или осматриваются в 3D.
Похожие скиллы
diffs
394kПозволяет агенту создать настоящее сравнение правок в виде ссылки или файла изображения, которым можно поделиться, вместо ручной сводки.
coding-agent
394kПомогает агенту передать большую задачу по коду в Codex, Claude Code или OpenCode как фоновому исполнителю, а затем проверять ее ход.
gh-issues
394kПомогает агенту находить задачи GitHub, выбирать, над какими работать, и открывать запросы на слияние с исправлениями, включая ответы на комментарии рецензентов.