Darth Vader tortured Luke's friends so that Luke, sensing their pain, would come to Cloud City. That's the trap. Vader needed a way to bring Luke to the Emperor so he decided to do carbon freezing. To ensure Luke would survive, the freezing was tested on Han Solo before Luke arrived, again this is before Luke arrived. Leia, Chewie, C-3PO, and Lando were all brought to the carbon freezing chamber when it was tested on Han. At this point Luke is not there yet. We even hear an imperial say during Han's freezing
OFFICER: Lord Vader, ship approaching - x-wing class
VADER: Good. Monitor Skywalker and allow him to land.
So Luke wasn't even there yet. While Luke was busy landing, everyone left the freezing chamber.
VADER: He's all yours, bounty hunter. Reset the chamber for Skywalker.
OFFICER: Skywalker has just landed, Lord.
VADER: Reset the chamber for Skywalker. ..Good. See to it that he finds his way in here. Calrissian, take the Princess and the Wookiee to my ship.
So everyone leaves the chamber but Vader, who waits in the chamber with the lights dimmed. Leia and Chewie leave with Lando (who later decides to free them instead of taking them to Vader's ship like Vader ordered). SoThere are two main groups leaving; Leia and, Chewie leave with, and Lando etc. in one group, Fett and the now frozen Han Solo in another. Fett was on his waytaking Han to Fett'shis ship when Luke, who had finally landed and entered the city, ran intocatches a glimpse of them. When Luke tries to follow them, Fett fires a few shots and they get away. Lando's group (with Leia and Chewie) are close by and hear the shots. Leia shouts to Luke that it's a trap. They also get away and Luke findsends up finding his way to the carbon freezing chamber.
So, by the time Luke gets to the chamber, everyone has gone but Vader. Everyone certainly had enough time to leave the chamber while Luke was landing and disembarking.