roblox-text-chat
БесплатноБез исполняемых скриптовНе проверенChat and text safety - TextChatService (channels, SendAsync, ShouldDeliverCallback, OnIncomingMessage, commands, bubbles, custom UI, platform-integrated chat…
от EL4CTEO★ 169 звёзд на GitHubОб этом скилле
Chat and text safety
Non-negotiable rules (Roblox Community Standards)
- Player-to-player conversation must go through TextChatService
TextChannels (handles filtering, privacy/parental settings, and abuse reporting). The legacyChatservice/ChatServiceLua modules are gone —TextChatServiceis the only chat system. - Any text authored by one player and shown to another (pet names, signs, guild names, trade notes,
custom UI) must be filtered with
TextService:FilterStringAsyncon the server before display — and re-filtered when loaded from a DataStore later. - Editable text others can see (signs, bulletin boards) needs a rate limit of at least 1 minute (one
submission per player per 60 seconds). Enforced from December 3, 2026: filtering APIs used for
back-and-forth player chat outside
TextChannels get temporary limits. - Respect privacy settings with
CanUserChatAsync/CanUsersChatAsync/CanUsersDirectChatAsyncand mark direct-message channels withTextChannel:SetDirectChatRequester().
Not chat (no filtering needed): your own UI text, game status messages, admin announcements you write.
Filtering player-authored text
--!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 }
- Filter on the server, after the player submits (not per keystroke); rate-limit and length-cap first.
- On failure, fail closed (show nothing / a placeholder), never the raw text.
- Store the raw text if you must, but always filter at display time (filters and viewer settings change).
- Numbers-only or short strings can still be filtered (hashtags
###); design UI for that.
TextChatService essentials
- Defaults:
CreateDefaultTextChannelscreatesRBXGeneralandRBXSystem;CreateDefaultCommandsadds built-ins (/whisper,/team,/mute, ...). Configure look viaChatWindowConfiguration,ChatInputBarConfiguration,BubbleChatConfiguration(or disable and build your own UI withTextChannel:SendAsyncandTextChatService.MessageReceived). - Flow: client
TextChannel:SendAsync(text)→ serverTextChannel.ShouldDeliverCallback(message, textSource)per recipient → filtering → clients'OnIncomingMessagecallbacks → display. - Callbacks must not yield.
ShouldDeliverCallbackis server-only;TextChatService.OnIncomingMessageandTextChannel.OnIncomingMessageare client-only (formatting). - System messages:
channel:DisplaySystemMessage(text)on the client (local only). - Custom channels (team, party, proximity): create
TextChannels underTextChatServiceon the server,channel:AddUserAsync(userId)to add members; check the returnedTextSource'sCanSend.
--!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)
Platform-integrated chat (required May 2027)
Roblox is making chat native. Opt in to test now: select TextChatService in Studio and set
`
Установить roblox-text-chat в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл roblox-text-chat?
Chat and text safety - TextChatService (channels, SendAsync, ShouldDeliverCallback, OnIncomingMessage, commands, bubbles, custom UI, platform-integrated chat and TextChannelWindow migration due May 2027), mandatory TextService filtering of any player-authored text, rate limits, privacy checks, PolicyService restrictions, legacy Chat migration. Use when adding chat features or commands, or any feature that shows one player's text to others (names, signs, notes).
Как установить скилл roblox-text-chat?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл roblox-text-chat запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
frontend-design
Guidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making…
от Anthropicwebapp-testing
Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing…
от Anthropicbrand-guidelines
Applies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand…
от Anthropicweb-artifacts-builder
Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn/ui). Use…
от Anthropic