Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

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

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

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.

This discussion is preserved as it was. New answers, comments, and votes are closed.