use Libraries.Robots.Lego.Motor use Libraries.Robots.Lego.ColorSensor use Libraries.Robots.Lego.Screen use Libraries.Robots.Lego.Utility action Main Screen screen Utility utility ColorSensor color color:SetPort(2) screen:OutputCenter("Color:", 1) repeat while true text name = color:GetColor() screen:OutputCenterLarge(name, 3) utility:DelayMilliseconds(500) end end