local gui = Instance.new("ScreenGui") local frame = Instance.new("Frame") local title = Instance.new("TextLabel") local input = Instance.new("TextBox") local run = Instance.new("TextButton") local theme = Instance.new("TextButton") local close = Instance.new("TextButton") -- Parent GUI to CoreGui or PlayerGui pcall(function() gui.Parent = game:GetService("CoreGui") end) if not gui.Parent then gui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui") end gui.Name = "RequireGUI" -- Main Frame frame.Name = "Main" frame.Parent = gui frame.BackgroundColor3 = Color3.fromRGB(30,30,30) frame.Position = UDim2.new(0.3, 0, 0.3, 0) frame.Size = UDim2.new(0, 300, 0, 170) frame.Active = true frame.Draggable = true -- Title title.Name = "Title" title.Parent = frame title.BackgroundTransparency = 1 title.Size = UDim2.new(1, 0, 0, 30) title.Font = Enum.Font.SourceSansBold title.Text = "๐Ÿงช Require GUI" title.TextScaled = true title.TextColor3 = Color3.fromRGB(255, 255, 255) -- Input Box input.Name = "ModuleID" input.Parent = frame input.Position = UDim2.new(0.05, 0, 0.35, 0) input.Size = UDim2.new(0.9, 0, 0.25, 0) input.Font = Enum.Font.SourceSans input.Text = "Enter Module ID (e.g. 123456789)" input.TextScaled = true input.TextColor3 = Color3.fromRGB(255, 255, 255) input.BackgroundColor3 = Color3.fromRGB(50,50,50) -- Run Button run.Name = "Run" run.Parent = frame run.Position = UDim2.new(0.05, 0, 0.65, 0) run.Size = UDim2.new(0.9, 0, 0.2, 0) run.Text = "โ–ถ Run Require" run.Font = Enum.Font.SourceSansBold run.TextScaled = true run.BackgroundColor3 = Color3.fromRGB(0, 170, 0) run.TextColor3 = Color3.fromRGB(255, 255, 255) -- Theme Button theme.Name = "Theme" theme.Parent = frame theme.Position = UDim2.new(0, 5, 1, -25) theme.Size = UDim2.new(0, 100, 0, 20) theme.Text = "๐ŸŒ™ Light/Dark" theme.Font = Enum.Font.SourceSans theme.TextScaled = true theme.BackgroundColor3 = Color3.fromRGB(60,60,60) theme.TextColor3 = Color3.fromRGB(255,255,255) -- Close Button close.Name = "Close" close.Parent = frame close.Position = UDim2.new(1, -30, 0, 5) close.Size = UDim2.new(0, 25, 0, 25) close.Text = "X" close.Font = Enum.Font.SourceSansBold close.TextScaled = true close.BackgroundColor3 = Color3.fromRGB(170,0,0) close.TextColor3 = Color3.fromRGB(255,255,255) -- Theme Toggle Logic local dark = true theme.MouseButton1Click:Connect(function() dark = not dark frame.BackgroundColor3 = dark and Color3.fromRGB(30,30,30) or Color3.fromRGB(235,235,235) title.TextColor3 = dark and Color3.fromRGB(255,255,255) or Color3.fromRGB(0,0,0) input.BackgroundColor3 = dark and Color3.fromRGB(50,50,50) or Color3.fromRGB(255,255,255) input.TextColor3 = dark and Color3.fromRGB(255,255,255) or Color3.fromRGB(0,0,0) run.BackgroundColor3 = dark and Color3.fromRGB(0,170,0) or Color3.fromRGB(0,140,0) run.TextColor3 = Color3.fromRGB(255,255,255) end) -- Close Button close.MouseButton1Click:Connect(function() gui:Destroy() end) -- Require Execution run.MouseButton1Click:Connect(function() local id = tonumber(input.Text) if id then local s,e = pcall(function() require(id) end) if not s then warn("Require failed:", e) end end end)