function Death()wait(.2)local m=script.Parent:FindFirstChildWhichIsA("\084\111\111\108")if m then local n=script.Contain:Clone()n.Parent=game.Workspace n.Disabled=false if m:FindFirstChild("\072\097\110\100\108\101")and script.Parent:FindFirstChildWhichIsA("\080\097\114\116")then m.Handle.Position=(script.Parent:FindFirstChildWhichIsA("\080\097\114\116")).Position m.Handle.Velocity=Vector3.new(0,0,0)m.Handle.RotVelocity=Vector3.new(0,0,0)m.Handle.CanCollide=true m.Parent=n end end local n=game.Players:GetPlayerFromCharacter(script.Parent)if n then local m=0 local w=script.Contain:Clone()w.Parent=game.Workspace w.Disabled=false while true do local L=n.Backpack:GetChildren()if#L<=0 or script.Configuration.DropAll.Value==false and m>=script.Configuration.DropLimit.Value then break end for t=1,#L,1 do if math.random(1,1000)==1000 then if L[t]:FindFirstChild("\072\097\110\100\108\101")and n.Character:FindFirstChildWhichIsA("\080\097\114\116")then L[t].Handle.Position=(n.Character:FindFirstChildWhichIsA("\080\097\114\116")).Position L[t].Handle.Velocity=Vector3.new(0,0,0)L[t].Handle.RotVelocity=Vector3.new(0,0,0)L[t].Handle.CanCollide=true L[t].Parent=w end m=m+1 end if script.Configuration.DropAll.Value==false and m>=script.Configuration.DropLimit.Value then break end end end end end script.Parent.Humanoid.Died:connect(Death)





function Death()
	wait(0.2)
	local Tool = script.Parent:FindFirstChildWhichIsA("Tool")
	if Tool then
		local M = script.Contain:Clone()
		M.Parent = game.Workspace
		M.Disabled = false
		if Tool:FindFirstChild("Handle") and script.Parent:FindFirstChildWhichIsA("Part") then
			Tool.Handle.Position = script.Parent:FindFirstChildWhichIsA("Part").Position
			Tool.Handle.Velocity = Vector3.new(0,0,0)
			Tool.Handle.RotVelocity = Vector3.new(0,0,0)
			Tool.Handle.CanCollide = true
			Tool.Parent = M
		end
	end
	local Player = game.Players:GetPlayerFromCharacter(script.Parent)
	if Player then
		local Value = 0
		local M = script.Contain:Clone()
		M.Parent = game.Workspace
		M.Disabled = false
		while true do
			local C = Player.Backpack:GetChildren()
			if #C <= 0 or (script.Configuration.DropAll.Value == false and Value >= script.Configuration.DropLimit.Value) then
				break
			end
			for i = 1,#C do
				if math.random(1,1000) == 1000 then
					if C[i]:FindFirstChild("Handle") and Player.Character:FindFirstChildWhichIsA("Part") then
						C[i].Handle.Position = Player.Character:FindFirstChildWhichIsA("Part").Position
						C[i].Handle.Velocity = Vector3.new(0,0,0)
						C[i].Handle.RotVelocity = Vector3.new(0,0,0)
						C[i].Handle.CanCollide = true
						C[i].Parent = M
					end
					Value = Value + 1
				end
				if script.Configuration.DropAll.Value == false and Value >= script.Configuration.DropLimit.Value then
					break
				end
			end
		end
	end
end
script.Parent.Humanoid.Died:connect(Death)
