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

Won't heal me if I get damaged?

Asked by
lomo0987 250 Moderation Voter
10 years ago
local heal = game.Workspace.lomo0987.Humanoid.Health
local max = game.Workspace.lomo0987.Humanoid.MaxHealth

while wait() do
if heal < max then
heal = max
end
end

Currently in a game using kohls admin and trying to so a small script that will heal me almost instantly.

1 answer

Log in to vote
0
Answered by 10 years ago
Hum = game.Workspace.Player1.Humanoid

function Heal()
if Hum.Health < Hum.MaxHealth then
Hum.Health = Hum.MaxHealth

end
end

Hum.HealthChanged:connect(Heal)
0
Nope. Still don't work. lomo0987 250 — 10y
0
Dude are you kidding? It worked for me, Slazerick 55 — 10y
0
Change Player1 with lomo0978, that's your error. Slazerick 55 — 10y
Ad

Answer this question