1for i,v in pairs(game.CoreGui:GetDescendants()) do2 if v.Name == "ScreenGui" then3 v:Destroy()4 end5 end