Bolodefchoco_LUAXML

[Script] Speed

Jul 20th, 2015
855
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.73 KB | None | 0 0
  1. --Creator: Bolodefchoco
  2. --Made in: 20/07/2015
  3. --Last update: 15/05/2016
  4. --[[ Notes:
  5.     Does:
  6.         Hack Speed.
  7.     Keys:
  8.         Espaço --<-- Utiliza o Speed. (Editável em #*)
  9. ]]--
  10.  
  11. velocity = 35 -- Velocidade do rato
  12. key = 32 -- #*
  13.  
  14. mice={}
  15. eventNewPlayer=function(n) mice[n]={right=true}
  16.     for _,k in next,{0,2,key} do
  17.         system.bindKeyboard(n,k,true,true)
  18.     end
  19. end
  20. table.foreach(tfm.get.room.playerList,eventNewPlayer)
  21.  
  22. eventNewGame=function() table.foreach(tfm.get.room.playerList,function(n) mice[n]={right=true} end) end
  23.  
  24. eventKeyboard=function(n,k)
  25.     if k==key then
  26.         tfm.exec.movePlayer(n,0,0,false,(mice[n].right and velocity or -velocity),0,true)
  27.     end
  28.     if k==0 then mice[n].right=false elseif k==2 then mice[n].right=true end
  29. end
Advertisement
Add Comment
Please, Sign In to add comment