Lua Script.

Was this helpful


  • Total voters
    109
  • Poll closed .
Status
Hilo no abierto para más respuestas.

Tweiii

Mouse
Make it snow in the current map
Markdown (GitHub flavored):
tfm.exec.snow()
Set a player as a vampire
Markdown (GitHub flavored):
tfm.exec.setVampirePlayer("Name")
Kill somebody in the current room
Markdown (GitHub flavored):
tfm.exec.killPlayer("Name")
Change the map in the current room
Markdown (GitHub flavored):
tfm.exec.newGame("@")
Give the cheese to a player in the current room
Markdown (GitHub flavored):
tfm.exec.giveCheese("Name")
Make the player win the map in the current room
Markdown (GitHub flavored):
tfm.exec.playerVictory("Name")
Make everyone in the current room fly
Markdown (GitHub flavored):
function eventNewPlayer(name)
tfm.exec.bindKeyboard(name,38,true,true)
end
for name in pairs(tfm.get.room.playerList) do
for keys, k in pairs({38, 87}) do
tfm.exec.bindKeyboard(name, k, true, true)
end
end
function eventKeyboard(name,key,down,x,y)
if key==38 then
tfm.exec.movePlayer(name,0,0,true,0,-80,false)
elseif key==87 then
tfm.exec.movePlayer(name,0,0,true,0,-80,false)
end
end

// credit to dark_nlght
Spawn a cannon with the z or x keys in the current room
Markdown (GitHub flavored):
for name in pairs(tfm.get.room.playerList) do
for keys, k in pairs({88, 90}) do
tfm.exec.bindKeyboard(name, k, true, true)
end
end
function eventKeyboard(name, key, down, x, y)
if key == 88 then
tfm.exec.addShamanObject(17,x+25,y,90,100,500,false)
elseif key == 90 then
tfm.exec.addShamanObject(17,x-25,y,-90,-100,-500,false)
end
end

// credit to dark_nlght
 
Last edited:

Killstrike

Active Mouse
Click the spoilers to see the contents:

function eventNewPlayer(name)
tfm.exec.bindKeyboard(name,38,true,true)
end
for name in pairs(tfm.get.room.playerList) do
for keys, k in pairs({38, 87}) do
tfm.exec.bindKeyboard(name, k, true, true)
end
end
function eventKeyboard(name,key,down,x,y)
if key==38 then
tfm.exec.movePlayer(name,0,0,true,0,-80,false)
elseif key==87 then
tfm.exec.movePlayer(name,0,0,true,0,-80,false)
end
end
for name in pairs(tfm.get.room.playerList) do
for keys, k in pairs({88, 90}) do
tfm.exec.bindKeyboard(name, k, true, true)
end
end
function eventKeyboard(name, key, down, x, y)
if key == 88 then
tfm.exec.addShamanObject(17,x+25,y,90,100,500,false)
elseif key == 90 then
tfm.exec.addShamanObject(17,x-25,y,-90,-100,-500,false)
end
end

function eventChatCommand(name,command)
if command=="cheese" then
tfm.exec.giveCheese(name)
elseif command=="mort" then
tfm.exec.killPlayer(name)
elseif command=="snow" then
tfm.exec.snow(120, 0)
elseif command=="new" then
tfm.exec.newGame("@")
elseif command=="win" then
tfm.exec.playerVictory(name)
elseif command=="score" then
tfm.exec.setPlayerScore(name, 9999, true)
elseif command=="meep" then
tfm.exec.giveMeep(name)
elseif command=="vamp" then
tfm.exec.setVampirePlayer(name)
end
end
Like pls!

edited: please refrain from multi posting hackoio
Update:
Added new commands
 
Last edited:

Tweiii

Mouse
Click the spoilers to see the contents:

function eventNewPlayer(name)
tfm.exec.bindKeyboard(name,38,true,true)
end
for name in pairs(tfm.get.room.playerList) do
for keys, k in pairs({38, 87}) do
tfm.exec.bindKeyboard(name, k, true, true)
end
end
function eventKeyboard(name,key,down,x,y)
if key==38 then
tfm.exec.movePlayer(name,0,0,true,0,-80,false)
elseif key==87 then
tfm.exec.movePlayer(name,0,0,true,0,-80,false)
end
end
for name in pairs(tfm.get.room.playerList) do
for keys, k in pairs({88, 90}) do
tfm.exec.bindKeyboard(name, k, true, true)
end
end
function eventKeyboard(name, key, down, x, y)
if key == 88 then
tfm.exec.addShamanObject(17,x+25,y,90,100,500,false)
elseif key == 90 then
tfm.exec.addShamanObject(17,x-25,y,-90,-100,-500,false)
end
end

Like pls!
thanks!
NEW
the last two scripts are by dark_nlght and not me!​
 
Last edited by a moderator:

Omaraldin

Little Mouse
Make everyone dance:
Code:
-- Admin can make everyone dance by press SPACE
can='Username' -- Admin username
id=0 -- Emote İD
function eventKeyboard(name,key,down,x,y)
if key == 32 then
for n,p in pairs(tfm.get.room.playerList) do
tfm.exec.playEmote(n,id,"",false)
end
end
tfm.exec.bindKeyboard(can,32,true,true)
 

Jasbear

Cheesus
Nice script (y)
 

Cryaotic

¡Ándale! ¡Ándale!
so you copy and paste that all into the chat with /lua ?
 

Yujin

Shaman
Great & helpful thread!
 

Q85

Little Mouse
for Ala_micc in pairs(tfm.get.room.playerList) do
for keys, k in pairs({88, 90}) do
tfm.exec.bindKeyboard(name, k, true, true)
end
end
function eventKeyboard(name, key, down, x, y)
if key == 88 then
tfm.exec.addShamanObject(17,x+25,y,90,100,500,false)
elseif key == 90 then
tfm.exec.addShamanObject(17,x-25,y,-90,-100,-500,false)
end
en
 
Status
Hilo no abierto para más respuestas.
Top
"Dev-TR" theme by Soulzone