-- 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() hum:SetStateEnabled(Enum.HumanoidStateType.FallingDown, false) hum:SetStateEnabled(Enum.HumanoidStateType.Ragdoll, false) hum:SetStateEnabled(Enum.HumanoidStateType.Dead, false) end) -- noclip assist so terrain doesn't cheese you local noclip = RunService.Stepped:Connect(function() if char then for _, part in pairs(char:GetDescendants()) do if part:IsA("BasePart") then part.CanCollide = false end end end end) char.AncestryChanged:Connect(function() noclip:Disconnect() end) end -- run on spawn and on respawn godMode() LocalPlayer.CharacterAdded:Connect(function() task.wait(0.5) godMode() end)