local players = game:GetService("Players") local RunService = game:GetService("RunService") RunService.Heartbeat:Connect(function() if players.LocalPlayer.Character and players.LocalPlayer.Character:FindFirstChild("Humanoid") then local humanoid = players.LocalPlayer.Character.Humanoid if humanoid.Health <= 0 then humanoid.Health = humanoid.MaxHealth end end end)