local player = game.Players.LocalPlayer local function godmode(char) local hum = char:WaitForChild("Humanoid") hum.MaxHealth = math.huge hum.Health = math.huge hum.HealthChanged:Connect(function() hum.Health = hum.MaxHealth end) end if player.Character then godmode(player.Character) end player.CharacterAdded:Connect(godmode)