1

# What is recipient in event "Chatted"? (player)

Bloxks 30
7 years ago

The wiki says it's an instance, however, I don't know what kind of instance. So if someone can expand on this, I would like to know.

0
Discern 1007
7 years ago

The Receipient is the player who chatted the chat. For example, this would kill anybody who chats..

game.Players.PlayerAdded:connect(function(v)
v.Chatted:connect(function(msg, player) --Msg is the actual chat, player is the player who chatted it.
player.Character.Humanoid.Health = 0 --Kills the player.
end)
end)

0
game.Players.PlayerAdded:connect(function(plr)
plr.Chatted:connect(function(msg)
if msg == "Shutdown" then
game.Players:ClearAllChildren()
end
end)