Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Creator: Hass
- --Made in: 18/01/2020
- --Last update: 18/01/2020
- --[[ Notes:
- Does:
- Hack Speed.
- Keys:
- Space --<-- Use Speed. (Editable in # *)
- ]]--
- velocity = 35 -- Mouse speed
- key = 32 -- #*
- mice={}
- eventNewPlayer=function(n) mice[n]={right=true}
- for _,k in next,{0,2,key} do
- system.bindKeyboard(n,k,true,true)
- end
- end
- table.foreach(tfm.get.room.playerList,eventNewPlayer)
- eventNewGame=function() table.foreach(tfm.get.room.playerList,function(n) mice[n]={right=true} end) end
- eventKeyboard=function(n,k)
- if k==key then
- tfm.exec.movePlayer(n,0,0,false,(mice[n].right and velocity or -velocity),0,true)
- end
- if k==0 then mice[n].right=false elseif k==2 then mice[n].right=true end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement