roblox-text
Use when adding, fixing or reviewing player-facing text: TextChatService chat, text filtering, player-written text, and translation.
How do I install this agent skill?
npx skills add https://github.com/tabooharmony/roblox-brain --skill roblox-textIs this agent skill safe to install?
- Gen Agent Trust Hubpass
The skill provides developer guidelines and best practices for implementing text, chat, and localization systems in Roblox. It focuses on implementation strategies for security, safety, and privacy compliance without including any executable code or malicious patterns.
- Socketpass
No alerts
- Snykwarn
Risk: MEDIUM · 1 issue
What does this agent skill do?
Roblox Text
Scope
Any text players read or write: chat, filtering, player-written text (signs, pet names, boards, feedback boxes) and translation. Validating the remote that carries text: roblox-networking; abuse and admin paths: roblox-security; fonts, TextScaled and overflow: roblox-ui; erasure webhooks: roblox-cloud.
Traps and review checklist (symptom -> cause -> fix)
Filtering and player-written text
- Ordinary words, names or numbers show as
####-> filtering depends on the viewer's age and settings. Text filtered for a broad or young audience (GetNonChatStringForBroadcastAsync, or a viewer on a young account) hashes harmless words. Expected, not a bug. Don't work around it. UseGetNonChatStringForUserAsync(viewerId)when only one player sees the text, and let players pick codes, numbers and names from lists your code controls (field correction 2026-11). - Filter call fails -> it always yields and may throw. Don't retry: it retries internally. Show nothing or a placeholder, never the raw text. Filter once per submission, never on every keystroke.
- Text arrives empty ->
TextFilterResult:GetChatForUserAsyncis deprecated and returns"". Player-to-player messages go throughTextChatService. - Raw player text saved -> it is personal data. Key it by
UserIdso data store RTBF deletion templates or a Right to Erasure webhook can delete it. Roblox's daily RTBF message still makes you responsible for data outside those templates.
Chat (TextChatService)
- Game taken down, or text features limited -> any surface where players can go back and forth in under 60 s is chat and must use
TextChatService: radios, phones, DMs, admin chat, any text field. Editable text others see (signs, pet names, boards) is allowed only when it is filtered and limited to one submission per player per 60 s, and comments can't have replies. Under a temporary limit, over-limit text shows⏱️⏱️⏱️(§2). - Message doesn't reach some players, or chat is missing for some -> parental controls, age checks and blocks stop delivery inside
TextChannels. Hide dead buttons withCanUserChatAsync(any user on the server; on the client, only the local player) andCanUsersChatAsync(server only). Both error if a user isn't in the server. For matchmaking groups, useGetChatGroupsAsync(§3). - Chat freezes -> a callback yielded.
ShouldDeliverCallback,OnIncomingMessage,OnBubbleAddedandOnChatWindowAddedmust not yield, so cache attributes and positions first.AddUserAsyncyields and can fail: call it outside callbacks and re-check state after it returns. - Admin command runs for anyone ->
TextChatCommand.Triggeredfires on the sender's client and on the server, with unfiltered text. Authorize in the server handler and never show that text to others. The defaultStartsWithmatch makes/ematch/e dancebut not/emote. - Custom DM channel delivers between ineligible users -> call
TextChannel:SetDirectChatRequesteron the server before adding users, and check pairs withCanUsersDirectChatAsync(server only). - Code reading message text gets
""and a warning; chat wheel or keyword triggers break -> platform-integrated chat is on (§4).
Localization
- Text not translated -> check in order.
AutoLocalizemust be on for the object and its ancestors. Use Translated Content and the language must be enabled. Entries are case-sensitive (hello≠Hello). Automatic Text Capture (ATC) takes up to a few days. Studio capture (Localization Tools > Automatic Text Capture) adds strings in 1–2 min but must be switched on again each Studio session. ATC never capturesTextBox.Text(onlyPlaceholderText), default leaderboards and chat, player-owned tools, text inside images, or badge and pass names from the platform: translate those in script. - Number or name glued into a string ("You have " .. n .. " coins") -> each value becomes its own source string, and none of them ever matches. Use a parameterized entry (
{1}or{Player_Name}) andTranslator:FormatByKey(key, args). One entry can't mix string and number parameters.FormatByKeythrows when the key is missing orargsdoesn't match (array for numbered parameters, table for named ones), so pcall it. - Player names or player text get translated, or fill the table -> set
AutoLocalize = falseon labels that show names or player input (the docs' own advice). ATC's automatic cleanup deletes stale auto-captured entries by default. - Scripted text stays in the old language after the player switches language in game -> auto-translated UI updates by itself, but text you translated in script does not. Listen to
translator:GetPropertyChangedSignal("LocaleId")and translate again. - Wrong locale -> game content follows
Player.LocaleId(account), notLocalizationService.SystemLocaleId(OS) orRobloxLocaleId(CoreGui).GetTranslatorForPlayerAsyncyields until the cloud table loads and can error: pcall and cache it.GetTranslatorForPlayeris deprecated. - Translated text overflows UI -> Studio Test > Player Emulator > Enable Test Profile: Elongate pads strings by a set %, Pseudolocalize marks translated text so untranslated text stands out. Fix layout in
roblox-ui. - Auto-translation never fills an entry -> it fills only blank, unlocked entries; a cleared entry counts as "don't translate". Quota counts characters per language ("hello" into 10 languages = 50).
Limits
| Item | Value <!-- temporal: 2026-11 --> |
|---|---|
| Temporary text limit | at least 24 h, lifts only after a game update; can return |
| Custom presets | at most 12 per universe, 1 send per 10 s, labelled as system presets, filtered |
| Quick Words | up to 3 categories of 3–10 phrases, each under 25 chars, entered in English, reviewed |
| Platform-integrated chat | required for all games from May 2027 |
1. Which filter call
TextService:FilterStringAsync(text, authorUserId) on the server, once per submission. Player-to-player messages go through TextChatService, which filters per receiver.
2. Chat rules and enforcement
<!-- temporal: 2026-11 --> Chat must go through `TextChatService`, which applies privacy settings, age limits, filtering and abuse reports. When Roblox detects conversation outside `TextChatService`, it limits every feature that collects, filters and shows text to one submission per player per 60 s. You get a Creator Hub banner and an email to the owner. Find the surface players talk through, rate-limit or remove it, then publish. A Roblox weekly recap dated enforcement of the 60 s non-chat text rule from 2026-12-03 (https://devforum.roblox.com/t/weekly-recap-november-16%E2%80%9320-2026/4998199).TextChatService.ChatVersion is deprecated in newly created places, where TextChatService is the only chat system; scripts can't change it. In old places, audit Player.Chatted, SetExtraData and chat modules.
3. Chat groups (server)
TextChatService:GetChatGroupsAsync(players) returns chat group IDs. Players who share an ID can text chat, based on age check and settings. Use it for matchmaking and teleports instead of N² CanUsersChatAsync calls. It needs Chat & Voice Groups APIs turned on in Experience Settings > Communication and works in Studio only in Team Test. Don't store the IDs after the player leaves.
4. Platform-integrated chat
<!-- temporal: 2026-11 --> Off until you turn it on. Required for all games from May 2027. `TextChatService.PlatformIntegratedChat` is `RobloxScriptSecurity`, so set it in Studio's Properties panel, not from a script. Set it back to Disabled at any time. When it is on:- Message text is not available to any code.
TextChatMessage.Text,.Translationand.PrefixTextreturn""and log a warning. Those warnings are your migration list. - Developer
OnIncomingMessagecallbacks are not invoked. Role prefixes and tags aren't supported yet, so the docs say to wait if you need them. - Custom UIs use
TextChannelWindow, one perTextChannel(setTarget). It accepts onlyUICorner,UIAspectRatioConstraint,UISizeConstraintand scripts as children, andChatWindowConfigurationdoesn't style it. The Global channel can't be a target. - Chat commands must be
TextChatCommands. Presets sent withTextChannel:SendAsync()are unsupported, so move them to Quick Words. Keyword triggers and "type the answer in chat" games need commands or a filtered submission box. - Signs, boards and mail are unaffected and still follow the editable-text rules.
How can the creator link this skill?
Add the canonical catalog link to the repository README so users can inspect current installs and available audits. The publishing guide covers the complete discovery path.
<a href="https://skillzs.dev/skills/tabooharmony/roblox-brain/roblox-text">View roblox-text on skillZs</a>