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

Chatted event help?

Asked by
FiredDusk 1466 Moderation Voter
9 years ago

I want when a players says something, the message comes up w/whatever they have said.

1game.Players.PlayerAdded:connect(function(Player)
2    Player.Chatted:connect(function(Message)
3    local msg = Instance.new("Message", game.Workspace)
4        msg(Message)
5    end)
6end)

1 answer

Log in to vote
1
Answered by 9 years ago
1game.Players.PlayerAdded:connect(function(Player)
2    Player.Chatted:connect(function(Message)
3        local Msg = Instance.new("Message", game.Workspace)
4        Msg.Text = Message
5    end)
6end)
Ad

Answer this question