
Key Required
medix hub
Lua Script•277 lines (9424 chars)
-- // Services
local Players = game:GetService("Players")
local RunService = game:GetService("RunService")
local UserInputService = game:GetService("UserInputService")
local CoreGui = game:GetService("CoreGui")
local lp = Players.LocalPlayer
-- // Settings / Config for different healing types
local Config = {
CurrentHealType = "None", -- Options: "None", "Instant Max", "Regen Aura", "Max Health Lock"
SpeedEnabled = false,
CustomSpeed = 24,
InfJump = false,
}
-- // UI Setup
local gui = Instance.new("ScreenGui")
gui.Name = "InjuryHealHub"
pcall(function()
gui.Parent = CoreGui
end)
if not gui.Parent then
gui.Parent = lp:WaitForChild("PlayerGui")
end
local frame = Instance.new("Frame")
frame.Size = UDim2.new(0, 440, 0, 280)
frame.Position = UDim2.new(0.5, -220, 0.4, -140)
frame.BackgroundColor3 = Color3.fromRGB(24, 24, 24)
frame.BorderSizePixel = 0
frame.Active = true
frame.Draggable = true
frame.Parent = gui
-- // Top Header Bar
local topBar = Instance.new("Frame")
topBar.Size = UDim2.new(1, 0, 0, 32)
topBar.BackgroundColor3 = Color3.fromRGB(35, 35, 35)
topBar.BorderSizePixel = 0
topBar.Parent = frame
local title = Instance.new("TextLabel")
title.Size = UDim2.new(1, -70, 1, 0)
title.Position = UDim2.new(0, 12, 0, 0)
title.BackgroundTransparency = 1
title.Text = "Heal Your Injuries Hub"
title.TextColor3 = Color3.fromRGB(240, 240, 240)
title.TextSize = 13
title.Font = Enum.Font.SourceSansBold
title.TextXAlignment = Enum.TextXAlignment.Left
title.Parent = topBar
-- // Close & Minimize Controls
local closeBtn = Instance.new("TextButton")
closeBtn.Size = UDim2.new(0, 32, 0, 32)
closeBtn.Position = UDim2.new(1, -32, 0, 0)
closeBtn.BackgroundColor3 = Color3.fromRGB(190, 45, 45)
closeBtn.BorderSizePixel = 0
closeBtn.Text = "X"
closeBtn.TextColor3 = Color3.fromRGB(255, 255, 255)
closeBtn.Font = Enum.Font.SourceSansBold
closeBtn.Parent = topBar
closeBtn.MouseButton1Click:Connect(function()
gui:Destroy()
end)
local minBtn = Instance.new("TextButton")
minBtn.Size = UDim2.new(0, 32, 0, 32)
minBtn.Position = UDim2.new(1, -64, 0, 0)
minBtn.BackgroundColor3 = Color3.fromRGB(65, 65, 65)
minBtn.BorderSizePixel = 0
minBtn.Text = "-"
minBtn.TextColor3 = Color3.fromRGB(255, 255, 255)
minBtn.Font = Enum.Font.SourceSansBold
minBtn.Parent = topBar
local minimized = false
minBtn.MouseButton1Click:Connect(function()
minimized = not minimized
for _, child in pairs(frame:GetChildren()) do
if child ~= topBar then
child.Visible = not minimized
end
end
frame.Size = minimized and UDim2.new(0, 440, 0, 32) or UDim2.new(0, 440, 0, 280)
end)
-- // Sidebar Navigation
local sidebar = Instance.new("Frame")
sidebar.Size = UDim2.new(0, 120, 1, -32)
sidebar.Position = UDim2.new(0, 0, 0, 32)
sidebar.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
sidebar.BorderSizePixel = 0
sidebar.Parent = frame
-- // Tab Container
local container = Instance.new("Frame")
container.Size = UDim2.new(1, -130, 1, -42)
container.Position = UDim2.new(0, 125, 0, 38)
container.BackgroundTransparency = 1
container.Parent = frame
local tabs = {
Healing = Instance.new("ScrollingFrame"),
Movement = Instance.new("ScrollingFrame")
}
for name, tab in pairs(tabs) do
tab.Size = UDim2.new(1, 0, 1, 0)
tab.BackgroundTransparency = 1
tab.BorderSizePixel = 0
tab.CanvasSize = UDim2.new(0, 0, 0, 220)
tab.ScrollBarThickness = 3
tab.Visible = (name == "Healing")
tab.Parent = container
end
local function switchTab(tabName)
for name, tab in pairs(tabs) do
tab.Visible = (name == tabName)
end
end
-- Sidebar Buttons
local healTabBtn = Instance.new("TextButton")
healTabBtn.Size = UDim2.new(1, -12, 0, 32)
healTabBtn.Position = UDim2.new(0, 6, 0, 10)
healTabBtn.BackgroundColor3 = Color3.fromRGB(45, 45, 45)
healTabBtn.BorderSizePixel = 0
healTabBtn.Text = "Heal Types"
healTabBtn.TextColor3 = Color3.fromRGB(255, 255, 255)
healTabBtn.Font = Enum.Font.SourceSansBold
healTabBtn.Parent = sidebar
healTabBtn.MouseButton1Click:Connect(function() switchTab("Healing") end)
local moveTabBtn = Instance.new("TextButton")
moveTabBtn.Size = UDim2.new(1, -12, 0, 32)
moveTabBtn.Position = UDim2.new(0, 6, 0, 50)
moveTabBtn.BackgroundColor3 = Color3.fromRGB(45, 45, 45)
moveTabBtn.BorderSizePixel = 0
moveTabBtn.Text = "Player Extras"
moveTabBtn.TextColor3 = Color3.fromRGB(255, 255, 255)
moveTabBtn.Font = Enum.Font.SourceSansBold
moveTabBtn.Parent = sidebar
moveTabBtn.MouseButton1Click:Connect(function() switchTab("Movement") end)
-- // --- HEALING TAB BUTTONS ---
local statusLabel = Instance.new("TextLabel")
statusLabel.Size = UDim2.new(1, -10, 0, 24)
statusLabel.Position = UDim2.new(0, 5, 0, 5)
statusLabel.BackgroundTransparency = 1
statusLabel.Text = "Active Healing Mode: None"
statusLabel.TextColor3 = Color3.fromRGB(200, 200, 200)
statusLabel.TextSize = 12
statusLabel.Font = Enum.Font.SourceSansItalic
statusLabel.TextXAlignment = Enum.TextXAlignment.Left
statusLabel.Parent = tabs.Healing
-- Helper to update button colors
local healButtons = {}
local function createHealTypeBtn(name, yPos, modeName)
local btn = Instance.new("TextButton")
btn.Size = UDim2.new(1, -10, 0, 35)
btn.Position = UDim2.new(0, 5, 0, yPos)
btn.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
btn.BorderSizePixel = 0
btn.Text = name
btn.TextColor3 = Color3.fromRGB(255, 255, 255)
btn.Font = Enum.Font.SourceSansBold
btn.Parent = tabs.Healing
table.insert(healButtons, {Button = btn, Mode = modeName})
btn.MouseButton1Click:Connect(function()
if Config.CurrentHealType == modeName then
Config.CurrentHealType = "None"
statusLabel.Text = "Active Healing Mode: None"
else
Config.CurrentHealType = modeName
statusLabel.Text = "Active Healing Mode: " .. name
end
-- Update UI styling for buttons
for _, item in ipairs(healButtons) do
if Config.CurrentHealType == item.Mode then
item.Button.BackgroundColor3 = Color3.fromRGB(40, 160, 70)
else
item.Button.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
end
end
end)
end
createHealTypeBtn("1. Instant Max Health (Constant Loop)", 35, "Instant Max")
createHealTypeBtn("2. Rapid Regen Aura (Smooth Healing)", 78, "Regen Aura")
createHealTypeBtn("3. Instant Full Heal (One-Time Trigger)", 121, "OneTime Heal")
-- // --- MOVEMENT TAB BUTTONS ---
local speedToggle = Instance.new("TextButton")
speedToggle.Size = UDim2.new(1, -10, 0, 35)
speedToggle.Position = UDim2.new(0, 5, 0, 10)
speedToggle.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
speedToggle.BorderSizePixel = 0
speedToggle.Text = "Speed Boost: OFF"
speedToggle.TextColor3 = Color3.fromRGB(255, 255, 255)
speedToggle.Font = Enum.Font.SourceSansBold
speedToggle.Parent = tabs.Movement
speedToggle.MouseButton1Click:Connect(function()
Config.SpeedEnabled = not Config.SpeedEnabled
speedToggle.Text = Config.SpeedEnabled and "Speed Boost: ON" or "Speed Boost: OFF"
speedToggle.BackgroundColor3 = Config.SpeedEnabled and Color3.fromRGB(40, 160, 70) or Color3.fromRGB(50, 50, 50)
end)
local infJumpToggle = Instance.new("TextButton")
infJumpToggle.Size = UDim2.new(1, -10, 0, 35)
infJumpToggle.Position = UDim2.new(0, 5, 0, 55)
infJumpToggle.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
infJumpToggle.BorderSizePixel = 0
infJumpToggle.Text = "Infinite Jump: OFF"
infJumpToggle.TextColor3 = Color3.fromRGB(255, 255, 255)
infJumpToggle.Font = Enum.Font.SourceSansBold
infJumpToggle.Parent = tabs.Movement
infJumpToggle.MouseButton1Click:Connect(function()
Config.InfJump = not Config.InfJump
infJumpToggle.Text = Config.InfJump and "Infinite Jump: ON" or "Infinite Jump: OFF"
infJumpToggle.BackgroundColor3 = Config.InfJump and Color3.fromRGB(40, 160, 70) or Color3.fromRGB(50, 50, 50)
end)
-- // Background Loops & Logic Handlers
RunService.RenderStepped:Connect(function()
local char = lp.Character
if not char then return end
local hum = char:FindFirstChildOfClass("Humanoid")
if hum and hum.Health > 0 then
-- Handle Selected Healing Type
if Config.CurrentHealType == "Instant Max" then
if hum.Health < hum.MaxHealth then
hum.Health = hum.MaxHealth
end
elseif Config.CurrentHealType == "Regen Aura" then
if hum.Health < hum.MaxHealth then
hum.Health = math.clamp(hum.Health + 1.5, 0, hum.MaxHealth)
end
elseif Config.CurrentHealType == "OneTime Heal" then
hum.Health = hum.MaxHealth
Config.CurrentHealType = "None"
statusLabel.Text = "Active Healing Mode: None"
for _, item in ipairs(healButtons) do
item.Button.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
end
end
-- Handle Speed Boost
if Config.SpeedEnabled then
hum.WalkSpeed = Config.CustomSpeed
end
end
end)
-- Infinite Jump Hook
UserInputService.JumpRequest:Connect(function()
if Config.InfJump then
local char = lp.Character
if char then
local hum = char:FindFirstChildOfClass("Humanoid")
if hum then
hum:ChangeState(Enum.HumanoidStateType.Jumping)
end
end
end
end)Features & Information
Instant Max Health (Constant Loop): Instantly forces your health back to full every single frame the moment you take any damage.
Rapid Regen Aura (Smooth Healing): Gradually heals your character at a smooth, constant pace instead of snapping all at once.
Instant Full Heal (One-Time Trigger): Instantly pops your health back to maximum once and then turns itself off automatically.
Player Extras Tab:
Speed Boost: Overrides and locks your walk speed to a custom value so games can't force it back down.
Infinite Jump: Lets you jump continuously in mid-air by pressing your spacebar.
General Hub UI Features:
Sidebar Navigation: Clean layout allowing you to switch easily between categories (Heal Types and Player Extras).
Draggable Window: Click and drag the top header bar anywhere you want on your screen.
Window Controls: Includes functional minimize (-) and close (X) buttons.
Respawn Persistence: Automatically re-applies your chosen healing mode and speed settings whenever your character dies and respawns.
Community Comments (0)
No comments yet for this script.
