Boeing747-8

Untitled

Jun 12th, 2018
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 15.94 KB | None | 0 0
  1. tfm.exec.disableShamanSkills(true)
  2. tfm.exec.disableMortCommand(true)
  3. wonCountDown=1
  4.  
  5. scores={0,0,0,0,0,0,0,0}
  6. maps={7455943}
  7. powery=320
  8. powerx=math.random(1600)
  9.  
  10. mice=0
  11.  
  12.  
  13. ui.addTextArea(10, "", nil, -432, -822, 3625, 953, 0xff0000, 0x00a2ff, 0.6, true)
  14.  
  15. Down=string.byte("S")
  16.  
  17. tfm.exec.disableAutoShaman(true)
  18. tfm.exec.disableAutoNewGame(true)
  19. tfm.exec.disableAfkDeath(true)
  20.  
  21. tfm.exec.disableAutoShaman(true)
  22. tfm.exec.disableAutoTimeLeft(true)
  23. tfm.exec.disableAutoScore(true)
  24. data={}
  25. text={}
  26. lang={}
  27. lang.en={commands="Powerups\n\n<font size='11'>Click - Spawns a random shaman object when you have the role of being a <J>Death</J>.\n\nSpacebar - Makes a large jump followed with an invisible cannon when you have the role of being a <J>Runner</J>. \n\nDown Arrow / S key - Gives you a boost of speed. (Works for both Deaths and Runners)",commands2="Powerups",credits="Credits</font></font><font face='verdana'><font size='11'>\n\n<N>Programming - Fuzzyfirsdog#0000\n\nModule Idea - Reddeathnick#3204\n\nPowerup Suggestions - Reddeathnick#3204, Seaqueen2003#000, Mugiwaraloffy#9866\n\n<VP>Thank you ^^",credits2="Credits",youCanAttack="<R>Death: <N>You can attack",youCanNotAttack="<R>Death: <N>You can not attack",youCanUsePowerups="<VP>Runner: <N>You can use powerups",youCanNotUsePowerups="<VP>Runner: <N>You can not use powerups",attacked="ATTACKED",youAreARunner="You are a runner",youAreADeath="You are a death",help="In #deathrun there are <J>Deaths</J> and <J>Runners</J>. Deaths should try to kill the mice by clicking to spawn objects, if no runners get into the hole then deaths win! Runners are supposed to use the powerups they are given to get into the hole and escape Deaths. If one runner gets into the hole, runners win.",close="Close",help2="Help",superJump="SUPER JUMP",speed="SPEED",deathsWin="Deaths win!",runnersWin="Runners win!"}
  28. roles={"Death","Runner"}
  29.  
  30. death=0
  31. runner=0
  32. miceInHole=0
  33.  
  34. function setLang(n)
  35. for n,player in pairs(tfm.get.room.playerList) do
  36. text[n]=lang[tfm.get.room.playerList[n].community] or lang.en
  37. end
  38. end
  39.  
  40.  
  41.  
  42. function bindMouse()
  43. for n,player in pairs(tfm.get.room.playerList) do
  44. tfm.exec.bindKeyboard(n, 32, true, true)
  45. system.bindMouse(n, true)
  46. tfm.exec.bindKeyboard(n, 40, true, true)
  47. tfm.exec.bindKeyboard(n, Down, true, true)
  48. end
  49. end
  50. bindMouse()
  51.  
  52. tfm.exec.newGame(maps[math.random(#maps)])
  53. names={}
  54.  
  55. theRole=1
  56. currentRole=roles[math.floor(theRole)]
  57.  
  58. function changeCurrentRole()
  59.  
  60. end
  61. numbs={1,2}
  62.  
  63. function showTabs(n)
  64. ui.addTextArea(15, "<VP><a href='event:help'><font size='12'>"..text[n].help2.."</a> | <a href='event:credits'>"..text[n].credits2.." </a>|<a href='event:commands'> "..text[n].commands2, n, 10, 30, 264, 26, 0x00aaff, 0x00eeff, 0, true)
  65. end
  66. for n,player in pairs(tfm.get.room.playerList) do
  67.  
  68. changeCurrentRole()
  69. mice=mice+1
  70. table.insert(names,n)
  71. setLang(n)
  72. data[n]={name=n,role="Runner",points=0,spawnLimit=-1,ableToShoot=0,ableToShoot2=0}
  73. showTabs(n)
  74. end
  75. data[names[math.floor(math.random(mice))]].role="Death"
  76. function findRoles(n)
  77. for n,player in pairs(tfm.get.room.playerList) do
  78. if data[n].role=="Death" then
  79.  
  80. tfm.exec.movePlayer(n,150,30,false,0,0,false)
  81. tfm.exec.setShaman(n)
  82. elseif data[n].role=="Runner" then
  83.  
  84. tfm.exec.movePlayer(n,70,300,false,0,0,false)
  85.  
  86. end
  87. end
  88. end
  89.  
  90.  
  91.  
  92.  
  93.  
  94. n1=scores[math.floor(1)]
  95. n2=scores[math.floor(2)]
  96. n3=scores[math.floor(3)]
  97. print(n1)
  98. print(n2)
  99. print(n3)
  100.  
  101.  
  102.  
  103. function eventNewPlayer(n)
  104. bindMouse()
  105. ui.addTextArea(10, "", n, -432, -822, 3625, 953, 0xff0000, 0x00a2ff, 0.6, true)
  106.  
  107. mice=mice+1
  108. data[n]={name=n,role="Runner",points=0,spawnLimit=-1,ableToShoot=0,ableToShoot2=0}
  109. setLang(n)
  110. showTabs(n)
  111. table.insert(names,n)
  112. findRoles(n)
  113. tfm.exec.respawnPlayer(n)
  114. end
  115.  
  116.  
  117.  
  118.  
  119.  
  120. function addToRoleNumber()
  121. for n,player in pairs(tfm.get.room.playerList) do
  122. if data[n].role=="Death" then
  123. death=death+1
  124. end
  125. if data[n].role=="Runner" then
  126. runner=runner+1
  127.  
  128.  
  129. end
  130. findRoles(n)
  131.  
  132.  
  133. end
  134. end
  135.  
  136.  
  137.  
  138. tfm.exec.newGame(maps[math.random(#maps)])
  139.  
  140. function eventNewGame()
  141.  
  142. time=0
  143. theRole=1
  144. powerx=math.random(1600)
  145. runner=0
  146. death=0
  147. mice=0
  148. for n,player in pairs(tfm.get.room.playerList) do
  149. mice=mice+1
  150. changeCurrentRole()
  151. data[n].role="Runner"
  152. data[n].ableToShoot=0
  153. data[n].ableToShoot2=0
  154. data[n].spawnLimit=-1
  155.  
  156. end
  157. mice=mice
  158. data[names[math.floor(math.random(mice))]].role="Death"
  159. findRoles(n)
  160.  
  161.  
  162. findRoles(n)
  163. addToRoleNumber()
  164.  
  165. end
  166.  
  167.  
  168.  
  169.  
  170.  
  171.  
  172.  
  173. locationx=0
  174. locationy=0
  175.  
  176.  
  177. objects={39,23,45,34,10}
  178.  
  179. function eventMouse(n,x,y)
  180.  
  181. system.bindMouse(n,false)
  182.  
  183. if data[n].role=="Death" then
  184. data[n].spawnLimit=2
  185. ui.addTextArea(2, "<font color='#FF9000'><font size='30'><b>"..n.." "..text[n].attacked, nil, x, y, 425, 100, 0x324650, 0x000000, 0, false)
  186.  
  187. locationx=x
  188. locationy=y
  189.  
  190.  
  191.  
  192. tfm.exec.addShamanObject(objects[math.random(#objects)],locationx,locationy,0,0,20,false)
  193. tfm.exec.displayParticle(0,locationx,locationy,0.5,0.5,0.5,0.5,nil)
  194. tfm.exec.displayParticle(0,locationx,locationy,-0.5,-0.5,-0.5,-0.5,nil)
  195. tfm.exec.displayParticle(2,locationx,locationy,3,-3,3,-3,nil)
  196. tfm.exec.displayParticle(2,locationx,locationy,-3,3,-3,3,nil)
  197.  
  198. tfm.exec.displayParticle(0,locationx,locationy,-0.5,0.5,-0.5,0.5,nil)
  199.  
  200. tfm.exec.displayParticle(0,locationx,locationy,0.5,-0.5,0.5,-0.5,nil)
  201. tfm.exec.displayParticle(2,locationx,locationy,1,-3,1,-3,nil)
  202. tfm.exec.displayParticle(2,locationx,locationy,1,1,3,1,nil)
  203. tfm.exec.displayParticle(2,locationx,locationy,-1,3,-1,3,nil)
  204. tfm.exec.displayParticle(2,locationx,locationy,-1,-1,-3,-1,nil)
  205. tfm.exec.displayParticle(5,locationx,locationy,0.5,0.5,0.5,0.5,nil)
  206. tfm.exec.displayParticle(5,locationx,locationy,-0.5,-0.5,-0.5,-0.5,nil)
  207.  
  208. tfm.exec.displayParticle(5,locationx,locationy,-0.5,0.5,-0.5,0.5,nil)
  209. tfm.exec.displayParticle(5,locationx,locationy,0.5,-0.5,0.5,-0.5,nil)
  210.  
  211.  
  212. end
  213.  
  214. end
  215.  
  216.  
  217. time=0
  218.  
  219. number1=0
  220. number2=0
  221. number3=0
  222.  
  223.  
  224. function eventPlayerGetCheese(n)
  225. if data[n].role=="Runner" then
  226. time=118
  227. data[n].points=data[n].points+3
  228. for n,player in pairs(tfm.get.room.playerList) do
  229. ui.addTextArea(133, "<font size='20'><font color='#0ff164'>"..text[n].runnersWin, n, 296, 282, 251, 89, 0xd41717, 0x000000, 0, true)
  230.  
  231. tfm.exec.chatMessage(text[n].runnersWin,n)
  232. if data[n].role=="Runner" then
  233. data[n].points=data[n].points+2
  234. wonCountDown=-5
  235. end
  236. end
  237. end
  238.  
  239. function eventPlayerWon(n,time)
  240. for n,player in pairs(tfm.get.room.playerList) do
  241. ui.addTextArea(133, "<font size='20'><font color='#d40000'>"..text[n].deathsWin, n, 296, 282, 251, 89, 0xd41717, 0x000000, 0, true)
  242. tfm.exec.chatMessage(text[n].deathsWin,n)
  243. end
  244. if data[n].role=="Death" then
  245. for n,player in pairs(tfm.get.room.playerList) do
  246.  
  247. wonCountDown=-5
  248. end
  249. end
  250.  
  251.  
  252.  
  253. tfm.exec.newGame(maps[math.random(#maps)])
  254. print("Runners win!")
  255. end
  256. end
  257.  
  258.  
  259. function explosions()
  260. tfm.exec.displayParticle(0,locationx,locationy,0.5,0.5,0.5,0.5,nil)
  261. tfm.exec.displayParticle(0,locationx,locationy,-0.5,-0.5,-0.5,-0.5,nil)
  262. tfm.exec.displayParticle(2,locationx,locationy,3,-3,3,-3,nil)
  263. tfm.exec.displayParticle(2,locationx,locationy,-3,3,-3,3,nil)
  264.  
  265. tfm.exec.displayParticle(0,locationx,locationy,-0.5,0.5,-0.5,0.5,nil)
  266. tfm.exec.displayParticle(0,locationx,locationy,0.5,-0.5,0.5,-0.5,nil)
  267. tfm.exec.displayParticle(2,locationx,locationy,1,-3,1,-3,nil)
  268. tfm.exec.displayParticle(2,locationx,locationy,1,1,3,1,nil)
  269. tfm.exec.displayParticle(2,locationx,locationy,-1,3,-1,3,nil)
  270. tfm.exec.displayParticle(2,locationx,locationy,-1,-1,-3,-1,nil)
  271. tfm.exec.displayParticle(5,locationx,locationy,0.5,0.5,0.5,0.5,nil)
  272. tfm.exec.displayParticle(5,locationx,locationy,-0.5,-0.5,-0.5,-0.5,nil)
  273.  
  274. tfm.exec.displayParticle(5,locationx,locationy,-0.5,0.5,-0.5,0.5,nil)
  275. tfm.exec.displayParticle(5,locationx,locationy,0.5,-0.5,0.5,-0.5,nil)
  276. tfm.exec.explosion(locationx, locationy, 40, 40, false)
  277. end
  278.  
  279.  
  280. function canShoot()
  281. for n,player in pairs(tfm.get.room.playerList) do
  282. if data[n].spawnLimit<1 and data[n].role=="Death" then
  283. ui.addTextArea(12, "\n<p align='center'>"..text[n].youCanAttack, n, 270, 23, 240, 36, 0x00a611, 0x338500, 0.6, true)
  284.  
  285. end
  286. if not (data[n].spawnLimit<1) and data[n].role=="Death" then
  287. ui.addTextArea(12, "\n<p align='center'>"..text[n].youCanNotAttack, n, 270, 23, 240, 36, 0x802c2c, 0x6e0000, 0.6, true)
  288.  
  289. end
  290. if data[n].spawnLimit<1 and data[n].role=="Runner" then
  291. ui.addTextArea(12, "\n<p align='center'>"..text[n].youCanUsePowerups, n, 270, 23, 240, 36, 0x00a611, 0x338500, 0.6, true)
  292.  
  293. end
  294. if not (data[n].spawnLimit<1) and data[n].role=="Runner" then
  295. ui.addTextArea(12, "\n<p align='center'>"..text[n].youCanNotUsePowerups, n, 270, 23, 240, 36, 0x802c2c, 0x6e0000, 0.6, true)
  296.  
  297. end
  298. end
  299. end
  300.  
  301. function eventLoop()
  302. wonCoundown=wonCountDown+0.5
  303. ui.addTextArea(13, "<font size='20'>"..math.floor(time).." / 120s", nil, 316, 73, 251, 32, 0x324650, 0x000000, 0, true)
  304.  
  305.  
  306. canShoot()
  307. for n,player in pairs(tfm.get.room.playerList) do
  308. data[n].spawnLimit=data[n].spawnLimit-0.5
  309. if data[n].spawnLimit==-0.5 then
  310. ui.removeTextArea(2,nil)
  311. system.bindMouse(n, true)
  312. ui.removeTextArea(11,n)
  313. end
  314. end
  315. time=time+.5
  316. if time==120 then
  317. tfm.exec.newGame(maps[math.random(#maps)])
  318. print("Deaths win!")
  319. time=-0.5
  320. elseif time==0 then
  321. for n,player in pairs(tfm.get.room.playerList) do
  322. findRoles(n)
  323. end
  324. elseif time==5 then
  325. for n,player in pairs(tfm.get.room.playerList) do
  326. ui.removeTextArea(0,nil)
  327. ui.removeTextArea(2,nil)
  328. system.bindMouse(n, true)
  329. ui.removeTextArea(133,n)
  330.  
  331. end
  332. end
  333. end
  334.  
  335.  
  336.  
  337.  
  338.  
  339. function eventKeyboard(n, key, down, x,y)
  340. if key==32 and data[n].role=="Runner" and data[n].spawnLimit<0 then
  341. ui.addTextArea(11, "<b><font size='30'><font color='#F0F000'>"..text[n].superJump, n, x-50, y-50, 379, 67, 0x324650, 0x000000, 0, false)
  342.  
  343. tfm.exec.displayParticle(0,x,y,0.5,0.5,0.5,0.5,nil)
  344. tfm.exec.displayParticle(0,locationx,locationy,-0.5,-0.5,-0.5,-0.5,nil)
  345. tfm.exec.displayParticle(2,locationx,locationy,3,-3,3,-3,nil)
  346. tfm.exec.displayParticle(2,locationx,locationy,-3,3,-3,3,nil)
  347.  
  348. tfm.exec.displayParticle(0,x,y,-0.5,0.5,-0.5,0.5,nil)
  349. tfm.exec.displayParticle(0,x,y,0.5,-0.5,0.5,-0.5,nil)
  350. tfm.exec.displayParticle(2,x,y,1,-3,1,-3,nil)
  351. tfm.exec.displayParticle(2,x,y,1,1,3,1,nil)
  352. tfm.exec.displayParticle(2,x,y,-1,3,-1,3,nil)
  353. tfm.exec.displayParticle(2,x,y,-1,-1,-3,-1,nil)
  354. tfm.exec.displayParticle(5,x,y,0.5,0.5,0.5,0.5,nil)
  355. tfm.exec.displayParticle(5,x,y,-0.5,-0.5,-0.5,-0.5,nil)
  356.  
  357. tfm.exec.displayParticle(5,x,y,-0.5,0.5,-0.5,0.5,nil)
  358. tfm.exec.displayParticle(5,x,y,0.5,-0.5,0.5,-0.5,nil)
  359. tfm.exec.movePlayer(n,x,y,false,0,-80,false)
  360.  
  361. data[n].spawnLimit=3
  362.  
  363.  
  364. tfm.exec.displayParticle(0,x,y,0.5,0.5,0.5,0.5,nil)
  365. tfm.exec.displayParticle(0,locationx,locationy,-0.5,-0.5,-0.5,-0.5,nil)
  366. tfm.exec.displayParticle(10,locationx,locationy,3,-3,3,-3,nil)
  367. tfm.exec.displayParticle(10,locationx,locationy,-3,3,-3,3,nil)
  368.  
  369. tfm.exec.displayParticle(10,x,y,-0.5,0.5,-0.5,0.5,nil)
  370. tfm.exec.displayParticle(10,x,y,0.5,-0.5,0.5,-0.5,nil)
  371. tfm.exec.displayParticle(2,x,y,1,-3,1,-3,nil)
  372. tfm.exec.displayParticle(10,x,y,1,1,3,1,nil)
  373. tfm.exec.displayParticle(12,x,y,-1,3,-1,3,nil)
  374. tfm.exec.displayParticle(12,x,y,-1,-1,-3,-1,nil)
  375. tfm.exec.displayParticle(5,x,y,0.5,0.5,0.5,0.5,nil)
  376. tfm.exec.displayParticle(5,x,y,-0.5,-0.5,-0.5,-0.5,nil)
  377.  
  378. tfm.exec.displayParticle(5,x,y,-0.5,0.5,-0.5,0.5,nil)
  379. tfm.exec.displayParticle(5,x,y,0.5,-0.5,0.5,-0.5,nil)
  380.  
  381. tfm.exec.bindKeyboard(n, 32, false, false)
  382. tfm.exec.addShamanObject(17,x,y,60,50,-10,true)
  383. data[n].spawnLimit=3.5
  384. data[n].ableToShoot=0
  385. elseif (key==40 or key==Down) and data[n].spawnLimit<0 then
  386. ui.addTextArea(11, "<b><font size='30'><font color='#F0F000'>"..text[n].speed, n, x-50, y-50, 379, 67, 0x324650, 0x000000, 0, false)
  387.  
  388. tfm.exec.displayParticle(0,x,y,0.5,0.5,0.5,0.5,nil)
  389. tfm.exec.displayParticle(0,locationx,locationy,-0.5,-0.5,-0.5,-0.5,nil)
  390. tfm.exec.displayParticle(2,locationx,locationy,3,-3,3,-3,nil)
  391. tfm.exec.displayParticle(2,locationx,locationy,-3,3,-3,3,nil)
  392.  
  393. tfm.exec.displayParticle(0,x,y,-0.5,0.5,-0.5,0.5,nil)
  394. tfm.exec.displayParticle(0,x,y,0.5,-0.5,0.5,-0.5,nil)
  395. tfm.exec.displayParticle(2,x,y,1,-3,1,-3,nil)
  396. tfm.exec.displayParticle(2,x,y,1,1,3,1,nil)
  397. tfm.exec.displayParticle(2,x,y,-1,3,-1,3,nil)
  398. tfm.exec.displayParticle(2,x,y,-1,-1,-3,-1,nil)
  399. tfm.exec.displayParticle(5,x,y,0.5,0.5,0.5,0.5,nil)
  400. tfm.exec.displayParticle(5,x,y,-0.5,-0.5,-0.5,-0.5,nil)
  401.  
  402. tfm.exec.displayParticle(5,x,y,-0.5,0.5,-0.5,0.5,nil)
  403. tfm.exec.displayParticle(5,x,y,0.5,-0.5,0.5,-0.5,nil)
  404. tfm.exec.movePlayer(n,x,y,false,76,0,false)
  405.  
  406. data[n].spawnLimit=3
  407.  
  408.  
  409. tfm.exec.displayParticle(0,x,y,0.5,0.5,0.5,0.5,nil)
  410. tfm.exec.displayParticle(0,locationx,locationy,-0.5,-0.5,-0.5,-0.5,nil)
  411. tfm.exec.displayParticle(10,locationx,locationy,3,-3,3,-3,nil)
  412. tfm.exec.displayParticle(10,locationx,locationy,-3,3,-3,3,nil)
  413.  
  414. tfm.exec.displayParticle(10,x,y,-0.5,0.5,-0.5,0.5,nil)
  415. tfm.exec.displayParticle(10,x,y,0.5,-0.5,0.5,-0.5,nil)
  416. tfm.exec.displayParticle(2,x,y,1,-3,1,-3,nil)
  417. tfm.exec.displayParticle(10,x,y,1,1,3,1,nil)
  418. tfm.exec.displayParticle(12,x,y,-1,3,-1,3,nil)
  419. tfm.exec.displayParticle(12,x,y,-1,-1,-3,-1,nil)
  420. tfm.exec.displayParticle(5,x,y,0.5,0.5,0.5,0.5,nil)
  421. tfm.exec.displayParticle(5,x,y,-0.5,-0.5,-0.5,-0.5,nil)
  422.  
  423. tfm.exec.displayParticle(5,x,y,-0.5,0.5,-0.5,0.5,nil)
  424. tfm.exec.displayParticle(5,x,y,0.5,-0.5,0.5,-0.5,nil)
  425.  
  426.  
  427.  
  428. data[n].spawnLimit=3.5
  429. data[n].ableToShoot=0
  430. end
  431. end
  432.  
  433.  
  434. function eventTextAreaCallback(id,n,a)
  435. if a=="close" then
  436. ui.removeTextArea(18,n)
  437. ui.removeTextArea(19,n)
  438. ui.removeTextArea(110,n)
  439. ui.removeTextArea(25,n)
  440. elseif a=="help" then
  441. ui.addTextArea(110, "", n, 498, 165, 266, 217, 0x324650, 0x000000, 1, true)
  442. ui.addTextArea(18, "<font size='15'><font face='calibri'>"..text[n].help, n, 504, 172, 254, 179, 0x000000, 0x000000, 1, true)
  443. ui.addTextArea(19, "<p align='center'><font size='13'><a href='event:close'>"..text[n].close, n, 504, 338, 254, 36, 0x000000, 0xffffff, 1, true)
  444. elseif a=="credits" then
  445. ui.addTextArea(18, "<p align='center'><font size='16'><font face='verdana'><J>"..text[n].credits, n, 504, 142, 254, 194, 0x4f4132, 0x695743, 1, true)
  446. ui.addTextArea(19, "<p align='center'><font size='13'><a href='event:close'>"..text[n].close, n, 504, 338, 254, 36, 0x4f4132, 0x30291a, 1, true)
  447. elseif a=="commands" then
  448. ui.addTextArea(18, "<p align='center'><font size='14'><font face='verdana'>"..text[n].commands, n, 545, 111, 220, 238, 0x50498c, 0x05014f, 1, true)
  449. ui.addTextArea(19, "<p align='center'><font size='13'><a href='event:close'>Close", n, 545, 346, 220, 36, 0x284391, 0x0f0759, 1, true)
  450.  
  451. end
  452. end
  453.  
  454.  
  455.  
  456.  
  457.  
  458.  
  459. function eventPlayerDied(n)
  460. if data[n].role=="Runner" then
  461. runner=runner-1
  462. print(runner)
  463.  
  464. end
  465. if runner<1 then
  466. tfm.exec.newGame(maps[math.random(#maps)])
  467. for n,player in pairs(tfm.get.room.playerList) do
  468. ui.addTextArea(133, "<font size='20'><font color='#d40000'>"..text[n].deathsWin, n, 296, 282, 251, 89, 0xd41717, 0x000000, 0, true)
  469. tfm.exec.chatMessage(text[n].deathsWin,n)
  470. end
  471. wonCountDown=-5
  472. print("hi")
  473. end
  474. if death<1 then
  475. tfm.exec.newGame(maps[math.random(#maps)])
  476. tfm.exec.disableAutoShaman(true)
  477.  
  478. time=0
  479.  
  480.  
  481. for n,player in pairs(tfm.get.room.playerList) do
  482.  
  483.  
  484. wonCountdown=-5
  485. changeCurrentRole()
  486. data[n].role="Runner"
  487. end
  488. data[names[math.floor(math.random(mice))]].role="Death"
  489. end
  490. end
  491.  
  492.  
  493.  
  494. print(death)
  495. print(runner)
  496.  
  497. print(mice)
  498. function eventPlayerLeft(n)
  499. mice=mice-1
  500. if data[n].role=="Runner" then
  501. runner=runner-1
  502. elseif data[n].role=="Death" then
  503. death=death-1
  504. end
  505. end
  506.  
  507.  
  508.  
  509.  
  510. function eventSummoningEnd(playerName, objectType, xPosition, yPosition, angle, xSpeed, ySpeed, other)
  511. print("hi")
  512. tfm.exec.removeObject(other)
  513. end
Advertisement
Add Comment
Please, Sign In to add comment