Universal Script 📌
3.8k Views
464 Executions

Inmortal vro

Universal Script 📌
Kikirikiriki
KikirikirikiFirst script
1 year ago
Get an executor
Please login to perform these actions:

Does it work?

No reports yet

No reports yet. Tried it? Be the first to say.

Also noticed:

Description

Can't die

View Raw
-- 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


Comments

1
Log in to join the conversation. Login
koboldpaws's profile picture
koboldpaws1 year ago

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

1

More universal scripts

See all
Script hub
168
989
Bumped 1 hour ago

Script hub

Lunyx Hub

Script hub
120.8k
221.2k
Bumped 2 hours ago
Key System
Script hub
10.6k
201.0k
Bumped 2 hours ago

Script hub

KeylessVerified script badgeIRIDIUM HUB | #1

Script hub
33.3k
299.8k
Bumped 5 hours ago
Script hub
23.7k
5.3k
Bumped 5 hours ago
Key System
Paid
High Quality Offering
Universal Script 📌
332
1.2k
Bumped 5 hours ago