bapereira

Noob ou poderoso (clicar na tela)

Oct 15th, 2019
159
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. --[[
  2. Project's author: Nettoork#0000
  3. ]]--
  4.  
  5. function eventNewPlayer(name)
  6. system.bindMouse(name, true)
  7. end
  8.  
  9. do
  10. local _, nickname = pcall(nil)
  11. author = string.match(nickname, "(.-)%.")
  12. end
  13.  
  14. local id = 0
  15. eventMouse = function(name, x, y)
  16. local message, color = "0x"..math.random(000000,999999), nil
  17. if name == author then
  18. message = "Eu, "..name..", sou o mais poderoso da sala!"
  19. else
  20. message = "Eu, "..name..", sou apenas um noob ;("
  21. end
  22. id = id +1
  23. ui.addTextArea(id, message, nil, x, y, 0, 30, color, color, 0.5, false)
  24. end
  25.  
  26. table.foreach(tfm.get.room.playerList, eventNewPlayer)
Advertisement
Add Comment
Please, Sign In to add comment