_G.Emergency = true --set to false if you don't want to automatically be reset at the specific hp hitpoints = 50 --what hp you want yourself to get reset at local UIS = game:GetService("UserInputService") local plr = game.Players.LocalPlayer local oldcf = plr.Character.HumanoidRootPart.CFrame plr.CharacterAdded:Connect( function(Character) local HRP = Character:WaitForChild("HumanoidRootPart") HRP.CFrame = oldcf end ) UIS.InputBegan:connect( function(input) if input.KeyCode == Enum.KeyCode.F then if plr.Character then oldcf = plr.Character.HumanoidRootPart.CFrame if plr.Character:FindFirstChild("Humanoid") then plr.Character.Humanoid.Name = "1" end local b = plr.Character["1"]:Clone() b.Parent = plr.Character b.Name = "Humanoid" task.wait() plr.Character["1"]:Destroy() workspace.CurrentCamera.CameraSubject = plr.Character.Humanoid plr.Character.Animate.Disabled = true task.wait() plr.Character.Animate.Disabled = false end end end ) while _G.Emergency == true do while task.wait() do if plr.Character then if plr.Character:FindFirstChild("Humanoid") then if plr.Character.Humanoid.Health <= hitpoints then oldcf = plr.Character.HumanoidRootPart.CFrame if plr.Character then if plr.Character:FindFirstChild("Humanoid") then plr.Character.Humanoid.Name = "1" end local b = plr.Character["1"]:Clone() b.Parent = plr.Character b.Name = "Humanoid" task.wait() plr.Character["1"]:Destroy() workspace.CurrentCamera.CameraSubject = plr.Character.Humanoid plr.Character.Animate.Disabled = true task.wait() plr.Character.Animate.Disabled = false end end end end end end