-------------------------------------------------- -- GOD MODE / ANTI-DEATH -------------------------------------------------- local function enableGodMode() if not hum then return end -- Core settings hum.MaxHealth = math.huge hum.Health = math.huge hum.BreakJointsOnDeath = false hum:SetStateEnabled(Enum.HumanoidStateType.Dead, false) -- Prevent health loss hum.HealthChanged:Connect(function() if hum.Health < hum.MaxHealth then hum.Health = hum.MaxHealth end end) -- Prevent kill scripts / force death hum.Died:Connect(function() hum.Health = hum.MaxHealth end) -- Optional: ForceField (extra safety) if not char:FindFirstChild("ForceField") then local ff = Instance.new("ForceField") ff.Visible = false ff.Parent = char end end -- Re-enable god mode on respawn player.CharacterAdded:Connect(function() task.wait(0.5) enableGodMode() end) -- Initial enable enableGodMode()