Could Someone Please Help Me Script A Door I Need It For A Game I'm Working On.
Hi, This is the script and you need to put a click detector in, Please give me reputation!
01 | doorIsOpen = false |
02 |
03 | door = script.Parent.Door -- change this to where your door is located. |
04 |
05 | button = script.Parent.Button -- change this to where your button is located. |
06 |
07 |
08 |
09 | function OpenOrCloseDoor() |
10 |
11 | if doorIsClosed = = true then |
12 |
13 | --open the door |
14 |
15 | door.CanCollide = true |
You should probably have an attempt first. Not many people want to help people that haven't even bothered.