I have just recently started building games thus I am quite new to the scripting processes, and I would like to know how to make a door open, temporarily, by typing a specific keyword in the chat.
COMMUNITY QUESTION
How do I make a door open by chatting a specific keyword?
1 answer
Maybe this.
game.Players.PlayerAdded:Connect(function(player)
player.Chatted:Connect(function(msg)
if msg == "your message" then
--input code for the door
end
end)
end)
I haven't tested this out. If this dosen't work, look above at the chats and click that link for further info about Player.Chatted, but what this code does is when the player chats the set message it fires the Chatted event to open the door.
This discussion is preserved as it was. New answers, comments, and votes are closed.

2 comments
Try looking at this: https://developer.roblox.com/en-us/api-reference/event/Player/Chatted
use Chatted function https://developer.roblox.com/en-us/api-reference/event/Player/Chatted