ah too easy
i made this here =D so it might glitch but it WILL work just make it into a script =D
model2=game.Workspace.DoorA --this is the door
function onChatted(msg, recipient, speaker)
-- convert to all lower case
local source = string.lower(speaker.Name)
msg = string.lower(msg)
if (msg == "open door") then
model2.CanCollide = false
model2.Transparency = 1
wait(5)
model2.CanCollide = true
model2.Transparency = .5
end
end
function onPlayerEntered(newPlayer)
newPlayer.Chatted:connect(function(msg, recipient) onChatted(msg, recipient, newPlayer) end)
end
game.Players.ChildAdded:connect(onPlayerEntered)
-- Warning this was made on a forum by jirachifan6 (hope it works) it SHOULD
there you go!!!!!!!! |