generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: Voice activated door

Previous Thread :: Next Thread 
42mg is not online. 42mg
Joined: 17 Jun 2011
Total Posts: 4853
03 Jan 2013 01:31 PM
[ Content Deleted ]
Report Abuse
MeBilly8440 is not online. MeBilly8440
Joined: 27 Jul 2009
Total Posts: 2783
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 is not online. 42mg
Joined: 17 Jun 2011
Total Posts: 4853
03 Jan 2013 01:49 PM
[ Content Deleted ]
Report Abuse
werts150 is not online. 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
MeBilly8440 is not online. MeBilly8440
Joined: 27 Jul 2009
Total Posts: 2783
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
CeaselessSoul is not online. CeaselessSoul
Joined: 03 Jul 2012
Total Posts: 7506
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
CeaselessSoul is not online. CeaselessSoul
Joined: 03 Jul 2012
Total Posts: 7506
03 Jan 2013 01:56 PM
Billy, you early poster...

- What have the mods come to nowadays? -
Report Abuse
MeBilly8440 is not online. MeBilly8440
Joined: 27 Jul 2009
Total Posts: 2783
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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image