use Libraries.Robots.Lego.Button // Button6 codeuse Libraries.Robots.Lego.Screen // New libary for the buttons and display.Button buttonScreen screen //you need create a name for this objectscreen:OutputCenterLarge("Hello", 1)screen:OutputCenterLarge("World", 3)screen:OutputCenter("PressButtons4Light", 5)screen:OutputCenter("PressEscape2Exit", 6)button:SetLightPattern(0) //these sets the light pattern to off.repeat until button:IsButtonPressed(button:ESCAPE_BUTTON) //sets up how to leave this section. if button:IsButtonPressed(button:LEFT_BUTTON) //read the line. Is it true? True? do the next line button:SetLightPattern(1) elseif button:IsButtonPressed(button:RIGHT_BUTTON) //same as above button:SetLightPattern(2) elseif button:IsButtonPressed(button:UP_BUTTON) // do the same for each button button:SetLightPattern(3) elseif button:IsButtonPressed(button:DOWN_BUTTON) button:SetLightPattern(4) elseif button:IsButtonPressed(button:CENTER_BUTTON) button:SetLightPattern(5) end //ends the if/elseif and returns to line 10end //ends the repeat if escape button is pressedscreen:Clear() repeat 25 times //creates a little time for your finger to move off of the escape keyscreen:OutputCenterLarge("Bye,Bye",1)end //ends the repeat in line 24screen:OutputCenter("PressEscape2Exit",4)repeat until button:IsButtonPressed(button:ESCAPE_BUTTON)end// exits the program when repeat condision is met