-- Randomized GUI Hub Script local player = game.Players.LocalPlayer local screenGui = Instance.new("ScreenGui") screenGui.Parent = player.PlayerGui -- Random hub name local hubName = "Mystic Hub" -- You can rename this to anything. -- Main Frame local mainFrame = Instance.new("Frame") mainFrame.Size = UDim2.new(0, 400, 0, 500) mainFrame.Position = UDim2.new(0.5, -200, 0.5, -250) mainFrame.BackgroundColor3 = Color3.fromRGB(0, 150, 200) mainFrame.Visible = false mainFrame.Parent = screenGui local isOpen = false -- Open/Close Button local openCloseButton = Instance.new("TextButton") openCloseButton.Size = UDim2.new(0, 200, 0, 50) openCloseButton.Position = UDim2.new(0.5, -100, 0.9, 0) openCloseButton.BackgroundColor3 = Color3.fromRGB(255, 255, 255) openCloseButton.Text = hubName .. " - Open/Close" openCloseButton.Parent = screenGui openCloseButton.MouseButton1Click:Connect(function() isOpen = not isOpen mainFrame.Visible = isOpen end) -- Functions local function teleportRandomly() local randomPosition = Vector3.new(math.random(-100, 100), math.random(5, 50), math.random(-100, 100)) if player.Character and player.Character:FindFirstChild("HumanoidRootPart") then player.Character.HumanoidRootPart.CFrame = CFrame.new(randomPosition) end end local function changeBackgroundColor() local randomColor = Color3.fromRGB(math.random(0, 255), math.random(0, 255), math.random(0, 255)) mainFrame.BackgroundColor3 = randomColor end local function spawnRandomPart() local part = Instance.new("Part") part.Size = Vector3.new(5, 5, 5) part.Position = Vector3.new(math.random(-50, 50), 10, math.random(-50, 50)) part.Color = Color3.fromRGB(math.random(0, 255), math.random(0, 255), math.random(0, 255)) part.Anchored = true part.Parent = workspace end local function toggleNightVision() local lighting = game:GetService("Lighting") lighting.Brightness = lighting.Brightness == 2 and 10 or 2 end local function increaseWalkSpeed() if player.Character and player.Character:FindFirstChild("Humanoid") then player.Character.Humanoid.WalkSpeed = player.Character.Humanoid.WalkSpeed + 20 end end local function resetWalkSpeed() if player.Character and player.Character:FindFirstChild("Humanoid") then player.Character.Humanoid.WalkSpeed = 16 end end -- Buttons local buttonNames = { {"Teleport Randomly", teleportRandomly}, {"Change Background", changeBackgroundColor}, {"Spawn Random Part", spawnRandomPart}, {"Toggle Night Vision", toggleNightVision}, {"Increase Speed", increaseWalkSpeed}, {"Reset Speed", resetWalkSpeed} } for i, data in ipairs(buttonNames) do local button = Instance.new("TextButton") button.Size = UDim2.new(0, 300, 0, 50) button.Position = UDim2.new(0.5, -150, 0, (i - 1) * 60) button.BackgroundColor3 = Color3.fromRGB(255, 255, 255) button.Text = data[1] button.Parent = mainFrame button.MouseButton1Click:Connect(data[2]) end -- Allow moving the GUI mainFrame.Active = true mainFrame.Draggable = true