The Developer Hub is now deprecated and information on this page may no longer be accurate. Instead, you should go to our new and improved documentation. You can also learn more about the future of documentation.
Collapse Sidebar


This function makes the Players/LocalPlayer chat the given message, which will only be viewable by users on the same team. Since this item is protected, attempting to use it in a Script or LocalScript will cause an error.

This function is used internally when the Players/LocalPlayer sends a message to their team.

If you would like to create a custom chat system where you can define custom functions such as these, take a look at the tutorial here.


Name Type Default Description

The message being chatted.


Return Type Summary

No return.

Code Samples

Sending Team Chat

This example demonstrates that the Players/TeamChat function executes without error if using the Command Bar or a Plugin and errors if executed in a LocalScript.

When executed in the Command Bar, the function sends the specified message to all players on the same Team as the Players/LocalPlayer.