Weapon damage is rolled normally against objects. A common use of Strength is to break open doors and burst bonds. The DC for a Strength check needed to destroy the item in one action, rather than reducing it to zero hit points through a series of attacks. Immunities Inanimate objects are immune to critical hits. Objects are immune to subdual damage.
Animated objects are immune to critical hits because they are constructs.
Divide the damage by 2 before applying the object's hardness. Energy Attacks Objects take half damage from acid, fire, and lightning attacks. Divide the damage by 2 before applying the hardness. Sonic attacks deal full damage to objects. The DM may determine that certain weapons just can't deal damage effectively to certain objects.