config=script.Config ahd=config.Auto_Head_Decap.Value gore=config.Gore.Value bod=config.Blood_On_Death.Value Character=script.Parent Humanoid=Character.Humanoid Torso=Character.Torso function OnDeath()Humanoid.Parent=nil if Torso then Torso.Parent=game.Workspace local G=Character:FindFirstChild("\072\101\097\100")if G then G.Parent=game.Workspace local h=Instance.new("\087\101\108\100")h.Name="\078\101\099\107"h.Part0=Torso h.Part1=G h.C0=CFrame.new(0,1.5,0)h.C1=CFrame.new()h.Parent=Torso;(script.HDecap:Clone()).Parent=G if ahd then G:BreakJoints()if bod then blood=game.Lighting.Blood:Clone()blood.CFrame=CFrame.new(Vector3.new(G.Position.X+math.random(-5,5),G.Position.Y+math.random(-5,5),G.Position.Z+math.random(-5,5)))blood.Parent=game.Workspace blood=game.Lighting.Blood:Clone()blood.CFrame=CFrame.new(Vector3.new(G.Position.X+math.random(-5,5),G.Position.Y+math.random(-5,5),G.Position.Z+math.random(-5,5)))blood.Parent=game.Workspace blood=game.Lighting.Blood:Clone()blood.CFrame=CFrame.new(Vector3.new(G.Position.X+math.random(-5,5),G.Position.Y+math.random(-5,5),G.Position.Z+math.random(-5,5)))blood.Parent=game.Workspace end if gore then brain=game.Lighting["\066\114\097\105\110 \071\105\098"]:Clone()brain.CFrame=CFrame.new(Vector3.new(G.Position.X+math.random(-5,5),G.Position.Y+math.random(-5,5),G.Position.Z+math.random(-5,5)))brain.Parent=game.Workspace flesh=game.Lighting["\070\108\101\115\104 \071\105\098"]:Clone()flesh.CFrame=CFrame.new(Vector3.new(G.Position.X+math.random(-5,5),G.Position.Y+math.random(-5,5),G.Position.Z+math.random(-5,5)))flesh.Parent=game.Workspace flesh=game.Lighting["\070\108\101\115\104 \071\105\098"]:Clone()flesh.CFrame=CFrame.new(Vector3.new(G.Position.X+math.random(-5,5),G.Position.Y+math.random(-5,5),G.Position.Z+math.random(-5,5)))flesh.Parent=game.Workspace end end end local h=Character:FindFirstChild("\082\105\103\104\116 \065\114\109")if h then h.Parent=game.Workspace;(script.Decap:Clone()).Parent=h h.CFrame=Torso.CFrame*CFrame.new(1.5,0,0)local G=Instance.new("\071\108\117\101")G.Name="\082\105\103\104\116\083\104\111\117\108\100\101\114"G.Part0=Torso G.Part1=h G.C0=CFrame.new(1.5,.5,0,0,0,1,0,1,0,-1,0,0)G.C1=CFrame.new(0,.5,0,0,0,1,0,1,0,-1,0,0)G.Parent=Torso local F=Instance.new("\080\097\114\116")F.TopSurface=0 F.BottomSurface=0 F.formFactor="\083\121\109\109\101\116\114\105\099"F.Size=Vector3.new(1,1,1)F.Transparency=1 F.CFrame=h.CFrame*CFrame.new(0,-0.5,0)F.Parent=Character local e=Instance.new("\087\101\108\100")e.Part0=h e.Part1=F e.C0=CFrame.new(0,-0.5,0)e.Parent=h end local F=Character:FindFirstChild("\076\101\102\116 \065\114\109")if F then F.Parent=game.Workspace;(script.Decap:Clone()).Parent=F F.CFrame=Torso.CFrame*CFrame.new(-1.5,0,0)local G=Instance.new("\071\108\117\101")G.Name="\076\101\102\116\083\104\111\117\108\100\101\114"G.Part0=Torso G.Part1=F G.C0=CFrame.new(-1.5,.5,0,0,0,-1,0,1,0,1,0,0)G.C1=CFrame.new(0,.5,0,0,0,-1,0,1,0,1,0,0)G.Parent=Torso local h=Instance.new("\080\097\114\116")h.TopSurface=0 h.BottomSurface=0 h.formFactor="\083\121\109\109\101\116\114\105\099"h.Size=Vector3.new(1,1,1)h.Transparency=1 h.CFrame=F.CFrame*CFrame.new(0,-0.5,0)h.Parent=Character local e=Instance.new("\087\101\108\100")e.Part0=F e.Part1=h e.C0=CFrame.new(0,-0.5,0)e.Parent=F end local e=Character:FindFirstChild("\082\105\103\104\116 \076\101\103")if e then e.Parent=game.Workspace;(script.Decap:Clone()).Parent=e e.CFrame=Torso.CFrame*CFrame.new(.5,-2,0)local G=Instance.new("\071\108\117\101")G.Name="\082\105\103\104\116\072\105\112"G.Part0=Torso G.Part1=e G.C0=CFrame.new(.5,-1,0,0,0,1,0,1,0,-1,0,0)G.C1=CFrame.new(0,1,0,0,0,1,0,1,0,-1,0,0)G.Parent=Torso local h=Instance.new("\080\097\114\116")h.TopSurface=0 h.BottomSurface=0 h.formFactor="\083\121\109\109\101\116\114\105\099"h.Size=Vector3.new(1,1,1)h.Transparency=1 h.CFrame=e.CFrame*CFrame.new(0,-0.5,0)h.Parent=Character local F=Instance.new("\087\101\108\100")F.Part0=e F.Part1=h F.C0=CFrame.new(0,-0.5,0)F.Parent=e end local o=Character:FindFirstChild("\076\101\102\116 \076\101\103")if o then o.Parent=game.Workspace;(script.Decap:Clone()).Parent=o o.CFrame=Torso.CFrame*CFrame.new(-0.5,-2,0)local G=Instance.new("\071\108\117\101")G.Name="\076\101\102\116\072\105\112"G.Part0=Torso G.Part1=o G.C0=CFrame.new(-0.5,-1,0,0,0,-1,0,1,0,1,0,0)G.C1=CFrame.new(0,1,0,0,0,-1,0,1,0,1,0,0)G.Parent=Torso local h=Instance.new("\080\097\114\116")h.TopSurface=0 h.BottomSurface=0 h.formFactor="\083\121\109\109\101\116\114\105\099"h.Size=Vector3.new(1,1,1)h.Transparency=1 h.CFrame=o.CFrame*CFrame.new(0,-0.5,0)h.Parent=Character local F=Instance.new("\087\101\108\100")F.Part0=o F.Part1=h F.C0=CFrame.new(0,-0.5,0)F.Parent=o end local m=Instance.new("\080\097\114\116")m.TopSurface=0 m.BottomSurface=0 m.formFactor="\083\121\109\109\101\116\114\105\099"m.Size=Vector3.new(1,1,1)m.Transparency=1 m.CFrame=Torso.CFrame*CFrame.new(0,.5,0)m.Parent=game.Workspace local B=Instance.new("\087\101\108\100")B.Part0=Torso B.Part1=m B.C0=CFrame.new(0,.5,0)B.Parent=Torso end end Humanoid.Died:connect(OnDeath)
-- Load config
config = script.Config

