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

How to make a script start when player says something?

Asked by 11 years ago

How to make a script run whenever the player says for example: "on".

1 answer

Log in to vote
1
Answered by 11 years ago
1game.Players.PlayerAdded:connect(function(plr)
2    plr.Chatted:connect(function(text)
3        if text == "on" then
4            print("its ont")
5        end
6    end)
7end)
Ad

Answer this question