Advertisement
Guest User

Untitled

a guest
Feb 29th, 2020
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. function()
  2. local health = UnitHealth("target")
  3. local abbr = ""
  4. if health >= 10000 then
  5. health = health / 1000
  6. abbr = "k"
  7. end
  8. if health >= 10000 then
  9. health = health / 1000
  10. abbr = "m"
  11. end
  12.  
  13. return ("%.0f%s"):format(health, abbr)
  14. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement