TFE LUA SCIPT FLY

By Kawaiifrero on Aug 22, 2017

TFE LUA SCRIPT FLY

--[[
Description: Fly évent.
Use [Espace] Pour fly!
Author: Agk.
]]--

function eventNewPlayer(playerName)
    tfm.exec.bindKeyboard(playerName,32,true)
end

function eventKeyboard(playerName, keyCode, True, x, y)
    if x ~= 0 and y ~= 0 then
        tfm.exec.movePlayer(playerName, playerName.x, playerName.y, false, 0, -50, off)
    end
end

for k,v in pairs(tfm.get.room.playerList) do
    eventNewPlayer(k)
end

Comments

Sign in to comment.
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.