By some way idk how to make a Medkit on studio cuz I suck at it, so basically the thing is that the Medkit Script is always getting the diff of the Humanoid's Health and adding the diff to the Health.
Here it's the script.
local Handle = Tool.Handle
local Healing = false
local MaxHeal = 100
local StartFunction
Tool.ToolTip = MaxHeal.."/150"
local function Heal()
local LocalPlayer = Tool:FindFirstAncestorWhichIsA"Player" or game:GetService"Players":GetPlayerFromCharacter(Tool.Parent)
local Character = LocalPlayer.Character
local Humanoid = Character:FindFirstChildWhichIsA"Humanoid"
if Humanoid.Health < 100 and MaxHeal > 0 then
print(Humanoid.Health)
for i = 1, 0, -1 do
print("Healing yourself "..i.."s..;")
task.wait(1)
end
print("Healed yourself")
local First = MaxHeal - Humanoid.Health
local HealValue = First - MaxHeal
Humanoid.Health -= HealValue
print(HealValue)
MaxHeal += HealValue
Tool.ToolTip = MaxHeal.."/150"
Healing = false
if Humanoid.Health > 100 then
print("Your HP is full")
Healing = false
end
if MaxHeal <= 0 then
print("No healing left")
Healing = false
end
end
end
local function Activated()
if not Healing then
Healing = true
StartFunction = task.spawn(Heal)
else
Healing = false
task.cancel(StartFunction)
end
end
Tool.Activated:Connect(Activated)```


