How would I make something like this?
If the server detects a player chats, it prints out whatever the player says. From a server script.
Any help would be appreciated
How would I make something like this?
If the server detects a player chats, it prints out whatever the player says. From a server script.
Any help would be appreciated
You can do this by using “Chatted” event. But first you need to get the players, so to do that you need to use “PlayerAdded” event.
game.Players.PlayerAdded:Connect(function(plr)
plr.Chatted:Connect(function(msg)
print(msg)
end
end)
Would this work for every player?
It works, but do you know how to make it so you can get the TextLabel that appears inside of the Chat UI instead of a string value?
it should work for people who joined.
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.