Universal Script 📌
20 Views
4 Executions

God Mode Script

Universal Script 📌
rxvff7
rxvff7First script
21 minutes ago

Reviewed by QueueSpeedDemonPaid revieweron How review works

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

Roblox god mode script by me

View Raw
-- god_mode.lua — roblox
-- works in most executors (synapse, krnl, fluxus, etc.)

local Players = game:GetService("Players")
local RunService = game:GetService("RunService")
local LocalPlayer = Players.LocalPlayer

local function godMode()
    local char = LocalPlayer.Character
    if not char then return end
    local hum = char:FindFirstChildOfClass("Humanoid")
    if not hum then return end

    -- kill the health link so damage can't propagate
    hum.Health = math.huge
    hum.MaxHealth = math.huge

    -- strip the damage listener if one exists
    for _, conn in pairs(getconnections(hum.HealthChanged)) do
        pcall(function() conn:Disconnect() end)
    end

    -- keep it pinned in case something rewrites it
    if not char:FindFirstChild("_godLoop") then
        local loop = Instance.new("BoolValue")
        loop.Name = "_godLoop"
        loop.Parent = char

        RunService.Heartbeat:Connect(function()
            if not char.Parent then return end
            local h = char:FindFirstChildOfClass("Humanoid")
            if h then
                h.Health = math.huge
                h.MaxHealth = math.huge
            end
        end)
    end

    -- block the ragdoll/fall-damage path
    pcall(function()


Comments

0
Log in to join the conversation. Login
No comments yet. Be the first!