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

Help "locking" a players health?

Asked by
StoIid 364 Moderation Voter
8 years ago

I am having trouble thinking of a method to "lock" a players health. Essentially making it so that the player's health can't go down but can still go up. Any ideas?

1
use this http://wiki.roblox.com/index.php?title=API:Class/Humanoid/HealthChanged then just check if the value is less ect User#5423 17 — 8y

1 answer

Log in to vote
0
Answered by 8 years ago

health = Humanoid.Health Humanoid.HealthChanged:connect(function() if Humanoid.Health < health then Humanoid.Health = health end end

Ad

Answer this question