2

# 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.

0
I also want it to identify the chatter. wattleman 90 — 7y

3
Everesty 1001
7 years ago

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

game.Players.PlayerAdded:connect(function(Player)

Player.Chatted:connect(function(Message)

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