Advertisement
Guest User

Untitled

a guest
May 26th, 2019
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 136.68 KB | None | 0 0
  1. noninteractable = {
  2. '353f1c','62e874','211b2e','f01594',
  3. '3d4319','5079c8','a9cc56','98b2ad',
  4. 'f780a9','aa46d9','73ebce','27cdec'
  5. }
  6.  
  7. function setNoninteract()
  8. for _,v in pairs(noninteractable) do
  9. getObjectFromGUID(v).interactable = false
  10. end
  11. end
  12.  
  13. currentOmenTile = "nil"
  14. currentOmenCard = "nil"
  15. currentPlayer = "White"
  16.  
  17. cards = {"Bite", "Bloodstone", "Book","Box","Cat","Crystal Ball",
  18. "Dog", "Girl", "Holy Symbol", "Key","Letter","Madman", "Mask",
  19. "Medallion","Photograph", "Ring","Rope", "Skull", "Spear", "Spirit Board", "Vial"}
  20.  
  21. rooms = {"Abandoned Room", "Balcony", "Catacombs", "Charred Room", "Dining Room",
  22. "Dungeon","Furnace Room", "Gallery", "Gymnasium", "Junk Room",
  23. "Kitchen", "Master Bedroom", "Nursery","Pentagram Chamber", "Rookery",
  24. "Servants' Quarters","Study","Theater"}
  25.  
  26. takenCards = {}
  27.  
  28. haunts = {}
  29. haunts[1] = {18,96, 7,63, 88,12,38, 1, 9, 96,100,45,42,49, 96,28,86,34,43,48,96}
  30. haunts[2] = {24,67, 7,63, 88,32, 5,16, 6, 90, 87,11,25,49, 89,20,71,47,39, 2,70}
  31. haunts[3] = { 4,59, 7,61, 88,23,46, 1,13, 53, 83,10,25,49, 94,41,69,37,43,48,91}
  32. haunts[4] = {24,79,33,63,101,23,38,30,13,101, 83,31,48,44,101,20,69,47,15, 8,101}
  33. haunts[5] = {24,67, 3,99, 60,27, 5,16, 6, 70, 54,45,42,21, 89,20,82,37,39,40,91}
  34. haunts[6] = {97,55,55,61, 55,84,72,55,66, 53,100,56,55,77, 89,85,69,73,65,64,80}
  35. haunts[7] = { 4,59,33,61, 75,32,38,30,13, 75, 83,10,42,36, 75,28,75,34,15, 2,91}
  36. haunts[8] = {18,79, 3,52, 88,19,19,19,22, 53, 54,10,25,36, 76,41,71,37,15, 8,70}
  37. haunts[9] = {35,79,29,52, 92,12,46, 1,22, 92,100,11,22,21, 92,41,86,47,43,48,92}
  38. haunts[10] ={ 4,79,33,52, 88,27,46, 1, 9, 68,100,11,25,44, 76,17,71,17,17,40,91}
  39. haunts[11] ={18,67, 3,99, 60,23,46,16,22, 53, 87,31,32,36, 89,41,82,37,39, 2,80}
  40. haunts[12] ={35,98,29,98, 98,27, 5,16, 6, 90, 54,10,35,44, 76,20,82,47,43, 2,98}
  41. haunts[13] ={74,67,95,99, 74,84,72,58,66, 68, 87,74,74,95, 95,85,86,73,65,95,80}
  42. haunts[14] ={26,57,50,61, 81,32,50,26,26, 81, 83,45,14,14, 94,26,81,14,50,40,81}
  43. haunts[15] ={97,93,93,57, 57,93,57,58,66, 93, 87,56,57,77, 94,85,86,73,65,64,70}
  44. haunts[16] ={35,59,29,52, 60,12, 5,30, 9, 68, 54,31,42,21, 94,28,71,34,15, 8,80}
  45. haunts[17] ={97,59,78,99, 78,84,72,58,78, 90, 78,56,78,77, 76,85,82,73,65,64,70}
  46. haunts[18] ={97,62,51,63, 60,84,72,58,66, 68, 51,56,62,77, 51,51,69,62,62,64,62}
  47.  
  48. button_parameters = {}
  49. button_parameters.click_function = 'startHaunt'
  50. button_parameters.function_owner = nil
  51. button_parameters.label = 'Start Haunt'
  52. button_parameters.position = {0,0.1,-1}
  53. button_parameters.rotation = {0,0,0}
  54. button_parameters.scale = {0.2, 1, 0.2}
  55. button_parameters.width = 3000
  56. button_parameters.height = 400
  57. button_parameters.font_size = 400
  58.  
  59. button_parameters2 = {}
  60. button_parameters2.click_function = 'startHaunt'
  61. button_parameters2.function_owner = nil
  62. button_parameters2.label = 'Start Haunt'
  63. button_parameters2.position = {0,0.1,0.4}
  64. button_parameters2.rotation = {0,180,0}
  65. button_parameters2.width = 400
  66. button_parameters2.height = 50
  67. button_parameters2.font_size = 60
  68.  
  69. devbutton_parameters = {}
  70. devbutton_parameters.click_function = 'devFunction'
  71. devbutton_parameters.function_owner = nil
  72. devbutton_parameters.label = 'Dev'
  73. devbutton_parameters.position = {0,0.1,-3}
  74. devbutton_parameters.rotation = {0,0,0}
  75. devbutton_parameters.width = 300
  76. devbutton_parameters.height = 30
  77. devbutton_parameters.font_size = 100
  78.  
  79. greyTratiorZone = nil
  80. greySurvivorZone = nil
  81. whiteTratiorZone = nil
  82. whiteSurvivorZone = nil
  83. redTratiorZone = nil
  84. redSurvivorZone = nil
  85. orangeTratiorZone = nil
  86. orangeSurvivorZone = nil
  87. greenTratiorZone = nil
  88. greenSurvivorZone = nil
  89. blueTratiorZone = nil
  90. blueSurvivorZone = nil
  91. purpleTratiorZone = nil
  92. purpleSurvivorZone = nil
  93.  
  94. revwhiteTratiorZone = nil
  95. revwhiteSurvivorZone = nil
  96. revredTratiorZone = nil
  97. revredSurvivorZone = nil
  98. revorangeTratiorZone = nil
  99. revorangeSurvivorZone = nil
  100. revgreenTratiorZone = nil
  101. revgreenSurvivorZone = nil
  102. revblueTratiorZone = nil
  103. revblueSurvivorZone = nil
  104. revpurpleTratiorZone = nil
  105. revpurpleSurvivorZone = nil
  106.  
  107. whiteOmen = 0
  108. redOmen = 0
  109. orangeOmen = 0
  110. greenOmen = 0
  111. blueOmen = 0
  112. purpleOmen = 0
  113.  
  114. whiteItem = 0
  115. redItem = 0
  116. orangeItem = 0
  117. greenItem = 0
  118. blueItem = 0
  119. purpleItem = 0
  120.  
  121. survivalbook = 'a6b2ba'
  122. traitorbook = 'a68e3d'
  123.  
  124. function onLoad(data)
  125. if data ~= nil and data ~= "" then
  126. local allData = JSON.decode(data)
  127.  
  128. visitedRooms = allData.visitedRooms
  129. end
  130.  
  131. --Shuffling Cards
  132. getObjectFromGUID('1c4dca').shuffle()
  133. getObjectFromGUID('aa006b').shuffle()
  134. getObjectFromGUID('c2ef1b').shuffle()
  135. getObjectFromGUID('a0f614').shuffle()
  136.  
  137. checker = getObjectFromGUID('353f1c')
  138. checker.createButton(button_parameters)
  139. --checker.createButton(devbutton_parameters)
  140.  
  141. counter = getObjectFromGUID('81361c')
  142.  
  143. greyTratiorZone = getObjectFromGUID("094f74")
  144. greySurvivorZone = getObjectFromGUID("d75522")
  145. whiteTratiorZone = getObjectFromGUID("a8ba7e")
  146. whiteSurvivorZone = getObjectFromGUID("f18f6d")
  147. redTratiorZone = getObjectFromGUID("65fb3b")
  148. redSurvivorZone = getObjectFromGUID("aef035")
  149. orangeTratiorZone = getObjectFromGUID("419515")
  150. orangeSurvivorZone = getObjectFromGUID("d3b7c4")
  151. greenTratiorZone = getObjectFromGUID("7c7a62")
  152. greenSurvivorZone = getObjectFromGUID("3e7084")
  153. blueTratiorZone = getObjectFromGUID("9e91fc")
  154. blueSurvivorZone = getObjectFromGUID("befe0b")
  155. purpleTratiorZone = getObjectFromGUID("5d4df3")
  156. purpleSurvivorZone = getObjectFromGUID("362ac7")
  157.  
  158. itemStat = getObjectFromGUID('434c69')
  159.  
  160. if itemStat.getName() == 'Item count' then
  161. values = split(itemStat.getDescription(), ";")
  162.  
  163. whiteOmen = tonumber(values[0])
  164. redOmen = tonumber(values[1])
  165. orangeOmen = tonumber(values[2])
  166. greenOmen = tonumber(values[3])
  167. blueOmen = tonumber(values[4])
  168. purpleOmen = tonumber(values[5])
  169.  
  170. whiteItem = tonumber(values[6])
  171. redItem = tonumber(values[7])
  172. orangeItem = tonumber(values[8])
  173. greenItem = tonumber(values[9])
  174. blueItem = tonumber(values[10])
  175. purpleItem = tonumber(values[11])
  176. else
  177. updateStats()
  178. end
  179.  
  180. setNoninteract()
  181.  
  182. end
  183.  
  184. function updateStats()
  185. itemStat = getObjectFromGUID('434c69')
  186. itemStat.setName('Item count')
  187. itemStat.setDescription(whiteOmen .. ";" .. redOmen.. ";" .. orangeOmen .. ";" .. greenOmen .. ";" .. blueOmen .. ";" .. purpleOmen .. ";" .. whiteItem .. ";" .. redItem .. ";" .. orangeItem .. ";" .. greenItem .. ";" .. blueItem .. ";" .. purpleItem)
  188. end
  189.  
  190. function onObjectEnterScriptingZone(zone, enter_object)
  191. if zone.getGUID() == '7b23b8' and enter_object.getDescription() == "Secrets of Survial" then
  192. survivalbook = enter_object.getGUID()
  193. end
  194.  
  195. if zone.getGUID() == '294ff9' and enter_object.getDescription() == "Traitor's Tome" then
  196. traitorbook = enter_object.getGUID()
  197. end
  198.  
  199. if zone.getGUID() == '0de295' or zone.getGUID() == 'b8eaa1' then
  200. i = 0
  201.  
  202. if not enter_object.getName() then
  203. return
  204. end
  205.  
  206. for k, v in pairs(takenCards) do
  207. i = i + 1
  208. if v == enter_object.getName() then
  209. if enter_object.getDescription() == "Omen" and zone.getGUID() == 'b8eaa1' then
  210. takenCards[i] = "X"
  211.  
  212. getObjectFromGUID('81361c').Counter.decrement()
  213.  
  214. if currentPlayer == "White" then
  215. whiteOmen = whiteOmen - 1
  216. end
  217. if currentPlayer == "Red" then
  218. redOmen = redOmen - 1
  219. end
  220. if currentPlayer == "Orange" then
  221. orangeOmen = orangeOmen - 1
  222. end
  223. if currentPlayer == "Green" then
  224. greenOmen = greenOmen - 1
  225. end
  226. if currentPlayer == "Blue" then
  227. blueOmen = blueOmen - 1
  228. end
  229. if currentPlayer == "Purple" then
  230. purpleOmen = purpleOmen - 1
  231. end
  232. end
  233.  
  234. if enter_object.getDescription() == "Item" and zone.getGUID() == '0de295' then
  235. takenCards[i] = "X"
  236. if currentPlayer == "White" then
  237. whiteItem = whiteItem - 1
  238. end
  239. if currentPlayer == "Red" then
  240. redItem = redItem - 1
  241. end
  242. if currentPlayer == "Orange" then
  243. orangeItem = orangeItem - 1
  244. end
  245. if currentPlayer == "Green" then
  246. greenItem = greenItem - 1
  247. end
  248. if currentPlayer == "Blue" then
  249. blueItem = blueItem - 1
  250. end
  251. if currentPlayer == "Purple" then
  252. purpleItem = purpleItem - 1
  253. end
  254. end
  255. end
  256. end
  257. end
  258. end
  259.  
  260. function deconLeaveScriptingZone(data)
  261. onObjectLeaveScriptingZone(data[1], data[2])
  262. end
  263.  
  264.  
  265. function onObjectLeaveScriptingZone(zone, leave_object)
  266. for k, v in pairs(rooms) do
  267. if not leave_object.getName() then
  268. return
  269. end
  270.  
  271. if v == leave_object.getName() and zone.getGUID() == '24ffd6' then
  272. currentOmenTile = leave_object
  273. end
  274. end
  275.  
  276. for k, v in pairs(cards) do
  277. if not leave_object.getName() then
  278. return
  279. end
  280.  
  281. if v == leave_object.getName() and zone.getGUID() == 'b8eaa1' then
  282. currentOmenCard = leave_object
  283. takenCards[#takenCards + 1] = leave_object.getName()
  284. getObjectFromGUID('81361c').Counter.increment()
  285.  
  286. if currentPlayer == "White" then
  287. whiteOmen = whiteOmen + 1
  288. end
  289. if currentPlayer == "Red" then
  290. redOmen = redOmen + 1
  291. end
  292. if currentPlayer == "Orange" then
  293. orangeOmen = orangeOmen + 1
  294. end
  295. if currentPlayer == "Green" then
  296. greenOmen = greenOmen + 1
  297. end
  298. if currentPlayer == "Blue" then
  299. blueOmen = blueOmen + 1
  300. end
  301. if currentPlayer == "Purple" then
  302. purpleOmen = purpleOmen + 1
  303. end
  304. end
  305. end
  306.  
  307. if zone.getGUID() == '0de295' and leave_object.getDescription() == "Item" then
  308. if not leave_object.getName() then
  309. return
  310. end
  311.  
  312. takenCards[#takenCards + 1] = leave_object.getName()
  313.  
  314. if currentPlayer == "White" then
  315. whiteItem = whiteItem + 1
  316. end
  317. if currentPlayer == "Red" then
  318. redItem = redItem + 1
  319. end
  320. if currentPlayer == "Orange" then
  321. orangeItem = orangeItem + 1
  322. end
  323. if currentPlayer == "Green" then
  324. greenItem = greenItem + 1
  325. end
  326. if currentPlayer == "Blue" then
  327. blueItem = blueItem + 1
  328. end
  329. if currentPlayer == "Purple" then
  330. purpleItem = purpleItem + 1
  331. end
  332. end
  333. end
  334.  
  335. function onSave()
  336. local data = {}
  337. data.visitedRooms = visitedRooms
  338. return JSON.encode_pretty(data)
  339. end
  340.  
  341. visitedRooms = {{'Study'}, {'Larder'}, {'Library'}, {'Gymnasium'}, {'Menagerie'}, {'Chapel'}}
  342.  
  343. function onPlayerTurnStart(player_color_start, player_color_previous)
  344. updateStats()
  345.  
  346. currentPlayer = player_color_start
  347. currentTile = nil
  348.  
  349. if player_color_previous == "White" then
  350. if getObjectFromGUID('048bc4') ~= nil then
  351. currentTile = getObjectFromGUID('048bc4').getVar('currentTile')
  352. elseif getObjectFromGUID('ad6842') ~= nil then
  353. currentTile = getObjectFromGUID('ad6842').getVar('currentTile')
  354. end
  355. elseif player_color_previous == "Red" then
  356. if getObjectFromGUID('2599a6') ~= nil then
  357. currentTile = getObjectFromGUID('2599a6').getVar('currentTile')
  358. elseif getObjectFromGUID('567964') ~= nil then
  359. currentTile = getObjectFromGUID('567964').getVar('currentTile')
  360. end
  361. elseif player_color_previous == "Orange" then
  362. if getObjectFromGUID('15aad7') ~= nil then
  363. currentTile = getObjectFromGUID('15aad7').getVar('currentTile')
  364. elseif getObjectFromGUID('eb1a2d') ~= nil then
  365. currentTile = getObjectFromGUID('eb1a2d').getVar('currentTile')
  366. end
  367. elseif player_color_previous == "Green" then
  368. if getObjectFromGUID('136efb') ~= nil then
  369. currentTile = getObjectFromGUID('136efb').getVar('currentTile')
  370. elseif getObjectFromGUID('87329f') ~= nil then
  371. currentTile = getObjectFromGUID('87329f').getVar('currentTile')
  372. end
  373. elseif player_color_previous == "Blue" then
  374. if getObjectFromGUID('fe6895') ~= nil then
  375. currentTile = getObjectFromGUID('fe6895').getVar('currentTile')
  376. elseif getObjectFromGUID('5d5181') ~= nil then
  377. currentTile = getObjectFromGUID('5d5181').getVar('currentTile')
  378. end
  379. elseif player_color_previous == "Purple" then
  380. if getObjectFromGUID('44219e') ~= nil then
  381. currentTile = getObjectFromGUID('44219e').getVar('currentTile')
  382. elseif getObjectFromGUID('026011') ~= nil then
  383. currentTile = getObjectFromGUID('026011').getVar('currentTile')
  384. end
  385. end
  386.  
  387. done = false
  388.  
  389. for k, v in pairs(visitedRooms) do
  390. if v[1] == currentTile then
  391. for j in pairs(v) do
  392. if v[j] == player_color_previous then
  393. done = true
  394. end
  395. end
  396.  
  397. if done == false then
  398. v[#v + 1] = player_color_previous
  399. end
  400. end
  401. end
  402.  
  403. notebook = ''
  404. for k, v in pairs(visitedRooms) do
  405. if v[2] ~= nil then
  406. for j in pairs(v) do
  407. ending = ''
  408. color = ''
  409.  
  410. if v[j] == 'White' then
  411. color = '[ffffff]'
  412. elseif v[j] == 'Red' then
  413. color = '[DA1918]'
  414. elseif v[j] == 'Orange' then
  415. color = '[F4641D]'
  416. elseif v[j] == 'Green' then
  417. color = '[31B22B]'
  418. elseif v[j] == 'Blue' then
  419. color = '[1E87FF]'
  420. elseif v[j] == 'Purple' then
  421. color = '[A027F0]'
  422. elseif v[j] ~= '' then
  423. color = '[00ccff]'
  424. ending = ': '
  425. end
  426.  
  427. notebook = notebook .. color .. v[j] .. ending .. '[ffffff] '
  428. end
  429. notebook = notebook .. '\n'
  430. end
  431. end
  432.  
  433. if notebook ~= '' then
  434. notebook = 'Visited Stat Rooms:\n-----------------------\n\n' .. notebook .. '\n-----------------------'
  435.  
  436. setNotes(notebook)
  437. end
  438. end
  439.  
  440. function startHaunt()
  441. if currentOmenTile ~= "nil" and currentOmenCard ~= "nil" then
  442.  
  443. printToAll("-------------------------------", {1,1,1})
  444. printToAll(" ", {1,1,1})
  445. printToAll("The Haunt is...", {1,1,1})
  446.  
  447. colorText = {0.7, 0, 0}
  448.  
  449. traitor = nil
  450.  
  451. cardNumber = 1
  452. roomNumber = 1
  453.  
  454. while cards[cardNumber] ~= currentOmenCard.getName() do
  455. cardNumber = cardNumber + 1
  456. end
  457.  
  458. while rooms[roomNumber] ~= currentOmenTile.getName() do
  459. roomNumber = roomNumber + 1
  460. end
  461.  
  462.  
  463. local haunt_highlight_room = {click_function = "derp", label = "", position = {0,0.1,-0.775 + ((roomNumber - 1) * 0.0425)}, color = {1,1,1,0.5}, scale = {0.1,1,0.1}, width = 12000, height = 200}
  464. checker.createButton(haunt_highlight_room)
  465.  
  466. local highlight_buttons = {}
  467. highlight_buttons[1] = {click_function = "derp", label = "", position = {-0.935,0.1,-0.445}, color = {1,1,1,0.5}, scale = {0.1,1,0.1}, width = 400, height = 4000}
  468. highlight_buttons[2] = {click_function = "derp", label = "", position = {-0.815,0.1,-0.445}, color = {1,1,1,0.5}, scale = {0.1,1,0.1}, width = 700, height = 4000}
  469. highlight_buttons[3] = {click_function = "derp", label = "", position = {-0.69,0.1,-0.445}, color = {1,1,1,0.5}, scale = {0.1,1,0.1}, width = 400, height = 4000}
  470. highlight_buttons[4] = {click_function = "derp", label = "", position = {-0.6,0.1,-0.445}, color = {1,1,1,0.5}, scale = {0.1,1,0.1}, width = 400, height = 4000}
  471. highlight_buttons[5] = {click_function = "derp", label = "", position = {-0.515,0.1,-0.445}, color = {1,1,1,0.5}, scale = {0.1,1,0.1}, width = 400, height = 4000}
  472. highlight_buttons[6] = {click_function = "derp", label = "", position = {-0.418,0.1,-0.445}, color = {1,1,1,0.5}, scale = {0.1,1,0.1}, width = 500, height = 4000}
  473. highlight_buttons[7] = {click_function = "derp", label = "", position = {-0.32,0.1,-0.445}, color = {1,1,1,0.5}, scale = {0.1,1,0.1}, width = 400, height = 4000}
  474. highlight_buttons[8] = {click_function = "derp", label = "", position = {-0.24,0.1,-0.445}, color = {1,1,1,0.5}, scale = {0.1,1,0.1}, width = 350, height = 4000}
  475. highlight_buttons[9] = {click_function = "derp", label = "", position = {-0.143,0.1,-0.445}, color = {1,1,1,0.5}, scale = {0.1,1,0.1}, width = 500, height = 4000}
  476. highlight_buttons[10] = {click_function = "derp", label = "", position = {-0.035,0.1,-0.445}, color = {1,1,1,0.5}, scale = {0.1,1,0.1}, width = 440, height = 4000}
  477. highlight_buttons[11] = {click_function = "derp", label = "", position = {0.07,0.1,-0.445}, color = {1,1,1,0.5}, scale = {0.1,1,0.1}, width = 500, height = 4000}
  478. highlight_buttons[12] = {click_function = "derp", label = "", position = {0.193,0.1,-0.445}, color = {1,1,1,0.5}, scale = {0.1,1,0.1}, width = 600, height = 4000}
  479. highlight_buttons[13] = {click_function = "derp", label = "", position = {0.305,0.1,-0.445}, color = {1,1,1,0.5}, scale = {0.1,1,0.1}, width = 450, height = 4000}
  480. highlight_buttons[14] = {click_function = "derp", label = "", position = {0.427,0.1,-0.445}, color = {1,1,1,0.5}, scale = {0.1,1,0.1}, width = 650, height = 4000}
  481. highlight_buttons[15] = {click_function = "derp", label = "", position = {0.582,0.1,-0.445}, color = {1,1,1,0.5}, scale = {0.1,1,0.1}, width = 700, height = 4000}
  482. highlight_buttons[16] = {click_function = "derp", label = "", position = {0.707,0.1,-0.445}, color = {1,1,1,0.5}, scale = {0.1,1,0.1}, width = 400, height = 4000}
  483. highlight_buttons[17] = {click_function = "derp", label = "", position = {0.799,0.1,-0.445}, color = {1,1,1,0.5}, scale = {0.1,1,0.1}, width = 400, height = 4000}
  484. highlight_buttons[18] = {click_function = "derp", label = "", position = {0.89,0.1,-0.445}, color = {1,1,1,0.5}, scale = {0.1,1,0.1}, width = 400, height = 4000}
  485. highlight_buttons[19] = {click_function = "derp", label = "", position = {0.989,0.1,-0.445}, color = {1,1,1,0.5}, scale = {0.1,1,0.1}, width = 450, height = 4000}
  486. highlight_buttons[20] = {click_function = "derp", label = "", position = {1.1,0.1,-0.445}, color = {1,1,1,0.5}, scale = {0.1,1,0.1}, width = 550, height = 4000}
  487. highlight_buttons[21] = {click_function = "derp", label = "", position = {1.202,0.1,-0.445}, color = {1,1,1,0.5}, scale = {0.1,1,0.1}, width = 400, height = 4000}
  488.  
  489. checker.createButton(highlight_buttons[cardNumber])
  490.  
  491. hauntNumber = haunts[roomNumber][cardNumber]
  492.  
  493. if hauntNumber <= 50 then
  494. if hauntNumber == 1 then
  495. printToAll("The Mummy Walks - 1", colorText)
  496. --tratiorDeck.takeObject({tag = "Haunt 1"})
  497. --survivorDeck.takeObject({index = 1})
  498. traitor = getCurrentPlayerObject(currentPlayer)
  499. end
  500.  
  501. if hauntNumber == 2 then
  502. printToAll("The Seance - 2", colorText)
  503. --tratiorDeck.takeObject({index = '7c6b2c'})
  504. --survivorDeck.takeObject({index = 3})
  505. traitor = getCurrentPlayerObject(currentPlayer)
  506. end
  507.  
  508. if hauntNumber == 3 then
  509. printToAll("Frog-Leg Stew - 3", colorText)
  510. --tratiorDeck.takeObject({index = 'e9f097'})
  511. --survivorDeck.takeObject({index = 4})
  512. traitor = checkStats(currentPlayer, 'knowledgeStat', true, false)
  513. end
  514.  
  515. if hauntNumber == 4 then
  516. printToAll("The Web of Destiny - 4", colorText)
  517. --tratiorDeck.takeObject({index = '8526b7'})
  518. --survivorDeck.takeObject({index =5})
  519. traitor = checkStats(currentPlayer, 'mightStat', false, false)
  520. end
  521.  
  522. if hauntNumber == 5 then
  523. printToAll("I Was a Teenage Lycanthrope - 5", colorText)
  524. --tratiorDeck.takeObject({index = 'e8f574'})
  525. --survivorDeck.takeObject({index = 6})
  526. traitor = getCurrentPlayerObject(currentPlayer)
  527. end
  528.  
  529. if hauntNumber == 6 then
  530. printToAll("The Floating Eye - 6", colorText)
  531. --tratiorDeck.takeObject({index = '5bc157'})
  532. --survivorDeck.takeObject({index = 7})
  533. traitor = checkStats(currentPlayer, 'sanityStat', true, true)
  534. end
  535.  
  536. if hauntNumber == 7 then
  537. printToAll("Carnivorous Ivy - 7", colorText)
  538. --tratiorDeck.takeObject({index = 'c90a6f'})
  539. --survivorDeck.takeObject({index = 8})
  540.  
  541. if getObjectFromGUID('327a8c') ~= nil and Player.White.seated then
  542. traitor = getObjectFromGUID('327a8c')
  543. else
  544. traitor = checkStats(currentPlayer, 'sanityStat', false, true)
  545. end
  546. end
  547.  
  548. if hauntNumber == 8 then
  549. printToAll("Wall of the Banshee - 8", colorText)
  550. --tratiorDeck.takeObject({index = '581c1e'})
  551. --survivorDeck.takeObject({index = 9})
  552. traitor = getCurrentPlayerObject(currentPlayer)
  553. end
  554.  
  555. if hauntNumber == 9 then
  556. printToAll("The Dance of Death - 9", colorText)
  557. --tratiorDeck.takeObject({index = '9badba'})
  558. --survivorDeck.takeObject({index = 10})
  559. printToAll("There is no traitor..." , {0, 1, 200})
  560. printToAll("yet", {1,0,0})
  561. end
  562.  
  563. if hauntNumber == 10 then
  564. printToAll("Family Gathering - 10", colorText)
  565. --tratiorDeck.takeObject({index = '05ac91'})
  566. --survivorDeck.takeObject({index = 11})
  567. traitor = getCurrentPlayerObject(currentPlayer)
  568. end
  569.  
  570. if hauntNumber == 11 then
  571. printToAll("Let Them In - 11", colorText)
  572. --tratiorDeck.takeObject({index = '44243f'})
  573. --survivorDeck.takeObject({index = 12})
  574. traitor = getCurrentPlayerObject(currentPlayer)
  575. end
  576.  
  577. if hauntNumber == 12 then
  578. printToAll("Fleshwalkers - 12", colorText)
  579. --survivorDeck.takeObject({index = 13})
  580. printToAll("There is no traitor", {0, 1, 200})
  581. end
  582.  
  583. if hauntNumber == 13 then
  584. printToAll("Perchance to Dream - 13", colorText)
  585. --tratiorDeck.takeObject({index = '486de5'})
  586. --survivorDeck.takeObject({index = 14})
  587. traitor = checkStats(currentPlayer, 'sanityStat', true, false)
  588. end
  589.  
  590. if hauntNumber == 14 then
  591. printToAll("The Stars Are Right - 14", colorText)
  592. --tratiorDeck.takeObject({index = '379778'})
  593. --survivorDeck.takeObject({index = 15})
  594. traitor = getCurrentPlayerObject(currentPlayer)
  595. end
  596.  
  597. if hauntNumber == 15 then
  598. printToAll("Here There Be Dragons - 15", colorText)
  599. --tratiorDeck.takeObject({index = '192886'})
  600. --survivorDeck.takeObject({index = 16})
  601. traitor = checkStats(currentPlayer, 'speedStat', true, false)
  602. end
  603.  
  604. if hauntNumber == 16 then
  605. printToAll("The Phantom's Embrace - 16", colorText)
  606. --tratiorDeck.takeObject({index = 'ab97b3'})
  607. --survivorDeck.takeObject({index = 17})
  608. traitor = getNextPlayer()
  609. end
  610.  
  611. if hauntNumber == 17 then
  612. printToAll("A Breath of Wind - 17", colorText)
  613. --tratiorDeck.takeObject({index = 'dcaf53'})
  614. --survivorDeck.takeObject({index = 18})
  615. traitor = getNextPlayer()
  616. end
  617.  
  618. if hauntNumber == 18 then
  619. printToAll("United We Stand - 18", colorText)
  620. --tratiorDeck.takeObject({index = '62e869'})
  621. --survivorDeck.takeObject({index = 19})
  622. traitor = getCurrentPlayerObject(currentPlayer)
  623. end
  624.  
  625. if hauntNumber == 19 then
  626. printToAll("A Friend for the Ages - 19", colorText)
  627. --tratiorDeck.takeObject({index = '420aec'})
  628. --survivorDeck.takeObject({index = 20})
  629. traitor = getNextPlayer()
  630. end
  631.  
  632. if hauntNumber == 20 then
  633. printToAll("Ghost Bride - 20", colorText)
  634. --tratiorDeck.takeObject({index = '015c71'})
  635. --survivorDeck.takeObject({index = 21})
  636. if getObjectFromGUID('84dd50') ~= nil and Player.Blue.seated then
  637. traitor = getObjectFromGUID('84dd50')
  638. else
  639. traitor = getNextPlayer()
  640. end
  641. end
  642.  
  643. if hauntNumber == 21 then
  644. printToAll("House of the Living Dead - 21", colorText)
  645. --tratiorDeck.takeObject({index = 'dac4e9'})
  646. --survivorDeck.takeObject({index = 22})
  647.  
  648. if Player.White.seated and currentPlayer ~= "White" then
  649. traitor = getCurrentPlayerObject("White")
  650. elseif Player.Blue.seated and currentPlayer ~= "Blue" then
  651. traitor = getCurrentPlayerObject("Blue")
  652. elseif Player.Red.seated and getObjectFromGUID('3878fc') ~= nil and currentPlayer ~= "Red" then
  653. traitor = getCurrentPlayerObject("Red")
  654. elseif Player.Purple.seated and getObjectFromGUID('732231') ~= nil and currentPlayer ~= "Purple" then
  655. traitor = getCurrentPlayerObject("Purple")
  656. elseif Player.Red.seated and getObjectFromGUID('f8116a') ~= nil and currentPlayer ~= "Red" then
  657. traitor = getCurrentPlayerObject("Red")
  658. elseif Player.Purple.seated and getObjectFromGUID('926f41') ~= nil and currentPlayer ~= "Purple" then
  659. traitor = getCurrentPlayerObject("Purple")
  660. elseif Player.Green.seated and currentPlayer ~= "Green" then
  661. traitor = getCurrentPlayerObject("Green")
  662. elseif Player.Orange.seated and currentPlayer ~= "Orange" then
  663. traitor = getCurrentPlayerObject("Orange")
  664. end
  665. end
  666.  
  667. if hauntNumber == 22 then
  668. printToAll("The Abyss Gazes Back - 22", colorText)
  669. --tratiorDeck.takeObject({index = '6a6d20'})
  670. --survivorDeck.takeObject({index = 23})
  671. traitor = getNextPlayer()
  672. end
  673.  
  674. if hauntNumber == 23 then
  675. printToAll("Tentacled Horrow - 23", colorText)
  676. --tratiorDeck.takeObject({index = '2948f2'})
  677. --survivorDeck.takeObject({index = 24})
  678. traitor = getNextPlayer()
  679. end
  680.  
  681. if hauntNumber == 24 then
  682. printToAll("Fly Away Home - 24", colorText)
  683. --tratiorDeck.takeObject({index = 'f8b141'})
  684. --survivorDeck.takeObject({index = 25})
  685. if getObjectFromGUID('a540a9') ~= nil and Player.Green.seated then
  686. traitor = getObjectFromGUID('a540a9')
  687. else
  688. traitor = checkStats(currentPlayer, 'speedStat', true, true)
  689. end
  690. end
  691.  
  692. if hauntNumber == 25 then
  693. printToAll("Voodoo - 25", colorText)
  694. --tratiorDeck.takeObject({index = 'ccee58'})
  695. --survivorDeck.takeObject({index = 26})
  696. if getObjectFromGUID('10c2e2') ~= nil and Player.Orange.seated then
  697. traitor = getObjectFromGUID('10c2e2')
  698. else
  699. traitor = checkStats(currentPlayer, 'knowledgeStat', false, true)
  700. end
  701. end
  702.  
  703. if hauntNumber == 26 then
  704. printToAll("Pay the Piper - 26", colorText)
  705. --tratiorDeck.takeObject({index = '1dfc40'})
  706. --survivorDeck.takeObject({index = 27})
  707. traitor = getNextPlayer()
  708. end
  709.  
  710. if hauntNumber == 27 then
  711. printToAll("Amok Flesh - 27", colorText)
  712. --tratiorDeck.takeObject({index = '00cb74'})
  713. --survivorDeck.takeObject({index = 28})
  714. traitor = checkStats(currentPlayer, 'knowledgeStat', true, false)
  715. end
  716.  
  717. if hauntNumber == 28 then
  718. printToAll("Ring of King Solomon - 28", colorText)
  719. --tratiorDeck.takeObject({index = 'abcc3e'})
  720. --survivorDeck.takeObject({index = 29})
  721. traitor = checkStats(currentPlayer, 'knowledgeStat', true, false)
  722. end
  723.  
  724. if hauntNumber == 29 then
  725. printToAll("Frankenstein's Legacy - 29", colorText)
  726. --tratiorDeck.takeObject({index = 'db2d78'})
  727. --survivorDeck.takeObject({index = 30})
  728. traitor = getCurrentPlayerObject(currentPlayer)
  729. end
  730.  
  731. if hauntNumber == 30 then
  732. printToAll("Tomb of Dracula - 30", colorText)
  733. --tratiorDeck.takeObject({index = '80d65c'})
  734. --survivorDeck.takeObject({index = 31})
  735. traitor = getCurrentPlayerObject(currentPlayer)
  736. end
  737.  
  738. if hauntNumber == 31 then
  739. printToAll("Airborne - 31", colorText)
  740. --survivorDeck.takeObject({index = 32})
  741. printToAll("There is no traitor", {0, 1, 200})
  742. end
  743.  
  744. if hauntNumber == 32 then
  745. printToAll("Lost - 32", colorText)
  746. --tratiorDeck.takeObject({index = 'd8ee33'})
  747. --survivorDeck.takeObject({index = 33})
  748. traitor = checkStats(currentPlayer, 'sanityStat', false, true)
  749. end
  750.  
  751. if hauntNumber == 33 then
  752. printToAll("An Invocation of Darkness - 33", colorText)
  753. --tratiorDeck.takeObject({index = '9bdec6'})
  754. --survivorDeck.takeObject({index = 34})
  755. traitor = getCurrentPlayerObject(currentPlayer)
  756. end
  757.  
  758. if hauntNumber == 34 then
  759. printToAll("Guillotines - 34", colorText)
  760. --survivorDeck.takeObject({index = 35, position = {28, 0.1, 18}})
  761. --survivorDeck.takeObject({index = 36, position = {37, 0.1, 18}})
  762.  
  763. printToAll("The traitor is hidden...", {1, 1, 0})
  764.  
  765. randomNum = math.random(1, 6)
  766. if randomNum == 1 then
  767. if Player.White.seated then
  768. printToColor("You are the traitor", "White", {1, 0, 0})
  769. elseif Player.Red.seated then
  770. printToColor("You are the traitor", "Red", {1, 0, 0})
  771. elseif Player.Orange.seated then
  772. printToColor("You are the traitor", "Orange", {1, 0, 0})
  773. elseif Player.Green.seated then
  774. printToColor("You are the traitor", "Green", {1, 0, 0})
  775. elseif Player.Blue.seated then
  776. printToColor("You are the traitor", "Blue", {1, 0, 0})
  777. elseif Player.Purple.seated then
  778. printToColor("You are the traitor", "Purple", {1, 0, 0})
  779. end
  780. elseif randomNum == 2 then
  781. if Player.Red.seated then
  782. printToColor("You are the traitor", "Red", {1, 0, 0})
  783. elseif Player.Orange.seated then
  784. printToColor("You are the traitor", "Orange", {1, 0, 0})
  785. elseif Player.Green.seated then
  786. printToColor("You are the traitor", "Green", {1, 0, 0})
  787. elseif Player.Blue.seated then
  788. printToColor("You are the traitor", "Blue", {1, 0, 0})
  789. elseif Player.Purple.seated then
  790. printToColor("You are the traitor", "Purple", {1, 0, 0})
  791. elseif Player.White.seated then
  792. printToColor("You are the traitor", "White", {1, 0, 0})
  793. end
  794. elseif randomNum == 3 then
  795. if Player.Orange.seated then
  796. printToColor("You are the traitor", "Orange", {1, 0, 0})
  797. elseif Player.Green.seated then
  798. printToColor("You are the traitor", "Green", {1, 0, 0})
  799. elseif Player.Blue.seated then
  800. printToColor("You are the traitor", "Blue", {1, 0, 0})
  801. elseif Player.Purple.seated then
  802. printToColor("You are the traitor", "Purple", {1, 0, 0})
  803. elseif Player.White.seated then
  804. printToColor("You are the traitor", "White", {1, 0, 0})
  805. elseif Player.Red.seated then
  806. printToColor("You are the traitor", "Red", {1, 0, 0})
  807. end
  808. elseif randomNum == 4 then
  809. if Player.Green.seated then
  810. printToColor("You are the traitor", "Green", {1, 0, 0})
  811. elseif Player.Blue.seated then
  812. printToColor("You are the traitor", "Blue", {1, 0, 0})
  813. elseif Player.Purple.seated then
  814. printToColor("You are the traitor", "Purple", {1, 0, 0})
  815. elseif Player.White.seated then
  816. printToColor("You are the traitor", "White", {1, 0, 0})
  817. elseif Player.Red.seated then
  818. printToColor("You are the traitor", "Red", {1, 0, 0})
  819. elseif Player.Orange.seated then
  820. printToColor("You are the traitor", "Orange", {1, 0, 0})
  821. end
  822. elseif randomNum == 5 then
  823. if Player.Blue.seated then
  824. printToColor("You are the traitor", "Blue", {1, 0, 0})
  825. elseif Player.Purple.seated then
  826. printToColor("You are the traitor", "Purple", {1, 0, 0})
  827. elseif Player.White.seated then
  828. printToColor("You are the traitor", "White", {1, 0, 0})
  829. elseif Player.Red.seated then
  830. printToColor("You are the traitor", "Red", {1, 0, 0})
  831. elseif Player.Orange.seated then
  832. printToColor("You are the traitor", "Orange", {1, 0, 0})
  833. elseif Player.Green.seated then
  834. printToColor("You are the traitor", "Green", {1, 0, 0})
  835. end
  836. elseif randomNum == 6 then
  837. if Player.Purple.seated then
  838. printToColor("You are the traitor", "Purple", {1, 0, 0})
  839. elseif Player.White.seated then
  840. printToColor("You are the traitor", "White", {1, 0, 0})
  841. elseif Player.Red.seated then
  842. printToColor("You are the traitor", "Red", {1, 0, 0})
  843. elseif Player.Orange.seated then
  844. printToColor("You are the traitor", "Orange", {1, 0, 0})
  845. elseif Player.Green.seated then
  846. printToColor("You are the traitor", "Green", {1, 0, 0})
  847. elseif Player.Blue.seated then
  848. printToColor("You are the traitor", "Blue", {1, 0, 0})
  849. end
  850. end
  851. end
  852.  
  853. if hauntNumber == 35 then
  854. printToAll("Small Change - 35", colorText)
  855. --tratiorDeck.takeObject({index = '91246a'})
  856. --survivorDeck.takeObject({index = 37})
  857. traitor = checkStats(currentPlayer, 'knowledgeStat', false, true)
  858. end
  859.  
  860. if hauntNumber == 36 then
  861. printToAll("Better with Friends - 36", colorText)
  862. --tratiorDeck.takeObject({index = '9a6b32'})
  863. --survivorDeck.takeObject({index = 38})
  864. if getObjectFromGUID('0c0d43') ~= nil and Player.Orange.seated then
  865. traitor = getObjectFromGUID('0c0d43')
  866. else
  867. traitor = checkStats(currentPlayer, 'speedStat', false, true)
  868. end
  869. end
  870.  
  871. if hauntNumber == 37 then
  872. printToAll("Checkmate - 37", colorText)
  873. --tratiorDeck.takeObject({index = '87b1d6'})
  874. --survivorDeck.takeObject({index = 39})
  875. traitor = checkStats(currentPlayer, 'mightStat', true, true)
  876. end
  877.  
  878. if hauntNumber == 38 then
  879. printToAll("Hellbeasts - 38", colorText)
  880. --tratiorDeck.takeObject({name = 'Haunt 38', position = {0, 0, 0}})
  881. --survivorDeck.takeObject({index = 39})
  882. traitor = checkStats(currentPlayer, 'knowledgeStat', true, false)
  883. end
  884.  
  885. if hauntNumber == 39 then
  886. printToAll("The Heir - 39", colorText)
  887. --tratiorDeck.takeObject({index = 'ac5e47'})
  888. --survivorDeck.takeObject({index = '2b678b'})
  889. traitor = checkStats(currentPlayer, 'speedStat', false, false)
  890. end
  891.  
  892. if hauntNumber == 40 then
  893. printToAll("Buried Alive - 40", colorText)
  894. --tratiorDeck.takeObject({index = '5efeb2'})
  895. --survivorDeck.takeObject({index = '2515a6'})
  896. traitor = getNextPlayer()
  897. end
  898.  
  899. if hauntNumber == 41 then
  900. printToAll("Invisible Traitor - 41", colorText)
  901. --tratiorDeck.takeObject({index = '105624'})
  902. --survivorDeck.takeObject({index = '6429fd'})
  903. traitor = getCurrentPlayerObject(currentPlayer)
  904. end
  905.  
  906. if hauntNumber == 42 then
  907. printToAll("Comes the Hero - 42", colorText)
  908. --tratiorDeck.takeObject({index = 'bd7576'})
  909. --survivorDeck.takeObject({index = '75a69b'})
  910. traitor = checkStats(currentPlayer, 'mightStat', true, true)
  911. end
  912.  
  913. if hauntNumber == 43 then
  914. printToAll("The Star-Sickness - 43", colorText)
  915. --survivorDeck.takeObject({index = '81012c', position = {28, 0.1, 18}})
  916. --survivorDeck.takeObject({index = 'ba1b93', position = {37, 0.1, 18}})
  917.  
  918. printToAll("The traitor is hidden...", {1, 1, 0})
  919.  
  920. randomNum = math.random(1, 6)
  921. if randomNum == 1 then
  922. if Player.White.seated then
  923. printToColor("You are the traitor", "White", {1, 0, 0})
  924. elseif Player.Red.seated then
  925. printToColor("You are the traitor", "Red", {1, 0, 0})
  926. elseif Player.Orange.seated then
  927. printToColor("You are the traitor", "Orange", {1, 0, 0})
  928. elseif Player.Green.seated then
  929. printToColor("You are the traitor", "Green", {1, 0, 0})
  930. elseif Player.Blue.seated then
  931. printToColor("You are the traitor", "Blue", {1, 0, 0})
  932. elseif Player.Purple.seated then
  933. printToColor("You are the traitor", "Purple", {1, 0, 0})
  934. end
  935. elseif randomNum == 2 then
  936. if Player.Red.seated then
  937. printToColor("You are the traitor", "Red", {1, 0, 0})
  938. elseif Player.Orange.seated then
  939. printToColor("You are the traitor", "Orange", {1, 0, 0})
  940. elseif Player.Green.seated then
  941. printToColor("You are the traitor", "Green", {1, 0, 0})
  942. elseif Player.Blue.seated then
  943. printToColor("You are the traitor", "Blue", {1, 0, 0})
  944. elseif Player.Purple.seated then
  945. printToColor("You are the traitor", "Purple", {1, 0, 0})
  946. elseif Player.White.seated then
  947. printToColor("You are the traitor", "White", {1, 0, 0})
  948. end
  949. elseif randomNum == 3 then
  950. if Player.Orange.seated then
  951. printToColor("You are the traitor", "Orange", {1, 0, 0})
  952. elseif Player.Green.seated then
  953. printToColor("You are the traitor", "Green", {1, 0, 0})
  954. elseif Player.Blue.seated then
  955. printToColor("You are the traitor", "Blue", {1, 0, 0})
  956. elseif Player.Purple.seated then
  957. printToColor("You are the traitor", "Purple", {1, 0, 0})
  958. elseif Player.White.seated then
  959. printToColor("You are the traitor", "White", {1, 0, 0})
  960. elseif Player.Red.seated then
  961. printToColor("You are the traitor", "Red", {1, 0, 0})
  962. end
  963. elseif randomNum == 4 then
  964. if Player.Green.seated then
  965. printToColor("You are the traitor", "Green", {1, 0, 0})
  966. elseif Player.Blue.seated then
  967. printToColor("You are the traitor", "Blue", {1, 0, 0})
  968. elseif Player.Purple.seated then
  969. printToColor("You are the traitor", "Purple", {1, 0, 0})
  970. elseif Player.White.seated then
  971. printToColor("You are the traitor", "White", {1, 0, 0})
  972. elseif Player.Red.seated then
  973. printToColor("You are the traitor", "Red", {1, 0, 0})
  974. elseif Player.Orange.seated then
  975. printToColor("You are the traitor", "Orange", {1, 0, 0})
  976. end
  977. elseif randomNum == 5 then
  978. if Player.Blue.seated then
  979. printToColor("You are the traitor", "Blue", {1, 0, 0})
  980. elseif Player.Purple.seated then
  981. printToColor("You are the traitor", "Purple", {1, 0, 0})
  982. elseif Player.White.seated then
  983. printToColor("You are the traitor", "White", {1, 0, 0})
  984. elseif Player.Red.seated then
  985. printToColor("You are the traitor", "Red", {1, 0, 0})
  986. elseif Player.Orange.seated then
  987. printToColor("You are the traitor", "Orange", {1, 0, 0})
  988. elseif Player.Green.seated then
  989. printToColor("You are the traitor", "Green", {1, 0, 0})
  990. end
  991. elseif randomNum == 6 then
  992. if Player.Purple.seated then
  993. printToColor("You are the traitor", "Purple", {1, 0, 0})
  994. elseif Player.White.seated then
  995. printToColor("You are the traitor", "White", {1, 0, 0})
  996. elseif Player.Red.seated then
  997. printToColor("You are the traitor", "Red", {1, 0, 0})
  998. elseif Player.Orange.seated then
  999. printToColor("You are the traitor", "Orange", {1, 0, 0})
  1000. elseif Player.Green.seated then
  1001. printToColor("You are the traitor", "Green", {1, 0, 0})
  1002. elseif Player.Blue.seated then
  1003. printToColor("You are the traitor", "Blue", {1, 0, 0})
  1004. end
  1005. end
  1006. end
  1007.  
  1008. if hauntNumber == 44 then
  1009. printToAll("Death Doth Find Us All - 44", colorText)
  1010. --tratiorDeck.takeObject({index = 'c5e8da'})
  1011. --survivorDeck.takeObject({index = 'c06a1c'})
  1012.  
  1013. if Player.White.seated and currentPlayer ~= "White" then
  1014. traitor = getCurrentPlayerObject("White")
  1015. end
  1016. if Player.Blue.seated and currentPlayer ~= "Blue" then
  1017. traitor = getCurrentPlayerObject("Blue")
  1018. end
  1019. if Player.Red.seated and getObjectFromGUID('3878fc') ~= nil and currentPlayer ~= "Red" then
  1020. traitor = getCurrentPlayerObject("Red")
  1021. end
  1022. if Player.Purple.seated and getObjectFromGUID('732231') ~= nil and currentPlayer ~= "Purple" then
  1023. traitor = getCurrentPlayerObject("Purple")
  1024. end
  1025. if Player.Red.seated and getObjectFromGUID('f8116a') ~= nil and currentPlayer ~= "Red" then
  1026. traitor = getCurrentPlayerObject("Red")
  1027. end
  1028. if Player.Purple.seated and getObjectFromGUID('926f41') ~= nil and currentPlayer ~= "Purple" then
  1029. traitor = getCurrentPlayerObject("Purple")
  1030. end
  1031. if Player.Green.seated and currentPlayer ~= "Green" then
  1032. traitor = getCurrentPlayerObject("Green")
  1033. end
  1034. if Player.Orange.seated and currentPlayer ~= "Orange" then
  1035. traitor = getCurrentPlayerObject("Orange")
  1036. end
  1037. end
  1038.  
  1039. if hauntNumber == 45 then
  1040. printToAll("Tick, Tick, Tick - 45", colorText)
  1041. --tratiorDeck.takeObject({index = '22d3e6'})
  1042. --survivorDeck.takeObject({index = 'd52e4a'})
  1043. traitor = checkStats(currentPlayer, 'knowledgeStat', false, true)
  1044. end
  1045.  
  1046. if hauntNumber == 46 then
  1047. printToAll("The Feast - 46", colorText)
  1048. --tratiorDeck.takeObject({index = 'b6d561'})
  1049. --survivorDeck.takeObject({index = 'ad4f7d'})
  1050. if getObjectFromGUID('5a4152') ~= nil and Player.Blue.seated then
  1051. traitor = getObjectFromGUID('5a4152')
  1052. else
  1053. traitor = checkStats(currentPlayer, 'speedStat', true, true)
  1054. end
  1055. end
  1056.  
  1057. if hauntNumber == 47 then
  1058. printToAll("Wor Ouroboros - 47", colorText)
  1059. --tratiorDeck.takeObject({index = '724380'})
  1060. --survivorDeck.takeObject({index = '6c833f'})
  1061. traitor = getCurrentPlayerObject(currentPlayer)
  1062. end
  1063.  
  1064. if hauntNumber == 48 then
  1065. printToAll("Stacked Like Cordwood - 48", colorText)
  1066. --tratiorDeck.takeObject({index = '1b46a2'})
  1067. --survivorDeck.takeObject({index = '914c54'})
  1068. traitor = getNextPlayer()
  1069. end
  1070.  
  1071. if hauntNumber == 49 then
  1072. printToAll("You Wear It Well - 49", colorText)
  1073. --tratiorDeck.takeObject({index = '72ea23'})
  1074. --survivorDeck.takeObject({index = 'dcf572'})
  1075. if getObjectFromGUID('926f41') ~= nil and Player.Purple.seated then
  1076. traitor = getObjectFromGUID('926f41')
  1077. else
  1078. traitor = checkStats(currentPlayer, 'speedStat', true, true)
  1079. end
  1080. end
  1081.  
  1082. if hauntNumber == 50 then
  1083. printToAll("Treasure Hunt - 50", colorText)
  1084. --survivorDeck.takeObject({index = 'aa774c', position = {28, 0.1, 18}})
  1085. --survivorDeck.takeObject({index = '03e9bb', position = {37, 0.1, 18}})
  1086. printToAll("There is no traitor", {0, 1, 200})
  1087. end
  1088. end
  1089.  
  1090. reverseTratior = nil;
  1091.  
  1092. if hauntNumber == 51 then
  1093. printToAll("Director's Cut - 51", colorText)
  1094. reverseTratior = getCurrentPlayerObject(currentPlayer)
  1095. end
  1096.  
  1097. if hauntNumber == 52 then
  1098. printToAll("Prism - 52", colorText)
  1099. traitor = getCurrentPlayerObject(currentPlayer)
  1100. end
  1101.  
  1102. if hauntNumber == 53 then
  1103. printToAll("Till Morning Light - 53", colorText)
  1104. traitor = getCurrentPlayerObject(currentPlayer)
  1105. end
  1106.  
  1107. if hauntNumber == 54 then
  1108. printToAll("Monster Mash - 54", colorText)
  1109. traitor = checkStats(currentPlayer, 'knowledgeStat', false, true)
  1110. end
  1111.  
  1112. if hauntNumber == 55 then
  1113. printToAll("She is Not Amused - 55", colorText)
  1114. if currentPlayer == "White" or currentPlayer == "Red" or currentPlayer == "Orange" then
  1115. if Player.Purple.seated then
  1116. traitor = getCurrentPlayerObject("Purple")
  1117. elseif Player.Blue.seated then
  1118. traitor = getCurrentPlayerObject("Blue")
  1119. elseif Player.Orange.seated then
  1120. traitor = getCurrentPlayerObject("Orange")
  1121. else
  1122. traitor = getCurrentPlayerObject(currentPlayer)
  1123. end
  1124. elseif currentPlayer == "Blue" or currentPlayer == "Green" then
  1125. if Player.Orange.seated then
  1126. traitor = getCurrentPlayerObject("Orange")
  1127. elseif Player.Purple.seated then
  1128. traitor = getCurrentPlayerObject("Purple")
  1129. elseif Player.Blue.seated then
  1130. traitor = getCurrentPlayerObject("Blue")
  1131. else
  1132. traitor = getCurrentPlayerObject(currentPlayer)
  1133. end
  1134. elseif currentPlayer == "Purple" then
  1135. if Player.Blue.seated then
  1136. traitor = getCurrentPlayerObject("Blue")
  1137. elseif Player.Orange.seated then
  1138. traitor = getCurrentPlayerObject("Orange")
  1139. elseif Player.Purple.seated then
  1140. traitor = getCurrentPlayerObject("Purple")
  1141. else
  1142. traitor = getCurrentPlayerObject(currentPlayer)
  1143. end
  1144. end
  1145. end
  1146.  
  1147. if hauntNumber == 56 then
  1148. printToAll("Make America Disintegrate - 56", colorText)
  1149.  
  1150. count = {whiteOmen + whiteItem,redOmen + redItem,orangeOmen + orangeItem,greenOmen + greenItem,blueOmen + blueItem,purpleOmen + purpleItem}
  1151.  
  1152. biggest = count[1]
  1153.  
  1154. for counts = 1, 6 do
  1155. if biggest < count[counts] then
  1156. biggest = count[counts]
  1157. end
  1158. end
  1159.  
  1160. if currentPlayer == "White" and biggest == count[1] then
  1161. traitor = getCurrentPlayerObject("White")
  1162. elseif currentPlayer == "Red" and biggest == count[2] then
  1163. traitor = getCurrentPlayerObject("Red")
  1164. elseif currentPlayer == "Orange" and biggest == count[3] then
  1165. traitor = getCurrentPlayerObject("Orange")
  1166. elseif currentPlayer == "Green" and biggest == count[4] then
  1167. traitor = getCurrentPlayerObject("Green")
  1168. elseif currentPlayer == "Blue" and biggest == count[5] then
  1169. traitor = getCurrentPlayerObject("Blue")
  1170. elseif currentPlayer == "Purple" and biggest == count[6] then
  1171. traitor = getCurrentPlayerObject("Purple")
  1172. end
  1173.  
  1174. if biggest == count[1] then
  1175. traitor = getCurrentPlayerObject("White")
  1176. elseif biggest == count[2] then
  1177. traitor = getCurrentPlayerObject("Red")
  1178. elseif biggest == count[3] then
  1179. traitor = getCurrentPlayerObject("Orange")
  1180. elseif biggest == count[4] then
  1181. traitor = getCurrentPlayerObject("Green")
  1182. elseif biggest == count[5] then
  1183. traitor = getCurrentPlayerObject("Blue")
  1184. elseif biggest == count[6] then
  1185. traitor = getCurrentPlayerObject("Purple")
  1186. end
  1187. end
  1188.  
  1189. if hauntNumber == 57 then
  1190. printToAll("The Gathering Storm - 57", colorText)
  1191. printToAll("There is no traitor", {0, 1, 200})
  1192. end
  1193.  
  1194. if hauntNumber == 58 then
  1195. printToAll("Olly Olly Oxen Free - 58", colorText)
  1196. traitor = getCurrentPlayerObject(currentPlayer)
  1197. end
  1198.  
  1199. if hauntNumber == 59 then
  1200. printToAll("The Fleshchild's Alchemical Mandate - 59", colorText)
  1201. traitor = getCurrentPlayerObject(currentPlayer)
  1202. end
  1203.  
  1204. if hauntNumber == 60 then
  1205. printToAll("Cat O'Clock - 60", colorText)
  1206. traitor = getCurrentPlayerObject(currentPlayer)
  1207. end
  1208.  
  1209. if hauntNumber == 61 then
  1210. printToAll("Captain Sting's Revenge - 61", colorText)
  1211. traitor = getCurrentPlayerObject(currentPlayer)
  1212. end
  1213.  
  1214. if hauntNumber == 62 then
  1215. printToAll("Rosencrantz and All of You are Dead - 62", colorText)
  1216. if getObjectFromGUID('f8116a') ~= nil and Player.Red.seated then
  1217. traitor = getObjectFromGUID('f8116a')
  1218. else
  1219. traitor = checkStats(currentPlayer, 'knowledgeStat', false, true)
  1220. end
  1221. end
  1222.  
  1223. if hauntNumber == 63 then
  1224. printToAll("Shush - 63", colorText)
  1225. traitor = getCurrentPlayerObject(currentPlayer)
  1226. end
  1227.  
  1228. if hauntNumber == 64 then
  1229. printToAll("Chairman of the Board - 64", colorText)
  1230. reverseTratior = checkStats(currentPlayer, 'knowledgeStat', false, true)
  1231. end
  1232.  
  1233. if hauntNumber == 65 then
  1234. printToAll("Sushi Night - 65", colorText)
  1235. traitor = getCurrentPlayerObject(currentPlayer)
  1236. end
  1237.  
  1238. if hauntNumber == 66 then
  1239. printToAll("The Cardinal Sins - 66", colorText)
  1240. if Player.White.seated then
  1241. traitor = getCurrentPlayerObject("White")
  1242. elseif Player.Red.seated then
  1243. traitor = getCurrentPlayerObject("Red")
  1244. elseif Player.Green.seated then
  1245. traitor = getCurrentPlayerObject("Green")
  1246. elseif Player.Blue.seated then
  1247. traitor = getCurrentPlayerObject("Blue")
  1248. elseif Player.Purple.seated then
  1249. traitor = getCurrentPlayerObject("Purple")
  1250. elseif Player.Orange.seated then
  1251. traitor = getCurrentPlayerObject("Orange")
  1252. end
  1253. end
  1254.  
  1255. if hauntNumber == 67 then
  1256. printToAll("Murderball - 67", colorText)
  1257.  
  1258. if getObjectFromGUID('050ff1') ~= nil and Player.Green.seated then
  1259. traitor = getObjectFromGUID('050ff1')
  1260. else
  1261. traitor = checkStats(currentPlayer, 'speedStat', false, true)
  1262. end
  1263. end
  1264.  
  1265. if hauntNumber == 68 then
  1266. printToAll("He Who Must Not Be Read - 68", colorText)
  1267.  
  1268. if getObjectFromGUID('732231') ~= nil and Player.Purple.seated then
  1269. traitor = getObjectFromGUID('732231')
  1270. else
  1271. traitor = checkStats(currentPlayer, 'knowledgeStat', false, true)
  1272. end
  1273. end
  1274.  
  1275. if hauntNumber == 69 then
  1276. printToAll("No Noose is Good News - 69", colorText)
  1277. traitor = getCurrentPlayerObject(currentPlayer)
  1278. end
  1279.  
  1280. if hauntNumber == 70 then
  1281. printToAll("To Reach the Cosmos - 70", colorText)
  1282. if Player.White.seated then
  1283. traitor = getCurrentPlayerObject("White")
  1284. elseif Player.Blue.seated then
  1285. traitor = getCurrentPlayerObject("Blue")
  1286. elseif Player.Red.seated and getObjectFromGUID('3878fc') ~= nil then
  1287. traitor = getCurrentPlayerObject("Red")
  1288. elseif Player.Purple.seated and getObjectFromGUID('732231') ~= nil then
  1289. traitor = getCurrentPlayerObject("Purple")
  1290. elseif Player.Red.seated then
  1291. traitor = getCurrentPlayerObject("Red")
  1292. elseif Player.Purple.seated then
  1293. traitor = getCurrentPlayerObject("Purple")
  1294. elseif Player.Green.seated then
  1295. traitor = getCurrentPlayerObject("Green")
  1296. elseif Player.Orange.seated then
  1297. traitor = getCurrentPlayerObject("Orange")
  1298. end
  1299. end
  1300.  
  1301. if hauntNumber == 71 then
  1302. printToAll("The Other Side - 71", colorText)
  1303. traitor = getNextPlayer()
  1304. end
  1305.  
  1306. if hauntNumber == 72 then
  1307. printToAll("Man's Worst Enemy - 72", colorText)
  1308. traitor = getCurrentPlayerObject(currentPlayer)
  1309. end
  1310.  
  1311. if hauntNumber == 73 then
  1312. printToAll("Existence Precedes Essence - 73", colorText)
  1313.  
  1314. if getObjectFromGUID('3878fc') ~= nil and Player.Red.seated then
  1315. traitor = getObjectFromGUID('3878fc')
  1316. else
  1317. traitor = checkStats(currentPlayer, 'mightStat', false, true)
  1318. end
  1319. end
  1320.  
  1321. if hauntNumber == 74 then
  1322. printToAll("Coulrophobia - 74", colorText)
  1323. traitor = getCurrentPlayerObject(currentPlayer)
  1324. end
  1325.  
  1326. if hauntNumber == 75 then
  1327. printToAll("Let It Glow - 75", colorText)
  1328. traitor = getNextPlayer()
  1329. end
  1330.  
  1331. if hauntNumber == 76 then
  1332. printToAll("Back to the Past - 76", colorText)
  1333. if Player.White.seated then
  1334. traitor = getCurrentPlayerObject("White")
  1335. elseif Player.Blue.seated then
  1336. traitor = getCurrentPlayerObject("Blue")
  1337. elseif Player.Red.seated and getObjectFromGUID('3878fc') ~= nil then
  1338. traitor = getCurrentPlayerObject("Red")
  1339. elseif Player.Purple.seated and getObjectFromGUID('732231') ~= nil then
  1340. traitor = getCurrentPlayerObject("Purple")
  1341. elseif Player.Red.seated then
  1342. traitor = getCurrentPlayerObject("Red")
  1343. elseif Player.Purple.seated then
  1344. traitor = getCurrentPlayerObject("Purple")
  1345. elseif Player.Green.seated then
  1346. traitor = getCurrentPlayerObject("Green")
  1347. elseif Player.Orange.seated then
  1348. traitor = getCurrentPlayerObject("Orange")
  1349. end
  1350. end
  1351.  
  1352. if hauntNumber == 77 then
  1353. printToAll("They're Always After Me - 77", colorText)
  1354.  
  1355. if getObjectFromGUID('e35e15') ~= nil and Player.White.seated then
  1356. traitor = getObjectFromGUID('e35e15')
  1357. else
  1358. traitor = checkStats(currentPlayer, 'speedStat', false, true)
  1359. end
  1360. end
  1361.  
  1362. if hauntNumber == 78 then
  1363. printToAll("The Devil's Name - 78", colorText)
  1364. traitor = checkStats(currentPlayer, 'sanityStat', true, false)
  1365. end
  1366.  
  1367. secondTraitor = nil
  1368.  
  1369. if hauntNumber == 79 then
  1370. printToAll("The Twins - 79", colorText)
  1371. if currentPlayer == "White" then
  1372. if Player.Purple.seated then
  1373. secondTraitor = getCurrentPlayerObject("Purple")
  1374. elseif Player.Blue.seated then
  1375. secondTraitor = getCurrentPlayerObject("Blue")
  1376. elseif Player.Green.seated then
  1377. secondTraitor = getCurrentPlayerObject("Green")
  1378. elseif Player.Orange.seated then
  1379. secondTraitor = getCurrentPlayerObject("Orange")
  1380. elseif Player.Red.seated then
  1381. secondTraitor = getCurrentPlayerObject("Red")
  1382. end
  1383. elseif currentPlayer == "Red" then
  1384. if Player.White.seated then
  1385. secondTraitor = getCurrentPlayerObject("White")
  1386. elseif Player.Purple.seated then
  1387. secondTraitor = getCurrentPlayerObject("Purple")
  1388. elseif Player.Blue.seated then
  1389. secondTraitor = getCurrentPlayerObject("Blue")
  1390. elseif Player.Green.seated then
  1391. secondTraitor = getCurrentPlayerObject("Green")
  1392. elseif Player.Orange.seated then
  1393. secondTraitor = getCurrentPlayerObject("Orange")
  1394. end
  1395. elseif currentPlayer == "Orange" then
  1396. if Player.Red.seated then
  1397. secondTraitor = getCurrentPlayerObject("Red")
  1398. elseif Player.White.seated then
  1399. secondTraitor = getCurrentPlayerObject("White")
  1400. elseif Player.Purple.seated then
  1401. secondTraitor = getCurrentPlayerObject("Purple")
  1402. elseif Player.Blue.seated then
  1403. secondTraitor = getCurrentPlayerObject("Blue")
  1404. elseif Player.Green.seated then
  1405. secondTraitor = getCurrentPlayerObject("Green")
  1406. end
  1407. elseif currentPlayer == "Green" then
  1408. if Player.Orange.seated then
  1409. secondTraitor = getCurrentPlayerObject("Orange")
  1410. elseif Player.Red.seated then
  1411. secondTraitor = getCurrentPlayerObject("Red")
  1412. elseif Player.White.seated then
  1413. secondTraitor = getCurrentPlayerObject("White")
  1414. elseif Player.Purple.seated then
  1415. secondTraitor = getCurrentPlayerObject("Purple")
  1416. elseif Player.Blue.seated then
  1417. secondTraitor = getCurrentPlayerObject("Blue")
  1418. end
  1419. elseif currentPlayer == "Blue" then
  1420. if Player.Green.seated then
  1421. secondTraitor = getCurrentPlayerObject("Green")
  1422. elseif Player.Orange.seated then
  1423. secondTraitor = getCurrentPlayerObject("Orange")
  1424. elseif Player.Red.seated then
  1425. secondTraitor = getCurrentPlayerObject("Red")
  1426. elseif Player.White.seated then
  1427. secondTraitor = getCurrentPlayerObject("White")
  1428. elseif Player.Purple.seated then
  1429. secondTraitor = getCurrentPlayerObject("Purple")
  1430. end
  1431. elseif currentPlayer == "Purple" then
  1432. if Player.Blue.seated then
  1433. secondTraitor = getCurrentPlayerObject("Blue")
  1434. elseif Player.Green.seated then
  1435. secondTraitor = getCurrentPlayerObject("Green")
  1436. elseif Player.Orange.seated then
  1437. secondTraitor = getCurrentPlayerObject("Orange")
  1438. elseif Player.Red.seated then
  1439. secondTraitor = getCurrentPlayerObject("Red")
  1440. elseif Player.White.seated then
  1441. secondTraitor = getCurrentPlayerObject("White")
  1442. end
  1443. end
  1444.  
  1445. traitor = getNextPlayer();
  1446.  
  1447. end
  1448.  
  1449. if hauntNumber == 80 then
  1450. printToAll("I, Mutant - 80", colorText)
  1451. traitor = checkStats(currentPlayer, 'knowledgeStat', false, true)
  1452. end
  1453.  
  1454. if hauntNumber == 81 then
  1455. printToAll("The Canopic Curse - 81", colorText)
  1456. traitor = getCurrentPlayerObject(currentPlayer)
  1457. end
  1458.  
  1459. if hauntNumber == 82 then
  1460. printToAll("Get A Clue - 82", colorText)
  1461. traitor = getCurrentPlayerObject(currentPlayer)
  1462. end
  1463.  
  1464. if hauntNumber == 83 then
  1465. printToAll("In the Details - 83", colorText)
  1466. printToAll("There is no traitor", {0, 1, 200})
  1467. end
  1468.  
  1469. if hauntNumber == 84 then
  1470. printToAll("Forget To Remember - 84", colorText)
  1471. traitor = getNextPlayer()
  1472. end
  1473.  
  1474. if hauntNumber == 85 then
  1475. printToAll("The Murderer In the Machine - 85", colorText)
  1476. traitor = getNextPlayer()
  1477. end
  1478.  
  1479. if hauntNumber == 86 then
  1480. printToAll("The Woods In the Cabin - 86", colorText)
  1481. traitor = getCurrentPlayerObject(currentPlayer)
  1482. end
  1483.  
  1484. if hauntNumber == 87 then
  1485. printToAll("Sibling Rivalry - 87", colorText)
  1486.  
  1487. if Player.White.seated then
  1488. traitor = getCurrentPlayerObject("White")
  1489. end
  1490. if Player.Blue.seated then
  1491. traitor = getCurrentPlayerObject("Blue")
  1492. end
  1493. if Player.Red.seated and getObjectFromGUID('3878fc') ~= nil then
  1494. traitor = getCurrentPlayerObject("Red")
  1495. end
  1496. if Player.Purple.seated and getObjectFromGUID('732231') ~= nil then
  1497. traitor = getCurrentPlayerObject("Purple")
  1498. end
  1499. if Player.Red.seated then
  1500. traitor = getCurrentPlayerObject("Red")
  1501. end
  1502. if Player.Purple.seated then
  1503. traitor = getCurrentPlayerObject("Purple")
  1504. end
  1505. if Player.Green.seated then
  1506. traitor = getCurrentPlayerObject("Green")
  1507. end
  1508. if Player.Orange.seated then
  1509. traitor = getCurrentPlayerObject("Orange")
  1510. end
  1511. end
  1512.  
  1513. if hauntNumber == 88 then
  1514. printToAll("Cry, Babylon! - 88", colorText)
  1515. traitor = getCurrentPlayerObject(currentPlayer)
  1516. end
  1517.  
  1518. if hauntNumber == 89 then
  1519. printToAll("One of the Master's Affair - 89", colorText)
  1520. traitor = checkStats(currentPlayer, 'sanityStat', true, true)
  1521. end
  1522.  
  1523. if hauntNumber == 90 then
  1524. printToAll("Internal Conflict - 90", colorText)
  1525. traitor = getCurrentPlayerObject(currentPlayer)
  1526. end
  1527.  
  1528. if hauntNumber == 91 then
  1529. printToAll("Burn Out the Darkness - 91", colorText)
  1530. traitor = checkStats(currentPlayer, 'sanityStat', true, true)
  1531. end
  1532.  
  1533. if hauntNumber == 92 then
  1534. printToAll("Ghost At the Finish Line - 92", colorText)
  1535. printToAll("There is no traitor", {0, 1, 200})
  1536. end
  1537.  
  1538. if hauntNumber == 93 then
  1539. printToAll("Owl's Moving Castle - 93", colorText)
  1540. traitor = checkStats(currentPlayer, 'knowledgeStat', false, true)
  1541. end
  1542.  
  1543. if hauntNumber == 94 then
  1544. printToAll("Last Will and Tournament - 94", colorText)
  1545. count = {whiteItem,redItem,orangeItem,greenItem,blueItem,purpleItem}
  1546.  
  1547. biggest = count[1]
  1548.  
  1549. for counts = 1, 6 do
  1550. if biggest < count[counts] then
  1551. biggest = count[counts]
  1552. end
  1553. end
  1554.  
  1555. if currentPlayer == "White" and biggest == count[1] then
  1556. traitor = getCurrentPlayerObject("White")
  1557. elseif currentPlayer == "Red" and biggest == count[2] then
  1558. traitor = getCurrentPlayerObject("Red")
  1559. elseif currentPlayer == "Orange" and biggest == count[3] then
  1560. traitor = getCurrentPlayerObject("Orange")
  1561. elseif currentPlayer == "Green" and biggest == count[4] then
  1562. traitor = getCurrentPlayerObject("Green")
  1563. elseif currentPlayer == "Blue" and biggest == count[5] then
  1564. traitor = getCurrentPlayerObject("Blue")
  1565. elseif currentPlayer == "Purple" and biggest == count[6] then
  1566. traitor = getCurrentPlayerObject("Purple")
  1567. end
  1568.  
  1569. if biggest == count[1] then
  1570. traitor = getCurrentPlayerObject("White")
  1571. elseif biggest == count[2] then
  1572. traitor = getCurrentPlayerObject("Red")
  1573. elseif biggest == count[3] then
  1574. traitor = getCurrentPlayerObject("Orange")
  1575. elseif biggest == count[4] then
  1576. traitor = getCurrentPlayerObject("Green")
  1577. elseif biggest == count[5] then
  1578. traitor = getCurrentPlayerObject("Blue")
  1579. elseif biggest == count[6] then
  1580. traitor = getCurrentPlayerObject("Purple")
  1581. end
  1582. end
  1583.  
  1584. if hauntNumber == 95 then
  1585. printToAll("Nanny, Interrupted - 95", colorText)
  1586. if Player.White.seated then
  1587. traitor = getCurrentPlayerObject("White")
  1588. elseif Player.Blue.seated then
  1589. traitor = getCurrentPlayerObject("Blue")
  1590. elseif Player.Red.seated and getObjectFromGUID('3878fc') ~= nil then
  1591. traitor = getCurrentPlayerObject("Red")
  1592. elseif Player.Purple.seated and getObjectFromGUID('732231') ~= nil then
  1593. traitor = getCurrentPlayerObject("Purple")
  1594. elseif Player.Red.seated then
  1595. traitor = getCurrentPlayerObject("Red")
  1596. elseif Player.Purple.seated then
  1597. traitor = getCurrentPlayerObject("Purple")
  1598. elseif Player.Green.seated then
  1599. traitor = getCurrentPlayerObject("Green")
  1600. elseif Player.Orange.seated then
  1601. traitor = getCurrentPlayerObject("Orange")
  1602. end
  1603. end
  1604.  
  1605. if hauntNumber == 96 then
  1606. printToAll("House of Leavings - 96", colorText)
  1607. traitor = getNextPlayer()
  1608. end
  1609.  
  1610. if hauntNumber == 97 then
  1611. printToAll("Lambs to the Slaughter - 97", colorText)
  1612. printToAll("The traitor is unknown... even to themselves...", {0, 1, 200})
  1613. end
  1614.  
  1615. if hauntNumber == 98 then
  1616. printToAll("Plastic Fantastic - 98", colorText)
  1617. traitor = getCurrentPlayerObject(currentPlayer)
  1618. end
  1619.  
  1620. if hauntNumber == 99 then
  1621. printToAll("The Manor of Your Demise - 99", colorText)
  1622. printToAll("There is no traitor", {0, 1, 200})
  1623. end
  1624.  
  1625. if hauntNumber == 100 then
  1626. printToAll("Let's Play a Game - 100", colorText)
  1627. printToAll("There is no traitor", {0, 1, 200})
  1628. end
  1629.  
  1630. if hauntNumber == 101 then
  1631. printToAll("SEASONS OF THE WITCH", colorText)
  1632. printToAll("If all your explorers haven't played haunts 57, 75, 86, and 93, play a different haunt", {0, 115, 0})
  1633. printToAll("Otherwise...", {0, 115, 0})
  1634. printToAll("There is no traitor", {0, 1, 200})
  1635. end
  1636.  
  1637. local players = getSeatedPlayers()
  1638.  
  1639. for i = 1, #players do
  1640. Player[players[i]].team = "Hearts"
  1641. end
  1642.  
  1643. if secondTraitor ~= nil then
  1644.  
  1645. Player[secondTraitor.getVar("color")].team = "Spades"
  1646.  
  1647. local players = getSeatedPlayers()
  1648.  
  1649.  
  1650. if secondTraitor.getVar("color") == "White" then
  1651. printToAll(Player.White.steam_name .. " is the traitor!", {1, 1, 1})
  1652.  
  1653. tratiorZone = whiteTratiorZone
  1654. survivorZone = whiteSurvivorZone
  1655.  
  1656. elseif secondTraitor.getVar("color") == "Red" then
  1657. printToAll(Player.Red.steam_name .. " is the traitor!", {1, 0, 0})
  1658.  
  1659. tratiorZone = redTratiorZone
  1660. survivorZone = redSurvivorZone
  1661.  
  1662. elseif secondTraitor.getVar("color") == "Orange" then
  1663. printToAll(Player.Orange.steam_name .. " is the traitor!", {1, 0.45, 0})
  1664.  
  1665. tratiorZone = orangeTratiorZone
  1666. survivorZone = orangeSurvivorZone
  1667.  
  1668. elseif secondTraitor.getVar("color") == "Green" then
  1669. printToAll(Player.Green.steam_name .. " is the traitor!", {0, 1, 0})
  1670.  
  1671. tratiorZone = greenTratiorZone
  1672. survivorZone = greenSurvivorZone
  1673.  
  1674. elseif secondTraitor.getVar("color") == "Blue" then
  1675. printToAll(Player.Blue.steam_name .. " is the traitor!", {0.15, 0.43, 0.95})
  1676.  
  1677. tratiorZone = blueTratiorZone
  1678. survivorZone = blueSurvivorZone
  1679.  
  1680. elseif secondTraitor.getVar("color") == "Purple" then
  1681. printToAll(Player.Purple.steam_name .. " is the traitor!", {1, 0, 1})
  1682.  
  1683. tratiorZone = purpleTratiorZone
  1684. survivorZone = purpleSurvivorZone
  1685. end
  1686.  
  1687. tratiorZone.setPosition({-33.59, 3.00, 61.81})
  1688. tratiorZone.setRotation({0, 360, 0})
  1689. tratiorZone.setScale({39.81, 5, 21.46})
  1690.  
  1691. survivorZone.setPosition({34.74, 3.00, 62.12})
  1692. survivorZone.setRotation({0, 360, 0})
  1693. survivorZone.setScale({39.81, 5, 21.46})
  1694. end
  1695.  
  1696. if traitor ~= nil then
  1697. Player[traitor.getVar("color")].team = "Spades"
  1698.  
  1699. if traitor.getVar("color") == "White" then
  1700. printToAll(Player.White.steam_name .. " is the traitor!", {1, 1, 1})
  1701.  
  1702. tratiorZone = whiteTratiorZone
  1703. survivorZone = whiteSurvivorZone
  1704.  
  1705. elseif traitor.getVar("color") == "Red" then
  1706. printToAll(Player.Red.steam_name .. " is the traitor!", {1, 0, 0})
  1707.  
  1708. tratiorZone = redTratiorZone
  1709. survivorZone = redSurvivorZone
  1710.  
  1711. elseif traitor.getVar("color") == "Orange" then
  1712. printToAll(Player.Orange.steam_name .. " is the traitor!", {1, 0.45, 0})
  1713.  
  1714. tratiorZone = orangeTratiorZone
  1715. survivorZone = orangeSurvivorZone
  1716.  
  1717. elseif traitor.getVar("color") == "Green" then
  1718. printToAll(Player.Green.steam_name .. " is the traitor!", {0, 1, 0})
  1719.  
  1720. tratiorZone = greenTratiorZone
  1721. survivorZone = greenSurvivorZone
  1722.  
  1723. elseif traitor.getVar("color") == "Blue" then
  1724. printToAll(Player.Blue.steam_name .. " is the traitor!", {0.15, 0.43, 0.95})
  1725.  
  1726. tratiorZone = blueTratiorZone
  1727. survivorZone = blueSurvivorZone
  1728.  
  1729. elseif traitor.getVar("color") == "Purple" then
  1730. printToAll(Player.Purple.steam_name .. " is the traitor!", {1, 0, 1})
  1731.  
  1732. tratiorZone = purpleTratiorZone
  1733. survivorZone = purpleSurvivorZone
  1734. end
  1735.  
  1736. tratiorZone.setPosition({-33.59, 3.00, 61.81})
  1737. tratiorZone.setRotation({0, 360, 0})
  1738. tratiorZone.setScale({39.81, 5, 21.46})
  1739.  
  1740. survivorZone.setPosition({34.74, 3.00, 62.12})
  1741. survivorZone.setRotation({0, 360, 0})
  1742. survivorZone.setScale({39.81, 5, 21.46})
  1743.  
  1744. end
  1745.  
  1746. if reverseTratior ~= nil then
  1747. Player[reverseTratior.getVar("color")].team = "Spades"
  1748.  
  1749. if reverseTratior.getVar("color") == "White" then
  1750. printToAll("Everyone except " .. Player.White.steam_name .. " is the traitor!", {1, 1, 1})
  1751.  
  1752. tratiorZone = whiteTratiorZone
  1753. survivorZone = whiteSurvivorZone
  1754.  
  1755. elseif reverseTratior.getVar("color") == "Red" then
  1756. printToAll("Everyone except " .. Player.Red.steam_name .. " is the traitor!", {1, 0, 0})
  1757.  
  1758. tratiorZone = redTratiorZone
  1759. survivorZone = redSurvivorZone
  1760.  
  1761. elseif reverseTratior.getVar("color") == "Orange" then
  1762. printToAll("Everyone except " .. Player.Orange.steam_name .. " is the traitor!", {1, 0.45, 0})
  1763.  
  1764. tratiorZone = orangeTratiorZone
  1765. survivorZone = orangeSurvivorZone
  1766.  
  1767. elseif reverseTratior.getVar("color") == "Green" then
  1768. printToAll("Everyone except " .. Player.Green.steam_name .. " is the traitor!", {0, 1, 0})
  1769.  
  1770. tratiorZone = greenTratiorZone
  1771. survivorZone = greenSurvivorZone
  1772.  
  1773. elseif reverseTratior.getVar("color") == "Blue" then
  1774. printToAll("Everyone except " .. Player.Blue.steam_name .. " is the traitor!", {0.15, 0.43, 0.95})
  1775.  
  1776. tratiorZone = blueTratiorZone
  1777. survivorZone = blueSurvivorZone
  1778.  
  1779. elseif reverseTratior.getVar("color") == "Purple" then
  1780. printToAll("Everyone except " .. Player.Purple.steam_name .. " is the traitor!", {1, 0, 1})
  1781.  
  1782. tratiorZone = purpleTratiorZone
  1783. survivorZone = purpleSurvivorZone
  1784. end
  1785.  
  1786. survivorZone.setPosition({-34.74, 3, 49.51})
  1787. survivorZone.setRotation({0, 360, 0})
  1788. survivorZone.setScale({39.81, 5, 21.46})
  1789.  
  1790. tratiorZone.setPosition({34.74, 3, 49.51})
  1791. tratiorZone.setRotation({0, 360, 0})
  1792. tratiorZone.setScale({39.81, 5, 21.46})
  1793. end
  1794.  
  1795. printToAll(" ", colorText)
  1796. printToAll("-------------------------------", {1,1,1})
  1797.  
  1798. getObjectFromGUID(survivalbook).setState(hauntNumber)
  1799. getObjectFromGUID(traitorbook).setState(hauntNumber)
  1800.  
  1801. else
  1802. printToAll("A card and/or room hasn't been drawn", {1,1,1})
  1803. end
  1804. end
  1805.  
  1806. function getNextPlayer()
  1807. traitor = nil
  1808.  
  1809. if currentPlayer == "White" then
  1810. if Player.Red.seated then
  1811. traitor = getCurrentPlayerObject("Red")
  1812. elseif Player.Orange.seated then
  1813. traitor = getCurrentPlayerObject("Orange")
  1814. elseif Player.Green.seated then
  1815. traitor = getCurrentPlayerObject("Green")
  1816. elseif Player.Blue.seated then
  1817. traitor = getCurrentPlayerObject("Blue")
  1818. elseif Player.Purple.seated then
  1819. traitor = getCurrentPlayerObject("Purple")
  1820. end
  1821. elseif currentPlayer == "Red" then
  1822. if Player.Orange.seated then
  1823. traitor = getCurrentPlayerObject("Orange")
  1824. elseif Player.Green.seated then
  1825. traitor = getCurrentPlayerObject("Green")
  1826. elseif Player.Blue.seated then
  1827. traitor = getCurrentPlayerObject("Blue")
  1828. elseif Player.Purple.seated then
  1829. traitor = getCurrentPlayerObject("Purple")
  1830. elseif Player.White.seated then
  1831. traitor = getCurrentPlayerObject("White")
  1832. end
  1833. elseif currentPlayer == "Orange" then
  1834. if Player.Green.seated then
  1835. traitor = getCurrentPlayerObject("Green")
  1836. elseif Player.Blue.seated then
  1837. traitor = getCurrentPlayerObject("Blue")
  1838. elseif Player.Purple.seated then
  1839. traitor = getCurrentPlayerObject("Purple")
  1840. elseif Player.White.seated then
  1841. traitor = getCurrentPlayerObject("White")
  1842. elseif Player.Red.seated then
  1843. traitor = getCurrentPlayerObject("Red")
  1844. end
  1845. elseif currentPlayer == "Green" then
  1846. if Player.Blue.seated then
  1847. traitor = getCurrentPlayerObject("Blue")
  1848. elseif Player.Purple.seated then
  1849. traitor = getCurrentPlayerObject("Purple")
  1850. elseif Player.White.seated then
  1851. traitor = getCurrentPlayerObject("White")
  1852. elseif Player.Red.seated then
  1853. traitor = getCurrentPlayerObject("Red")
  1854. elseif Player.Orange.seated then
  1855. traitor = getCurrentPlayerObject("Orange")
  1856. end
  1857. elseif currentPlayer == "Blue" then
  1858. if Player.Purple.seated then
  1859. traitor = getCurrentPlayerObject("Purple")
  1860. elseif Player.White.seated then
  1861. traitor = getCurrentPlayerObject("White")
  1862. elseif Player.Red.seated then
  1863. traitor = getCurrentPlayerObject("Red")
  1864. elseif Player.Orange.seated then
  1865. traitor = getCurrentPlayerObject("Orange")
  1866. elseif Player.Green.seated then
  1867. traitor = getCurrentPlayerObject("Green")
  1868. end
  1869. elseif currentPlayer == "Purple" then
  1870. if Player.White.seated then
  1871. traitor = getCurrentPlayerObject("White")
  1872. elseif Player.Red.seated then
  1873. traitor = getCurrentPlayerObject("Red")
  1874. elseif Player.Orange.seated then
  1875. traitor = getCurrentPlayerObject("Orange")
  1876. elseif Player.Green.seated then
  1877. traitor = getCurrentPlayerObject("Green")
  1878. elseif Player.Blue.seated then
  1879. traitor = getCurrentPlayerObject("Blue")
  1880. end
  1881. end
  1882.  
  1883. return traitor
  1884. end
  1885.  
  1886. function getCurrentPlayerObject(player)
  1887. traitor = nil
  1888.  
  1889. if player == "White" then
  1890. if getObjectFromGUID('e35e15') ~= nil then
  1891. traitor = getObjectFromGUID('e35e15')
  1892. elseif getObjectFromGUID('327a8c') ~= nil then
  1893. traitor = getObjectFromGUID('327a8c')
  1894. end
  1895. end
  1896.  
  1897. if player == "Red" then
  1898. if getObjectFromGUID('f8116a') ~= nil then
  1899. traitor = getObjectFromGUID('f8116a')
  1900. elseif getObjectFromGUID('3878fc') ~= nil then
  1901. traitor = getObjectFromGUID('3878fc')
  1902. end
  1903. end
  1904.  
  1905. if player == "Orange" then
  1906. if getObjectFromGUID('0c0d43') ~= nil then
  1907. traitor = getObjectFromGUID('0c0d43')
  1908. elseif getObjectFromGUID('10c2e2') ~= nil then
  1909. traitor = getObjectFromGUID('10c2e2')
  1910. end
  1911. end
  1912.  
  1913. if player == "Green" then
  1914. if getObjectFromGUID('050ff1') ~= nil then
  1915. traitor = getObjectFromGUID('050ff1')
  1916. elseif getObjectFromGUID('a540a9') ~= nil then
  1917. traitor = getObjectFromGUID('a540a9')
  1918. end
  1919. end
  1920.  
  1921. if player == "Blue" then
  1922. if getObjectFromGUID('84dd50') ~= nil then
  1923. traitor = getObjectFromGUID('84dd50')
  1924. elseif getObjectFromGUID('5a4152') ~= nil then
  1925. traitor = getObjectFromGUID('5a4152')
  1926. end
  1927. end
  1928.  
  1929. if player == "Purple" then
  1930. if getObjectFromGUID('732231') ~= nil then
  1931. traitor = getObjectFromGUID('732231')
  1932. elseif getObjectFromGUID('926f41') ~= nil then
  1933. traitor = getObjectFromGUID('926f41')
  1934. end
  1935. end
  1936. return traitor
  1937. end
  1938.  
  1939. function checkStats(hauntRevealer, stat, isLowest, includeRevealer)
  1940. players = {}
  1941. traitor = nil
  1942.  
  1943. if isLowest then
  1944. if includeRevealer then
  1945. if hauntRevealer == "White" then
  1946. if getObjectFromGUID('e35e15') ~= nil then
  1947. traitor = getObjectFromGUID('e35e15')
  1948. elseif getObjectFromGUID('327a8c') ~= nil then
  1949. traitor = getObjectFromGUID('327a8c')
  1950. end
  1951.  
  1952. if Player.Red.seated then
  1953. if getObjectFromGUID('3878fc') ~= nil and getObjectFromGUID('3878fc').getVar(stat) < traitor.getVar(stat) then
  1954. traitor = getObjectFromGUID('3878fc')
  1955. elseif getObjectFromGUID('f8116a') ~= nil and getObjectFromGUID('f8116a').getVar(stat) < traitor.getVar(stat) then
  1956. traitor = getObjectFromGUID('f8116a')
  1957. end
  1958. end
  1959.  
  1960. if Player.Orange.seated then
  1961. if getObjectFromGUID('0c0d43') ~= nil and getObjectFromGUID('0c0d43').getVar(stat) < traitor.getVar(stat) then
  1962. traitor = getObjectFromGUID('0c0d43')
  1963. elseif getObjectFromGUID('10c2e2') ~= nil and getObjectFromGUID('10c2e2').getVar(stat) < traitor.getVar(stat) then
  1964. traitor = getObjectFromGUID('10c2e2')
  1965. end
  1966. end
  1967.  
  1968. if Player.Green.seated then
  1969. if getObjectFromGUID('050ff1') ~= nil and getObjectFromGUID('050ff1').getVar(stat) < traitor.getVar(stat) then
  1970. traitor = getObjectFromGUID('050ff1')
  1971. elseif getObjectFromGUID('a540a9') ~= nil and getObjectFromGUID('a540a9').getVar(stat) < traitor.getVar(stat) then
  1972. traitor = getObjectFromGUID('a540a9')
  1973. end
  1974. end
  1975.  
  1976. if Player.Blue.seated then
  1977. if getObjectFromGUID('84dd50') ~= nil and getObjectFromGUID('84dd50').getVar(stat) < traitor.getVar(stat) then
  1978. traitor = getObjectFromGUID('84dd50')
  1979. elseif getObjectFromGUID('5a4152') ~= nil and getObjectFromGUID('5a4152').getVar(stat) < traitor.getVar(stat) then
  1980. traitor = getObjectFromGUID('5a4152')
  1981. end
  1982. end
  1983.  
  1984. if Player.Purple.seated then
  1985. if getObjectFromGUID('926f41') ~= nil and getObjectFromGUID('926f41').getVar(stat) < traitor.getVar(stat) then
  1986. traitor = getObjectFromGUID('926f41')
  1987. elseif getObjectFromGUID('732231') ~= nil and getObjectFromGUID('732231').getVar(stat) < traitor.getVar(stat) then
  1988. traitor = getObjectFromGUID('732231')
  1989. end
  1990. end
  1991. elseif hauntRevealer == "Red" then
  1992. if getObjectFromGUID('3878fc') ~= nil then
  1993. traitor = getObjectFromGUID('3878fc')
  1994. elseif getObjectFromGUID('f8116a') ~= nil then
  1995. traitor = getObjectFromGUID('f8116a1')
  1996. end
  1997.  
  1998. if Player.Orange.seated then
  1999. if getObjectFromGUID('0c0d43') ~= nil and getObjectFromGUID('0c0d43').getVar(stat) < traitor.getVar(stat) then
  2000. traitor = getObjectFromGUID('0c0d43')
  2001. elseif getObjectFromGUID('10c2e2') ~= nil and getObjectFromGUID('10c2e2').getVar(stat) < traitor.getVar(stat) then
  2002. traitor = getObjectFromGUID('10c2e2')
  2003. end
  2004. end
  2005.  
  2006. if Player.Green.seated then
  2007. if getObjectFromGUID('050ff1') ~= nil and getObjectFromGUID('050ff1').getVar(stat) < traitor.getVar(stat) then
  2008. traitor = getObjectFromGUID('050ff1')
  2009. elseif getObjectFromGUID('a540a9') ~= nil and getObjectFromGUID('a540a9').getVar(stat) < traitor.getVar(stat) then
  2010. traitor = getObjectFromGUID('a540a9')
  2011. end
  2012. end
  2013.  
  2014. if Player.Blue.seated then
  2015. if getObjectFromGUID('84dd50') ~= nil and getObjectFromGUID('84dd50').getVar(stat) < traitor.getVar(stat) then
  2016. traitor = getObjectFromGUID('84dd50')
  2017. elseif getObjectFromGUID('5a4152') ~= nil and getObjectFromGUID('5a4152').getVar(stat) < traitor.getVar(stat) then
  2018. traitor = getObjectFromGUID('5a4152')
  2019. end
  2020. end
  2021.  
  2022. if Player.Purple.seated then
  2023. if getObjectFromGUID('926f41') ~= nil and getObjectFromGUID('926f41').getVar(stat) < traitor.getVar(stat) then
  2024. traitor = getObjectFromGUID('926f41')
  2025. elseif getObjectFromGUID('732231') ~= nil and getObjectFromGUID('732231').getVar(stat) < traitor.getVar(stat) then
  2026. traitor = getObjectFromGUID('732231')
  2027. end
  2028. end
  2029.  
  2030. if Player.White.seated then
  2031. if getObjectFromGUID('e35e15') ~= nil and getObjectFromGUID('e35e15').getVar(stat) < traitor.getVar(stat) then
  2032. traitor = getObjectFromGUID('e35e15')
  2033. elseif getObjectFromGUID('327a8c') ~= nil and getObjectFromGUID('327a8c').getVar(stat) < traitor.getVar(stat) then
  2034. traitor = getObjectFromGUID('327a8c')
  2035. end
  2036. end
  2037. elseif hauntRevealer == "Orange" then
  2038. if getObjectFromGUID('0c0d43') ~= nil then
  2039. traitor = getObjectFromGUID('0c0d43')
  2040. elseif getObjectFromGUID('10c2e2') ~= nil then
  2041. traitor = getObjectFromGUID('10c2e2')
  2042. end
  2043.  
  2044. if Player.Green.seated then
  2045. if getObjectFromGUID('050ff1') ~= nil and getObjectFromGUID('050ff1').getVar(stat) < traitor.getVar(stat) then
  2046. traitor = getObjectFromGUID('050ff1')
  2047. elseif getObjectFromGUID('a540a9') ~= nil and getObjectFromGUID('a540a9').getVar(stat) < traitor.getVar(stat) then
  2048. traitor = getObjectFromGUID('a540a9')
  2049. end
  2050. end
  2051.  
  2052. if Player.Blue.seated then
  2053. if getObjectFromGUID('84dd50') ~= nil and getObjectFromGUID('84dd50').getVar(stat) < traitor.getVar(stat) then
  2054. traitor = getObjectFromGUID('84dd50')
  2055. elseif getObjectFromGUID('5a4152') ~= nil and getObjectFromGUID('5a4152').getVar(stat) < traitor.getVar(stat) then
  2056. traitor = getObjectFromGUID('5a4152')
  2057. end
  2058. end
  2059.  
  2060. if Player.Purple.seated then
  2061. if getObjectFromGUID('926f41') ~= nil and getObjectFromGUID('926f41').getVar(stat) < traitor.getVar(stat) then
  2062. traitor = getObjectFromGUID('926f41')
  2063. elseif getObjectFromGUID('732231') ~= nil and getObjectFromGUID('732231').getVar(stat) < traitor.getVar(stat) then
  2064. traitor = getObjectFromGUID('732231')
  2065. end
  2066. end
  2067.  
  2068. if Player.White.seated then
  2069. if getObjectFromGUID('e35e15') ~= nil and getObjectFromGUID('e35e15').getVar(stat) < traitor.getVar(stat) then
  2070. traitor = getObjectFromGUID('e35e15')
  2071. elseif getObjectFromGUID('327a8c') ~= nil and getObjectFromGUID('327a8c').getVar(stat) < traitor.getVar(stat) then
  2072. traitor = getObjectFromGUID('327a8c')
  2073. end
  2074. end
  2075.  
  2076. if Player.Red.seated then
  2077. if getObjectFromGUID('3878fc') ~= nil and getObjectFromGUID('3878fc').getVar(stat) < traitor.getVar(stat) then
  2078. traitor = getObjectFromGUID('3878fc')
  2079. elseif getObjectFromGUID('f8116a') ~= nil and getObjectFromGUID('f8116a').getVar(stat) < traitor.getVar(stat) then
  2080. traitor = getObjectFromGUID('f8116a')
  2081. end
  2082. end
  2083. elseif hauntRevealer == "Green" then
  2084. if getObjectFromGUID('050ff1') ~= nil then
  2085. traitor = getObjectFromGUID('050ff1')
  2086. elseif getObjectFromGUID('a540a9') ~= nil then
  2087. traitor = getObjectFromGUID('a540a9')
  2088. end
  2089.  
  2090. if Player.Blue.seated then
  2091. if getObjectFromGUID('84dd50') ~= nil and getObjectFromGUID('84dd50').getVar(stat) < traitor.getVar(stat) then
  2092. traitor = getObjectFromGUID('84dd50')
  2093. elseif getObjectFromGUID('5a4152') ~= nil and getObjectFromGUID('5a4152').getVar(stat) < traitor.getVar(stat) then
  2094. traitor = getObjectFromGUID('5a4152')
  2095. end
  2096. end
  2097.  
  2098. if Player.Purple.seated then
  2099. if getObjectFromGUID('926f41') ~= nil and getObjectFromGUID('926f41').getVar(stat) < traitor.getVar(stat) then
  2100. traitor = getObjectFromGUID('926f41')
  2101. elseif getObjectFromGUID('732231') ~= nil and getObjectFromGUID('732231').getVar(stat) < traitor.getVar(stat) then
  2102. traitor = getObjectFromGUID('732231')
  2103. end
  2104. end
  2105.  
  2106. if Player.White.seated then
  2107. if getObjectFromGUID('e35e15') ~= nil and getObjectFromGUID('e35e15').getVar(stat) < traitor.getVar(stat) then
  2108. traitor = getObjectFromGUID('e35e15')
  2109. elseif getObjectFromGUID('327a8c') ~= nil and getObjectFromGUID('327a8c').getVar(stat) < traitor.getVar(stat) then
  2110. traitor = getObjectFromGUID('327a8c')
  2111. end
  2112. end
  2113.  
  2114. if Player.Red.seated then
  2115. if getObjectFromGUID('3878fc') ~= nil and getObjectFromGUID('3878fc').getVar(stat) < traitor.getVar(stat) then
  2116. traitor = getObjectFromGUID('3878fc')
  2117. elseif getObjectFromGUID('f8116a') ~= nil and getObjectFromGUID('f8116a').getVar(stat) < traitor.getVar(stat) then
  2118. traitor = getObjectFromGUID('f8116a')
  2119. end
  2120. end
  2121.  
  2122. if Player.Orange.seated then
  2123. if getObjectFromGUID('0c0d43') ~= nil and getObjectFromGUID('0c0d43').getVar(stat) < traitor.getVar(stat) then
  2124. traitor = getObjectFromGUID('0c0d43')
  2125. elseif getObjectFromGUID('10c2e2') ~= nil and getObjectFromGUID('10c2e2').getVar(stat) < traitor.getVar(stat) then
  2126. traitor = getObjectFromGUID('10c2e2')
  2127. end
  2128. end
  2129. elseif hauntRevealer == "Blue" then
  2130. if getObjectFromGUID('84dd50') ~= nil then
  2131. traitor = getObjectFromGUID('84dd50')
  2132. elseif getObjectFromGUID('5a4152') ~= nil then
  2133. traitor = getObjectFromGUID('5a4152')
  2134. end
  2135.  
  2136. if Player.Purple.seated then
  2137. if getObjectFromGUID('926f41') ~= nil and getObjectFromGUID('926f41').getVar(stat) < traitor.getVar(stat) then
  2138. traitor = getObjectFromGUID('926f41')
  2139. elseif getObjectFromGUID('732231') ~= nil and getObjectFromGUID('732231').getVar(stat) < traitor.getVar(stat) then
  2140. traitor = getObjectFromGUID('732231')
  2141. end
  2142. end
  2143.  
  2144. if Player.White.seated then
  2145. if getObjectFromGUID('e35e15') ~= nil and getObjectFromGUID('e35e15').getVar(stat) < traitor.getVar(stat) then
  2146. traitor = getObjectFromGUID('e35e15')
  2147. elseif getObjectFromGUID('327a8c') ~= nil and getObjectFromGUID('327a8c').getVar(stat) < traitor.getVar(stat) then
  2148. traitor = getObjectFromGUID('327a8c')
  2149. end
  2150. end
  2151.  
  2152. if Player.Red.seated then
  2153. if getObjectFromGUID('3878fc') ~= nil and getObjectFromGUID('3878fc').getVar(stat) < traitor.getVar(stat) then
  2154. traitor = getObjectFromGUID('3878fc')
  2155. elseif getObjectFromGUID('f8116a') ~= nil and getObjectFromGUID('f8116a').getVar(stat) < traitor.getVar(stat) then
  2156. traitor = getObjectFromGUID('f8116a')
  2157. end
  2158. end
  2159.  
  2160. if Player.Orange.seated then
  2161. if getObjectFromGUID('0c0d43') ~= nil and getObjectFromGUID('0c0d43').getVar(stat) < traitor.getVar(stat) then
  2162. traitor = getObjectFromGUID('0c0d43')
  2163. elseif getObjectFromGUID('10c2e2') ~= nil and getObjectFromGUID('10c2e2').getVar(stat) < traitor.getVar(stat) then
  2164. traitor = getObjectFromGUID('10c2e2')
  2165. end
  2166. end
  2167.  
  2168. if Player.Green.seated then
  2169. if getObjectFromGUID('050ff1') ~= nil and getObjectFromGUID('050ff1').getVar(stat) < traitor.getVar(stat) then
  2170. traitor = getObjectFromGUID('050ff1')
  2171. elseif getObjectFromGUID('a540a9') ~= nil and getObjectFromGUID('a540a9').getVar(stat) < traitor.getVar(stat) then
  2172. traitor = getObjectFromGUID('a540a9')
  2173. end
  2174. end
  2175. elseif hauntRevealer == "Purple" then
  2176. if getObjectFromGUID('926f41') ~= nil then
  2177. traitor = getObjectFromGUID('926f41')
  2178. elseif getObjectFromGUID('732231') ~= nil then
  2179. traitor = getObjectFromGUID('732231')
  2180. end
  2181.  
  2182. if Player.White.seated then
  2183. if getObjectFromGUID('e35e15') ~= nil and getObjectFromGUID('e35e15').getVar(stat) < traitor.getVar(stat) then
  2184. traitor = getObjectFromGUID('e35e15')
  2185. elseif getObjectFromGUID('327a8c') ~= nil and getObjectFromGUID('327a8c').getVar(stat) < traitor.getVar(stat) then
  2186. traitor = getObjectFromGUID('327a8c')
  2187. end
  2188. end
  2189.  
  2190. if Player.Red.seated then
  2191. if getObjectFromGUID('3878fc') ~= nil and getObjectFromGUID('3878fc').getVar(stat) < traitor.getVar(stat) then
  2192. traitor = getObjectFromGUID('3878fc')
  2193. elseif getObjectFromGUID('f8116a') ~= nil and getObjectFromGUID('f8116a').getVar(stat) < traitor.getVar(stat) then
  2194. traitor = getObjectFromGUID('f8116a')
  2195. end
  2196. end
  2197.  
  2198. if Player.Orange.seated then
  2199. if getObjectFromGUID('0c0d43') ~= nil and getObjectFromGUID('0c0d43').getVar(stat) < traitor.getVar(stat) then
  2200. traitor = getObjectFromGUID('0c0d43')
  2201. elseif getObjectFromGUID('10c2e2') ~= nil and getObjectFromGUID('10c2e2').getVar(stat) < traitor.getVar(stat) then
  2202. traitor = getObjectFromGUID('10c2e2')
  2203. end
  2204. end
  2205.  
  2206. if Player.Green.seated then
  2207. if getObjectFromGUID('050ff1') ~= nil and getObjectFromGUID('050ff1').getVar(stat) < traitor.getVar(stat) then
  2208. traitor = getObjectFromGUID('050ff1')
  2209. elseif getObjectFromGUID('a540a9') ~= nil and getObjectFromGUID('a540a9').getVar(stat) < traitor.getVar(stat) then
  2210. traitor = getObjectFromGUID('a540a9')
  2211. end
  2212. end
  2213.  
  2214. if Player.Blue.seated then
  2215. if getObjectFromGUID('84dd50') ~= nil and getObjectFromGUID('84dd50').getVar(stat) < traitor.getVar(stat) then
  2216. traitor = getObjectFromGUID('84dd50')
  2217. elseif getObjectFromGUID('5a4152') ~= nil and getObjectFromGUID('5a4152').getVar(stat) < traitor.getVar(stat) then
  2218. traitor = getObjectFromGUID('5a4152')
  2219. end
  2220. end
  2221. end
  2222. else
  2223. if hauntRevealer == "White" then
  2224. if Player.Red.seated then
  2225. if getObjectFromGUID('3878fc') ~= nil then
  2226. traitor = getObjectFromGUID('3878fc')
  2227. elseif getObjectFromGUID('f8116a') ~= nil then
  2228. traitor = getObjectFromGUID('f8116a')
  2229. end
  2230. elseif Player.Orange.seated then
  2231. if getObjectFromGUID('0c0d43') ~= nil then
  2232. traitor = getObjectFromGUID('0c0d43')
  2233. elseif getObjectFromGUID('10c2e2') ~= nil then
  2234. traitor = getObjectFromGUID('10c2e2')
  2235. end
  2236. elseif Player.Green.seated then
  2237. if getObjectFromGUID('050ff1') ~= nil then
  2238. traitor = getObjectFromGUID('050ff1')
  2239. elseif getObjectFromGUID('a540a9') ~= nil then
  2240. traitor = getObjectFromGUID('a540a9')
  2241. end
  2242. elseif Player.Blue.seated then
  2243. if getObjectFromGUID('84dd50') ~= nil then
  2244. traitor = getObjectFromGUID('84dd50')
  2245. elseif getObjectFromGUID('5a4152') ~= nil then
  2246. traitor = getObjectFromGUID('5a4152')
  2247. end
  2248. elseif Player.Purple.seated then
  2249. if getObjectFromGUID('926f41') ~= nil then
  2250. traitor = getObjectFromGUID('926f41')
  2251. elseif getObjectFromGUID('732231') ~= nil then
  2252. traitor = getObjectFromGUID('732231')
  2253. end
  2254. end
  2255.  
  2256. if Player.Orange.seated then
  2257. if getObjectFromGUID('0c0d43') ~= nil then
  2258. if getObjectFromGUID('0c0d43').getVar(stat) < traitor.getVar(stat) then
  2259. traitor = getObjectFromGUID('0c0d43')
  2260. end
  2261. elseif getObjectFromGUID('10c2e2') ~= nil and getObjectFromGUID('10c2e2').getVar(stat) < traitor.getVar(stat) then
  2262. traitor = getObjectFromGUID('10c2e2')
  2263. end
  2264. end
  2265.  
  2266. if Player.Green.seated then
  2267. if getObjectFromGUID('050ff1') ~= nil and getObjectFromGUID('050ff1').getVar(stat) < traitor.getVar(stat) then
  2268. traitor = getObjectFromGUID('050ff1')
  2269. elseif getObjectFromGUID('a540a9') ~= nil and getObjectFromGUID('a540a9').getVar(stat) < traitor.getVar(stat) then
  2270. traitor = getObjectFromGUID('a540a9')
  2271. end
  2272. end
  2273.  
  2274. if Player.Blue.seated then
  2275. if getObjectFromGUID('84dd50') ~= nil and getObjectFromGUID('84dd50').getVar(stat) < traitor.getVar(stat) then
  2276. traitor = getObjectFromGUID('84dd50')
  2277. elseif getObjectFromGUID('5a4152') ~= nil and getObjectFromGUID('5a4152').getVar(stat) < traitor.getVar(stat) then
  2278. traitor = getObjectFromGUID('5a4152')
  2279. end
  2280. end
  2281.  
  2282. if Player.Purple.seated then
  2283. if getObjectFromGUID('926f41') ~= nil and getObjectFromGUID('926f41').getVar(stat) < traitor.getVar(stat) then
  2284. traitor = getObjectFromGUID('926f41')
  2285. elseif getObjectFromGUID('732231') ~= nil and getObjectFromGUID('732231').getVar(stat) < traitor.getVar(stat) then
  2286. traitor = getObjectFromGUID('732231')
  2287. end
  2288. end
  2289. elseif hauntRevealer == "Red" then
  2290. if Player.Orange.seated then
  2291. if getObjectFromGUID('0c0d43') ~= nil then
  2292. traitor = getObjectFromGUID('0c0d43')
  2293. elseif getObjectFromGUID('10c2e2') ~= nil then
  2294. traitor = getObjectFromGUID('10c2e2')
  2295. end
  2296. elseif Player.Green.seated then
  2297. if getObjectFromGUID('050ff1') ~= nil then
  2298. traitor = getObjectFromGUID('050ff1')
  2299. elseif getObjectFromGUID('a540a9') ~= nil then
  2300. traitor = getObjectFromGUID('a540a9')
  2301. end
  2302. elseif Player.Blue.seated then
  2303. if getObjectFromGUID('84dd50') ~= nil then
  2304. traitor = getObjectFromGUID('84dd50')
  2305. elseif getObjectFromGUID('5a4152') ~= nil then
  2306. traitor = getObjectFromGUID('5a4152')
  2307. end
  2308. elseif Player.Purple.seated then
  2309. if getObjectFromGUID('926f41') ~= nil then
  2310. traitor = getObjectFromGUID('926f41')
  2311. elseif getObjectFromGUID('732231') ~= nil then
  2312. traitor = getObjectFromGUID('732231')
  2313. end
  2314. elseif Player.White.seated then
  2315. if getObjectFromGUID('e35e15') ~= nil then
  2316. traitor = getObjectFromGUID('e35e15')
  2317. elseif getObjectFromGUID('327a8c') ~= nil then
  2318. traitor = getObjectFromGUID('327a8c')
  2319. end
  2320. end
  2321.  
  2322. if Player.Green.seated then
  2323. if getObjectFromGUID('050ff1') ~= nil then
  2324. if getObjectFromGUID('050ff1').getVar(stat) < traitor.getVar(stat) then
  2325. traitor = getObjectFromGUID('050ff1')
  2326. end
  2327. elseif getObjectFromGUID('a540a9') ~= nil then
  2328. if getObjectFromGUID('a540a9').getVar(stat) < traitor.getVar(stat) then
  2329. traitor = getObjectFromGUID('a540a9')
  2330. end
  2331. end
  2332. end
  2333.  
  2334. if Player.Blue.seated then
  2335. if getObjectFromGUID('84dd50') ~= nil and getObjectFromGUID('84dd50').getVar(stat) < traitor.getVar(stat) then
  2336. traitor = getObjectFromGUID('84dd50')
  2337. elseif getObjectFromGUID('5a4152') ~= nil and getObjectFromGUID('5a4152').getVar(stat) < traitor.getVar(stat) then
  2338. traitor = getObjectFromGUID('5a4152')
  2339. end
  2340. end
  2341.  
  2342. if Player.Purple.seated then
  2343. if getObjectFromGUID('926f41') ~= nil and getObjectFromGUID('926f41').getVar(stat) < traitor.getVar(stat) then
  2344. traitor = getObjectFromGUID('926f41')
  2345. elseif getObjectFromGUID('732231') ~= nil and getObjectFromGUID('732231').getVar(stat) < traitor.getVar(stat) then
  2346. traitor = getObjectFromGUID('732231')
  2347. end
  2348. end
  2349.  
  2350. if Player.White.seated then
  2351. if getObjectFromGUID('e35e15') ~= nil and getObjectFromGUID('e35e15').getVar(stat) < traitor.getVar(stat) then
  2352. traitor = getObjectFromGUID('e35e15')
  2353. elseif getObjectFromGUID('327a8c') ~= nil and getObjectFromGUID('327a8c').getVar(stat) < traitor.getVar(stat) then
  2354. traitor = getObjectFromGUID('327a8c')
  2355. end
  2356. end
  2357. elseif hauntRevealer == "Orange" then
  2358. if Player.Green.seated then
  2359. if getObjectFromGUID('050ff1') ~= nil then
  2360. traitor = getObjectFromGUID('050ff1')
  2361. elseif getObjectFromGUID('a540a9') ~= nil then
  2362. traitor = getObjectFromGUID('a540a9')
  2363. end
  2364. elseif Player.Blue.seated then
  2365. if getObjectFromGUID('84dd50') ~= nil then
  2366. traitor = getObjectFromGUID('84dd50')
  2367. elseif getObjectFromGUID('5a4152') ~= nil then
  2368. traitor = getObjectFromGUID('5a4152')
  2369. end
  2370. elseif Player.Purple.seated then
  2371. if getObjectFromGUID('926f41') ~= nil then
  2372. traitor = getObjectFromGUID('926f41')
  2373. elseif getObjectFromGUID('732231') ~= nil then
  2374. traitor = getObjectFromGUID('732231')
  2375. end
  2376. elseif Player.White.seated then
  2377. if getObjectFromGUID('e35e15') ~= nil then
  2378. traitor = getObjectFromGUID('e35e15')
  2379. elseif getObjectFromGUID('327a8c') ~= nil then
  2380. traitor = getObjectFromGUID('327a8c')
  2381. end
  2382. elseif Player.Red.seated then
  2383. if getObjectFromGUID('3878fc') ~= nil then
  2384. traitor = getObjectFromGUID('3878fc')
  2385. elseif getObjectFromGUID('f8116a') ~= nil then
  2386. traitor = getObjectFromGUID('f8116a')
  2387. end
  2388. end
  2389.  
  2390. if Player.Blue.seated then
  2391. if getObjectFromGUID('84dd50') ~= nil and getObjectFromGUID('84dd50').getVar(stat) < traitor.getVar(stat) then
  2392. traitor = getObjectFromGUID('84dd50')
  2393. elseif getObjectFromGUID('5a4152') ~= nil and getObjectFromGUID('5a4152').getVar(stat) < traitor.getVar(stat) then
  2394. traitor = getObjectFromGUID('5a4152')
  2395. end
  2396. end
  2397.  
  2398. if Player.Purple.seated then
  2399. if getObjectFromGUID('926f41') ~= nil and getObjectFromGUID('926f41').getVar(stat) < traitor.getVar(stat) then
  2400. traitor = getObjectFromGUID('926f41')
  2401. elseif getObjectFromGUID('732231') ~= nil and getObjectFromGUID('732231').getVar(stat) < traitor.getVar(stat) then
  2402. traitor = getObjectFromGUID('732231')
  2403. end
  2404. end
  2405.  
  2406. if Player.White.seated then
  2407. if getObjectFromGUID('e35e15') ~= nil and getObjectFromGUID('e35e15').getVar(stat) < traitor.getVar(stat) then
  2408. traitor = getObjectFromGUID('e35e15')
  2409. elseif getObjectFromGUID('327a8c') ~= nil and getObjectFromGUID('327a8c').getVar(stat) < traitor.getVar(stat) then
  2410. traitor = getObjectFromGUID('327a8c')
  2411. end
  2412. end
  2413.  
  2414. if Player.Red.seated then
  2415. if getObjectFromGUID('3878fc') ~= nil and getObjectFromGUID('3878fc').getVar(stat) < traitor.getVar(stat) then
  2416. traitor = getObjectFromGUID('3878fc')
  2417. elseif getObjectFromGUID('f8116a') ~= nil and getObjectFromGUID('f8116a').getVar(stat) < traitor.getVar(stat) then
  2418. traitor = getObjectFromGUID('f8116a')
  2419. end
  2420. end
  2421. elseif hauntRevealer == "Green" then
  2422. if Player.Blue.seated then
  2423. if getObjectFromGUID('84dd50') ~= nil then
  2424. traitor = getObjectFromGUID('84dd50')
  2425. elseif getObjectFromGUID('5a4152') ~= nil then
  2426. traitor = getObjectFromGUID('5a4152')
  2427. end
  2428. elseif Player.Purple.seated then
  2429. if getObjectFromGUID('926f41') ~= nil then
  2430. traitor = getObjectFromGUID('926f41')
  2431. elseif getObjectFromGUID('732231') ~= nil then
  2432. traitor = getObjectFromGUID('732231')
  2433. end
  2434. elseif Player.White.seated then
  2435. if getObjectFromGUID('e35e15') ~= nil then
  2436. traitor = getObjectFromGUID('e35e15')
  2437. elseif getObjectFromGUID('327a8c') ~= nil then
  2438. traitor = getObjectFromGUID('327a8c')
  2439. end
  2440. elseif Player.Red.seated then
  2441. if getObjectFromGUID('3878fc') ~= nil then
  2442. traitor = getObjectFromGUID('3878fc')
  2443. elseif getObjectFromGUID('f8116a') ~= nil then
  2444. traitor = getObjectFromGUID('f8116a')
  2445. end
  2446. elseif Player.Orange.seated then
  2447. if getObjectFromGUID('0c0d43') ~= nil then
  2448. traitor = getObjectFromGUID('0c0d43')
  2449. elseif getObjectFromGUID('10c2e2') ~= nil then
  2450. traitor = getObjectFromGUID('10c2e2')
  2451. end
  2452. end
  2453.  
  2454. if Player.Purple.seated then
  2455. if getObjectFromGUID('926f41') ~= nil and getObjectFromGUID('926f41').getVar(stat) < traitor.getVar(stat) then
  2456. traitor = getObjectFromGUID('926f41')
  2457. elseif getObjectFromGUID('732231') ~= nil and getObjectFromGUID('732231').getVar(stat) < traitor.getVar(stat) then
  2458. traitor = getObjectFromGUID('732231')
  2459. end
  2460. end
  2461.  
  2462. if Player.White.seated then
  2463. if getObjectFromGUID('e35e15') ~= nil and getObjectFromGUID('e35e15').getVar(stat) < traitor.getVar(stat) then
  2464. traitor = getObjectFromGUID('e35e15')
  2465. elseif getObjectFromGUID('327a8c') ~= nil and getObjectFromGUID('327a8c').getVar(stat) < traitor.getVar(stat) then
  2466. traitor = getObjectFromGUID('327a8c')
  2467. end
  2468. end
  2469.  
  2470. if Player.Red.seated then
  2471. if getObjectFromGUID('3878fc') ~= nil and getObjectFromGUID('3878fc').getVar(stat) < traitor.getVar(stat) then
  2472. traitor = getObjectFromGUID('3878fc')
  2473. elseif getObjectFromGUID('f8116a') ~= nil and getObjectFromGUID('f8116a').getVar(stat) < traitor.getVar(stat) then
  2474. traitor = getObjectFromGUID('f8116a')
  2475. end
  2476. end
  2477.  
  2478. if Player.Orange.seated then
  2479. if getObjectFromGUID('0c0d43') ~= nil and getObjectFromGUID('0c0d43').getVar(stat) < traitor.getVar(stat) then
  2480. traitor = getObjectFromGUID('0c0d43')
  2481. elseif getObjectFromGUID('10c2e2') ~= nil and getObjectFromGUID('10c2e2').getVar(stat) < traitor.getVar(stat) then
  2482. traitor = getObjectFromGUID('10c2e2')
  2483. end
  2484. end
  2485. elseif hauntRevealer == "Blue" then
  2486. if Player.Purple.seated then
  2487. if getObjectFromGUID('926f41') ~= nil then
  2488. traitor = getObjectFromGUID('926f41')
  2489. elseif getObjectFromGUID('732231') ~= nil then
  2490. traitor = getObjectFromGUID('732231')
  2491. end
  2492. elseif Player.White.seated then
  2493. if getObjectFromGUID('e35e15') ~= nil then
  2494. traitor = getObjectFromGUID('e35e15')
  2495. elseif getObjectFromGUID('327a8c') ~= nil then
  2496. traitor = getObjectFromGUID('327a8c')
  2497. end
  2498. elseif Player.Red.seated then
  2499. if getObjectFromGUID('3878fc') ~= nil then
  2500. traitor = getObjectFromGUID('3878fc')
  2501. elseif getObjectFromGUID('f8116a') ~= nil then
  2502. traitor = getObjectFromGUID('f8116a')
  2503. end
  2504. elseif Player.Orange.seated then
  2505. if getObjectFromGUID('0c0d43') ~= nil then
  2506. traitor = getObjectFromGUID('0c0d43')
  2507. elseif getObjectFromGUID('10c2e2') ~= nil then
  2508. traitor = getObjectFromGUID('10c2e2')
  2509. end
  2510. elseif Player.Green.seated then
  2511. if getObjectFromGUID('050ff1') ~= nil then
  2512. traitor = getObjectFromGUID('050ff1')
  2513. elseif getObjectFromGUID('a540a9') ~= nil then
  2514. traitor = getObjectFromGUID('a540a9')
  2515. end
  2516. end
  2517.  
  2518. if Player.White.seated then
  2519. if getObjectFromGUID('e35e15') ~= nil and getObjectFromGUID('e35e15').getVar(stat) < traitor.getVar(stat) then
  2520. traitor = getObjectFromGUID('e35e15')
  2521. elseif getObjectFromGUID('327a8c') ~= nil and getObjectFromGUID('327a8c').getVar(stat) < traitor.getVar(stat) then
  2522. traitor = getObjectFromGUID('327a8c')
  2523. end
  2524. end
  2525.  
  2526. if Player.Red.seated then
  2527. if getObjectFromGUID('3878fc') ~= nil and getObjectFromGUID('3878fc').getVar(stat) < traitor.getVar(stat) then
  2528. traitor = getObjectFromGUID('3878fc')
  2529. elseif getObjectFromGUID('f8116a') ~= nil and getObjectFromGUID('f8116a').getVar(stat) < traitor.getVar(stat) then
  2530. traitor = getObjectFromGUID('f8116a')
  2531. end
  2532. end
  2533.  
  2534. if Player.Orange.seated then
  2535. if getObjectFromGUID('0c0d43') ~= nil and getObjectFromGUID('0c0d43').getVar(stat) < traitor.getVar(stat) then
  2536. traitor = getObjectFromGUID('0c0d43')
  2537. elseif getObjectFromGUID('10c2e2') ~= nil and getObjectFromGUID('10c2e2').getVar(stat) < traitor.getVar(stat) then
  2538. traitor = getObjectFromGUID('10c2e2')
  2539. end
  2540. end
  2541.  
  2542. if Player.Green.seated then
  2543. if getObjectFromGUID('050ff1') ~= nil and getObjectFromGUID('050ff1').getVar(stat) < traitor.getVar(stat) then
  2544. traitor = getObjectFromGUID('050ff1')
  2545. elseif getObjectFromGUID('a540a9') ~= nil and getObjectFromGUID('a540a9').getVar(stat) < traitor.getVar(stat) then
  2546. traitor = getObjectFromGUID('a540a9')
  2547. end
  2548. end
  2549. elseif hauntRevealer == "Purple" then
  2550. if Player.White.seated then
  2551. if getObjectFromGUID('e35e15') ~= nil then
  2552. traitor = getObjectFromGUID('e35e15')
  2553. elseif getObjectFromGUID('327a8c') ~= nil then
  2554. traitor = getObjectFromGUID('327a8c')
  2555. end
  2556. elseif Player.Red.seated then
  2557. if getObjectFromGUID('3878fc') ~= nil then
  2558. traitor = getObjectFromGUID('3878fc')
  2559. elseif getObjectFromGUID('f8116a') ~= nil then
  2560. traitor = getObjectFromGUID('f8116a')
  2561. end
  2562. elseif Player.Orange.seated then
  2563. if getObjectFromGUID('0c0d43') ~= nil then
  2564. traitor = getObjectFromGUID('0c0d43')
  2565. elseif getObjectFromGUID('10c2e2') ~= nil then
  2566. traitor = getObjectFromGUID('10c2e2')
  2567. end
  2568. elseif Player.Green.seated then
  2569. if getObjectFromGUID('050ff1') ~= nil then
  2570. traitor = getObjectFromGUID('050ff1')
  2571. elseif getObjectFromGUID('a540a9') ~= nil then
  2572. traitor = getObjectFromGUID('a540a9')
  2573. end
  2574. elseif Player.Blue.seated then
  2575. if getObjectFromGUID('84dd50') ~= nil then
  2576. traitor = getObjectFromGUID('84dd50')
  2577. elseif getObjectFromGUID('5a4152') ~= nil then
  2578. traitor = getObjectFromGUID('5a4152')
  2579. end
  2580. end
  2581.  
  2582. if Player.Red.seated then
  2583. if getObjectFromGUID('3878fc') ~= nil and getObjectFromGUID('3878fc').getVar(stat) < traitor.getVar(stat) then
  2584. traitor = getObjectFromGUID('3878fc')
  2585. elseif getObjectFromGUID('f8116a') ~= nil and getObjectFromGUID('f8116a').getVar(stat) < traitor.getVar(stat) then
  2586. traitor = getObjectFromGUID('f8116a')
  2587. end
  2588. end
  2589.  
  2590. if Player.Orange.seated then
  2591. if getObjectFromGUID('0c0d43') ~= nil and getObjectFromGUID('0c0d43').getVar(stat) < traitor.getVar(stat) then
  2592. traitor = getObjectFromGUID('0c0d43')
  2593. elseif getObjectFromGUID('10c2e2') ~= nil and getObjectFromGUID('10c2e2').getVar(stat) < traitor.getVar(stat) then
  2594. traitor = getObjectFromGUID('10c2e2')
  2595. end
  2596. end
  2597.  
  2598. if Player.Green.seated then
  2599. if getObjectFromGUID('050ff1') ~= nil and getObjectFromGUID('050ff1').getVar(stat) < traitor.getVar(stat) then
  2600. traitor = getObjectFromGUID('050ff1')
  2601. elseif getObjectFromGUID('a540a9') ~= nil and getObjectFromGUID('a540a9').getVar(stat) < traitor.getVar(stat) then
  2602. traitor = getObjectFromGUID('a540a9')
  2603. end
  2604. end
  2605.  
  2606. if Player.Blue.seated then
  2607. if getObjectFromGUID('84dd50') ~= nil and getObjectFromGUID('84dd50').getVar(stat) < traitor.getVar(stat) then
  2608. traitor = getObjectFromGUID('84dd50')
  2609. elseif getObjectFromGUID('5a4152') ~= nil and getObjectFromGUID('5a4152').getVar(stat) < traitor.getVar(stat) then
  2610. traitor = getObjectFromGUID('5a4152')
  2611. end
  2612. end
  2613. end
  2614. end
  2615. else
  2616. if includeRevealer then
  2617. if hauntRevealer == "White" then
  2618. if getObjectFromGUID('e35e15') ~= nil then
  2619. traitor = getObjectFromGUID('e35e15')
  2620. elseif getObjectFromGUID('327a8c') ~= nil then
  2621. traitor = getObjectFromGUID('327a8c')
  2622. end
  2623.  
  2624. if Player.Red.seated then
  2625. if getObjectFromGUID('3878fc') ~= nil and getObjectFromGUID('3878fc').getVar(stat) > traitor.getVar(stat) then
  2626. traitor = getObjectFromGUID('3878fc')
  2627. elseif getObjectFromGUID('f8116a') ~= nil and getObjectFromGUID('f8116a').getVar(stat) > traitor.getVar(stat) then
  2628. traitor = getObjectFromGUID('f8116a')
  2629. end
  2630. end
  2631.  
  2632. if Player.Orange.seated then
  2633. if getObjectFromGUID('0c0d43') ~= nil and getObjectFromGUID('0c0d43').getVar(stat) > traitor.getVar(stat) then
  2634. traitor = getObjectFromGUID('0c0d43')
  2635. elseif getObjectFromGUID('10c2e2') ~= nil and getObjectFromGUID('10c2e2').getVar(stat) > traitor.getVar(stat) then
  2636. traitor = getObjectFromGUID('10c2e2')
  2637. end
  2638. end
  2639.  
  2640. if Player.Green.seated then
  2641. if getObjectFromGUID('050ff1') ~= nil and getObjectFromGUID('050ff1').getVar(stat) > traitor.getVar(stat) then
  2642. traitor = getObjectFromGUID('050ff1')
  2643. elseif getObjectFromGUID('a540a9') ~= nil and getObjectFromGUID('a540a9').getVar(stat) > traitor.getVar(stat) then
  2644. traitor = getObjectFromGUID('a540a9')
  2645. end
  2646. end
  2647.  
  2648. if Player.Blue.seated then
  2649. if getObjectFromGUID('84dd50') ~= nil and getObjectFromGUID('84dd50').getVar(stat) > traitor.getVar(stat) then
  2650. traitor = getObjectFromGUID('84dd50')
  2651. elseif getObjectFromGUID('5a4152') ~= nil and getObjectFromGUID('5a4152').getVar(stat) > traitor.getVar(stat) then
  2652. traitor = getObjectFromGUID('5a4152')
  2653. end
  2654. end
  2655.  
  2656. if Player.Purple.seated then
  2657. if getObjectFromGUID('926f41') ~= nil and getObjectFromGUID('926f41').getVar(stat) > traitor.getVar(stat) then
  2658. traitor = getObjectFromGUID('926f41')
  2659. elseif getObjectFromGUID('732231') ~= nil and getObjectFromGUID('732231').getVar(stat) > traitor.getVar(stat) then
  2660. traitor = getObjectFromGUID('732231')
  2661. end
  2662. end
  2663. elseif hauntRevealer == "Red" then
  2664. if getObjectFromGUID('3878fc') ~= nil then
  2665. traitor = getObjectFromGUID('3878fc')
  2666. elseif getObjectFromGUID('f8116a') ~= nil then
  2667. traitor = getObjectFromGUID('f8116a')
  2668. end
  2669.  
  2670. if Player.Orange.seated then
  2671. if getObjectFromGUID('0c0d43') ~= nil and getObjectFromGUID('0c0d43').getVar(stat) > traitor.getVar(stat) then
  2672. traitor = getObjectFromGUID('0c0d43')
  2673. elseif getObjectFromGUID('10c2e2') ~= nil and getObjectFromGUID('10c2e2').getVar(stat) > traitor.getVar(stat) then
  2674. traitor = getObjectFromGUID('10c2e2')
  2675. end
  2676. end
  2677.  
  2678. if Player.Green.seated then
  2679. if getObjectFromGUID('050ff1') ~= nil and getObjectFromGUID('050ff1').getVar(stat) > traitor.getVar(stat) then
  2680. traitor = getObjectFromGUID('050ff1')
  2681. elseif getObjectFromGUID('a540a9') ~= nil and getObjectFromGUID('a540a9').getVar(stat) > traitor.getVar(stat) then
  2682. traitor = getObjectFromGUID('a540a9')
  2683. end
  2684. end
  2685.  
  2686. if Player.Blue.seated then
  2687. if getObjectFromGUID('84dd50') ~= nil and getObjectFromGUID('84dd50').getVar(stat) > traitor.getVar(stat) then
  2688. traitor = getObjectFromGUID('84dd50')
  2689. elseif getObjectFromGUID('5a4152') ~= nil and getObjectFromGUID('5a4152').getVar(stat) > traitor.getVar(stat) then
  2690. traitor = getObjectFromGUID('5a4152')
  2691. end
  2692. end
  2693.  
  2694. if Player.Purple.seated then
  2695. if getObjectFromGUID('926f41') ~= nil and getObjectFromGUID('926f41').getVar(stat) > traitor.getVar(stat) then
  2696. traitor = getObjectFromGUID('926f41')
  2697. elseif getObjectFromGUID('732231') ~= nil and getObjectFromGUID('732231').getVar(stat) > traitor.getVar(stat) then
  2698. traitor = getObjectFromGUID('732231')
  2699. end
  2700. end
  2701.  
  2702. if Player.White.seated then
  2703. if getObjectFromGUID('e35e15') ~= nil and getObjectFromGUID('e35e15').getVar(stat) > traitor.getVar(stat) then
  2704. traitor = getObjectFromGUID('e35e15')
  2705. elseif getObjectFromGUID('327a8c') ~= nil and getObjectFromGUID('327a8c').getVar(stat) > traitor.getVar(stat) then
  2706. traitor = getObjectFromGUID('327a8c')
  2707. end
  2708. end
  2709. elseif hauntRevealer == "Orange" then
  2710. if getObjectFromGUID('0c0d43') ~= nil then
  2711. traitor = getObjectFromGUID('0c0d43')
  2712. elseif getObjectFromGUID('10c2e2') ~= nil then
  2713. traitor = getObjectFromGUID('10c2e2')
  2714. end
  2715.  
  2716. if Player.Green.seated then
  2717. if getObjectFromGUID('050ff1') ~= nil and getObjectFromGUID('050ff1').getVar(stat) > traitor.getVar(stat) then
  2718. traitor = getObjectFromGUID('050ff1')
  2719. elseif getObjectFromGUID('a540a9') ~= nil and getObjectFromGUID('a540a9').getVar(stat) > traitor.getVar(stat) then
  2720. traitor = getObjectFromGUID('a540a9')
  2721. end
  2722. end
  2723.  
  2724. if Player.Blue.seated then
  2725. if getObjectFromGUID('84dd50') ~= nil and getObjectFromGUID('84dd50').getVar(stat) > traitor.getVar(stat) then
  2726. traitor = getObjectFromGUID('84dd50')
  2727. elseif getObjectFromGUID('5a4152') ~= nil and getObjectFromGUID('5a4152').getVar(stat) > traitor.getVar(stat) then
  2728. traitor = getObjectFromGUID('5a4152')
  2729. end
  2730. end
  2731.  
  2732. if Player.Purple.seated then
  2733. if getObjectFromGUID('926f41') ~= nil and getObjectFromGUID('926f41').getVar(stat) > traitor.getVar(stat) then
  2734. traitor = getObjectFromGUID('926f41')
  2735. elseif getObjectFromGUID('732231') ~= nil and getObjectFromGUID('732231').getVar(stat) > traitor.getVar(stat) then
  2736. traitor = getObjectFromGUID('732231')
  2737. end
  2738. end
  2739.  
  2740. if Player.White.seated then
  2741. if getObjectFromGUID('e35e15') ~= nil and getObjectFromGUID('e35e15').getVar(stat) > traitor.getVar(stat) then
  2742. traitor = getObjectFromGUID('e35e15')
  2743. elseif getObjectFromGUID('327a8c') ~= nil and getObjectFromGUID('327a8c').getVar(stat) > traitor.getVar(stat) then
  2744. traitor = getObjectFromGUID('327a8c')
  2745. end
  2746. end
  2747.  
  2748. if Player.Red.seated then
  2749. if getObjectFromGUID('3878fc') ~= nil and getObjectFromGUID('3878fc').getVar(stat) > traitor.getVar(stat) then
  2750. traitor = getObjectFromGUID('3878fc')
  2751. elseif getObjectFromGUID('f8116a') ~= nil and getObjectFromGUID('f8116a').getVar(stat) > traitor.getVar(stat) then
  2752. traitor = getObjectFromGUID('f8116a')
  2753. end
  2754. end
  2755. elseif hauntRevealer == "Green" then
  2756. if getObjectFromGUID('050ff1') ~= nil then
  2757. traitor = getObjectFromGUID('050ff1')
  2758. elseif getObjectFromGUID('a540a9') ~= nil then
  2759. traitor = getObjectFromGUID('a540a9')
  2760. end
  2761.  
  2762. if Player.Blue.seated then
  2763. if getObjectFromGUID('84dd50') ~= nil and getObjectFromGUID('84dd50').getVar(stat) > traitor.getVar(stat) then
  2764. traitor = getObjectFromGUID('84dd50')
  2765. elseif getObjectFromGUID('5a4152') ~= nil and getObjectFromGUID('5a4152').getVar(stat) > traitor.getVar(stat) then
  2766. traitor = getObjectFromGUID('5a4152')
  2767. end
  2768. end
  2769.  
  2770. if Player.Purple.seated then
  2771. if getObjectFromGUID('926f41') ~= nil and getObjectFromGUID('926f41').getVar(stat) > traitor.getVar(stat) then
  2772. traitor = getObjectFromGUID('926f41')
  2773. elseif getObjectFromGUID('732231') ~= nil and getObjectFromGUID('732231').getVar(stat) > traitor.getVar(stat) then
  2774. traitor = getObjectFromGUID('732231')
  2775. end
  2776. end
  2777.  
  2778. if Player.White.seated then
  2779. if getObjectFromGUID('e35e15') ~= nil and getObjectFromGUID('e35e15').getVar(stat) > traitor.getVar(stat) then
  2780. traitor = getObjectFromGUID('e35e15')
  2781. elseif getObjectFromGUID('327a8c') ~= nil and getObjectFromGUID('327a8c').getVar(stat) > traitor.getVar(stat) then
  2782. traitor = getObjectFromGUID('327a8c')
  2783. end
  2784. end
  2785.  
  2786. if Player.Red.seated then
  2787. if getObjectFromGUID('3878fc') ~= nil and getObjectFromGUID('3878fc').getVar(stat) > traitor.getVar(stat) then
  2788. traitor = getObjectFromGUID('3878fc')
  2789. elseif getObjectFromGUID('f8116a') ~= nil and getObjectFromGUID('f8116a').getVar(stat) > traitor.getVar(stat) then
  2790. traitor = getObjectFromGUID('f8116a')
  2791. end
  2792. end
  2793.  
  2794. if Player.Orange.seated then
  2795. if getObjectFromGUID('0c0d43') ~= nil and getObjectFromGUID('0c0d43').getVar(stat) > traitor.getVar(stat) then
  2796. traitor = getObjectFromGUID('0c0d43')
  2797. elseif getObjectFromGUID('10c2e2') ~= nil and getObjectFromGUID('10c2e2').getVar(stat) > traitor.getVar(stat) then
  2798. traitor = getObjectFromGUID('10c2e2')
  2799. end
  2800. end
  2801. elseif hauntRevealer == "Blue" then
  2802. if getObjectFromGUID('84dd50') ~= nil then
  2803. traitor = getObjectFromGUID('84dd50')
  2804. elseif getObjectFromGUID('5a4152') ~= nil then
  2805. traitor = getObjectFromGUID('5a4152')
  2806. end
  2807.  
  2808. if Player.Purple.seated then
  2809. if getObjectFromGUID('926f41') ~= nil and getObjectFromGUID('926f41').getVar(stat) > traitor.getVar(stat) then
  2810. traitor = getObjectFromGUID('926f41')
  2811. elseif getObjectFromGUID('732231') ~= nil and getObjectFromGUID('732231').getVar(stat) > traitor.getVar(stat) then
  2812. traitor = getObjectFromGUID('732231')
  2813. end
  2814. end
  2815.  
  2816. if Player.White.seated then
  2817. if getObjectFromGUID('e35e15') ~= nil and getObjectFromGUID('e35e15').getVar(stat) > traitor.getVar(stat) then
  2818. traitor = getObjectFromGUID('e35e15')
  2819. elseif getObjectFromGUID('327a8c') ~= nil and getObjectFromGUID('327a8c').getVar(stat) > traitor.getVar(stat) then
  2820. traitor = getObjectFromGUID('327a8c')
  2821. end
  2822. end
  2823.  
  2824. if Player.Red.seated then
  2825. if getObjectFromGUID('3878fc') ~= nil and getObjectFromGUID('3878fc').getVar(stat) > traitor.getVar(stat) then
  2826. traitor = getObjectFromGUID('3878fc')
  2827. elseif getObjectFromGUID('f8116a') ~= nil and getObjectFromGUID('f8116a').getVar(stat) > traitor.getVar(stat) then
  2828. traitor = getObjectFromGUID('f8116a')
  2829. end
  2830. end
  2831.  
  2832. if Player.Orange.seated then
  2833. if getObjectFromGUID('0c0d43') ~= nil and getObjectFromGUID('0c0d43').getVar(stat) > traitor.getVar(stat) then
  2834. traitor = getObjectFromGUID('0c0d43')
  2835. elseif getObjectFromGUID('10c2e2') ~= nil and getObjectFromGUID('10c2e2').getVar(stat) > traitor.getVar(stat) then
  2836. traitor = getObjectFromGUID('10c2e2')
  2837. end
  2838. end
  2839.  
  2840. if Player.Green.seated then
  2841. if getObjectFromGUID('050ff1') ~= nil and getObjectFromGUID('050ff1').getVar(stat) > traitor.getVar(stat) then
  2842. traitor = getObjectFromGUID('050ff1')
  2843. elseif getObjectFromGUID('a540a9') ~= nil and getObjectFromGUID('a540a9').getVar(stat) > traitor.getVar(stat) then
  2844. traitor = getObjectFromGUID('a540a9')
  2845. end
  2846. end
  2847. elseif hauntRevealer == "Purple" then
  2848. if getObjectFromGUID('926f41') ~= nil then
  2849. traitor = getObjectFromGUID('926f41')
  2850. elseif getObjectFromGUID('732231') ~= nil then
  2851. traitor = getObjectFromGUID('732231')
  2852. end
  2853.  
  2854. if Player.White.seated then
  2855. if getObjectFromGUID('e35e15') ~= nil and getObjectFromGUID('e35e15').getVar(stat) > traitor.getVar(stat) then
  2856. traitor = getObjectFromGUID('e35e15')
  2857. elseif getObjectFromGUID('327a8c') ~= nil and getObjectFromGUID('327a8c').getVar(stat) > traitor.getVar(stat) then
  2858. traitor = getObjectFromGUID('327a8c')
  2859. end
  2860. end
  2861.  
  2862. if Player.Red.seated then
  2863. if getObjectFromGUID('3878fc') ~= nil and getObjectFromGUID('3878fc').getVar(stat) > traitor.getVar(stat) then
  2864. traitor = getObjectFromGUID('3878fc')
  2865. elseif getObjectFromGUID('f8116a') ~= nil and getObjectFromGUID('f8116a').getVar(stat) > traitor.getVar(stat) then
  2866. traitor = getObjectFromGUID('f8116a')
  2867. end
  2868. end
  2869.  
  2870. if Player.Orange.seated then
  2871. if getObjectFromGUID('0c0d43') ~= nil and getObjectFromGUID('0c0d43').getVar(stat) > traitor.getVar(stat) then
  2872. traitor = getObjectFromGUID('0c0d43')
  2873. elseif getObjectFromGUID('10c2e2') ~= nil and getObjectFromGUID('10c2e2').getVar(stat) > traitor.getVar(stat) then
  2874. traitor = getObjectFromGUID('10c2e2')
  2875. end
  2876. end
  2877.  
  2878. if Player.Green.seated then
  2879. if getObjectFromGUID('050ff1') ~= nil and getObjectFromGUID('050ff1').getVar(stat) > traitor.getVar(stat) then
  2880. traitor = getObjectFromGUID('050ff1')
  2881. elseif getObjectFromGUID('a540a9') ~= nil and getObjectFromGUID('a540a9').getVar(stat) > traitor.getVar(stat) then
  2882. traitor = getObjectFromGUID('a540a9')
  2883. end
  2884. end
  2885.  
  2886. if Player.Blue.seated then
  2887. if getObjectFromGUID('84dd50') ~= nil and getObjectFromGUID('84dd50').getVar(stat) > traitor.getVar(stat) then
  2888. traitor = getObjectFromGUID('84dd50')
  2889. elseif getObjectFromGUID('5a4152') ~= nil and getObjectFromGUID('5a4152').getVar(stat) > traitor.getVar(stat) then
  2890. traitor = getObjectFromGUID('5a4152')
  2891. end
  2892. end
  2893. end
  2894. else
  2895. if hauntRevealer == "White" then
  2896. if Player.Red.seated then
  2897. if getObjectFromGUID('3878fc') ~= nil then
  2898. traitor = getObjectFromGUID('3878fc')
  2899. elseif getObjectFromGUID('f8116a') ~= nil then
  2900. traitor = getObjectFromGUID('f8116a')
  2901. end
  2902. elseif Player.Orange.seated then
  2903. if getObjectFromGUID('0c0d43') ~= nil then
  2904. traitor = getObjectFromGUID('0c0d43')
  2905. elseif getObjectFromGUID('10c2e2') ~= nil then
  2906. traitor = getObjectFromGUID('10c2e2')
  2907. end
  2908. elseif Player.Green.seated then
  2909. if getObjectFromGUID('050ff1') ~= nil then
  2910. traitor = getObjectFromGUID('050ff1')
  2911. elseif getObjectFromGUID('a540a9') ~= nil then
  2912. traitor = getObjectFromGUID('a540a9')
  2913. end
  2914. elseif Player.Blue.seated then
  2915. if getObjectFromGUID('84dd50') ~= nil then
  2916. traitor = getObjectFromGUID('84dd50')
  2917. elseif getObjectFromGUID('5a4152') ~= nil then
  2918. traitor = getObjectFromGUID('5a4152')
  2919. end
  2920. elseif Player.Purple.seated then
  2921. if getObjectFromGUID('926f41') ~= nil then
  2922. traitor = getObjectFromGUID('926f41')
  2923. elseif getObjectFromGUID('732231') ~= nil then
  2924. traitor = getObjectFromGUID('732231')
  2925. end
  2926. end
  2927.  
  2928. if Player.Orange.seated then
  2929. if getObjectFromGUID('0c0d43') ~= nil then
  2930. if getObjectFromGUID('0c0d43').getVar(stat) > traitor.getVar(stat) then
  2931. traitor = getObjectFromGUID('0c0d43')
  2932. end
  2933. elseif getObjectFromGUID('10c2e2') ~= nil and getObjectFromGUID('10c2e2').getVar(stat) > traitor.getVar(stat) then
  2934. traitor = getObjectFromGUID('10c2e2')
  2935. end
  2936. end
  2937.  
  2938. if Player.Green.seated then
  2939. if getObjectFromGUID('050ff1') ~= nil and getObjectFromGUID('050ff1').getVar(stat) > traitor.getVar(stat) then
  2940. traitor = getObjectFromGUID('050ff1')
  2941. elseif getObjectFromGUID('a540a9') ~= nil and getObjectFromGUID('a540a9').getVar(stat) > traitor.getVar(stat) then
  2942. traitor = getObjectFromGUID('a540a9')
  2943. end
  2944. end
  2945.  
  2946. if Player.Blue.seated then
  2947. if getObjectFromGUID('84dd50') ~= nil and getObjectFromGUID('84dd50').getVar(stat) > traitor.getVar(stat) then
  2948. traitor = getObjectFromGUID('84dd50')
  2949. elseif getObjectFromGUID('5a4152') ~= nil and getObjectFromGUID('5a4152').getVar(stat) > traitor.getVar(stat) then
  2950. traitor = getObjectFromGUID('5a4152')
  2951. end
  2952. end
  2953.  
  2954. if Player.Purple.seated then
  2955. if getObjectFromGUID('926f41') ~= nil and getObjectFromGUID('926f41').getVar(stat) > traitor.getVar(stat) then
  2956. traitor = getObjectFromGUID('926f41')
  2957. elseif getObjectFromGUID('732231') ~= nil and getObjectFromGUID('732231').getVar(stat) > traitor.getVar(stat) then
  2958. traitor = getObjectFromGUID('732231')
  2959. end
  2960. end
  2961. elseif hauntRevealer == "Red" then
  2962. if Player.Orange.seated then
  2963. if getObjectFromGUID('0c0d43') ~= nil then
  2964. traitor = getObjectFromGUID('0c0d43')
  2965. elseif getObjectFromGUID('10c2e2') ~= nil then
  2966. traitor = getObjectFromGUID('10c2e2')
  2967. end
  2968. elseif Player.Green.seated then
  2969. if getObjectFromGUID('050ff1') ~= nil then
  2970. traitor = getObjectFromGUID('050ff1')
  2971. elseif getObjectFromGUID('a540a9') ~= nil then
  2972. traitor = getObjectFromGUID('a540a9')
  2973. end
  2974. elseif Player.Blue.seated then
  2975. if getObjectFromGUID('84dd50') ~= nil then
  2976. traitor = getObjectFromGUID('84dd50')
  2977. elseif getObjectFromGUID('5a4152') ~= nil then
  2978. traitor = getObjectFromGUID('5a4152')
  2979. end
  2980. elseif Player.Purple.seated then
  2981. if getObjectFromGUID('926f41') ~= nil then
  2982. traitor = getObjectFromGUID('926f41')
  2983. elseif getObjectFromGUID('732231') ~= nil then
  2984. traitor = getObjectFromGUID('732231')
  2985. end
  2986. elseif Player.White.seated then
  2987. if getObjectFromGUID('e35e15') ~= nil then
  2988. traitor = getObjectFromGUID('e35e15')
  2989. elseif getObjectFromGUID('327a8c') ~= nil then
  2990. traitor = getObjectFromGUID('327a8c')
  2991. end
  2992. end
  2993.  
  2994. if Player.Green.seated then
  2995. if getObjectFromGUID('050ff1') ~= nil then
  2996. if getObjectFromGUID('050ff1').getVar(stat) > traitor.getVar(stat) then
  2997. traitor = getObjectFromGUID('050ff1')
  2998. end
  2999. elseif getObjectFromGUID('a540a9') ~= nil then
  3000. if getObjectFromGUID('a540a9').getVar(stat) > traitor.getVar(stat) then
  3001. traitor = getObjectFromGUID('a540a9')
  3002. end
  3003. end
  3004. end
  3005.  
  3006. if Player.Blue.seated then
  3007. if getObjectFromGUID('84dd50') ~= nil and getObjectFromGUID('84dd50').getVar(stat) > traitor.getVar(stat) then
  3008. traitor = getObjectFromGUID('84dd50')
  3009. elseif getObjectFromGUID('5a4152') ~= nil and getObjectFromGUID('5a4152').getVar(stat) > traitor.getVar(stat) then
  3010. traitor = getObjectFromGUID('5a4152')
  3011. end
  3012. end
  3013.  
  3014. if Player.Purple.seated then
  3015. if getObjectFromGUID('926f41') ~= nil and getObjectFromGUID('926f41').getVar(stat) > traitor.getVar(stat) then
  3016. traitor = getObjectFromGUID('926f41')
  3017. elseif getObjectFromGUID('732231') ~= nil and getObjectFromGUID('732231').getVar(stat) > traitor.getVar(stat) then
  3018. traitor = getObjectFromGUID('732231')
  3019. end
  3020. end
  3021.  
  3022. if Player.White.seated then
  3023. if getObjectFromGUID('e35e15') ~= nil and getObjectFromGUID('e35e15').getVar(stat) > traitor.getVar(stat) then
  3024. traitor = getObjectFromGUID('e35e15')
  3025. elseif getObjectFromGUID('327a8c') ~= nil and getObjectFromGUID('327a8c').getVar(stat) > traitor.getVar(stat) then
  3026. traitor = getObjectFromGUID('327a8c')
  3027. end
  3028. end
  3029. elseif hauntRevealer == "Orange" then
  3030. if Player.Green.seated then
  3031. if getObjectFromGUID('050ff1') ~= nil then
  3032. traitor = getObjectFromGUID('050ff1')
  3033. elseif getObjectFromGUID('a540a9') ~= nil then
  3034. traitor = getObjectFromGUID('a540a9')
  3035. end
  3036. elseif Player.Blue.seated then
  3037. if getObjectFromGUID('84dd50') ~= nil then
  3038. traitor = getObjectFromGUID('84dd50')
  3039. elseif getObjectFromGUID('5a4152') ~= nil then
  3040. traitor = getObjectFromGUID('5a4152')
  3041. end
  3042. elseif Player.Purple.seated then
  3043. if getObjectFromGUID('926f41') ~= nil then
  3044. traitor = getObjectFromGUID('926f41')
  3045. elseif getObjectFromGUID('732231') ~= nil then
  3046. traitor = getObjectFromGUID('732231')
  3047. end
  3048. elseif Player.White.seated then
  3049. if getObjectFromGUID('e35e15') ~= nil then
  3050. traitor = getObjectFromGUID('e35e15')
  3051. elseif getObjectFromGUID('327a8c') ~= nil then
  3052. traitor = getObjectFromGUID('327a8c')
  3053. end
  3054. elseif Player.Red.seated then
  3055. if getObjectFromGUID('3878fc') ~= nil then
  3056. traitor = getObjectFromGUID('3878fc')
  3057. elseif getObjectFromGUID('f8116a') ~= nil then
  3058. traitor = getObjectFromGUID('f8116a')
  3059. end
  3060. end
  3061.  
  3062. if Player.Blue.seated then
  3063. if getObjectFromGUID('84dd50') ~= nil and getObjectFromGUID('84dd50').getVar(stat) > traitor.getVar(stat) then
  3064. traitor = getObjectFromGUID('84dd50')
  3065. elseif getObjectFromGUID('5a4152') ~= nil and getObjectFromGUID('5a4152').getVar(stat) > traitor.getVar(stat) then
  3066. traitor = getObjectFromGUID('5a4152')
  3067. end
  3068. end
  3069.  
  3070. if Player.Purple.seated then
  3071. if getObjectFromGUID('926f41') ~= nil and getObjectFromGUID('926f41').getVar(stat) > traitor.getVar(stat) then
  3072. traitor = getObjectFromGUID('926f41')
  3073. elseif getObjectFromGUID('732231') ~= nil and getObjectFromGUID('732231').getVar(stat) > traitor.getVar(stat) then
  3074. traitor = getObjectFromGUID('732231')
  3075. end
  3076. end
  3077.  
  3078. if Player.White.seated then
  3079. if getObjectFromGUID('e35e15') ~= nil and getObjectFromGUID('e35e15').getVar(stat) > traitor.getVar(stat) then
  3080. traitor = getObjectFromGUID('e35e15')
  3081. elseif getObjectFromGUID('327a8c') ~= nil and getObjectFromGUID('327a8c').getVar(stat) > traitor.getVar(stat) then
  3082. traitor = getObjectFromGUID('327a8c')
  3083. end
  3084. end
  3085.  
  3086. if Player.Red.seated then
  3087. if getObjectFromGUID('3878fc') ~= nil and getObjectFromGUID('3878fc').getVar(stat) > traitor.getVar(stat) then
  3088. traitor = getObjectFromGUID('3878fc')
  3089. elseif getObjectFromGUID('f8116a') ~= nil and getObjectFromGUID('f8116a').getVar(stat) > traitor.getVar(stat) then
  3090. traitor = getObjectFromGUID('f8116a')
  3091. end
  3092. end
  3093. elseif hauntRevealer == "Green" then
  3094. if Player.Blue.seated then
  3095. if getObjectFromGUID('84dd50') ~= nil then
  3096. traitor = getObjectFromGUID('84dd50')
  3097. elseif getObjectFromGUID('5a4152') ~= nil then
  3098. traitor = getObjectFromGUID('5a4152')
  3099. end
  3100. elseif Player.Purple.seated then
  3101. if getObjectFromGUID('926f41') ~= nil then
  3102. traitor = getObjectFromGUID('926f41')
  3103. elseif getObjectFromGUID('732231') ~= nil then
  3104. traitor = getObjectFromGUID('732231')
  3105. end
  3106. elseif Player.White.seated then
  3107. if getObjectFromGUID('e35e15') ~= nil then
  3108. traitor = getObjectFromGUID('e35e15')
  3109. elseif getObjectFromGUID('327a8c') ~= nil then
  3110. traitor = getObjectFromGUID('327a8c')
  3111. end
  3112. elseif Player.Red.seated then
  3113. if getObjectFromGUID('3878fc') ~= nil then
  3114. traitor = getObjectFromGUID('3878fc')
  3115. elseif getObjectFromGUID('f8116a') ~= nil then
  3116. traitor = getObjectFromGUID('f8116a')
  3117. end
  3118. elseif Player.Orange.seated then
  3119. if getObjectFromGUID('0c0d43') ~= nil then
  3120. traitor = getObjectFromGUID('0c0d43')
  3121. elseif getObjectFromGUID('10c2e2') ~= nil then
  3122. traitor = getObjectFromGUID('10c2e2')
  3123. end
  3124. end
  3125.  
  3126. if Player.Purple.seated then
  3127. if getObjectFromGUID('926f41') ~= nil and getObjectFromGUID('926f41').getVar(stat) > traitor.getVar(stat) then
  3128. traitor = getObjectFromGUID('926f41')
  3129. elseif getObjectFromGUID('732231') ~= nil and getObjectFromGUID('732231').getVar(stat) > traitor.getVar(stat) then
  3130. traitor = getObjectFromGUID('732231')
  3131. end
  3132. end
  3133.  
  3134. if Player.White.seated then
  3135. if getObjectFromGUID('e35e15') ~= nil and getObjectFromGUID('e35e15').getVar(stat) > traitor.getVar(stat) then
  3136. traitor = getObjectFromGUID('e35e15')
  3137. elseif getObjectFromGUID('327a8c') ~= nil and getObjectFromGUID('327a8c').getVar(stat) > traitor.getVar(stat) then
  3138. traitor = getObjectFromGUID('327a8c')
  3139. end
  3140. end
  3141.  
  3142. if Player.Red.seated then
  3143. if getObjectFromGUID('3878fc') ~= nil and getObjectFromGUID('3878fc').getVar(stat) > traitor.getVar(stat) then
  3144. traitor = getObjectFromGUID('3878fc')
  3145. elseif getObjectFromGUID('f8116a') ~= nil and getObjectFromGUID('f8116a').getVar(stat) > traitor.getVar(stat) then
  3146. traitor = getObjectFromGUID('f8116a')
  3147. end
  3148. end
  3149.  
  3150. if Player.Orange.seated then
  3151. if getObjectFromGUID('0c0d43') ~= nil and getObjectFromGUID('0c0d43').getVar(stat) > traitor.getVar(stat) then
  3152. traitor = getObjectFromGUID('0c0d43')
  3153. elseif getObjectFromGUID('10c2e2') ~= nil and getObjectFromGUID('10c2e2').getVar(stat) > traitor.getVar(stat) then
  3154. traitor = getObjectFromGUID('10c2e2')
  3155. end
  3156. end
  3157. elseif hauntRevealer == "Blue" then
  3158. if Player.Purple.seated then
  3159. if getObjectFromGUID('926f41') ~= nil then
  3160. traitor = getObjectFromGUID('926f41')
  3161. elseif getObjectFromGUID('732231') ~= nil then
  3162. traitor = getObjectFromGUID('732231')
  3163. end
  3164. elseif Player.White.seated then
  3165. if getObjectFromGUID('e35e15') ~= nil then
  3166. traitor = getObjectFromGUID('e35e15')
  3167. elseif getObjectFromGUID('327a8c') ~= nil then
  3168. traitor = getObjectFromGUID('327a8c')
  3169. end
  3170. elseif Player.Red.seated then
  3171. if getObjectFromGUID('3878fc') ~= nil then
  3172. traitor = getObjectFromGUID('3878fc')
  3173. elseif getObjectFromGUID('f8116a') ~= nil then
  3174. traitor = getObjectFromGUID('f8116a')
  3175. end
  3176. elseif Player.Orange.seated then
  3177. if getObjectFromGUID('0c0d43') ~= nil then
  3178. traitor = getObjectFromGUID('0c0d43')
  3179. elseif getObjectFromGUID('10c2e2') ~= nil then
  3180. traitor = getObjectFromGUID('10c2e2')
  3181. end
  3182. elseif Player.Green.seated then
  3183. if getObjectFromGUID('050ff1') ~= nil then
  3184. traitor = getObjectFromGUID('050ff1')
  3185. elseif getObjectFromGUID('a540a9') ~= nil then
  3186. traitor = getObjectFromGUID('a540a9')
  3187. end
  3188. end
  3189.  
  3190. if Player.White.seated then
  3191. if getObjectFromGUID('e35e15') ~= nil and getObjectFromGUID('e35e15').getVar(stat) > traitor.getVar(stat) then
  3192. traitor = getObjectFromGUID('e35e15')
  3193. elseif getObjectFromGUID('327a8c') ~= nil and getObjectFromGUID('327a8c').getVar(stat) > traitor.getVar(stat) then
  3194. traitor = getObjectFromGUID('327a8c')
  3195. end
  3196. end
  3197.  
  3198. if Player.Red.seated then
  3199. if getObjectFromGUID('3878fc') ~= nil and getObjectFromGUID('3878fc').getVar(stat) > traitor.getVar(stat) then
  3200. traitor = getObjectFromGUID('3878fc')
  3201. elseif getObjectFromGUID('f8116a') ~= nil and getObjectFromGUID('f8116a').getVar(stat) > traitor.getVar(stat) then
  3202. traitor = getObjectFromGUID('f8116a')
  3203. end
  3204. end
  3205.  
  3206. if Player.Orange.seated then
  3207. if getObjectFromGUID('0c0d43') ~= nil and getObjectFromGUID('0c0d43').getVar(stat) > traitor.getVar(stat) then
  3208. traitor = getObjectFromGUID('0c0d43')
  3209. elseif getObjectFromGUID('10c2e2') ~= nil and getObjectFromGUID('10c2e2').getVar(stat) > traitor.getVar(stat) then
  3210. traitor = getObjectFromGUID('10c2e2')
  3211. end
  3212. end
  3213.  
  3214. if Player.Green.seated then
  3215. if getObjectFromGUID('050ff1') ~= nil and getObjectFromGUID('050ff1').getVar(stat) > traitor.getVar(stat) then
  3216. traitor = getObjectFromGUID('050ff1')
  3217. elseif getObjectFromGUID('a540a9') ~= nil and getObjectFromGUID('a540a9').getVar(stat) > traitor.getVar(stat) then
  3218. traitor = getObjectFromGUID('a540a9')
  3219. end
  3220. end
  3221. elseif hauntRevealer == "Purple" then
  3222. if Player.White.seated then
  3223. if getObjectFromGUID('e35e15') ~= nil then
  3224. traitor = getObjectFromGUID('e35e15')
  3225. elseif getObjectFromGUID('327a8c') ~= nil then
  3226. traitor = getObjectFromGUID('327a8c')
  3227. end
  3228. elseif Player.Red.seated then
  3229. if getObjectFromGUID('3878fc') ~= nil then
  3230. traitor = getObjectFromGUID('3878fc')
  3231. elseif getObjectFromGUID('f8116a') ~= nil then
  3232. traitor = getObjectFromGUID('f8116a')
  3233. end
  3234. elseif Player.Orange.seated then
  3235. if getObjectFromGUID('0c0d43') ~= nil then
  3236. traitor = getObjectFromGUID('0c0d43')
  3237. elseif getObjectFromGUID('10c2e2') ~= nil then
  3238. traitor = getObjectFromGUID('10c2e2')
  3239. end
  3240. elseif Player.Green.seated then
  3241. if getObjectFromGUID('050ff1') ~= nil then
  3242. traitor = getObjectFromGUID('050ff1')
  3243. elseif getObjectFromGUID('a540a9') ~= nil then
  3244. traitor = getObjectFromGUID('a540a9')
  3245. end
  3246. elseif Player.Blue.seated then
  3247. if getObjectFromGUID('84dd50') ~= nil then
  3248. traitor = getObjectFromGUID('84dd50')
  3249. elseif getObjectFromGUID('5a4152') ~= nil then
  3250. traitor = getObjectFromGUID('5a4152')
  3251. end
  3252. end
  3253.  
  3254. if Player.Red.seated then
  3255. if getObjectFromGUID('3878fc') ~= nil and getObjectFromGUID('3878fc').getVar(stat) > traitor.getVar(stat) then
  3256. traitor = getObjectFromGUID('3878fc')
  3257. elseif getObjectFromGUID('f8116a') ~= nil and getObjectFromGUID('f8116a').getVar(stat) > traitor.getVar(stat) then
  3258. traitor = getObjectFromGUID('f8116a')
  3259. end
  3260. end
  3261.  
  3262. if Player.Orange.seated then
  3263. if getObjectFromGUID('0c0d43') ~= nil and getObjectFromGUID('0c0d43').getVar(stat) > traitor.getVar(stat) then
  3264. traitor = getObjectFromGUID('0c0d43')
  3265. elseif getObjectFromGUID('10c2e2') ~= nil and getObjectFromGUID('10c2e2').getVar(stat) > traitor.getVar(stat) then
  3266. traitor = getObjectFromGUID('10c2e2')
  3267. end
  3268. end
  3269.  
  3270. if Player.Green.seated then
  3271. if getObjectFromGUID('050ff1') ~= nil and getObjectFromGUID('050ff1').getVar(stat) > traitor.getVar(stat) then
  3272. traitor = getObjectFromGUID('050ff1')
  3273. elseif getObjectFromGUID('a540a9') ~= nil and getObjectFromGUID('a540a9').getVar(stat) > traitor.getVar(stat) then
  3274. traitor = getObjectFromGUID('a540a9')
  3275. end
  3276. end
  3277.  
  3278. if Player.Blue.seated then
  3279. if getObjectFromGUID('84dd50') ~= nil and getObjectFromGUID('84dd50').getVar(stat) > traitor.getVar(stat) then
  3280. traitor = getObjectFromGUID('84dd50')
  3281. elseif getObjectFromGUID('5a4152') ~= nil and getObjectFromGUID('5a4152').getVar(stat) > traitor.getVar(stat) then
  3282. traitor = getObjectFromGUID('5a4152')
  3283. end
  3284. end
  3285. end
  3286. end
  3287. end
  3288.  
  3289. return traitor
  3290. end
  3291.  
  3292. function split(s, delimiter)
  3293. result = {}
  3294. i = 0
  3295. for match in string.gmatch(s, '([^'.. delimiter ..']+)') do
  3296. result[i] = match
  3297. i = i + 1
  3298. end
  3299. return result
  3300. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement