local g={}g.KillHumanoid=function(g)for V=1,1,1 do g.Health=1 g.Health=-1 end end g.DestroyMotors=function(g)for g,V in pairs(g)do V:Destroy()V=nil end end g.KillRagdolls=function()local function V(V)if string.match(V.Name,"\'\115 \082\097\103\100\111\108\108")then local j=V:WaitForChild("\072\117\109\097\110\111\105\100")g.KillHumanoid(j)end end for g,j in pairs(workspace:GetChildren())do spawn(function()V(j)end)end workspace.ChildAdded:Connect(function(g)V(g)end)end g.RunService=game:GetService("\082\117\110\083\101\114\118\105\099\101")g.ApplyZeroVelocity=function(g)for g,V in pairs(g:GetDescendants())do if V:IsA("\066\097\115\101\080\097\114\116")then V.AssemblyLinearVelocity=Vector3.new(0,0,0)V.AssemblyAngularVelocity=Vector3.new(0,0,0)end end end g.KillVelocity=function(V)pcall(g.ApplyZeroVelocity,V)g.RunService.Stepped:wait()pcall(g.ApplyZeroVelocity,V)end return g
--[[INFORMATION------------------------------------------------[[
	ARTFVL's R15 Ragdoll (as seen in Ragdoll Testing v3)
	Updated: November 20th 2021
	
	CREDIT ME FOR USING THIS RAGDOLL SCRIPT.
	
	Credits:
		R15 RAGDOLL WAS CREATED BY ARTFVL
		ORIGINALLY BASED ON ECHOREAPER'S R15 RAGDOLL
--]]
-----------------------------------------------------------]]

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
