I want to make a game that is the same idea as "Guess That Character" or something like that but I can't figure out how to do it. Can someone help me, please?
COMMUNITY QUESTION
Opening door with a word?
1 answer
Something like this should work if you put it in a part and name that part after the character the player has to guess.
game.Players.PlayerAdded:Connect(function(plr)
plr.Chatted:Connect(function(msg)
if msg == script.Parent.Name then
script.Parent.CanCollide = false
wait(1)
script.Parent.CanCollide = true
end
end)
end)
You can also use collision filtering to make it so that only the player who said the name can pass through for the time its open.
This discussion is preserved as it was. New answers, comments, and votes are closed.

1 comment
http://wiki.roblox.com/index.php?title=API:Class/Player/Chatted, Use this to get what the player is chatting, accompany that with suitable events. If you still can't decide what to do , I recommend learning off youtube.