The man described the container as a "toy" and told the girl she could go with him if she wanted more.
The 11-year-old was walking a dog in Savile Park at around 5pm yesterday (Thursday) when the man started following her.
He was wearing a black bomber jacket and tracksuit, and had a black beard.
Halifax man jailed for being part of £6m drugs gang
Police investigating possible firearm incident in Halifax
Child suffers serious injuries in Halifax crash
Police called over safety concerns of man spotted at North Bridge in Halifax
Fun day to honour much-loved Sowerby Bridge dad-of-three
He followed her up Avondale Place, onto Rufford Road and then he got into a black Audi on Manor Drive.
Police have confirmed they are investigating.
Anyone with information that might help with their enquiries can call them via 101 or use the live chat function on the West Yorkshire Police website.