Advertisement
Guest User

Untitled

a guest
Feb 28th, 2015
189
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.17 KB | None | 0 0
  1. local function centerText(text)
  2. x,y = m.getSize()
  3. x1,y1 = m.getCursorPos()
  4. m.setCursorPos((math.floor(x/2) - (math.floor(#text/2))), y1)
  5. m.write(text)
  6. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement