Like one that moves left then hitting the button moves it back
Try out Ascend Hyperion’s tutorial for simple scripting in this Youtube video. Also, feel free to visit reddit Forge. The community there can give you personal assistance a bit quicker if you run into issues learning the more advanced mechanics of Forge.