Yeah it's an offence in a lot of places.

A fake gun waved in someone's face is just as good as a real gun in most places (Obviously not in the U.S. where if you do that, bullets are probably going to fly).