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

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)
