-- Create the GUI Hub local player = game.Players.LocalPlayer local screenGui = Instance.new("ScreenGui") screenGui.Name = "RandomHubPro" screenGui.Parent = player.PlayerGui -- Main Frame local mainFrame = Instance.new("Frame") mainFrame.Size = UDim2.new(0, 300, 0, 400) mainFrame.Position = UDim2.new(0.5, -150, 0.5, -200) mainFrame.BackgroundColor3 = Color3.fromRGB(40, 40, 40) mainFrame.BorderSizePixel = 3 mainFrame.BorderColor3 = Color3.fromRGB(0, 200, 200) mainFrame.Visible = false mainFrame.Parent = screenGui -- Draggable Frame local dragging, dragStart, startPos mainFrame.InputBegan:Connect(function(input) if input.UserInputType == Enum.UserInputType.MouseButton1 then dragging = true dragStart = input.Position startPos = mainFrame.Position input.Changed:Connect(function() if input.UserInputState == Enum.UserInputState.End then dragging = false end end) end end) mainFrame.InputChanged:Connect(function(input) if dragging and input.UserInputType == Enum.UserInputType.MouseMovement then local delta = input.Position - dragStart mainFrame.Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y) end end) -- Open/Close Button local openButton = Instance.new("TextButton") openButton.Size = UDim2.new(0, 200, 0, 50) openButton.Position = UDim2.new(0.5, -100, 0.9, 0) openButton.BackgroundColor3 = Color3.fromRGB(0, 200, 200) openButton.Text = "Open RandomHub Pro" openButton.Parent = screenGui openButton.MouseButton1Click:Connect(function() mainFrame.Visible = not mainFrame.Visible end) -- Random Scripts local scripts = { {"Infinite Health", function() player.Character.Humanoid.MaxHealth = math.huge player.Character.Humanoid.Health = math.huge end}, {"Flashbang Effect", function() local flash = Instance.new("Part") flash.Size = Vector3.new(10, 10, 10) flash.Material = Enum.Material.Neon flash.BrickColor = BrickColor.new("Bright yellow") flash.Position = player.Character.HumanoidRootPart.Position flash.Parent = workspace game:GetService("Debris"):AddItem(flash, 3) end}, {"Spin Player", function() while wait(0.1) do player.Character:SetPrimaryPartCFrame(player.Character.HumanoidRootPart.CFrame * CFrame.Angles(0, math.rad(30), 0)) end end}, {"Explode Nearby", function() local explosion = Instance.new("Explosion") explosion.Position = player.Character.HumanoidRootPart.Position explosion.BlastRadius = 20 explosion.BlastPressure = 50000 explosion.Parent = workspace end}, {"Change Skybox", function() local sky = Instance.new("Sky", game.Lighting) sky.SkyboxBk = "rbxassetid://12188964843" -- Replace with a random skybox ID sky.SkyboxDn = "rbxassetid://12188964843" sky.SkyboxFt = "rbxassetid://12188964843" sky.SkyboxLf = "rbxassetid://12188964843" sky.SkyboxRt = "rbxassetid://12188964843" sky.SkyboxUp = "rbxassetid://12188964843" end} } -- Add Buttons for Scripts for i, scriptData in ipairs(scripts) do local button = Instance.new("TextButton") button.Size = UDim2.new(0, 250, 0, 40) button.Position = UDim2.new(0.5, -125, 0, (i - 1) * 50 + 10) button.BackgroundColor3 = Color3.fromRGB(0, 100, 200) button.Text = scriptData[1] button.Parent = mainFrame button.MouseButton1Click:Connect(scriptData[2]) end