Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

roblox-core

БесплатноЗапускает вложенные скриптыНе проверен

Choose Roblox services, script locations, and execution contexts. Use for Luau types, serialization, module loading, streaming, and client-server data model…

nonloopedот nonlooped★ 40 звёзд на GitHub

Об этом скилле

roblox-core

Key sources: https://create.roblox.com/docs/en-us/scripting/services, https://create.roblox.com/docs/en-us/luau, https://create.roblox.com/docs/en-us/luau/tables, https://create.roblox.com/docs/en-us/luau/type-checking, https://create.roblox.com/docs/en-us/scripting/locations, https://create.roblox.com/docs/en-us/projects/data-model, https://create.roblox.com/docs/en-us/projects/client-server, https://create.roblox.com/docs/en-us/workspace/streaming, https://create.roblox.com/docs/en-us/scripting/multithreading, https://create.roblox.com/docs/en-us/scripting/attributes

Script initialization

  1. local Service = game:GetService("ServiceName"). Do this once, name the variable after the service.
  2. local Module = require(ReplicatedStorage:WaitForChild("Module"))
  3. Local helper functions.
  4. Connect to events.

Services are the primary way you access engine functionality instead of a traditional standard library.

Modern task library

Use the modern task API; the legacy globals wait(), spawn(), and delay() are deprecated/soft-deprecated:

  • task.wait(n?): yields for about n seconds (default one frame) and returns elapsed time.
  • task.spawn(f, ...): schedules f to run asynchronously.
  • task.defer(f, ...): defers f until after the current event cycle.
  • task.cancel(thread): cancels a thread returned by task.spawn/task.defer.

For parallel code, task.desynchronize() and task.synchronize() move the current thread between the parallel and serial phases.

Services by purpose

Container / hierarchy services (visible in Explorer, part of the DataModel):

  • Workspace (3D content)
  • Lighting (environment, atmosphere, post effects)
  • ReplicatedStorage / ReplicatedFirst (shared code & assets)
  • ServerScriptService (server-only logic)
  • StarterGui / StarterPlayer / StarterPack (templates cloned to players)
  • Players, Teams, SoundService, etc.

Core runtime & scripting services:

  • RunService: Heartbeat fires after physics on both sides; PreSimulation fires before physics on both sides; PreRender is client-only and fires before rendering.
  • TweenService (see animation skill)
  • CollectionService (tags)
  • ContextActionService, UserInputService, GuiService
  • ContentProvider (preloading)

Cloud / persistence / cross-server:

  • DataStoreService, MemoryStoreService, MessagingService (see roblox-datastores skill)

Monetization:

  • MarketplaceService (gamepasses, dev products; see dedicated skill)
  • BadgeService, etc.

Other high-value ones: TeleportService, AnalyticsService, HttpService (outbound only + JSONEncode/Decode), PathfindingService, etc.

Discover services with game:GetService (known services) or game:FindService (optional). Avoid using game:GetChildren() for service discovery. Not every DataModel child is a service, and services can be lazily created. Acquire each service once per script/module.

Instance creation best practice

Configure an instance before parenting it to avoid redundant replication and extra changed events:

local part = Instance.new("Part")
part.Anchored = true
part.Size = Vector3.new(4, 1, 2)
part.Position = Vector3.new(0, 10, 0)
part.Parent = workspace

Set Parent last; do not use the Instance.new("Part", parent) two-argument form.

Types and serialization

Read luau-data-types-and-serialization.md before designing persisted values or debugging serialization. DataStores, JSON, and remotes have different supported types. A successful JSONEncode is a useful check, but it does not prove that a value meets every DataStore constraint.

Type checking

Gradual and opt-in. Use --!strict at the top of a file (it is file-level) or a .luaurc project configuration for project-wide type checking. Add annotations (local x: number, function signatures) for large modules. Inference does a lot of the work. Catches bugs at edit time with zero runtime cost.

Script locations and execution contexts

  • ServerScriptService + Script (RunContext.Server) → server only, with access to server APIs such as DataStores.
  • ReplicatedStorage → stores shared ModuleScripts/assets. A Script here only runs if its RunContext is set to Client or Server; use ModuleScripts for shared logic.
  • StarterGui + LocalScript → per-player client only (inside the cloned PlayerGui).
  • ReplicatedFirst + LocalScript → very early client execution (loading screens).
  • Actor + Script with RunContext.Client/Server → can run Parallel Luau when the code calls task.desynchronize() or uses ConnectParallel(). The Actor must be parented to the DataModel and the Script must have an explicit RunContext; placing a Script inside an Actor alone does not parallelize it. require() can be called from parallel contexts only when the module itself is parallel-safe; most engine APIs and many modules are not.
  • Tools have special execution contexts. HopperBins are deprecated/legacy and sho
Полный SKILL.md на GitHub

Установить roblox-core в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

references/luau-data-types-and-serialization.mdreferences/script-locations-contexts-and-architecture.mdreferences/services-catalog-and-usage.mdscripts/ServiceHelper.lua

FAQ

Что делает скилл roblox-core?

Choose Roblox services, script locations, and execution contexts. Use for Luau types, serialization, module loading, streaming, and client-server data model questions.

Как установить скилл roblox-core?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл roblox-core запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить roblox-core с