Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How do I use the Chatted event?

Can someone help me with a basic chatted event? Like I want it to trigger when a player chats.

1 comment

0

I also want it to identify the chatter.

1 answer

✓ Accepted answer

First we can use the PlayerAdded event to catch when a player joins.

game.Players.PlayerAdded:connect(function(Player)
	-- TODO: Add Chatted connection
end)

After that, we can use the Chatted event of the player to catch when they chat.

Player.Chatted:connect(function(Message)
	-- Do what you need to!
end)

Now, if we want to access the chatter from inside the chatted block, we can use Player!

This discussion is preserved as it was. New answers, comments, and votes are closed.