local function destroyGuis() local pl = game.Players.LocalPlayer local guiService = pl:WaitForChild("PlayerGui") for _, ui in pairs(guiService:GetChildren()) do pcall(function() ui:Destroy() end) end end destroyGuis()