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
8 years ago

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

game.Players.PlayerAdded:connect(function(Player)
    Player.Chatted:connect(function(Message)
    local msg = Instance.new("Message", game.Workspace)
        msg(Message)
    end)
end)

1 answer

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

Answer this question