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

How to move a part when someone says the keyword?

Asked by 4 years ago

I'm making a game and I want to make a secret area that only people who know the keyword and can say it in chat, how do I move a part when someone says something?

1 answer

Log in to vote
0
Answered by 4 years ago
game.Players.PlayerAdded:Connect(function(player)
    player.Chatted:Connect(function(message)
        if message == "yourword" then
            -- Put your code here
        end
    end)
end)
Ad

Answer this question