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.

1 comment
Aw thanks. I'll look at it.