Hundreds of people gathered outside the Dell Stadium in Brierley Hill on Sunday afternoon to pay tribute to 19-year-old Pauly Skidmore.
The former Pensnett High School pupil died after a collision on Stream Road, Kingswinford, on Tuesday.
However, West Midlands Police put in place a dispersal order after reports of dangerous driving, and launched drones in the area.
Videos shared on social media on Sunday afternoon showed several people riding off-road bikes and quad bikes in Brierley Hill without helmets, some in balaclavas.
Police also warned that a stinger device could be used on vehicles, and appealed for relatives of anyone involved in the vigil to "encourage them to stop".
Brierley Hill Police said: "We are aware of a large gathering of bikes in and around the Dell Stadium in Brierley Hill with some being ridden dangerously and alarming local residents.
"We have deployed officers to the scene due to numerous complaints from the public.
"We are aware and respectful of the vigil, but we have had many calls from residents of off-road and quad bikes being ridden dangerously.
"We have traffic officers and drones in the area and we have put a dispersal order in place until midnight tonight to ensure the safety of the public.
"Anyone riding anti-socially risks being prosecuted and their vehicle being seized."
A later statement said: "We now have police drones in the area and a stinger may be used. We ask any family members aware of those taking part and riding dangerously to encourage them to stop as we are concerned for public safety.
"We don’t take these decisions lightly but this behaviour is unacceptable."
Throngs of people had lined the streets in tribute to the 19-year-old, with one person commenting: "Incredible tribute to Pauly Skidmore today, never seen anything quite like it.
"RIP Pauly your family and friends did you proud today."
Blue and yellow flares were set off and balloons were released in memory of the 19-year-old, while motorcyclists wore "RIP Pauly" shirts in tribute to their late friend.
A fundraiser to go towards funeral costs for Pauly can be seen online at gofundme.com/f/little-pauly.