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 » Building Helpers
Home Search
 

Re: How to make a Door That Opens and Shuts?

Previous Thread :: Next Thread 
rmbroblox is not online. rmbroblox
Joined: 02 Apr 2009
Total Posts: 346
09 Aug 2011 10:01 AM
I want to know how to make a door that you click and it opens and after a time of around 10 seconds shuts again, Please can you help me.
Report Abuse
porsche513 is not online. porsche513
Joined: 19 Mar 2010
Total Posts: 104
09 Aug 2011 10:11 AM
GO TO SCRIPTING HELPERS AND LEARN HOW TO SCRIPT OR USE A FM
Report Abuse
rmbroblox is not online. rmbroblox
Joined: 02 Apr 2009
Total Posts: 346
09 Aug 2011 10:18 AM
kk I pressed the wrong forum thanks for the help (i wont use a free model)
Report Abuse
demonskul777 is not online. demonskul777
Joined: 28 May 2010
Total Posts: 3716
09 Aug 2011 10:21 AM
Well i should say go to scripting helpers but well i'm going to give it

debounce = true
function onClicked()
if debounce then
script.Parent.Transparency = 1
script.Parent.CanCollide = false
else
script.Parent.Transparency = 0
script.Parent.CanCollide = true
end
end
script.Parent.ClickDetector.MouseClick:connect(onClicked)


local function onClicked()
if debounce then
debounce = false
else
debounce = true
end
end
script.Parent.ClickDetector.MouseClick:connect(onClicked)

That's the script if you put it in the door use this script if you put it in a button



door = script.Parent.Parent.Door
debounce = true
function onClicked()
if debounce then
door.Transparency = 1
door.CanCollide = false
script.Parent.BrickColor = BrickColor.new("Bright red")
else
door.Transparency = 0
door.CanCollide = true
script.Parent.BrickColor = BrickColor.new("Bright green")
end
end
script.Parent.ClickDetector.MouseClick:connect(onClicked)


local function onClicked()
if debounce then
debounce = false
else
debounce = true
end
end
script.Parent.ClickDetector.MouseClick:connect(onClicked)

Report Abuse
porsche513 is not online. porsche513
Joined: 19 Mar 2010
Total Posts: 104
09 Aug 2011 10:22 AM
ya nither would i
Report Abuse
rmbroblox is not online. rmbroblox
Joined: 02 Apr 2009
Total Posts: 346
12 Aug 2011 04:48 AM
Thanks for the script.
Report Abuse
builderman1171 is not online. builderman1171
Joined: 27 Mar 2010
Total Posts: 1595
12 Aug 2011 08:27 AM
Here: You have to sue bodygyro that will make the door move into the same place, but when someone walk/leans on it the doors bodygyro on't be enough to counter-react, I might setone up for you, PM me for a price your willing to offer (In Robux)
Report Abuse
MXrcr20 is not online. MXrcr20
Joined: 01 Oct 2008
Total Posts: 2644
12 Aug 2011 08:30 AM
It really isn't that hard... Anyone can make a BodyGyro door. I would do it for free.

~If at first you don't succeed, skydiving is not for you.
Report Abuse
rmbroblox is not online. rmbroblox
Joined: 02 Apr 2009
Total Posts: 346
14 Aug 2011 06:13 AM
Thanks For All The Scripts
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Building 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