# This is a simple plan for our Trick Tile # We call this plan a "Script" # 1. Define the Trick Tile MyFloor := TrickTileDevice{ # This is the device we placed } # 2. Define the Trigger MyTrigger := TriggerDevice{ # This is the sensor we placed } # 3. Connect them # When the Trigger is touched... MyTrigger.OnTriggered += func(TriggerDevice): # ...Wait for 3 seconds Wait(3.0) # ...Then make the floor disappear MyFloor.Disable() # 4. Make it come back # After it disappears, wait 5 seconds Wait(5.0) # ...Then make the floor reappear MyFloor.Enable()