--Put this script in a mob to make it drop item. Don't forget to enable this script!


local item = Game.ReplicatedStorage.ITEMS:FindFirstChild(script.Item.Value):Clone()
local Humanoid = script.Parent.Human
function PwntX_X() 
local tag = Humanoid:FindFirstChild("creator") 
	if tag ~= nil then 
		if tag.Value ~= nil then 
			if math.random(1, 100) <= script.DropChance.Value then
				local Leaderstats = tag.Value:FindFirstChild("StarterGear") 
				local ll = tag.Value:FindFirstChild("Backpack") 
				if Leaderstats ~= nil and ll~= nil then 
					if script.KeptOnDeath.Value == true then
						item:Clone().Parent = Leaderstats
						item:Clone().Parent = ll
					else
						item:Clone().Parent = ll
					end
					wait(0.1)
					script:Remove()
				end
			end 
		end 
	end 
end 

Humanoid.Died:connect(PwntX_X) 
