johnf78
|
  |
| Joined: 24 Jan 2015 |
| Total Posts: 2035 |
|
|
| 25 Sep 2016 04:57 PM |
I want to make a secret door.. but I can't find out how to make the door close back up over time! any way you guys could give me some pointers?
The answer is 42 |
|
|
| Report Abuse |
|
|
iYzarky
|
  |
| Joined: 01 Jun 2009 |
| Total Posts: 1271 |
|
|
| 25 Sep 2016 05:42 PM |
Door = script.Parent
Door.Transparency = .7 Door.CanCollided = false --might've spelled "CanCollided" wrong
wait(20) --change to how much seconds yuh want
Door.Transparency = 0 Door.CanCollided = true -- once again, might be spelled wrong
Cookiez |
|
|
| Report Abuse |
|
|
iYzarky
|
  |
| Joined: 01 Jun 2009 |
| Total Posts: 1271 |
|
|
| 25 Sep 2016 05:43 PM |
That wouldn't work if your place is filtering enabled btw, but pretty sure your place isn't, so you should be fine.
Cookiez |
|
|
| Report Abuse |
|
|
DevObject
|
  |
| Joined: 28 Jul 2011 |
| Total Posts: 7048 |
|
|
| 25 Sep 2016 05:48 PM |
Add a ClickDetector in the door
part = script.Parent
function OnClicked() part.CanCollide = false part.Transparency = 0.7 wait(1) --- The time it takes to close part.CanCollide = true part.Transparency = 0 end
script.Parent.ClickDetector.MouseClick:connect(OnClicked)
Lol'd >Add 5k posts, R.I.P. ROBLOXBaseWarsFPS1 |
|
|
| Report Abuse |
|
|