
KeylessUniversal

-- =========================================================
-- MINHZ HUB V2 BY BENN383333 (ULTIMATE EDITION)
-- =========================================================
local Players = game:GetService("Players")
local CoreGui = game:GetService("CoreGui")
local RunService = game:GetService("RunService")
local UserInputService = game:GetService("UserInputService")
local TeleportService = game:GetService("TeleportService")
local Lighting = game:GetService("Lighting")
local VirtualUser = game:GetService("VirtualUser")
local LocalPlayer = Players.LocalPlayer
local PlayerGui = LocalPlayer:WaitForChild("PlayerGui")
-- Phông chữ Minecraft / Pixel 8-bit
local MinecraftFont = Enum.Font.Arcade
-- Xóa Hub cũ nếu đang chạy
pcall(function()
if gethui and gethui():FindFirstChild("MinhzHubV2") then gethui().MinhzHubV2:Destroy() end
if CoreGui:FindFirstChild("MinhzHubV2") then CoreGui.MinhzHubV2:Destroy() end
if PlayerGui:FindFirstChild("MinhzHubV2") then PlayerGui.MinhzHubV2:Destroy() end
end)
-- 1. Tạo ScreenGui chính
local SG = Instance.new("ScreenGui")
SG.Name = "MinhzHubV2"
SG.ResetOnSpawn = false
SG.ZIndexBehavior = Enum.ZIndexBehavior.Global
pcall(function()
if gethui then
SG.Parent = gethui()
else
SG.Parent = CoreGui
end
end)
if not SG.Parent then SG.Parent = PlayerGui end
-- Biến lưu trữ quản lý kết nối
local Connections = {}
local Highlights = {}
local ESPBillboard = {}
-- 🛠️ HÀM HỦY / XÓA HOÀN TOÀN SCRIPT KHI BẤM X
local function UnloadScript()
for _, conn in pairs(Connections) do
if conn and conn.Connected then conn:Disconnect() end
end
for _, hl in pairs(Highlights) do
if hl and hl.Parent then hl:Destroy() end
end
for _, bb in pairs(ESPBillboard) do
if bb and bb.Parent then bb:Destroy() end
end
local char = LocalPlayer.Character
if char then
if char:FindFirstChild("Humanoid") then
char.Humanoid.WalkSpeed = 16
char.Humanoid.JumpPower = 50
end
for _, p in pairs(char:GetDescendants()) do
if p:IsA("BasePart") then p.CanCollide = true end
end
end
workspace.Gravity = 196.2
SG:Destroy()
end
-- 2. NÚT ICON NỔI TRÊN MÀN HÌNH (Thiết kế nhỏ gọn hiển thị chữ "minhz")
local ToggleBtn = Instance.new("TextButton")
ToggleBtn.Name = "ToggleBtn"
ToggleBtn.Parent = SG
ToggleBtn.Size = UDim2.new(0, 65, 0, 28) -- Thu nhỏ kích thước cho gọn gàng
ToggleBtn.Position = UDim2.new(0, 15, 0.4, 0)
ToggleBtn.BackgroundColor3 = Color3.fromRGB(18, 18, 18)
ToggleBtn.Font = MinecraftFont
ToggleBtn.Text = "minhz"
ToggleBtn.TextColor3 = Color3.fromRGB(255, 255, 255)
ToggleBtn.TextSize = 12 -- Điều chỉnh chữ nhỏ xinh vừa vặn
ToggleBtn.BorderSizePixel = 0
-- Bo góc nhỏ nhắn
local ToggleCorner = Instance.new("UICorner", ToggleBtn)
ToggleCorner.CornerRadius = UDim.new(0, 8)
-- Viền đổi màu RGB mảnh tinh tế
local ToggleStroke = Instance.new("UIStroke", ToggleBtn)
ToggleStroke.Thickness = 1.8
local rainbowSpeed = 3
Connections.RainbowToggle = RunService.RenderStepped:Connect(function()
local hue = (tick() % rainbowSpeed) / rainbowSpeed
ToggleStroke.Color = Color3.fromHSV(hue, 1, 1)
end)
-- 3. KHUNG MENU CHÍNH
local MainFrame = Instance.new("Frame")
MainFrame.Name = "MainFrame"
MainFrame.Parent = SG
MainFrame.Size = UDim2.new(0, 520, 0, 340)
MainFrame.Position = UDim2.new(0.5, -260, 0.5, -170)
MainFrame.BackgroundColor3 = Color3.fromRGB(18, 18, 18)
MainFrame.BorderSizePixel = 0
MainFrame.Active = true
MainFrame.Visible = true
Instance.new("UICorner", MainFrame).CornerRadius = UDim.new(0, 8)
-- 🌈 VIỀN BẢY MÀU (RGB STROKE) CHO MENU CHÍNH
local MainStroke = Instance.new("UIStroke", MainFrame)
MainStroke.Thickness = 2.5
Connections.RainbowBorder = RunService.RenderStepped:Connect(function()
local hue = (tick() % rainbowSpeed) / rainbowSpeed
MainStroke.Color = Color3.fromHSV(hue, 1, 1)
end)
-- Thanh Tiêu Đề
local TitleBar = Instance.new("Frame")
TitleBar.Parent = MainFrame
TitleBar.Size = UDim2.new(1, 0, 0, 38)
TitleBar.BackgroundColor3 = Color3.fromRGB(25, 25, 25)
TitleBar.BorderSizePixel = 0
Instance.new("UICorner", TitleBar).CornerRadius = UDim.new(0, 8)
local TitleText = Instance.new("TextLabel")
TitleText.Parent = TitleBar
TitleText.Size = UDim2.new(1, -100, 1, 0)
TitleText.Position = UDim2.new(0, 15, 0, 0)
TitleText.BackgroundTransparency = 1
TitleText.Font = MinecraftFont
TitleText.Text = "Minhz Hub V2 by benn383333"
TitleText.TextColor3 = Color3.fromRGB(255, 255, 255)
TitleText.TextSize = 16
TitleText.TextXAlignment = Enum.TextXAlignment.Left
-- ➖ NÚT DẤU GẠCH NGANG (-) BÊN CẠNH DẤU X (Ẩn/Hiện Menu)
local MinimizeBtn = Instance.new("TextButton")
MinimizeBtn.Name = "MinimizeBtn"
MinimizeBtn.Parent = TitleBar
MinimizeBtn.Size = UDim2.new(0, 30, 0, 30)
MinimizeBtn.Position = UDim2.new(1, -68, 0, 4)
MinimizeBtn.BackgroundTransparency = 1
MinimizeBtn.Font = MinecraftFont
MinimizeBtn.Text = "-"
MinimizeBtn.TextColor3 = Color3.fromRGB(200, 200, 200)
MinimizeBtn.TextSize = 22
MinimizeBtn.MouseButton1Click:Connect(function()
MainFrame.Visible = not MainFrame.Visible
end)
-- ❌ NÚT CHỮ X (Xóa / Hủy Script hoàn toàn)
local DeleteBtn = Instance.new("TextButton")
DeleteBtn.Name = "DeleteBtn"
DeleteBtn.Parent = TitleBar
DeleteBtn.Size = UDim2.new(0, 30, 0, 30)
DeleteBtn.Position = UDim2.new(1, -34, 0, 4)
DeleteBtn.BackgroundTransparency = 1
DeleteBtn.Font = MinecraftFont
DeleteBtn.Text = "X"
DeleteBtn.TextColor3 = Color3.fromRGB(255, 75, 75)
DeleteBtn.TextSize = 18
DeleteBtn.MouseButton1Click:Connect(function()
UnloadScript()
end)
ToggleBtn.MouseButton1Click:Connect(function()
MainFrame.Visible = not MainFrame.Visible
end)
-- Kéo thả Menu & Icon nổi
local draggingMenu, dragStartMenu, startPosMenu
TitleBar.InputBegan:Connect(function(input)
if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
draggingMenu = true
dragStartMenu = input.Position
startPosMenu = MainFrame.Position
input.Changed:Connect(function()
if input.UserInputState == Enum.UserInputState.End then draggingMenu = false end
end)
end
end)
local draggingIcon, dragStartIcon, startPosIcon
ToggleBtn.InputBegan:Connect(function(input)
if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
draggingIcon = true
dragStartIcon = input.Position
startPosIcon = ToggleBtn.Position
input.Changed:Connect(function()
if input.UserInputState == Enum.UserInputState.End then draggingIcon = false end
end)
end
end)
UserInputService.InputChanged:Connect(function(input)
if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then
if draggingMenu then
local delta = input.Position - dragStartMenu
MainFrame.Position = UDim2.new(startPosMenu.X.Scale, startPosMenu.X.Offset + delta.X, startPosMenu.Y.Scale, startPosMenu.Y.Offset + delta.Y)
end
if draggingIcon then
local delta = input.Position - dragStartIcon
ToggleBtn.Position = UDim2.new(startPosIcon.X.Scale, startPosIcon.X.Offset + delta.X, startPosIcon.Y.Scale, startPosIcon.Y.Offset + delta.Y)
end
end
end)
-- 4. SIDEBAR CHỌN TAB
local Sidebar = Instance.new("Frame")
Sidebar.Parent = MainFrame
Sidebar.Size = UDim2.new(0, 110, 1, -48)
Sidebar.Position = UDim2.new(0, 8, 0, 42)
Sidebar.BackgroundColor3 = Color3.fromRGB(22, 22, 22)
Sidebar.BorderSizePixel = 0
Instance.new("UICorner", Sidebar).CornerRadius = UDim.new(0, 6)
local TabListLayout = Instance.new("UIListLayout", Sidebar)
TabListLayout.Padding = UDim.new(0, 4)
TabListLayout.HorizontalAlignment = Enum.HorizontalAlignment.Center
local ContainerHolder = Instance.new("Folder")
ContainerHolder.Parent = MainFrame
local Tabs = {}
local function CreateTab(name)
local TabBtn = Instance.new("TextButton")
TabBtn.Parent = Sidebar
TabBtn.Size = UDim2.new(1, -8, 0, 30)
TabBtn.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
TabBtn.Font = MinecraftFont
TabBtn.Text = name
TabBtn.TextColor3 = Color3.fromRGB(180, 180, 180)
TabBtn.TextSize = 14
TabBtn.BorderSizePixel = 0
Instance.new("UICorner", TabBtn).CornerRadius = UDim.new(0, 5)
local TabContainer = Instance.new("ScrollingFrame")
TabContainer.Parent = ContainerHolder
TabContainer.BackgroundTransparency = 1
TabContainer.Position = UDim2.new(0, 126, 0, 42)
TabContainer.Size = UDim2.new(1, -134, 1, -48)
TabContainer.ScrollBarThickness = 3
TabContainer.BorderSizePixel = 0
TabContainer.Visible = false
local ContainerLayout = Instance.new("UIListLayout", TabContainer)
ContainerLayout.Padding = UDim.new(0, 6)
TabBtn.MouseButton1Click:Connect(function()
for _, t in pairs(Tabs) do
t.Container.Visible = false
t.Btn.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
t.Btn.TextColor3 = Color3.fromRGB(180, 180, 180)
end
TabContainer.Visible = true
TabBtn.BackgroundColor3 = Color3.fromRGB(0, 120, 215)
TabBtn.TextColor3 = Color3.fromRGB(255, 255, 255)
end)
table.insert(Tabs, { Btn = TabBtn, Container = TabContainer })
if #Tabs == 1 then
TabContainer.Visible = true
TabBtn.BackgroundColor3 = Color3.fromRGB(0, 120, 215)
TabBtn.TextColor3 = Color3.fromRGB(255, 255, 255)
end
return TabContainer
end
-- Khởi tạo các Tab
local TabPlayer = CreateTab("Player")
local TabVisuals = CreateTab("Visuals")
local TabCombat = CreateTab("Combat")
local TabMisc = CreateTab("Misc")
local TabScripts = CreateTab("Scripts")
-- Helper tạo Nút Bấm & Toggle
local function AddButton(tab, text, color, callback)
local Btn = Instance.new("TextButton")
Btn.Parent = tab
Btn.Size = UDim2.new(1, -6, 0, 32)
Btn.BackgroundColor3 = color or Color3.fromRGB(35, 35, 35)
Btn.Font = MinecraftFont
Btn.Text = text
Btn.TextColor3 = Color3.fromRGB(240, 240, 240)
Btn.TextSize = 13
Btn.BorderSizePixel = 0
Instance.new("UICorner", Btn).CornerRadius = UDim.new(0, 5)
Btn.MouseButton1Click:Connect(callback)
end
local function AddToggle(tab, text, callback)
local state = false
local Btn = Instance.new("TextButton")
Btn.Parent = tab
Btn.Size = UDim2.new(1, -6, 0, 32)
Btn.BackgroundColor3 = Color3.fromRGB(45, 45, 45)
Btn.Font = MinecraftFont
Btn.Text = text .. ": OFF"
Btn.TextColor3 = Color3.fromRGB(255, 255, 255)
Btn.TextSize = 13
Btn.BorderSizePixel = 0
Instance.new("UICorner", Btn).CornerRadius = UDim.new(0, 5)
Btn.MouseButton1Click:Connect(function()
state = not state
Btn.BackgroundColor3 = state and Color3.fromRGB(0, 150, 70) or Color3.fromRGB(45, 45, 45)
Btn.Text = state and (text .. ": ON") or (text .. ": OFF")
callback(state)
end)
end
-- ==========================================
-- 5. CÁC TÍNH NĂNG (FEATURES LOGIC)
-- ==========================================
-- --- TAB PLAYER ---
AddButton(TabPlayer, "Toc Do Nhanh (WalkSpeed 50)", nil, function()
if LocalPlayer.Character and LocalPlayer.Character:FindFirstChild("Humanoid") then
LocalPlayer.Character.Humanoid.WalkSpeed = 50
end
end)
AddButton(TabPlayer, "Toc Do Sieu Nhanh (WalkSpeed 120)", nil, function()
if LocalPlayer.Character and LocalPlayer.Character:FindFirstChild("Humanoid") then
LocalPlayer.Character.Humanoid.WalkSpeed = 120
end
end)
AddButton(TabPlayer, "Reset Toc Do Mac Dinh (16)", nil, function()
if LocalPlayer.Character and LocalPlayer.Character:FindFirstChild("Humanoid") then
LocalPlayer.Character.Humanoid.WalkSpeed = 16
end
end)
AddButton(TabPlayer, "Nhay Cao (JumpPower 120)", nil, function()
if LocalPlayer.Character and LocalPlayer.Character:FindFirstChild("Humanoid") then
LocalPlayer.Character.Humanoid.JumpPower = 120
end
end)
AddToggle(TabPlayer, "Nhay Vo Han (Inf Jump)", function(state)
if state then
Connections.InfJump = UserInputService.JumpRequest:Connect(function()
if LocalPlayer.Character and LocalPlayer.Character:FindFirstChild("Humanoid") then
LocalPlayer.Character.Humanoid:ChangeState(Enum.HumanoidStateType.Jumping)
end
end)
else
if Connections.InfJump then Connections.InfJump:Disconnect() Connections.InfJump = nil end
end
end)
local flying = false
AddToggle(TabPlayer, "Bay (Fly)", function(state)
flying = state
local char = LocalPlayer.Character
if not char or not char:FindFirstChild("HumanoidRootPart") then return end
if flying then
local bg = Instance.new("BodyGyro", char.HumanoidRootPart)
bg.Name = "FlyGyro"
bg.P = 9e4
bg.maxTorque = Vector3.new(9e9, 9e9, 9e9)
bg.cframe = char.HumanoidRootPart.CFrame
local bv = Instance.new("BodyVelocity", char.HumanoidRootPart)
bv.Name = "FlyVelocity"
bv.velocity = Vector3.new(0,0.1,0)
bv.maxForce = Vector3.new(9e9, 9e9, 9e9)
Connections.Fly = RunService.RenderStepped:Connect(function()
if not flying or not char:FindFirstChild("HumanoidRootPart") then return end
local cam = workspace.CurrentCamera
bg.cframe = cam.CFrame
local speed = 50
bv.velocity = cam.CFrame.LookVector * speed
end)
else
if Connections.Fly then Connections.Fly:Disconnect() Connections.Fly = nil end
if char.HumanoidRootPart:FindFirstChild("FlyGyro") then char.HumanoidRootPart.FlyGyro:Destroy() end
if char.HumanoidRootPart:FindFirstChild("FlyVelocity") then char.HumanoidRootPart.FlyVelocity:Destroy() end
end
end)
AddToggle(TabPlayer, "Giam Trong Luc (Low Gravity)", function(state)
workspace.Gravity = state and 50 or 196.2
end)
-- --- TAB VISUALS ---
AddToggle(TabVisuals, "ESP Players (Highlight)", function(state)
if state then
local function Apply(p)
if p == LocalPlayer then return end
local function AddHL(char)
if not char or char:FindFirstChild("ESPHighlight") then return end
local hl = Instance.new("Highlight")
hl.Name = "ESPHighlight"
hl.FillColor = Color3.fromRGB(0, 170, 255)
hl.OutlineColor = Color3.fromRGB(255, 255, 255)
hl.Adornee = char
hl.Parent = char
Highlights[p] = hl
end
if p.Character then AddHL(p.Character) end
p.CharacterAdded:Connect(AddHL)
end
for _, p in pairs(Players:GetPlayers()) do Apply(p) end
Connections.ESP = Players.PlayerAdded:Connect(Apply)
else
if Connections.ESP then Connections.ESP:Disconnect() Connections.ESP = nil end
for _, hl in pairs(Highlights) do if hl and hl.Parent then hl:Destroy() end end
Highlights = {}
end
end)
AddToggle(TabVisuals, "Fullbright (Sang Toan Canh)", function(state)
if state then
Lighting.Ambient = Color3.fromRGB(255, 255, 255)
Lighting.OutdoorAmbient = Color3.fromRGB(255, 255, 255)
Lighting.ClockTime = 12
else
Lighting.Ambient = Color3.fromRGB(127, 127, 127)
Lighting.OutdoorAmbient = Color3.fromRGB(127, 127, 127)
end
end)
AddToggle(TabVisuals, "Mo Rong FOV Camera (120)", function(state)
workspace.CurrentCamera.FieldOfView = state and 120 or 70
end)
-- --- TAB COMBAT ---
local hitboxSize = 20
AddToggle(TabCombat, "Hitbox Expander (Phong To Dau)", function(state)
if state then
Connections.Hitbox = RunService.RenderStepped:Connect(function()
for _, p in pairs(Players:GetPlayers()) do
if p ~= LocalPlayer and p.Character and p.Character:FindFirstChild("HumanoidRootPart") then
p.Character.HumanoidRootPart.Size = Vector3.new(hitboxSize, hitboxSize, hitboxSize)
p.Character.HumanoidRootPart.Transparency = 0.7
p.Character.HumanoidRootPart.BrickColor = BrickColor.new("Really red")
p.Character.HumanoidRootPart.Material = Enum.Material.Neon
p.Character.HumanoidRootPart.CanCollide = false
end
end
end)
else
if Connections.Hitbox then Connections.Hitbox:Disconnect() Connections.Hitbox = nil end
for _, p in pairs(Players:GetPlayers()) do
if p ~= LocalPlayer and p.Character and p.Character:FindFirstChild("HumanoidRootPart") then
p.Character.HumanoidRootPart.Size = Vector3.new(2, 2, 1)
p.Character.HumanoidRootPart.Transparency = 1
end
end
end
end)
-- --- TAB MISC ---
AddToggle(TabMisc, "Noclip (Di Xuyen Tuong)", function(state)
if state then
Connections.Noclip = RunService.Stepped:Connect(function()
local char = LocalPlayer.Character
if char then
for _, p in pairs(char:GetDescendants()) do
if p:IsA("BasePart") and p.CanCollide then p.CanCollide = false end
end
end
end)
else
if Connections.Noclip then Connections.Noclip:Disconnect() Connections.Noclip = nil end
local char = LocalPlayer.Character
if char then
for _, p in pairs(char:GetDescendants()) do
if p:IsA("BasePart") then p.CanCollide = true end
end
end
end
end)
AddToggle(TabMisc, "Anti-AFK (Chong Treo Máy)", function(state)
if state then
Connections.AntiAFK = LocalPlayer.Idled:Connect(function()
VirtualUser:Button2Down(Vector2.new(0,0), workspace.CurrentCamera.CFrame)
task.wait(1)
VirtualUser:Button2Up(Vector2.new(0,0), workspace.CurrentCamera.CFrame)
end)
else
if Connections.AntiAFK then Connections.AntiAFK:Disconnect() Connections.AntiAFK = nil end
end
end)
AddButton(TabMisc, "Tang FPS (FPS Booster)", nil, function()
for _, v in pairs(workspace:GetDescendants()) do
if v:IsA("BasePart") then
v.Material = Enum.Material.SmoothPlastic
elseif v:IsA("Decal") or v:IsA("Texture") then
v:Destroy()
end
end
end)
AddButton(TabMisc, "Rejoin Server (Vao Lai)", nil, function()
TeleportService:TeleportToPlaceInstance(game.PlaceId, game.JobId, LocalPlayer)
end)
AddButton(TabMisc, "Server Hop (Doi Server Khac)", nil, function()
TeleportService:Teleport(game.PlaceId, LocalPlayer)
end)
-- --- TAB SCRIPTS (EXTERNAL) ---
AddButton(TabScripts, "Mở Infinite Yield Admin", nil, function()
loadstring(game:HttpGet('https://raw.githubusercontent.com/EdgeIY/infiniteyield/master/source'))()
end)
AddButton(TabScripts, "Mo Dex Explorer", nil, function()
loadstring(game:HttpGet("https://raw.githubusercontent.com/infyiff/backup/main/dex.lua"))()
end)
AddButton(TabScripts, "Mo SimpleSpy (Soi Remote)", nil, function()
loadstring(game:HttpGet("https://raw.githubusercontent.com/expro0/SimpleSpy/main/SimpleSpySource.lua"))()
end)
-- Cập nhật CanvasSize tự động cho các Tab ScrollingFrame
for _, t in pairs(Tabs) do
local layout = t.Container:FindFirstChildOfClass("UIListLayout")
if layout then
t.Container.CanvasSize = UDim2.new(0, 0, 0, layout.AbsoluteContentSize.Y + 15)
end
endNo comments yet for this script.



