Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Won't heal me if I get damaged?

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

Hum = game.Workspace.Player1.Humanoid

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

end
end

Hum.HealthChanged:connect(Heal)

3 comments

0

Nope. Still don't work.

0

Dude are you kidding? It worked for me,

0

Change Player1 with lomo0978, that's your error.

This discussion is preserved as it was. New answers, comments, and votes are closed.