HOW TO MAKE A HEALING PAD | Roblox Studio Tutorial

Опубликовано: 05 Август 2026
на канале: Ray Gup
214
6

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)