Ho w to make a laser turn off and on

i need this for my game

If you want it to turn on/off with a button, link up a button with your laser and wire it to activate/deactivate.

Do you mean in intervals?

Look at my configurable timed lasers guide in community-made guides! @Brandon81349