Admiral_Damage

Untitled

Dec 9th, 2017
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.19 KB | None | 0 0
  1. local w, h = 6, 6
  2. local time = "13:48 PM"
  3. local scale = 5
  4.  
  5. local x = (math.floor((w - #time)*(scale/2))/2)
  6. local y = (math.floor((h - #time)*(scale/2))/2)
  7. print("X: " .. x)
  8. print("Y: " .. y)
Advertisement
Add Comment
Please, Sign In to add comment