|
| 14 Sep 2010 07:32 PM |
this is supposed to be a script that slowly regens health when you touch it
function onTouched(part) local h = part.Parent:findFirstChild("Humanoid") if h.Health < 100 h.Health+0 wait (1) h.Health+10 repeat until h.Health = 100 end end script.Parent.Touched:connect(onTouched) |
|
|
| Report Abuse |
|
|
|
| 14 Sep 2010 07:34 PM |
replace the stuff between the local h line and the last end with this script:
if h ~= nil then if h.Health < 100 then repeat wait(1) h.Health = h.Health + 1 until h.Health == 100 end end
then have the other end after that, and have the local h = whatever line before it so
local h = whatever --my script end |
|
|
| Report Abuse |
|
|
|
| 14 Sep 2010 07:37 PM |
| umm could you just show me the whole thing? cause i can't figure out your directions... |
|
|
| Report Abuse |
|
|