Roblox GuidebookKnowledge base
English ⌄

Development / ROBLOX

Roblox chat command not firing: check TextChatCommand

Use /trackhelp to test alias matching, handler execution and what a second player sees.

Updated:

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.

Checks 1–3 · Roblox chat command not firing: check TextChatCommandOpen full-size image ↗
Checks 1–3 · Roblox chat command not firing: check TextChatCommand

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.

Checks 4–6 · Roblox chat command not firing: check TextChatCommandOpen full-size image ↗
Checks 4–6 · Roblox chat command not firing: check TextChatCommand
What to checkExpected result
Command nameUnique /trackhelp alias
ObjectTextChatCommand in TextChatService
EventOne Triggered connection
DeliveryOther client sees no command
Old handlerNo duplicate action
ControlOrdinary chat still works

Original sources

Roblox Creator Hub · TextChatCommand
Roblox Creator Hub · Platform-integrated chat
Roblox Creator Hub · Custom commands