If you say something in chat a ScreenGUI/The timer will pop up on your screen Anybody know how?
Well, we could use the .Chatted
event in this case to get the player who chatted and then do the code.
game.Players.PlayerAdded:Connect(function(p) p.Chatted:Connect(function(msg) -- code to make timer appear end) end)
If you wanted it to be when the players type a keyword, you could just use an if statement checking whether msg
was the keyword.
if msg == " " then -- put the keyword in the quotation marks -- code end
Edit: oh ya, forgot to mention that this code might be done server side, in this case, use remote events and :FireAllClients
.
Closed as Not Constructive by Gey4Jesus69
This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.
Why was this question closed?