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

How to make a script to make a player not regenerate health?

Asked by 10 years ago

So I want a script on how to make a player, after equipping a sword, not able to regenerate his/her health. And after they've unequipped it, this will still effect them, so until they die, their health cannot regenerate.

Anyone have any ideas?

repeat wait(1) game.Workspace.Player.Humanoid.Health = game.Workspace.Player.Humanoid.Health-0.1 until nil

Because this is a script which hurts - I'm not sure if it makes the regenerate stop anyway. So just in case it doesn't I need a script which does.

But I don't know what to do for it, at all.

Help please. Sorry if I didn't include enough scripts. But that's because I'm clueless.

2 answers

Log in to vote
0
Answered by 10 years ago

Basically, all characters comes with script called "Health", which does all the health regeneration. You can delete it and make your own one, or just edit it so it stops regeneration when you have equipped sword.

Ad
Log in to vote
-1
Answered by
Mystdar 352 Moderation Voter
10 years ago

This question was answered here: https://scriptinghelpers.org/questions/6373/a-script-that-stops-robloxs-natural-healing If this helped thumb up the original answer, if you really want to you can accept this as an answer too though.

0
Aw thanks. I'll look at it. DerpyShadowz 34 — 10y

Answer this question