Advertisement
TJtheDJ701

testy

Mar 6th, 2017
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. local monitor = peripheral.wrap("top")
  2. function centerText(text,yVal)
  3. length = string.len(text)
  4. minus = math.floor(wM-length)
  5. x = math.floor(minus/2)
  6. monitor.setCursorPos(x+1,yVal)
  7. monitor.write(text)
  8. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement