local Players = game:GetService("Players") local RunService = game:GetService("RunService") local player = Players.LocalPlayer getgenv().config = { active = true, assist = true } local function restoreSelf() if not player.Character then return end local character = player.Character local humanoid = character:FindFirstChild("Humanoid") local head = character:FindFirstChild("Head") if humanoid and head and humanoid.Health == 0 then local prompt = head:FindFirstChild("RevivePrompt") if prompt then fireproximityprompt(prompt) end end end local function restoreOthers() if not player.Character then return end local character = player.Character local humanoid = character:FindFirstChild("Humanoid") local root = character:FindFirstChild("HumanoidRootPart") if not humanoid or not root or humanoid.Health == 0 then return end for _, otherPlayer in ipairs(Players:GetPlayers()) do if otherPlayer == player then continue end local otherCharacter = otherPlayer.Character if not otherCharacter then continue end local otherHumanoid = otherCharacter:FindFirstChild("Humanoid") local otherHead = otherCharacter:FindFirstChild("Head") local otherRoot = otherCharacter:FindFirstChild("HumanoidRootPart") if otherHumanoid and otherHead and otherRoot and otherHumanoid.Health == 0 then local prompt = otherHead:FindFirstChild("RevivePrompt") if prompt then root.CFrame = otherRoot.CFrame fireproximityprompt(prompt) end end end end RunService.Heartbeat:Connect(function() if not getgenv().config.active then return end restoreSelf() if getgenv().config.assist then restoreOthers() end end)