local part = script.Parent
local healAmount = 25 -- Amount of health to restore
part.Touched:Connect(function(hit)
local character = hit.Parent
if character and character:FindFirstChild("Humanoid") then
local humanoid = character:FindFirstChild("Humanoid")
if humanoid.Health (greater than sign) humanoid.MaxHealth then
humanoid.Health = math.min(humanoid.Health + healAmount, humanoid.MaxHealth)
end
end
end)