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 |
|
|
|
| 09 Aug 2011 10:11 AM |
| GO TO SCRIPTING HELPERS AND LEARN HOW TO SCRIPT OR USE A FM |
|
|
| Report Abuse |
|
|
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 |
|
|
|
| 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 |
|
|
| |
|
rmbroblox
|
  |
| Joined: 02 Apr 2009 |
| Total Posts: 346 |
|
| |
|
|
| 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
|
  |
| 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
|
  |
| Joined: 02 Apr 2009 |
| Total Posts: 346 |
|
|
| 14 Aug 2011 06:13 AM |
| Thanks For All The Scripts |
|
|
| Report Abuse |
|
|