Transformice - Lua Fly hack

By Jordy19 on Dec 07, 2014

This is basically the first script I wrote for Transformice.
The script allows you to fly.

--[[
Description: Fly hack ported to lua.
Use [SPACEBAR] to fly!
Author: Jordynl.
]]--

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.
moonlightcat101   -  Jan 17, 2015

It kinda won't work for me please explain it.

Heartzrocker  -  Oct 07, 2015

are you leader in your tribe?

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.