/roblox-skills:roblox-text-chatfrom roblox-skills
Implements Roblox TextChatService for player chat, including channels, SendAsync, ShouldDeliverCallback, OnIncomingMessage, and mandatory TextService filtering of any player-authored text shown to others. Covers rate limits, privacy checks, PolicyService restrictions, and legacy Chat migration.
Ships in roblox-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
TextChannels (handles filtering,
privacy/parental settings, and abuse reporting). The legacy Chat service/ChatService Lua modules
are gone — TextChatService is the only chat system.TextService:FilterStringAsync on the server before display — and
re-filtered when loaded from a DataStore later.TextChannels get temporary limits.CanUserChatAsync/CanUsersChatAsync/CanUsersDirectChatAsync and mark
direct-message channels with TextChannel:SetDirectChatRequester().Not chat (no filtering needed): your own UI text, game status messages, admin announcements you write.
--!strict
local TextService = game:GetService("TextService")
-- Broadcast (e.g. a sign everyone sees). Returns nil if filtering failed: then show nothing.
local function filterForEveryone(text: string, fromUserId: number): string?
local ok, result = pcall(function()
local filterResult = TextService:FilterStringAsync(text, fromUserId, Enum.TextFilterContext.PublicChat)
return filterResult:GetNonChatStringForBroadcastAsync()
end)
return if ok then result else nil
end
-- Per-recipient (respects each viewer's age/settings; e.g. a private note).
local function filterForUser(text: string, fromUserId: number, toUserId: number): string?
local ok, result = pcall(function()
local filterResult = TextService:FilterStringAsync(text, fromUserId, Enum.TextFilterContext.PrivateChat)
return filterResult:GetNonChatStringForUserAsync(toUserId)
end)
return if ok then result else nil
end
return { forEveryone = filterForEveryone, forUser = filterForUser }
###); design UI for that.CreateDefaultTextChannels creates RBXGeneral and RBXSystem; CreateDefaultCommands
adds built-ins (/whisper, /team, /mute, ...). Configure look via ChatWindowConfiguration,
ChatInputBarConfiguration, BubbleChatConfiguration (or disable and build your own UI with
TextChannel:SendAsync and TextChatService.MessageReceived).TextChannel:SendAsync(text) → server TextChannel.ShouldDeliverCallback(message, textSource)
per recipient → filtering → clients' OnIncomingMessage callbacks → display.ShouldDeliverCallback is server-only; TextChatService.OnIncomingMessage
and TextChannel.OnIncomingMessage are client-only (formatting).channel:DisplaySystemMessage(text) on the client (local only).TextChannels under TextChatService on the server,
channel:AddUserAsync(userId) to add members; check the returned TextSource's CanSend.--!strict
-- Client: chat tags and colors via OnIncomingMessage (formatting only; never yields).
local Players = game:GetService("Players")
local TextChatService = game:GetService("TextChatService")
TextChatService.OnIncomingMessage = function(message: TextChatMessage)
local properties = Instance.new("TextChatMessageProperties")
local source = message.TextSource
if source then
local player = Players:GetPlayerByUserId(source.UserId)
if player and player:GetAttribute("VIP") then
properties.PrefixText = `<font color="#F5CD30">[VIP]</font> {message.PrefixText}`
end
end
return properties
end
--!strict
-- Server: a /spawn command, restricted to admins.
local Players = game:GetService("Players")
local TextChatService = game:GetService("TextChatService")
local ADMINS: { [number]: boolean } = { [123456] = true }
local command = Instance.new("TextChatCommand")
command.Name = "SpawnCommand"
command.PrimaryAlias = "/spawn"
command.Parent = TextChatService
command.Triggered:Connect(function(source: TextSource, unfilteredText: string)
if not ADMINS[source.UserId] then
return
end
local player = Players:GetPlayerByUserId(source.UserId)
print(`{player and player.Name} ran: {unfilteredText}`)
end)
Roblox is making chat native. Opt in to test now: select TextChatService in Studio and set
PlatformIntegratedChat = Enabled (Studio only, not scriptable). When enabled:
TextChannelWindows you place in UI (one per
TextChannel via Target; works in SurfaceGuis). Custom chat UIs can no longer render messages.TextChatMessage.Text/Translation/PrefixText, OnIncomingMessage,
Player.Chatted, and TextChannel:SendAsync stop working (return "" + warning). No chat logging.TextChatCommands; preset phrases → Quick Words; chat tags/prefixes → role badges
(planned Feb 2027 — don't opt in yet if you rely on prefixes). DisplaySystemMessage and
BubbleChatConfiguration/OnBubbleAdded styling still work.TextChatCommand, TextChannelWindow, and system messages; avoid reading message
text. The OnIncomingMessage tag example above only works until migration.More: proximity chat, team channels, custom UI, and migrating from legacy chat: references/chat-recipes.md.
Quick Words (preset safe phrases for all ages, for coordinating where free chat is limited): add game-specific ones in Creator Hub → game → Configure → Chat → Quick Words — up to 3 categories of 3–10 phrases, in English (auto-translated), reviewed before going live. They replace the default categories; General stays.
PolicyService:GetPolicyInfoForPlayerAsync(player) (server, pcall) returns flags such as
ArePaidRandomItemsRestricted, IsPaidItemTradingAllowed, AreAdsAllowed, AllowedExternalLinkReferences,
IsSubjectToChinaPolicies, IsContentSharingAllowed. Gate loot boxes, trading, ads, and links to
social media (only show platforms listed in AllowedExternalLinkReferences) per player.
roblox-security (rate limits, validation), roblox-ui (text input UI), roblox-monetization
(paid random items), roblox-data-stores (storing user text).
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub el4cteo/roblox-skills --plugin roblox-skills23 skills in this plugin
/roblox-analytics-liveopsAnalytics and live ops - AnalyticsService economy/funnel/onboarding/progression/custom events, player segments, experience configs via ConfigService, A/B experiments, badges, experience notifications, timed events, daily rewards, season passes. Use when instrumenting a game, tuning economy or onboarding, running A/B tests or feature flags, or planning live events and re-engagement./roblox-architectureRoblox project structure and client/server model - replication, where code and assets belong (ServerScriptService, ReplicatedStorage, StarterPlayer), RunContext, service/controller bootstrapping, player/character lifecycle, CollectionService components, attributes, streaming-safe client code, library choices. Use when starting a project, deciding where code goes, or fixing replication/streaming bugs./roblox-audioSound and music - the Audio API (AudioPlayer, AudioEmitter, AudioListener, AudioDeviceOutput, Wire, effects, faders), classic Sound/SoundGroup, 2D vs 3D audio, music and SFX volume, client vs server playback, asset permissions, streaming caveats, voice routing, text-to-speech. Use when adding music, sound effects, spatial audio, mixing, or fixing sounds that don't play./roblox-characters-animationCharacters and animation - Humanoid properties/states, spawning (LoadCharacterAsync), health and damage, HumanoidDescription appearance, Animator/AnimationTrack playback, priorities and markers, default animation replacement, Tools, TweenService, IKControl, Character Controller Library (beta). Use when changing movement, abilities, damage, respawn, avatars, animations, tweens, or tools/weapons./roblox-code-reviewReview Roblox/Luau code for exploits, data loss, memory leaks, performance problems, lifecycle bugs, policy issues, and deprecated or superseded APIs, using a severity-ranked checklist and the full 2026 deprecation map. Use when reviewing a PR or script, auditing a game before launch, modernizing legacy code, or asked what is wrong with some Roblox code./roblox-data-storesPersistence and cross-server data - DataStoreService (UpdateAsync, retries, budgets, limits), session locking with ProfileStore, schema migrations, OrderedDataStore leaderboards, MemoryStore queues/sorted maps/hash maps, MessagingService, right-to-be-forgotten. Use when saving player data, building leaderboards or queues, or fixing data loss, duplication, or throttling.Other plugins' skills for the same job