-- Random GUI Chaos (100 random elements) local gui = Instance.new("ScreenGui") gui.Name = "ChaosGUI" gui.ResetOnSpawn = false gui.IgnoreGuiInset = true gui.Parent = game.CoreGui -- List of UI types to randomly pick from local uiTypes = {"TextButton", "TextLabel", "TextBox"} -- Random color generator local function randomColor() return Color3.fromRGB(math.random(0,255), math.random(0,255), math.random(0,255)) end -- Random text generator local function randomText() local chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890!@#$%^&*" local len = math.random(5, 12) local str = "" for i = 1, len do str = str .. chars:sub(math.random(1, #chars), math.random(1, #chars)) end return str end -- Create 100 random UI elements for i = 1, 100 do local uiType = uiTypes[math.random(1, #uiTypes)] local element = Instance.new(uiType) element.Size = UDim2.new(0, math.random(40, 100), 0, math.random(20, 60)) element.Position = UDim2.new(0, math.random(0, 800), 0, math.random(0, 500)) element.BackgroundColor3 = randomColor() element.TextColor3 = randomColor() element.Text = randomText() element.Font = Enum.Font.SourceSans element.TextSize = 14 element.Parent = gui if uiType == "TextBox" then element.ClearTextOnFocus = false end -- Optional: Make some buttons do random actions if uiType == "TextButton" then element.MouseButton1Click:Connect(function() element.Text = randomText() element.BackgroundColor3 = randomColor() end) end end