Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do i make a healing pad that adds 25 health every time you touch it?

Asked by
Tnipo 10
4 years ago

I'm pretty sure it includes a touched event and a add health event.

1 answer

Log in to vote
0
Answered by
KoruZX 35
4 years ago
script.Parent.Touched:Connect(function(touchedPart)
if (touchedPart.Parent:FindFirstChild("Humanoid")) then
touchedPart.Parent.Humanoid.Health = touchedPart.Parent.Humanoid.Health + 25
end
end)

Change script.Parent to the healing pad if the script is not inside the healing pad

0
Thanks :D Tnipo 10 — 4y
Ad

Answer this question