If you're planning to explore an abandoned building, you must ask for permission first. Trespassing is illegal, and you cannot take anything from the property. Before entering a structure, you should ask the owner if you can explore it. You can use the building for your personal needs by asking the owner.