How do you make lasers turn on and off

Welcome to the forum, @Alex !! Try to use this: