game.Players.PlayerAdded:Connect(function(m)m.CharacterAdded:Connect(function(m)m.Humanoid.BreakJointsOnDeath=false m.Humanoid.Died:Connect(function()m.HumanoidRootPart.RotVelocity=Vector3.new(180,360,90)for m,W in pairs(m:GetDescendants())do if W:IsA("\077\111\116\111\114\054\068")then local m,h=Instance.new("\065\116\116\097\099\104\109\101\110\116"),Instance.new("\065\116\116\097\099\104\109\101\110\116")m.CFrame=W.C0 h.CFrame=W.C1 m.Parent=W.Part0 h.Parent=W.Part1 local o=Instance.new("\066\097\108\108\083\111\099\107\101\116\067\111\110\115\116\114\097\105\110\116")o.Attachment0=m o.Attachment1=h o.Parent=W.Part0 W:Destroy()end end m.HumanoidRootPart.CanCollide=false end)end)end)


game.Players.PlayerAdded:Connect(function(p)
	p.CharacterAdded:Connect(function(c)
		c.Humanoid.BreakJointsOnDeath = false
		c.Humanoid.Died:Connect(function()
			c.HumanoidRootPart.RotVelocity = Vector3.new(180,360,90) -- Hopefully makes it so whenever you die, you don't just stand still. Feel free to remove it because this would only work for r6 lols
			for _, v in pairs(c:GetDescendants()) do
				if v:IsA("Motor6D") then
					local a0, a1 = Instance.new("Attachment"), Instance.new("Attachment")
					a0.CFrame = v.C0
					a1.CFrame = v.C1
					a0.Parent = v.Part0
					a1.Parent = v.Part1
					
					local b = Instance.new("BallSocketConstraint")
					b.Attachment0 = a0
					b.Attachment1 = a1
					b.Parent = v.Part0
					
					v:Destroy()
				end
			end
			c.HumanoidRootPart.CanCollide = false
		end)
	end)
end)

