I am constructing a lab and I have a big vault door that I want to open and close with the push of a button. I tried looking at other scripts but they either apply to single-part doors or they break upon me attempting to edit it. What should I do?
COMMUNITY QUESTION
How do I make my door move?
2 answers
Change the Rotation of the door.
Note that you have to use Vector3.new when changing the rotation of parts.
For example:
game.Workspace.ExamplePart.Rotation = Vector3.new(NumberHere,NumberHere,NumberHere)
If you want it to go up or down, simply have a variable with an if function to test if the button is pushed, then have a while <var> is true doto change the part's position for it to change. If there is multiple parts, reverse the script for the other part.
Know that if this doesn't work, I'm not THAT good at scripting, but I thought this would help :)
This discussion is preserved as it was. New answers, comments, and votes are closed.

1 comment
You could out the door in a model, define the actual door as the Primary Part, and use either MoveTo or CFrames to open and close it.