onCollide = function(player, object)
for key, value in pairs(objects) do
if value.texture == 'lockedbox' then
objects[key].collidable = true
objects[key].solid = false
objects[key].consumable = true
end
end
end