function onTouched(part) local h = part.Parent:findFirstChild("Humanoid")
h.Health = h.Health -25 wait(2) h.Health = h.Health -5
end
script.Parent.Touched:connect(onTouched)
Read this before you post: https://scriptinghelpers.org/help/community-guidelines right now it's a little hard to understand what is going on here
now I don't know if "-25" is an actual way to subtract a value but I'm assuming it isn't. See if that works.
h.Health = h.Health - 25 wait(2) h.Health = h.Health - 5
If not lmk