Development / ROBLOX
Roblox chat command not firing: check TextChatCommand
Use /trackhelp to test alias matching, handler execution and what a second player sees.
Choose a fresh name and a harmless action #
For a test route, use /trackhelp to open a help panel for the player who enters it. Avoid a name already used by a built-in or custom command. Start with one alias and no arguments so you can test the event independently of text parsing or permission checks.
Place the command in TextChatService #
Create a TextChatCommand under TextChatService and set PrimaryAlias to /trackhelp. Confirm Enabled is on. You can add another name with SecondaryAlias later. AutocompleteVisible controls suggestions, so absence from the suggestion list does not show whether a manually entered command works.
Connect Triggered once #
Connect to Triggered in a server script and log a short diagnostic marker. Use the TextSource UserId if you need to identify the player who made the request. Check that the intended action ran. A fixed help action does not need the full chat message or the text that follows the alias.
Set the delivery choice explicitly #
Use DeliverMessage = false for a test where typing the alias should only trigger an action. Confirm with a second client that it did not appear as ordinary chat. For a different feature, decide separately whether the message should continue through normal chat delivery. Make the intended choice explicit in the test.
Move the handler away from raw chat reading #
If the old code reads Player.Chatted or TextChatMessage.Text, check PlatformIntegratedChat in a test copy. With platform-integrated chat enabled, raw messages from those APIs cannot drive chat commands. Switch the trigger to TextChatCommand.Triggered and check that the old handler cannot fire the action a second time.
Test a sender, an observer and ordinary chat #
In a two-client session, type /trackhelp, a similar nonmatching name and an ordinary message. Compare which action ran, what the sender saw and whether anything duplicated. If Roblox chat is unavailable for a player, expose help through a normal interface button without changing the chat restrictions.
| What to check | Expected result |
|---|---|
| Command name | Unique /trackhelp alias |
| Object | TextChatCommand in TextChatService |
| Event | One Triggered connection |
| Delivery | Other client sees no command |
| Old handler | No duplicate action |
| Control | Ordinary chat still works |
Original sources
Roblox Creator Hub · TextChatCommandRoblox Creator Hub · Platform-integrated chat
Roblox Creator Hub · Custom commands


