ADVERTISEMENTREMOVE ADS

Inf health

Universal script
3 months ago
Script preview thumbnail
Script Preview

Description

BE god and have INF HEALTH and be cool yep

lolololollllool

ADVERTISEMENTREMOVE ADS
33 Lines • 828 Bytes
Raw
local Players = game:GetService("Players")
local function setInfiniteHealth(humanoid)
humanoid.MaxHealth = math.huge
humanoid.Health = math.huge
humanoid.HealthChanged:Connect(function()
if humanoid.Health < humanoid.MaxHealth then
humanoid.Health = humanoid.MaxHealth
end
end)
end
local function onCharacterAdded(character)
local humanoid = character:FindFirstChildOfClass("Humanoid")
if humanoid then
setInfiniteHealth(humanoid)
end
end
local function onPlayerAdded(player)
player.CharacterAdded:Connect(onCharacterAdded)
if player.Character then
onCharacterAdded(player.Character)
end
end
Players.PlayerAdded:Connect(onPlayerAdded)
for _, player in Players:GetPlayers() do
onPlayerAdded(player)
end
ADVERTISEMENTREMOVE ADS

Comments

1 comment
to add a comment
te

Why You got inf health

0
0
ADVERTISEMENTREMOVE ADS