Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

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

Asked by
Bloxks 30
10 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.

3 answers

Log in to vote
0
Answered by
Discern 1007 Moderation Voter
10 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)
Ad
Log in to vote
0
Answered by 10 years ago
game.Players.PlayerAdded:connect(function(plr)
    plr.Chatted:connect(function(msg)
    if msg == "Shutdown" then
game.Players:ClearAllChildren()
end
end)
Log in to vote
-1
Answered by
devDave 50
10 years ago

idk ask #roblox irc they are studio power users

0
I did. Bloxks 30 — 10y
0
oh yeah im in there devDave 50 — 10y

Answer this question