@pinkyviolet01 When you say attached - do you mean you just find them resting there, or that it's physically attached like a smith machine?
Why shouldn't you take the bar? Ideally there's a lifting platform (usually near the squat rack in most gyms) but if not take the bar to the nearest clear...