Files

2 lines
281 B
Luau

local n = 0 for _, g in game.Players.LocalPlayer.PlayerGui:GetChildren() do if g:IsA("ScreenGui") and g.Name ~= "OrnamentCraftGui" and g.Enabled and g:FindFirstChildWhichIsA("GuiObject") then n += 1 end end game.Players.LocalPlayer.PlayerGui.RewardsGui.Enabled = false return n