for i=0.1,script.Parent.Parent.Door.Size.y do
script.Parent.Parent.Door.CFrame = script.Parent.Parent.Door.CFrame*CFrame.new(0,-1,0)
wait()
end
COMMUNITY QUESTION
How do I make this door shut slower? And I need help with CFrame! D:
1 answer
First of all, i would highly recommend you making variables for you code. Like local door = script.Parent.Parent.Door
Also, you can make the door close sections at a time and increase the wait. I would also recommend putting this into a function if you use it many times in your code
This discussion is preserved as it was. New answers, comments, and votes are closed.

4 comments
To make the door shut slower, you can either edit the amount that you move the door each time the loop runs or extend the wait in between each run through the loop.
And why make the second number for the for loop the door's Y?
That is so It moves the size of its self. But I just copied it of someone and TRIED to edit it to my desire, but It didn't really work.. :(
As Red said, just edit the wait.