local q=require(ReplicatedStorage.Common.APIEquipment)PlayersService.PlayerAdded:Connect(function(K)K.CharacterAdded:Connect(function(k)local B=k:WaitForChild("\072\117\109\097\110\111\105\100")if not B then return end B.Died:Connect(function()q.RemoveWeapons(K)end)end)end)

local APIEquipment = require(ReplicatedStorage.Common.APIEquipment)

PlayersService.PlayerAdded:Connect(function(player)
	
	-- When the character is added we'll listen for them to die.
	player.CharacterAdded:Connect(function(character)
		
		local humanoid = character:WaitForChild("Humanoid")
		if not humanoid then return end
		
		-- As soon as the player dies the weapons are removed
		humanoid.Died:Connect(function()
			APIEquipment.RemoveWeapons(player)
		end)
		
	end)
	
end)
