
3.6k Views
343 Executions
Inmortal vro
Universal Script 📌
KikirikirikiFirst script
1 year ago
Please login to perform these actions:Does it work?
No reports yetNo reports yet. Tried it? Be the first to say.
Also noticed:
Description
Can't die
-- Immortality Server Script
-- Pegar en ServerScriptService
local Players = game:GetService("Players")
local VOID_Y = -50 -- si cae por debajo de esto lo teletransporta
local function protectCharacter(character)
if not character then return end
local humanoid = character:FindFirstChildOfClass("Humanoid")
local primary = character.PrimaryPart or character:FindFirstChild("HumanoidRootPart")
if humanoid then
-- Aumentar salud máxima a un número muy grande y mantenerla
humanoid.MaxHealth = 1e9
humanoid.Health = humanoid.MaxHealth
-- Intentar desactivar el estado "Dead" (evita algunas animaciones/estados)
pcall(function()
humanoid:SetStateEnabled(Enum.HumanoidStateType.Dead, false)
end)
-- Si la salud cambia a un valor bajo, la restauramos inmediatamente
humanoid.HealthChanged:Connect(function(h)
if h < 1 then
-- restaurar inmediatamente
if humanoid and humanoid.Parent then
humanoid.Health = humanoid.MaxHealth
end
end
end)
-- Si por alguna razón se dispara Died, lo revivimos
humanoid.Died:Connect(function()
-- pequeña espera para que termine el evento y lo restauramos
wait(0.05)
if humanoid and humanoid.Parent then
humanoid.Health = humanoid.MaxHealth
end
end)
end









pasted+not work+skidded+*+*+skibidi