RobloxScripterAI
Discord ↗
Link Copied to Clipboard
×
"is there a better way to do this, if so please fix"
-- Yes, there is a better way to do this. Instead of clearing all children, you can selectively remove only the GUI elements you want to remove. Here's how you can do it. for _, gui in pairs(player.PlayerGui:GetChildren()) do if gui:IsA('ScreenGui') then gui:Destroy() end end