Advertisement
Guest User

Untitled

a guest
Sep 3rd, 2019
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.19 KB | None | 0 0
  1. tfm.exec.disableAutoTimeLeft(disable)
  2. tfm.exec.disableAfkDeath(disable)
  3. tfm.exec.newGame("@7640468")
  4.  
  5. createRing = function(playerName, x, y, r1, r2, alpha, fineness, i)
  6. num = 0
  7. while num <= 2*math.pi do
  8. ui.addTextArea(i, "", playerName, r1*math.cos(num)+x-r2/2, r1*math.sin(num)+y-r2/2, r2, r2, 0x000000, 0x000001, alpha, true)
  9. num = num + 2*math.pi/fineness
  10. if i then
  11. i = i + 1
  12. end
  13. end
  14. return i
  15. end
  16.  
  17. nightMode = function(playerName)
  18. i = 0
  19. x = 400
  20. y = 250
  21.  
  22. i = createRing(playerName, x, y, 90, 35, 0.5, 25, i)
  23. i = createRing(playerName, x, y, 120, 40, 0.66, 30, i)
  24. i = createRing(playerName, x, y, 160, 50, 0.83, 40, i)
  25.  
  26. ui.addTextArea(i, "", playerName, 545, 0, 255, 400, 0x000000, 0x000001, 1, true)
  27. i=i+1
  28. ui.addTextArea(i, "", playerName, 0, 0, 255, 400, 0x000000, 0x000001, 1, true)
  29. i=i+1
  30. ui.addTextArea(i, "", playerName, 0, 0, 800, 123, 0x000000, 0x000001, 1, true)
  31. i=i+1
  32. ui.addTextArea(i, "", playerName, 0, 375, 800, 25, 0x000000, 0x000001, 1, true)
  33. i=i+1
  34. end
  35.  
  36. eventNewPlayer = function(playerName)
  37. nightMode(playerName)
  38. tfm.exec.respawnPlayer(playerName)
  39. end
  40.  
  41. for k, v in next, tfm.get.room.playerList do
  42. eventNewPlayer(v.playerName)
  43. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement