If you spawn a stickman then turn him into a broken metal state then run him into a wall while shooting it creats an electricle current.
Wiki:
Note that it you place his head against a metal, he will spark the metal. This feature enables stickmen to use electronics.
Maybe broken metal is a kind of metal.
Stickman will spark any conductor that his head is touching when you hold down. This is useful for letting stickman "use" items such as a gun.