Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How Do You Script A Door?

Asked by 11 years ago

Could Someone Please Help Me Script A Door I Need It For A Game I'm Working On.

2 answers

Log in to vote
0
Answered by 11 years ago

Hi, This is the script and you need to put a click detector in, Please give me reputation!

01doorIsOpen = false
02 
03door = script.Parent.Door -- change this to where your door is located.
04 
05button = script.Parent.Button -- change this to where your button is located.
06 
07 
08 
09function OpenOrCloseDoor()
10 
11    if doorIsClosed == true then
12 
13        --open the door
14 
15        door.CanCollide = true
View all 28 lines...
Ad
Log in to vote
1
Answered by
lokkut 20
11 years ago

You should probably have an attempt first. Not many people want to help people that haven't even bothered.

Answer this question