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

If you say something in chat a ScreenGUI/A timer will pop up on your screen Anybody know how? [closed]

Asked by 4 years ago
Edited 4 years ago

If you say something in chat a ScreenGUI/The timer will pop up on your screen Anybody know how?

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?

1 answer

Log in to vote
0
Answered by 4 years ago
Edited 4 years ago

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.

Ad