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

Is there a way I can make a player stop dealing damage at 1% health?

Asked by
AyeJude 41
6 years ago

I have been trying to make local players not deal damage when they are at 1% health, is there a quick way I can do that?

Any help would be appreciated!

0
maybe a game:Getserviece("RunService").Renderstepped:connect(function() lawahh19 2 — 6y
0
We need a code sample of what you have already tried to help you implement this. Local player means player as from the point of view from a local script, do you mean to say that? User#18718 0 — 6y

1 answer

Log in to vote
0
Answered by
thesit123 509 Moderation Voter
6 years ago

Consider thinking of whatever is making the player take damage, have that script to check if the player has less than 1% of health. For example:

if Player.Humanoid.Health >= 1 then -- if Health is more than 1%
    -- Take Damage
end
Ad

Answer this question