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 10 years ago

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

1 answer

Log in to vote
1
Answered by 10 years ago
game.Players.PlayerAdded:connect(function(plr)
    plr.Chatted:connect(function(text)
        if text == "on" then
            print("its ont")
        end
    end)
end)
Ad

Answer this question