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

Can you change the health regen of a character via a script which fires when I click the tool?

Asked by 8 years ago

I'm asking if it's possible to change the health regen of a character with a script, If yes can you give me a link to wiki or something that relates to that?

0
You can manually add/remove health using Humanoid.Health = Humanoid.Health - 1 Mokiros 135 — 8y
0
There are no wiki links for that. EzraNehemiah_TF2 3552 — 8y

1 answer

Log in to vote
0
Answered by 8 years ago
Human = script.Parent.Parent.Character.Humanoid
while true do
    if Human.Health < Human.MaxHealth then
        Human.Health = Human.Health + 1
    end
    wait(1)
end

This will give him 1 extra health every second. To change the speed, change the number in the wait(1) to the speed you want to give him health. (1 = 1 second) Change the number in the Human.Health + 1 to change how much health he gains every time that happens. Put this script in StarterGui or StarterPack. Hope this helps :)

Ad

Answer this question