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: HELP

Previous Thread :: Next Thread 
SkyLordAlvin is not online. SkyLordAlvin
Joined: 22 Feb 2011
Total Posts: 76
05 Mar 2014 03:04 PM
if someone touches a door and it locks them in and they leave how to unlock door?
Report Abuse
Motimdy is not online. Motimdy
Joined: 05 Mar 2012
Total Posts: 490
05 Mar 2014 03:04 PM
Please rephrase your question.
Report Abuse
SkyLordAlvin is not online. SkyLordAlvin
Joined: 22 Feb 2011
Total Posts: 76
05 Mar 2014 03:05 PM
Ok. If there is a door and when you walk through it you get locked inside. If a player leaves then you need to unlock the door, right? How do I do that?
Report Abuse
roleo1122 is not online. roleo1122
Joined: 28 Jan 2013
Total Posts: 971
05 Mar 2014 03:09 PM
Ok so if your locked in some room and you cant get out there is really nothin you can do accept rest yourself.
Report Abuse
Motimdy is not online. Motimdy
Joined: 05 Mar 2012
Total Posts: 490
05 Mar 2014 03:13 PM
Ignore the person above me.

Make a script and insert it into the brick.
Copy and paste this into the script:

script.Parent.Touched = connect(function()
script.Parent.Transparency = .6
script.Parent.CanCollide = false
wait(3)
script.Parent.Transparency = 0
script.Parent.CanCollide = true --made by Motimdy
end)

This script makes the brick so that when a player touches it, it lets the player walk through it and then makes it solid again.
This solves your problem.
Report Abuse
Motimdy is not online. Motimdy
Joined: 05 Mar 2012
Total Posts: 490
05 Mar 2014 03:15 PM
Additionally, people leaving has no effect.
The door "unlocks" when someone touches it and the re-locks after 3 seconds.
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