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.
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 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.