How to make a script run whenever the player says for example: "on".
1 | game.Players.PlayerAdded:connect( function (plr) |
2 | plr.Chatted:connect( function (text) |
3 | if text = = "on" then |
4 | print ( "its ont" ) |
5 | end |
6 | end ) |
7 | end ) |