ahd = config.Auto_Head_Decap.Value
gore = config.Gore.Value
bod = config.Blood_On_Death.Value

Character = script.Parent
Humanoid = Character.Humanoid
Torso = Character.Torso

function OnDeath()
	Humanoid.Parent = nil
	if Torso then
		Torso.Parent = game.Workspace
		local Head = Character:FindFirstChild("Head")
		if Head then
			Head.Parent = game.Workspace
			local Neck = Instance.new("Weld")
			Neck.Name = "Neck"
			Neck.Part0 = Torso
			Neck.Part1 = Head
			Neck.C0 = CFrame.new(0, 1.5, 0)
			Neck.C1 = CFrame.new()
			Neck.Parent = Torso

			script.HDecap:Clone().Parent = Head

			if ahd then
				Head:BreakJoints()

				if bod then
					blood = game.Lighting.Blood:Clone()
					blood.CFrame = CFrame.new(
						Vector3.new(
							Head.Position.X + math.random(-5, 5),
							Head.Position.Y + math.random(-5, 5),
							Head.Position.Z + math.random(-5, 5)
						)
					)
					blood.Parent = game.Workspace

					blood = game.Lighting.Blood:Clone()
					blood.CFrame = CFrame.new(
						Vector3.new(
							Head.Position.X + math.random(-5, 5),
							Head.Position.Y + math.random(-5, 5),
							Head.Position.Z + math.random(-5, 5)
						)
					)
					blood.Parent = game.Workspace

					blood = game.Lighting.Blood:Clone()
					blood.CFrame = CFrame.new(
						Vector3.new(
							Head.Position.X + math.random(-5, 5),
							Head.Position.Y + math.random(-5, 5),
							Head.Position.Z + math.random(-5, 5)
						)
					)
					blood.Parent = game.Workspace
				end

				if gore then
					brain = game.Lighting["Brain Gib"]:Clone()
					brain.CFrame = CFrame.new(
						Vector3.new(
							Head.Position.X + math.random(-5, 5),
							Head.Position.Y + math.random(-5, 5),
							Head.Position.Z + math.random(-5, 5)
						)
					)
					brain.Parent = game.Workspace

					flesh = game.Lighting["Flesh Gib"]:Clone()
					flesh.CFrame = CFrame.new(
						Vector3.new(
							Head.Position.X + math.random(-5, 5),
							Head.Position.Y + math.random(-5, 5),
							Head.Position.Z + math.random(-5, 5)
						)
					)
					flesh.Parent = game.Workspace

					flesh = game.Lighting["Flesh Gib"]:Clone()
					flesh.CFrame = CFrame.new(
						Vector3.new(
							Head.Position.X + math.random(-5, 5),
							Head.Position.Y + math.random(-5, 5),
							Head.Position.Z + math.random(-5, 5)
						)
					)
					flesh.Parent = game.Workspace
				end
			end
		end
		local Limb = Character:FindFirstChild("Right Arm")
		if Limb then
			Limb.Parent = game.Workspace
			script.Decap:Clone().Parent = Limb
			Limb.CFrame = Torso.CFrame * CFrame.new(1.5, 0, 0)
			local Joint = Instance.new("Glue")
			Joint.Name = "RightShoulder"
			Joint.Part0 = Torso
			Joint.Part1 = Limb
			Joint.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
			Joint.C1 = CFrame.new(-0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
			Joint.Parent = Torso

			local B = Instance.new("Part")
			B.TopSurface = 0
			B.BottomSurface = 0
			B.formFactor = "Symmetric"
			B.Size = Vector3.new(1, 1, 1)
			B.Transparency = 1
			B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
			B.Parent = Character
			local W = Instance.new("Weld")
			W.Part0 = Limb
			W.Part1 = B
			W.C0 = CFrame.new(0, -0.5, 0)
			W.Parent = Limb
		end
		local Limb = Character:FindFirstChild("Left Arm")
		if Limb then
			Limb.Parent = game.Workspace
			script.Decap:Clone().Parent = Limb
			Limb.CFrame = Torso.CFrame * CFrame.new(-1.5, 0, 0)
			local Joint = Instance.new("Glue")
			Joint.Name = "LeftShoulder"
			Joint.Part0 = Torso
			Joint.Part1 = Limb
			Joint.C0 = CFrame.new(-1.5, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
			Joint.C1 = CFrame.new(0, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
			Joint.Parent = Torso

			local B = Instance.new("Part")
			B.TopSurface = 0
			B.BottomSurface = 0
			B.formFactor = "Symmetric"
			B.Size = Vector3.new(1, 1, 1)
			B.Transparency = 1
			B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
			B.Parent = Character
			local W = Instance.new("Weld")
			W.Part0 = Limb
			W.Part1 = B
			W.C0 = CFrame.new(0, -0.5, 0)
			W.Parent = Limb
		end
		local Limb = Character:FindFirstChild("Right Leg")
		if Limb then
			Limb.Parent = game.Workspace
			script.Decap:Clone().Parent = Limb
			Limb.CFrame = Torso.CFrame * CFrame.new(0.5, -2, 0)
			local Joint = Instance.new("Glue")
			Joint.Name = "RightHip"
			Joint.Part0 = Torso
			Joint.Part1 = Limb
			Joint.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
			Joint.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
			Joint.Parent = Torso

			local B = Instance.new("Part")
			B.TopSurface = 0
			B.BottomSurface = 0
			B.formFactor = "Symmetric"
			B.Size = Vector3.new(1, 1, 1)
			B.Transparency = 1
			B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
			B.Parent = Character
			local W = Instance.new("Weld")
			W.Part0 = Limb
			W.Part1 = B
			W.C0 = CFrame.new(0, -0.5, 0)
			W.Parent = Limb
		end
		local Limb = Character:FindFirstChild("Left Leg")
		if Limb then
			Limb.Parent = game.Workspace
			script.Decap:Clone().Parent = Limb
			Limb.CFrame = Torso.CFrame * CFrame.new(-0.5, -2, 0)
			local Joint = Instance.new("Glue")
			Joint.Name = "LeftHip"
			Joint.Part0 = Torso
			Joint.Part1 = Limb
			Joint.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
			Joint.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
			Joint.Parent = Torso

			local B = Instance.new("Part")
			B.TopSurface = 0
			B.BottomSurface = 0
			B.formFactor = "Symmetric"
			B.Size = Vector3.new(1, 1, 1)
			B.Transparency = 1
			B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
			B.Parent = Character
			local W = Instance.new("Weld")
			W.Part0 = Limb
			W.Part1 = B
			W.C0 = CFrame.new(0, -0.5, 0)
			W.Parent = Limb
		end
		--[
		local Bar = Instance.new("Part")
		Bar.TopSurface = 0
		Bar.BottomSurface = 0
		Bar.formFactor = "Symmetric"
		Bar.Size = Vector3.new(1, 1, 1)
		Bar.Transparency = 1
		Bar.CFrame = Torso.CFrame * CFrame.new(0, 0.5, 0)
		Bar.Parent = game.Workspace
		local Weld = Instance.new("Weld")
		Weld.Part0 = Torso
		Weld.Part1 = Bar
		Weld.C0 = CFrame.new(0, 0.5, 0)
		Weld.Parent = Torso
		--]]
	end
end

Humanoid.Died:connect(OnDeath)
