Universal Script 📌
3.6k Views
343 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
5.5M
1.0M
Bumped 25 minutes ago
Key System
Script hub
1.7M
2.2M
Bumped 56 minutes ago
Key System

Script hub

#15 this week

Verified script badgeSnowy Hub 500+ Games & 25600+ Features

Script hub
14.6k
83.0k
Bumped 56 minutes ago
Key System

Script hub

Kronos New

Script hub
3.2M
753.8k
Bumped 4 hours ago
Key System

Script hub

Hall of Fame #8

Verified script badgeFlow Hub | 50 Games | Updated

Universal Script 📌
444
1.2k
Bumped 6 hours ago
Key System
Universal Script 📌
7.1k
142.9k
Bumped 6 hours ago
Script hub
45.8k
114.6k
Bumped 8 hours ago
Key System