bapereira

Nome piscando colorido

Nov 30th, 2019
229
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. function randomColor()
  2. return "0x" .. string.format("%X", math.random(0x000000, 0xFFFFFF, 0xFFD700, 0x6959CD, 0xFF3E96, 0xFF7F24, 0x9B30FF, 0xE8E8E8))
  3. end
  4. function eventLoop (currentTime, timeRemaining)
  5. for i=1,100 do
  6. for p,_ in pairs(tfm.get.room.playerList) do
  7. tfm.exec.setNameColor(p, randomColor());
  8. end
  9. end
  10. end
Add Comment
Please, Sign In to add comment