I want to make a sliding door for my next hotel on Roblox, and I have found a very smooth sliding door on this game. I am not worried about the design; I just need to know how you can script a smooth motion like that. Plus, it needs to reopen while it is closing (just like in real life).
Can anybody help?
Also, I have done TweenCFrame before, but when the player walks up to it, it ends up going on top of the player's head if the collision is on.

5 comments
This is my first question, so I will add more detail if anyone needs it.
You could try using for loops
I did that, but to reopen while it is closing is very hard.
lerp?
Use TweenService