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

How would I script an automatically sliding door? [closed]

Asked by 8 years ago

I am trying to build a door that automatically slides open and closed. It's going to look like a sliding door you'd see at a supermarket.(two doors that slide away from each other. If you need more detail, look at this and imagine that a bracket= a door. Closed: [] Open: [ <- -> ]) When I tried to do it I ended up clueless. Any help?

Closed as Not Constructive by Link150, User#11440, Scootakip, and evaera

This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.

Why was this question closed?

2 answers

Log in to vote
0
Answered by 8 years ago

What I would do is out and invisible brick in both sides of the sliding door and when someone touches the brick it would do a for loop

For i = 0, 100, 1 do game.Workspace.slidingdoor1.Position.X = i End

Do the same for the other panel but in another function other wise one door will open and the other will wait for that one to open

Ad
Log in to vote
0
Answered by 8 years ago

I would do exactly what Kurokku said,

What I would do is out and invisible brick in both sides of the sliding door and when someone touches the brick it would do a for loop

For i = 0, 100, 1 do game.Workspace.slidingdoor1.Position.X = i End

Do the same for the other panel but in another function other wise one door will open and the other will wait for that one to open