Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Main FrameWork :
- numbers=10
- emote=5
- function eventNewPlayer(name)
- tfm.exec.bindKeyboard(name,32,true,true)
- end
- for name,player in pairs(tfm.get.room.playerList) do
- eventNewPlayer(name)
- end
- function eventKeyboard(playerName,key,down,x,y)
- if key==32 then
- if tfm.get.room.playerList[playerName].isFacingRight then
- tfm.exec.displayParticle(emote, x, y+30, 5, 0.05, 0.05, 0, nil)
- tfm.exec.displayParticle(emote, x, y+20, 5, 0.05, 0.05, 0, nil)
- tfm.exec.displayParticle(emote, x, y+10, 5, 0.05, 0.05, 0, nil)
- tfm.exec.displayParticle(emote, x, y, 5, 0.05, 0.05, 0, nil)
- else
- tfm.exec.displayParticle(emote, x, y+30, -5, 0.05, -0.05, 0, nil)
- tfm.exec.displayParticle(emote, x, y+20, -5, 0.05, -0.05, 0, nil)
- tfm.exec.displayParticle(emote, x, y+10, -5, 0.05, -0.05, 0, nil)
- tfm.exec.displayParticle(emote, x, y, -5, 0.05, -0.05, 0, nil)
- end
- end
- end
- function eventChatCommand(playerName, cmd)
- local Stats = [[<font color="#f564ae" size="23">]]..playerName..[[</font>]]
- if cmd:sub(0,1) == "s" then
- ui.addTextArea(1, [[<font color="#99999f" size="25">>]]..playerName..[[</font> : <font color="#00f98a" size="25">]]..cmd:sub(3)..[[</u></font>]], nil,150,y,nil,nil,nil,nil,0.5, true)
- elseif cmd == "rpop" then
- ui.removeTextArea(1)
- ui.removeTextArea(2)
- ui.removeTextArea(3)
- elseif cmd:sub(0,1) == "t" then
- ui.addTextArea(2, [[<font color="#99eec9" size="25">>]]..playerName..[[</font> : <font color="#bebb9f" size="25">]]..cmd:sub(3)..[[</u></font>]], nil,150,100,nil,nil,nil,nil,0.5, true)
- elseif cmd:sub(0,1) == "a" then
- ui.addTextArea(3, [[<font color="#6e3ea5" size="25">>]]..playerName..[[</font> : <font color="#993a3d" size="25">]]..cmd:sub(3)..[[</u></font>]], nil,150,150,nil,nil,nil,nil,0.5, true)
- elseif cmd:sub(0,4) == "kill" then
- tfm.exec.killPlayer(cmd:sub(6))
- end
- if cmd:sub(0,4) == "part" then
- emote=cmd:sub(6)
- end
- end
- system.disableChatCommandDisplay("s", true)
- system.disableChatCommandDisplay("a", true)
- system.disableChatCommandDisplay("kill", true)
- system.disableChatCommandDisplay("t", true)
- system.disableChatCommandDisplay("rpop", true)
- system.disableChatCommandDisplay("part", true)
- -- do "!s word" for a popup at 50 y
- -- do "!t word" for a popup at 100 y
- -- do "!a word" for a popup at 100 y
- function eventLoop()
- for i=1,numbers do
- tfm.exec.displayParticle(math.random(0,7), math.random(50,100), math.random(20, 250), 1, 0, 0, 0, nil)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement