42mg
|
  |
| Joined: 17 Jun 2011 |
| Total Posts: 4853 |
|
| |
|
|
| 03 Jan 2013 01:40 PM |
I threw this together without testing it, but it should work.
local door = script.Parent -- Where the door is local code = "open" -- What the player has to say to open the door
game.Players.PlayerAdded:connect(function(plr) -- Do this every time a player joins plr.Chatted:connect(function(msg) -- Do this every time the player talks if (msg:lower() == code:lower()) then -- Check if its the code (not case sensitive) door.CanCollide = false -- Make it so they can walk through the door door.Transparency = .8 -- Make it so they can see through the door wait(2) -- Wait two seconds door.CanCollide = true -- Make it so they cannot walk through the door door.Transparency = 0 -- Make it so they cannot see through the door end end) end) |
|
|
| Report Abuse |
|
|
42mg
|
  |
| Joined: 17 Jun 2011 |
| Total Posts: 4853 |
|
| |
|
werts150
|
  |
| Joined: 11 Nov 2012 |
| Total Posts: 1450 |
|
|
| 03 Jan 2013 01:51 PM |
| Get a quiz door from free models, and change the code in it. |
|
|
| Report Abuse |
|
|
|
| 03 Jan 2013 01:54 PM |
| Where did you put the script? It works fine for me. The script should be inside the door you want to open when the player says "code" |
|
|
| Report Abuse |
|
|
|
| 03 Jan 2013 01:55 PM |
Billy, he might of put that in Workspace... Maybe tell him where to put it(the door)?
- What have the mods come to nowadays? - |
|
|
| Report Abuse |
|
|
|
| 03 Jan 2013 01:56 PM |
Billy, you early poster...
- What have the mods come to nowadays? - |
|
|
| Report Abuse |
|
|
|
| 03 Jan 2013 01:57 PM |
@CeaselessSoul
Yeah, I probably should have told him that. And Roblox really does need to update their foruming system so it tells you if someone has posted on the thread while you've been writing your post. |
|
|
| Report Abuse |
|
|