local LD = require("design.LevelDesignLibrary")
function OnScriptLoaded(level, obj)
  local chestScript
  for _, x in pairs(obj.Descendants) do
    if string.lower(x:GetName()) == "chestscript" and x.LuaObjectScript then
      chestScript = x
      break
    end
  end
  if chestScript then
    LD.ForwardUserFunctionToObject(obj, chestScript)
  end
  game.SubObject.Sleep(obj)
  game.SubObject.SetForgetOnCheckpoint(obj)
end
