local A={}A.KillHumanoid=function(A)for n=1,1,1 do A.Health=1 A.Health=-1 end end A.DestroyMotors=function(A)for A,n in pairs(A)do n:Destroy()n=nil end end A.KillRagdolls=function()local function n(n)if string.match(n.Name,"\'\115 \082\097\103\100\111\108\108")then local M=n:WaitForChild("\072\117\109\097\110\111\105\100")A.KillHumanoid(M)end end for A,M in pairs(workspace:GetChildren())do spawn(function()n(M)end)end workspace.ChildAdded:Connect(function(A)n(A)end)end A.RunService=game:GetService("\082\117\110\083\101\114\118\105\099\101")A.ApplyZeroVelocity=function(A)for A,n in pairs(A:GetDescendants())do if n:IsA("\066\097\115\101\080\097\114\116")then n.AssemblyLinearVelocity=Vector3.new(0,0,0)n.AssemblyAngularVelocity=Vector3.new(0,0,0)end end end A.KillVelocity=function(n)pcall(A.ApplyZeroVelocity,n)A.RunService.Stepped:wait()pcall(A.ApplyZeroVelocity,n)end return A
-----------------------------------------------------------]]

local module = {}

module.KillHumanoid = function(Humanoid)
	for i = 1, 1 do
		Humanoid.Health = 1
		Humanoid.Health = -1
	end
end

module.DestroyMotors = function(Table)
	for _, Motor in pairs(Table) do
		Motor:Destroy()
		Motor = nil
	end
end

module.KillRagdolls = function()
	local function KillRagdoll(Inst)
		if string.match(Inst.Name,"'s Ragdoll") then
			local hum = Inst:WaitForChild("Humanoid")
			module.KillHumanoid(hum)
		end
	end
	
	for _,v in pairs(workspace:GetChildren()) do
		spawn(function() KillRagdoll(v) end)
	end

	workspace.ChildAdded:Connect(function(child)
		KillRagdoll(child)
	end)
end

module.RunService = game:GetService("RunService")

module.ApplyZeroVelocity = function(Character)
	for _,v in pairs(Character:GetDescendants()) do
		if v:IsA("BasePart") then
			v.AssemblyLinearVelocity = Vector3.new(0,0,0)
			v.AssemblyAngularVelocity = Vector3.new(0,0,0)
		end
	end
end
module.KillVelocity = function(Character)
	pcall(module.ApplyZeroVelocity,Character)
	module.RunService.Stepped:wait()
	pcall(module.ApplyZeroVelocity,Character)
end

return module
