local Players = game:GetService("Players") local RunService = game:GetService("RunService") local LocalPlayer = Players.LocalPlayer local Protected = true local Connection = nil local function ApplyGodmode(char) if not char then return end local humanoid = char:WaitForChild("Humanoid", 12) if not humanoid then return end humanoid.MaxHealth = 1e8 humanoid.Health = humanoid.MaxHealth humanoid.HealthChanged:Connect(function(health) if not Protected then return end if health < humanoid.MaxHealth then humanoid.Health = humanoid.MaxHealth end end) if Connection then Connection:Disconnect() end Connection = RunService.Heartbeat:Connect(function() if not Protected then Connection:Disconnect() return end if humanoid and humanoid.Parent then if humanoid.Health < humanoid.MaxHealth then humanoid.Health = humanoid.MaxHealth end if humanoid.MaxHealth < 1e8 then humanoid.MaxHealth = 1e8 end end end) humanoid.Died:Connect(function() if Protected and humanoid and humanoid.Parent then task.wait(0.2) humanoid.MaxHealth = 1e8 humanoid.Health = humanoid.MaxHealth end end) end task.wait(1.0) if LocalPlayer.Character then ApplyGodmode(LocalPlayer.Character) end LocalPlayer.CharacterAdded:Connect(function(newChar) task.wait(1.2) ApplyGodmode(newChar) end) getgenv().DisableGodmode = function() Protected = false if Connection then Connection:Disconnect() end end