If your doors hang from a top rail and do not have a track on the floor then you need to either replace or tighten down the floor guides.
How to do sliding closet doors.
See if the screws holding the guides down need tightening to be more secure.
Sliding closet doors are loose and swing in and out.
Then latch the wheels on top of the door onto the back runner of the top track.
Most sliding closet doors only have brackets at the top.
Hold the door so the top is tilted backward.
To take the door out you ll lift it out from the bottom track.
If you don t have an existing soffit in your room on which to hang your doors you can build one by connecting two 2x6s to your desired length.
Unscrew the brackets on the top of your doors to loosen them.
Sliding mirror doors are extremely popular options for bedroom closets.
The first thing to check is what type of rail system your sliding closet door uses in order for it to slide.
Unfortunately sliding doors tend to use plastic rollers which bend and break easily.
Insert the wheels on the top of the first door into the top track.
To attach them to your wall pre drill for 4 screws about every eight inches along the edge and place the screws loosely inside the holes.
The bottom is usually just a wheel that follows along a track.
Also mirror doors are a functional attractive way to improve a wardrobe area without taking up wall space.