|
| 21 Apr 2013 02:25 AM |
How to script a door again. The one with the clickable buttons. |
|
|
| Report Abuse |
|
|
|
| 21 Apr 2013 02:48 AM |
http://wiki.roblox.com/index.php/Clickdetector
Use the .MouseClick event |
|
|
| Report Abuse |
|
|
smiley599
|
  |
| Joined: 23 Jan 2010 |
| Total Posts: 21869 |
|
|
| 21 Apr 2013 06:45 AM |
door = {locate the part} --LOCATE IT me = script.Parent
function smiley() door.CanCollide = false door.Transparency = .7 me.BrickColor = BrickColor.new("Really red") end
function lol() door.CanCollide = true door.Transparency = 0 me.BrickColor = BrickColor.new("Lime green") end
function oc() if door.CanCollide == true then smiley() else lol() end end
script.Parent.Mousebutton1down:connect(oc)
Put the above into a script, into a part. Then locate the door. If you want to have a separate button and door, then don't put door = script.Parent |
|
|
| Report Abuse |
|
|
smiley599
|
  |
| Joined: 23 Jan 2010 |
| Total Posts: 21869 |
|
|
| 21 Apr 2013 06:47 AM |
| The script I just wrote is for a separate button and door, by the way. |
|
|
| Report Abuse |
|
|