Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Opening door with a word?

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?

1 comment

0

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.

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.