Jelasion

Untitled

Feb 23rd, 2021
465
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 413.78 KB | None | 0 0
  1. _G.key = "KleQjTTTXgmjoTTqZtMW"
  2. _G.id = "ODQzNDI0MDQzMjg0NTYxOTI="
  3. -- AI Settings
  4. -- AI Behavioral Settings
  5. _G.abilityRange = 70 -- the target must be atleast 65 studs away before using abilities
  6. -- ABILITY RANGE MUST BE GREATER THAN BOSSRANGE AND MOBRANGE TO HIT ANYTHING
  7. _G.bossRange = 20 -- this is how far away the bot will try stay away from bosses
  8. _G.mobRange = 60 -- this is how far away the bot will try to stay away from mobs
  9. _G.ignoreAbilityRange = false
  10. _G.smallTeleports = true -- if true, player teleports to places, might want to lower walkspeed alittle or else you'll probably get kicked
  11. _G.teleportDuringBossOnly = true -- if true, only use smallTeleports when its time for a boss
  12. _G.doInstakill = true
  13. -- AI Visual Settings
  14. _G.showTarget = true -- this will highlight each target in a red box
  15. _G.showPath = true
  16. -- AI Performance
  17. _G.extremelyFast = true -- makes the ai think exponentially faster, but might lag for peopel
  18. -- Lobby Settings
  19. _G.maxWaitTimeInLobby = 0 -- this is how long itll randomly walk around for before going into a dungeon
  20. _G.collect_daily_reward = true
  21.  
  22. -- Dungeon Choosing Settings
  23. -- Normal Dungeon Settings
  24. _G.auto_join_dungeon = true
  25. _G.dungeon = "Desert Temple"
  26. _G.difficulty = "Easy"
  27. _G.hardcore = false
  28. _G.auto_choose_dungeon_and_difficulty = true
  29. _G.autoexec_wait_time_secs = 0
  30.  
  31. -- Boss Raid Settings
  32. _G.boss_raid = true
  33. _G.auto_choose_raid_boss_tier = true
  34. _G.boss_raid_tier = 1
  35.  
  36. -- Wave Defense Settings
  37. _G.wavedefense = false
  38.  
  39. -- Easter Event Settings
  40. _G.easter_enable = false
  41. _G.eggClass = "Mage"
  42.  
  43. -- Party Settings
  44. -- Hosting Settings
  45. _G.wait_for_friends = false
  46. _G.friends = {"Friend 1", "Friend 2"}
  47.  
  48. -- Joining Settings
  49. _G.wait_for_friends_to_host = false
  50. _G.host_name = "Name of the host"
  51.  
  52. -- Multi-Instance Settings
  53. _G.multi_roblox = false
  54. _G.host_name_key = {"roblox account 1 name"} -- this account creates parties
  55. _G.name_key_list = {
  56. {"roblox account 2 name"},
  57. {"roblox account 3 name"},
  58. }
  59.  
  60. -- Autosell Settings
  61. _G.autosell = true
  62. _G.testSell = false -- prints out what items would've been sold instead of selling the items
  63. _G.keep_items_level_requirement = 156 -- keeps items that level requirements are above this number
  64. _G.keep2spells = true -- sell spells extra spells if you have 2 already
  65. _G.keep_items_from_class = {
  66. ["physical"] = false,
  67. ["mage"] = false,
  68. } --[[ only keeps items that fall within the given class ]]
  69. _G.keeprarities = {
  70. ['legendary'] = true,
  71. ['epic'] = false,
  72. ['rare'] = false,
  73. ['uncommon'] = false,
  74. ['common'] = false,
  75. }
  76. _G.itemlist ={
  77.  
  78. --Volcanic Chambers Armor
  79. ["Lava King's Warrior Helmet"] = {"rare","epic"},
  80. ["Lava King's Warrior Armor"] = {"rare","epic"},
  81. ["Lava King's Mage Helmet"] = {"rare","epic"},
  82. ["Lava King's Mage Armor"] = {"rare","epic"},
  83. ["Molten Forged Mage Helmet"] = {"epic"},
  84. ["Molten Forged Mage Armor"] = {"epic"},
  85. ["Molten Forged Warrior Helmet"] = {"epic"},
  86. ["Molten Forged Warrior Armor"] = {"epic"},
  87. -- Warrior Skills
  88. ["Twin Slash"] = {"epic"},
  89. ["Enhanced Inner Rage"] = {"legendary"},
  90. ["Lava Barrage"] = {"epic"},
  91. ["Blade Fall"] = {"epic"},
  92. -- Others
  93.  
  94. }
  95.  
  96. -- Auto Upgrade Settings
  97. _G.auto_stat_upgrade = false
  98. _G.stat = "physicalPower" -- "physicalPower", "stamina", "spellPower"
  99. _G.auto_equip_gear = false
  100. _G.equip_type = "physical" -- "physical", "spell"
  101. _G.auto_upgrade_equip = false
  102. _G.autoEquipSpell = false
  103. _G.spellType = "spell" -- "physical", "spell"
  104.  
  105. -- ANTI LAG SETTINGS
  106. _G.wall_transparency = .5
  107. _G.optimize_mobs = false
  108. _G.destroy_map = true
  109. _G.del_armor= true
  110. _G.del_weapon = true
  111. _G.hide_projectiles = true
  112. _G.loadSlow = false
  113. _G.fpsBoost = false
  114.  
  115. -- UI Settings
  116. _G.edit_ui = true
  117. _G.UI_portait_image = 'rbxassetid://3357197641'
  118. _G.UI_health = "health"
  119. _G.UI_money = "money"
  120. _G.UI_name = "name"
  121. _G.UI_xp = "xp"
  122. _G.UI_lvl = "lvl"
  123.  
  124. -- Discord Webhook
  125. _G.webhookEnabled = true
  126. _G.webhookLink = "https://discord.com/api/webhooks/730764419872718878/yOcIsPJLNkNvWtWoQLQsSD2xlcrEzbPwxBi33GtK3A1eH9IyCsLCXIFRSiNeqNE8AFOf"
  127.  
  128. --[[
  129.  
  130. ▄▄▄▄███▄▄▄▄ ▄████████ ▄██████▄ ▀█████████▄ ▄████████ ▄█ █▄ ▄████████ ▄██████▄
  131. ▄██▀▀▀███▀▀▀██▄ ███ ███ ███ ███ ███ ███ ███ ███ ███ ███ ███ ███ ███ ███
  132. ███ ███ ███ ███ ███ ███ ███ ███ ███ ███ █▀ ███ ███ ███ ███ ███ █▀
  133. ███ ███ ███ ▄███▄▄▄▄██▀ ███ ███ ▄███▄▄▄██▀ ███ ███ ███ ███ ███ ▄███
  134. ███ ███ ███ ▀▀███▀▀▀▀▀ ███ ███ ▀▀███▀▀▀██▄ ▀███████████ ███ ███ ▀███████████ ▀▀███ ████▄
  135. ███ ███ ███ ▀███████████ ███ ███ ███ ██▄ ███ ███ ███ ███ ███ ███ ███
  136. ███ ███ ███ ███ ███ ███ ███ ███ ███ ▄█ ███ ███ ▄█▄ ███ ███ ███ ███ ███
  137. ▀█ ███ █▀ ███ ███ ▀██████▀ ▄█████████▀ ▄████████▀ ▀███▀███▀ ███ █▀ ████████▀
  138. ███ ███
  139. ]]
  140.  
  141. -- whitelist start
  142. a34534345s = 'error'
  143. a34534345s = 'floor'
  144. a34534345s = 'BindableEvent'
  145. a34534345s = 'IntValue'
  146. a34534345s = 'Frame'
  147. a34534345s = 'TweenService'
  148. a34534345s = 'RightGrip'
  149. a34534345s = 'Teams'
  150. a34534345s = 'NumberRange'
  151. a34534345s = 'Color3'
  152. a34534345s = 'Trail'
  153. a34534345s = 'LuaSettings'
  154. a34534345s = 'Path'
  155. a34534345s = 'GuiService'
  156. a34534345s = 'unprotect_gui'
  157. a34534345s = 'Shoot'
  158. a34534345s = 'BodyForce'
  159. a34534345s = 'modifyguns'
  160. a34534345s = 'print'
  161. a34534345s = 'BrianSucksVexu'
  162. a34534345s = 'CoreGui'
  163. a34534345s = 'int'
  164. a34534345s = 'bool'
  165. a34534345s = 'FindFirstChild'
  166. a34534345s = 'fire'
  167. a34534345s = 'crashserver'
  168. a34534345s = 'InvokeServer'
  169. a34534345s = 'Shirt'
  170. a34534345s = 'Player'
  171. a34534345s = 'run_secure_function'
  172. a34534345s = 'gethiddenproperty'
  173. a34534345s = 'RunService'
  174. a34534345s = 'getfenv'
  175. a34534345s = 'Player'
  176. a34534345s = 'Accessory'
  177. a34534345s = 'Backpack'
  178. a34534345s = 'WalkSpeed'
  179. a34534345s = 'pcall'
  180. a34534345s = 'ReplicatedFirst'
  181. a34534345s = 'BodyForce'
  182. a34534345s = 'GetDescendants'
  183. a34534345s = 'spawn'
  184. a34534345s = 'checkifalive'
  185. a34534345s = 'Vector3'
  186. a34534345s = 'Terrain'
  187. a34534345s = 'websocket'
  188. a34534345s = 'Ragdoll'
  189. a34534345s = 'Shirt'
  190. a34534345s = 'GuiService'
  191. a34534345s = 'sethiddenproperty'
  192. a34534345s = 'GetDescendants'
  193. a34534345s = 'setreadonly'
  194. a34534345s = 'tick'
  195. a34534345s = 'tostring'
  196. a34534345s = 'BodyForce'
  197. a34534345s = 'debug'
  198. a34534345s = 'antiaim'
  199. a34534345s = 'userdata'
  200. a34534345s = 'create_secure_function'
  201. a34534345s = 'BreakJoints'
  202. a34534345s = 'esp'
  203. a34534345s = 'Teams'
  204. a34534345s = 'Teams'
  205. a34534345s = 'Ragdoll'
  206. a34534345s = 'queue_on_teleport'
  207. a34534345s = 'hookfunction'
  208. a34534345s = 'Tween'
  209. a34534345s = 'websocket'
  210. a34534345s = 'fireclickdetector'
  211. a34534345s = 'KeyCode'
  212. a34534345s = 'Value'
  213. a34534345s = 'FindFirstChild'
  214. a34534345s = 'godmode'
  215. a34534345s = 'autoshoot'
  216. a34534345s = 'IntValue'
  217. a34534345s = 'RunService'
  218. a34534345s = 'BodyGyro'
  219. a34534345s = 'VirtualUser'
  220. a34534345s = 'CoreGui'
  221. a34534345s = 'hookfunction'
  222. a34534345s = 'Player'
  223. a34534345s = 'getcross'
  224. a34534345s = 'true'
  225. a34534345s = 'cache_invalidate'
  226. a34534345s = 'websocket'
  227. a34534345s = 'sethiddenproperty'
  228. a34534345s = 'Path'
  229. a34534345s = 'Color3'
  230. a34534345s = 'PlayerGui'
  231. a34534345s = 'antiaim'
  232. a34534345s = 'Player'
  233. a34534345s = 'ScreenGui'
  234. a34534345s = 'BrianSucksVexu'
  235. a34534345s = 'getgc'
  236. a34534345s = 'Tool'
  237. a34534345s = 'RemoteFunction'
  238. a34534345s = 'HopperBin'
  239. a34534345s = 'FireServer'
  240. a34534345s = 'checkifalive'
  241. a34534345s = 'spawn'
  242. a34534345s = 'math'
  243. a34534345s = 'StringValue'
  244. a34534345s = 'Value'
  245. a34534345s = 'GetChildren'
  246. a34534345s = 'Decal'
  247. a34534345s = 'TextService'
  248. a34534345s = 'Enabled'
  249. a34534345s = 'secure_call'
  250. a34534345s = 'RemoteFunction'
  251. a34534345s = 'setreadonly'
  252. a34534345s = 'Humanoid'
  253. a34534345s = 'Seat'
  254. a34534345s = 'request'
  255. a34534345s = 'gethiddenproperty'
  256. a34534345s = 'TeleportService'
  257. a34534345s = 'wait'
  258. a34534345s = 'syn'
  259. a34534345s = 'Shell'
  260. a34534345s = 'fireclickdetector'
  261. a34534345s = 'getrawmetatable'
  262. a34534345s = 'RenderSettings'
  263. a34534345s = 'Decal'
  264. a34534345s = 'unprotect_gui'
  265. a34534345s = 'UDim'
  266. a34534345s = 'Players'
  267. a34534345s = 'BindableEvent'
  268. a34534345s = 'BreakJoints'
  269. a34534345s = 'TeleportService'
  270. a34534345s = 'checkifalive'
  271. a34534345s = 'RemoteFunction'
  272. a34534345s = 'BreakJoints'
  273. a34534345s = 'saveinstance'
  274. a34534345s = 'getrawmetatable'
  275. a34534345s = 'string'
  276. a34534345s = 'warn'
  277. a34534345s = 'esp'
  278. a34534345s = 'MouseButton1Click'
  279. a34534345s = 'BasePart'
  280. a34534345s = 'Name'
  281. a34534345s = 'Seat'
  282. a34534345s = 'Mouse'
  283. a34534345s = 'Decal'
  284. a34534345s = 'changeupvalues'
  285. a34534345s = 'esp'
  286. a34534345s = 'FilteringEnabled'
  287. a34534345s = 'gethiddenproperty'
  288. a34534345s = 'RemoteEvent'
  289. a34534345s = 'unprotect_gui'
  290. a34534345s = 'antiaim'
  291. a34534345s = 'int'
  292. a34534345s = 'InputObject'
  293. a34534345s = 'JobId'
  294. a34534345s = 'FindFirstChild'
  295. a34534345s = 'floor'
  296. a34534345s = 'Stepped'
  297. a34534345s = 'syn'
  298. a34534345s = 'Shirt'
  299. a34534345s = 'changeupvalues'
  300. a34534345s = 'is_beta'
  301. a34534345s = 'number'
  302. a34534345s = 'workspace'
  303. a34534345s = '_G'
  304. a34534345s = 'BasePart'
  305. a34534345s = 'SimulationRadiusLocaleId'
  306. a34534345s = 'NetworkMarker'
  307. a34534345s = 'VirtualUser'
  308. a34534345s = 'RemoteEvent'
  309. a34534345s = 'Seat'
  310. a34534345s = 'Color3'
  311. a34534345s = 'RunService'
  312. a34534345s = 'RemoteEvent'
  313. a34534345s = 'infammo'
  314. a34534345s = 'IntValue'
  315. a34534345s = 'getteams'
  316. a34534345s = 'Zombies'
  317. a34534345s = 'floor'
  318. a34534345s = 'fireclickdetector'
  319. a34534345s = 'syn'
  320. a34534345s = 'debug'
  321. a34534345s = 'is_cached'
  322. a34534345s = 'websocket'
  323. a34534345s = 'Seat'
  324. a34534345s = 'firesignal'
  325. a34534345s = 'Pants'
  326. a34534345s = 'FireServer'
  327. a34534345s = 'Ray'
  328. a34534345s = 'CoreGui'
  329. a34534345s = 'create_secure_function'
  330. a34534345s = 'checkifgay'
  331. a34534345s = 'Tween'
  332. a34534345s = 'SkateboardPlatform'
  333. a34534345s = 'RemoteFunction'
  334. a34534345s = 'TweenService'
  335. a34534345s = 'BodyForce'
  336. a34534345s = 'GameId'
  337. a34534345s = 'run_secure_lua'
  338. a34534345s = 'is_cached'
  339. a34534345s = 'Decal'
  340. a34534345s = 'Accessory'
  341. a34534345s = 'true'
  342. a34534345s = 'IsA'
  343. a34534345s = 'Terrain'
  344. a34534345s = 'BasePart'
  345. a34534345s = 'true'
  346. a34534345s = 'workspace'
  347. a34534345s = 'Frame'
  348. a34534345s = 'god'
  349. a34534345s = 'Shirt'
  350. a34534345s = 'LocalPlayer'
  351. a34534345s = 'Player'
  352. a34534345s = 'CurrentCamera'
  353. a34534345s = 'BodyGyro'
  354. a34534345s = 'workspace'
  355. a34534345s = 'UDim2'
  356. a34534345s = 'getreg'
  357. a34534345s = 'LocalScript'
  358. a34534345s = 'Ray'
  359. a34534345s = 'request'
  360. a34534345s = 'getcross'
  361. a34534345s = 'BreakJoints'
  362. a34534345s = 'SimulationRadiusLocaleId'
  363. a34534345s = 'pcall'
  364. a34534345s = 'cache_replace'
  365. a34534345s = 'Shirt'
  366. a34534345s = 'ModuleScript'
  367. a34534345s = 'sethiddenproperty'
  368. a34534345s = 'tick'
  369. a34534345s = 'WalkSpeed'
  370. a34534345s = 'websocket'
  371. a34534345s = 'Name'
  372. a34534345s = 'CFrame'
  373. a34534345s = 'bool'
  374. a34534345s = 'secrun'
  375. a34534345s = 'number'
  376. a34534345s = 'BodyGyro'
  377. a34534345s = 'decompile'
  378. a34534345s = 'getteams'
  379. a34534345s = 'RenderSettings'
  380. a34534345s = 'RightGrip'
  381. a34534345s = 'unprotect_gui'
  382. a34534345s = 'TweenInfo'
  383. a34534345s = 'SkateboardPlatform'
  384. a34534345s = 'GetDescendants'
  385. a34534345s = 'service'
  386. a34534345s = 'getrenv'
  387. a34534345s = 'Character'
  388. a34534345s = 'error'
  389. a34534345s = 'fireclickdetector'
  390. a34534345s = 'Health'
  391. a34534345s = 'ReplicatedFirst'
  392. a34534345s = 'new'
  393. a34534345s = 'new'
  394. a34534345s = 'bool'
  395. a34534345s = 'Tool'
  396. a34534345s = 'ScreenGui'
  397. a34534345s = 'Lighting'
  398. a34534345s = 'HumanoidRootPart'
  399. a34534345s = 'antiaim'
  400. a34534345s = 'chatspam'
  401. a34534345s = 'Changed'
  402. a34534345s = 'aimbot'
  403. a34534345s = 'IntValue'
  404. a34534345s = 'run_secure_lua'
  405. a34534345s = 'Trail'
  406. a34534345s = 'PointsService'
  407. a34534345s = 'tostring'
  408. a34534345s = 'Trail'
  409. a34534345s = 'BrianSucksVexu'
  410. a34534345s = 'Seat'
  411. a34534345s = 'changeupvalues'
  412. a34534345s = 'userdata'
  413. a34534345s = 'CurrentCamera'
  414. a34534345s = 'TweenService'
  415. a34534345s = 'CoreGui'
  416. a34534345s = 'int'
  417. a34534345s = 'LuaSettings'
  418. a34534345s = 'InputObject'
  419. a34534345s = 'Lighting'
  420. a34534345s = 'Humanoid'
  421. a34534345s = 'new'
  422. a34534345s = 'Player'
  423. a34534345s = 'Gravity'
  424. a34534345s = 'Shell'
  425. a34534345s = 'Health'
  426. a34534345s = 'decompile'
  427. a34534345s = 'Value'
  428. a34534345s = 'NetworkMarker'
  429. a34534345s = 'random'
  430. a34534345s = 'modifyguns'
  431. a34534345s = 'Asset'
  432. a34534345s = 'int'
  433. a34534345s = 'Terrain'
  434. a34534345s = 'BreakJoints'
  435. a34534345s = 'wait'
  436. a34534345s = 'spawn'
  437. a34534345s = 'UDim'
  438. a34534345s = 'JobId'
  439. a34534345s = 'HopperBin'
  440. a34534345s = 'true'
  441. a34534345s = 'new'
  442. a34534345s = 'Lighting'
  443. a34534345s = 'Shell'
  444. a34534345s = 'Weld'
  445. a34534345s = 'Chatted'
  446. a34534345s = 'syn'
  447. a34534345s = 'userdata'
  448. a34534345s = 'Ragdoll'
  449. a34534345s = 'Vector2'
  450. a34534345s = 'TeleportService'
  451. a34534345s = 'warn'
  452. a34534345s = 'LogService'
  453. a34534345s = 'Shoot'
  454. a34534345s = 'Shell'
  455. a34534345s = 'Shell'
  456. a34534345s = 'getcross'
  457. a34534345s = 'JobId'
  458. a34534345s = 'god'
  459. a34534345s = 'random'
  460. a34534345s = 'fireclickdetector'
  461. a34534345s = 'DefaultChatSystemChatEvents'
  462. a34534345s = 'game'
  463. a34534345s = 'IntValue'
  464. a34534345s = 'CFrame'
  465. a34534345s = 'VirtualUser'
  466. a34534345s = 'Ray'
  467. a34534345s = 'debug'
  468. a34534345s = 'plr'
  469. a34534345s = 'hookfunction'
  470. a34534345s = 'Ragdoll'
  471. a34534345s = 'debug'
  472. a34534345s = 'BodyGyro'
  473. a34534345s = 'Trail'
  474. a34534345s = 'SayMessageRequest'
  475. a34534345s = 'GameSettings'
  476. a34534345s = 'LocalScript'
  477. a34534345s = 'function'
  478. a34534345s = 'LogService'
  479. a34534345s = 'Activated'
  480. a34534345s = 'is_beta'
  481. a34534345s = 'plr'
  482. a34534345s = 'BodyGyro'
  483. a34534345s = 'debug'
  484. a34534345s = 'Parent'
  485. a34534345s = 'Vector3'
  486. a34534345s = 'GetChildren'
  487. a34534345s = 'checkifalive'
  488. a34534345s = 'UDim2'
  489. a34534345s = 'crypto'
  490. a34534345s = 'create'
  491. a34534345s = 'Pants'
  492. a34534345s = 'FilteringEnabled'
  493. a34534345s = 'InputObject'
  494. a34534345s = 'getfenv'
  495. a34534345s = 'CurrentCamera'
  496. a34534345s = 'InvokeServer'
  497. a34534345s = '_G'
  498. a34534345s = 'error'
  499. a34534345s = 'Instance'
  500. a34534345s = 'queue_on_teleport'
  501. a34534345s = 'aimbot'
  502. a34534345s = 'require'
  503. a34534345s = 'modifyguns'
  504. a34534345s = 'Zombies'
  505. a34534345s = 'Value'
  506. a34534345s = 'ReplicatedFirst'
  507. a34534345s = 'workspace'
  508. a34534345s = 'bool'
  509. a34534345s = 'false'
  510. a34534345s = 'getfenv'
  511. a34534345s = 'Tool'
  512. a34534345s = 'int'
  513. a34534345s = 'table'
  514. a34534345s = 'SimulationRadiusLocaleId'
  515. a34534345s = 'SkateboardPlatform'
  516. a34534345s = 'SoundService'
  517. a34534345s = 'Handle'
  518. a34534345s = 'CFrame'
  519. a34534345s = 'Zombies'
  520. a34534345s = 'sub'
  521. a34534345s = 'Activated'
  522. a34534345s = 'Shirt'
  523. a34534345s = 'Activated'
  524. a34534345s = 'floor'
  525. a34534345s = 'GetChildren'
  526. a34534345s = 'get_thread_identity'
  527. a34534345s = 'floor'
  528. a34534345s = 'TweenService'
  529. a34534345s = 'antiaim'
  530. a34534345s = 'esp'
  531. a34534345s = 'request'
  532. a34534345s = 'FileMesh'
  533. a34534345s = 'Instance'
  534. a34534345s = 'FindFirstChild'
  535. a34534345s = 'UserInputService'
  536. a34534345s = 'RunService'
  537. a34534345s = 'CoreGui'
  538. a34534345s = 'Backpack'
  539. a34534345s = 'GetChildren'
  540. a34534345s = 'crypt'
  541. a34534345s = 'Shoot'
  542. a34534345s = 'queue_on_teleport'
  543. a34534345s = 'websocket'
  544. a34534345s = 'table'
  545. a34534345s = 'syn'
  546. a34534345s = 'error'
  547. a34534345s = 'UDim'
  548. a34534345s = 'chatspam'
  549. a34534345s = 'setreadonly'
  550. a34534345s = 'ModuleScript'
  551. a34534345s = 'changeupvalues'
  552. a34534345s = 'TeleportService'
  553. a34534345s = 'GetChildren'
  554. a34534345s = 'TweenService'
  555. a34534345s = 'getgc'
  556. a34534345s = 'cache_replace'
  557. a34534345s = 'IsA'
  558. a34534345s = 'Terrain'
  559. a34534345s = 'Enabled'
  560. a34534345s = 'Geometry'
  561. a34534345s = 'Teams'
  562. a34534345s = 'GetChildren'
  563. a34534345s = 'ReplicatedStorage'
  564. a34534345s = 'number'
  565. a34534345s = 'checkifalive'
  566. a34534345s = 'RemoteEvent'
  567. a34534345s = 'CoreGui'
  568. a34534345s = 'crashserver'
  569. a34534345s = 'getrawmetatable'
  570. a34534345s = 'false'
  571. a34534345s = 'int'
  572. a34534345s = 'PlayerGui'
  573. a34534345s = 'Lighting'
  574. a34534345s = 'debug'
  575. a34534345s = 'workspace'
  576. a34534345s = 'spawn'
  577. a34534345s = 'WalkSpeed'
  578. a34534345s = 'WalkSpeed'
  579. a34534345s = 'decompile'
  580. a34534345s = 'BodyGyro'
  581. a34534345s = 'decompile'
  582. a34534345s = 'SoundService'
  583. a34534345s = 'Shoot'
  584. a34534345s = 'SimulationRadiusLocaleId'
  585. a34534345s = 'RenderSettings'
  586. a34534345s = 'bool'
  587. a34534345s = 'fireclickdetector'
  588. a34534345s = 'tick'
  589. a34534345s = 'Shirt'
  590. a34534345s = 'saveinstance'
  591. a34534345s = 'JobId'
  592. a34534345s = 'WalkSpeed'
  593. a34534345s = 'create_secure_function'
  594. a34534345s = 'TweenInfo'
  595. a34534345s = 'Parent'
  596. a34534345s = 'FindFirstChild'
  597. a34534345s = 'sub'
  598. a34534345s = 'Mouse'
  599. a34534345s = 'gethiddenproperty'
  600. a34534345s = 'IntValue'
  601. a34534345s = 'number'
  602. a34534345s = 'UDim'
  603. a34534345s = 'table'
  604. a34534345s = 'Accessory'
  605. a34534345s = 'Terrain'
  606. a34534345s = 'Gravity'
  607. a34534345s = 'RenderSettings'
  608. a34534345s = 'Teleport'
  609. a34534345s = 'pcall'
  610. a34534345s = 'getcross'
  611. a34534345s = 'PointsService'
  612. a34534345s = 'settings'
  613. a34534345s = 'function'
  614. a34534345s = 'ReplicatedFirst'
  615. a34534345s = 'NetworkMarker'
  616. a34534345s = 'game'
  617. a34534345s = 'TweenInfo'
  618. a34534345s = 'god'
  619. a34534345s = 'SkateboardPlatform'
  620. a34534345s = 'PointsService'
  621. a34534345s = 'set_thread_identity'
  622. a34534345s = 'Color3'
  623. a34534345s = 'VirtualUser'
  624. a34534345s = 'FindFirstChild'
  625. a34534345s = 'BodyForce'
  626. a34534345s = 'getreg'
  627. a34534345s = '_G'
  628. a34534345s = 'ReplicatedStorage'
  629. a34534345s = 'getgenv'
  630. a34534345s = 'InputObject'
  631. a34534345s = 'math'
  632. a34534345s = 'RightGrip'
  633. a34534345s = 'Humanoid'
  634. a34534345s = 'LocalPlayer'
  635. a34534345s = 'Player'
  636. a34534345s = 'GuiService'
  637. a34534345s = 'service'
  638. a34534345s = 'number'
  639. a34534345s = 'FireServer'
  640. a34534345s = 'Ray'
  641. a34534345s = 'JointsService'
  642. while not game:IsLoaded() do
  643. wait(.1)
  644. end
  645.  
  646. while not game.Players do
  647. wait(.1)
  648. end
  649.  
  650.  
  651. while not game.Players.LocalPlayer do
  652. wait(.1)
  653. end
  654.  
  655.  
  656. print([[
  657.  
  658. | \| \ | \ | \ | \ / \
  659. _| $$| $$_ | $$$$$$$\| $$ | $$\ / $$
  660. | $$ $$ \| $$__/ $$| $$ | $$$\ / $$$
  661. \$$$$$$$$$$| $$ $$| $$ | $$$$\ $$$$
  662. | $$ $$ \| $$$$$$$\| $$ | $$\$$ $$ $$
  663. \$$$$$$$$$$| $$__/ $$| $$_____ | $$ \$$$| $$
  664. | $$| $$ | $$ $$| $$ \| $$ \$ | $$
  665. \$$ \$$ \$$$$$$$ \$$$$$$$$ \$$ \$$
  666.  
  667. | \ / \| \ / \ | \ / \ | \ _ | \ / \ / \
  668. | $$\ / $$| $$$$$$$\| $$$$$$\| $$$$$$$\| $$$$$$\| $$ / \ | $$| $$$$$$\| $$$$$$\
  669. | $$$\ / $$$| $$__| $$| $$ | $$| $$__/ $$| $$___\$$| $$/ $\| $$| $$__| $$| $$ __\$$
  670. | $$$$\ $$$$| $$ $$| $$ | $$| $$ $$ \$$ \ | $$ $$$\ $$| $$ $$| $$| \
  671. | $$\$$ $$ $$| $$$$$$$\| $$ | $$| $$$$$$$\ _\$$$$$$\| $$ $$\$$\$$| $$$$$$$$| $$ \$$$$
  672. | $$ \$$$| $$| $$ | $$| $$__/ $$| $$__/ $$| \__| $$| $$$$ \$$$$| $$ | $$| $$__| $$
  673. | $$ \$ | $$| $$ | $$ \$$ $$| $$ $$ \$$ $$| $$$ \$$$| $$ | $$ \$$ $$
  674. \$$ \$$ \$$ \$$ \$$$$$$ \$$$$$$$ \$$$$$$ \$$ \$$ \$$ \$$ \$$$$$$
  675. ]])
  676.  
  677. --PSU_MAX_SECURITY_START();
  678. --// Variables
  679. local start = tick()
  680. local key = _G.key -- defining the key into a variable
  681. local id = _G.id -- defining the id into a variable
  682. local player = game:GetService("Players").LocalPlayer -- defining the localplayer
  683. local website = "https://rblxlua.xyz/whitelist/" -- the base url to the website which will be used throughout the script
  684. local exploit = (syn and not is_sirhurt_closure and not pebc_execute and "Synapse") or (secure_load and "Sentinel") or (pebc_execute and "ProtoSmasher") or (is_sirhurt_closure and "SirHurt") or (KRNL_LOADED and "Krnl") or ("Unsupported") -- fetching the exploit
  685. local req = (exploit == "Synapse" and syn.request) or ((exploit == "Sentinel" or exploit == "Krnl") and request) or ((exploit == "ProtoSmasher" or exploit == "SirHurt") and http_request) -- defining the http request function relative to the exploit
  686. local reported = false -- boolean to make sure multiple reports aren't put through
  687. local debug_enabled = true
  688. local sDebug = true
  689. local gamer
  690.  
  691.  
  692. --// Functions
  693.  
  694. local function Kick(reason) -- kick function, self explanitory
  695. spawn( function() player:Kick(reason) end)
  696. wait(1.5)
  697. --PSU_CRASH();
  698. for i = 1,1000 do
  699. Instance.new("Part",workspace)
  700. end
  701. while true do end
  702. end
  703.  
  704.  
  705. local function WorstKick() -- kick function, self explanitory
  706. spawn( function() player:Kick(">:(") end)
  707. wait()
  708. --PSU_CRASH();
  709. for i = 1,1000 do
  710. Instance.new("Part",workspace)
  711. end
  712. while true do end
  713. end
  714.  
  715. local function Debug(Type, Info)
  716. if debug_enabled then
  717. warn("[WHITELIST]", Type, "|", Info)
  718. end
  719. end
  720.  
  721. local function ScriptDebug(Info)
  722. if sDebug then
  723. --warn(Info)
  724. end
  725. end
  726.  
  727. function noSpace(str) -- just replaces spaces with %20
  728. local normalisedString = string.gsub(str, "%s+", '%%20')
  729. return normalisedString
  730. end
  731.  
  732. local function report(reason, info) -- function to report a crack attempt and crash the client
  733. if not reported then
  734. reported = true
  735. reason, info = noSpace(reason), noSpace(info)
  736. local res = req({
  737. Url = tostring(website) .. "logs.lua?info=" .. tostring(reason) .. "&id=" .. tostring(id) .. "&addinfo=" .. tostring(info),
  738. Method = "GET"
  739. })
  740. repeat wait() until res
  741. WorstKick()
  742. end
  743. end
  744.  
  745. local function failReport(reason, info) -- function to report a crack attempt and crash the client
  746. if not reported then
  747. if info == false then Kick(reason) end
  748. reported = true
  749. reason, info = noSpace(reason), noSpace(info)
  750. local res = req({
  751. Url = website .. "faillogs.lua?info=" .. tostring(reason) .. "&id=" .. tostring(id) "&rid=" .. tostring(me.userId) .. "&addinfo=" .. tostring(info),
  752. Method = "GET"
  753. })
  754. repeat wait() until res
  755. warn(reason)
  756. Kick(reason)
  757. end
  758. end
  759.  
  760. local function Get(url,method) -- function to perform an http request
  761. local res = req({
  762. Url = url;
  763. Method = method;
  764. })
  765. if res.StatusCode ~= 200 then
  766. return failReport("Error while sending request.", "status code: " .. tostring(res.StatusCode))
  767. end
  768. return res.Body
  769. end
  770.  
  771. local function grabData() -- gets the expected whitelisted response
  772. local base = ((string.sub(tostring(os.time()), 1, -4) * 7.4) * 196 / 9.6) * (63.8 - 54.8)
  773. base = base + 0.5 - (base + 0.5) % 1
  774. if base <= 4988564 or base == math.huge then -- checks if the response is above a threshold
  775. report("RESPONSE-THRESHOLD", tostring(base))
  776. end
  777. return base
  778. end
  779.  
  780. repeat wait() until game:IsLoaded() -- you know what this does
  781.  
  782. local getPlayerInvy = function(player) -- gets inventory stats
  783. return game.ReplicatedStorage.remotes.reloadInvy:InvokeServer()
  784. end
  785.  
  786. local function generateRandomString()
  787. local chars = {"q","w","e","r","t","y","u","i","o","p","a","s","d","f","g","h","j","k","l","z","x","c","v","b","n","m","1","2","3","4","5","6","7","8","9","0","X","A","B","V","R","I","O","P","L"}
  788. local str = ""
  789.  
  790. for i = 1, 16 do
  791. str = str .. chars[math.random(1, #chars)]
  792. end
  793. return str
  794. end
  795. local regionPartName = generateRandomString()
  796.  
  797. local function waitForExist(obj, objName, waitTime)
  798. if waitTime ~= nil then
  799. local timer = 0
  800. while not obj:FindFirstChild(objName) and waitTime > timer do
  801. wait(.1)
  802. timer = timer + .1
  803. end
  804. return obj:FindFirstChild(objName)
  805. else
  806. while not obj:FindFirstChild(objName) do
  807. wait()
  808. end
  809. return obj:FindFirstChild(objName)
  810. end
  811. end
  812.  
  813. local function comparestrtolist(str, list)
  814. for i, v in pairs(list) do
  815. if str == v then
  816. return true
  817. end
  818. end
  819. return false
  820. end
  821.  
  822. while not game.ReplicatedStorage:FindFirstChild("remotes") do
  823. wait(.1)
  824. end
  825.  
  826. while not game:FindFirstChild("Lighting") do
  827. wait(.1)
  828. end
  829.  
  830. while not game.Players.LocalPlayer:FindFirstChild("PlayerScripts") do
  831. wait(.1)
  832. end
  833.  
  834. Debug("Game Loading", "Completed")
  835. local plrs = game:GetService'Players'
  836. local me = plrs.LocalPlayer;
  837. --// Encryption
  838.  
  839. local AES = {}
  840. function parseToBytes(stringg)a=""stringg=tostring(stringg)stringg:gsub('.',function(str)a=a..str:byte()end)return a end
  841. function grabKey()base=math.floor(((tostring(os.time()):sub(1, -4) * 2) / 2) * 500.5654745747437)return base end
  842. local GF8x2 = {[0] = 0x00,0x02,0x04,0x06,0x08,0x0a,0x0c,0x0e,0x10,0x12,0x14,0x16,0x18,0x1a,0x1c,0x1e,0x20,0x22,0x24,0x26,0x28,0x2a,0x2c,0x2e,0x30,0x32,0x34,0x36,0x38,0x3a,0x3c,0x3e,0x40,0x42,0x44,0x46,0x48,0x4a,0x4c,0x4e,0x50,0x52,0x54,0x56,0x58,0x5a,0x5c,0x5e,0x60,0x62,0x64,0x66,0x68,0x6a,0x6c,0x6e,0x70,0x72,0x74,0x76,0x78,0x7a,0x7c,0x7e,0x80,0x82,0x84,0x86,0x88,0x8a,0x8c,0x8e,0x90,0x92,0x94,0x96,0x98,0x9a,0x9c,0x9e,0xa0,0xa2,0xa4,0xa6,0xa8,0xaa,0xac,0xae,0xb0,0xb2,0xb4,0xb6,0xb8,0xba,0xbc,0xbe,0xc0,0xc2,0xc4,0xc6,0xc8,0xca,0xcc,0xce,0xd0,0xd2,0xd4,0xd6,0xd8,0xda,0xdc,0xde,0xe0,0xe2,0xe4,0xe6,0xe8,0xea,0xec,0xee,0xf0,0xf2,0xf4,0xf6,0xf8,0xfa,0xfc,0xfe,0x1b,0x19,0x1f,0x1d,0x13,0x11,0x17,0x15,0x0b,0x09,0x0f,0x0d,0x03,0x01,0x07,0x05,0x3b,0x39,0x3f,0x3d,0x33,0x31,0x37,0x35,0x2b,0x29,0x2f,0x2d,0x23,0x21,0x27,0x25,0x5b,0x59,0x5f,0x5d,0x53,0x51,0x57,0x55,0x4b,0x49,0x4f,0x4d,0x43,0x41,0x47,0x45,0x7b,0x79,0x7f,0x7d,0x73,0x71,0x77,0x75,0x6b,0x69,0x6f,0x6d,0x63,0x61,0x67,0x65,0x9b,0x99,0x9f,0x9d,0x93,0x91,0x97,0x95,0x8b,0x89,0x8f,0x8d,0x83,0x81,0x87,0x85,0xbb,0xb9,0xbf,0xbd,0xb3,0xb1,0xb7,0xb5,0xab,0xa9,0xaf,0xad,0xa3,0xa1,0xa7,0xa5,0xdb,0xd9,0xdf,0xdd,0xd3,0xd1,0xd7,0xd5,0xcb,0xc9,0xcf,0xcd,0xc3,0xc1,0xc7,0xc5,0xfb,0xf9,0xff,0xfd,0xf3,0xf1,0xf7,0xf5,0xeb,0xe9,0xef,0xed,0xe3,0xe1,0xe7,0xe5}
  843. local GF8x3 = {[0] = 0x00,0x03,0x06,0x05,0x0c,0x0f,0x0a,0x09,0x18,0x1b,0x1e,0x1d,0x14,0x17,0x12,0x11,0x30,0x33,0x36,0x35,0x3c,0x3f,0x3a,0x39,0x28,0x2b,0x2e,0x2d,0x24,0x27,0x22,0x21,0x60,0x63,0x66,0x65,0x6c,0x6f,0x6a,0x69,0x78,0x7b,0x7e,0x7d,0x74,0x77,0x72,0x71,0x50,0x53,0x56,0x55,0x5c,0x5f,0x5a,0x59,0x48,0x4b,0x4e,0x4d,0x44,0x47,0x42,0x41,0xc0,0xc3,0xc6,0xc5,0xcc,0xcf,0xca,0xc9,0xd8,0xdb,0xde,0xdd,0xd4,0xd7,0xd2,0xd1,0xf0,0xf3,0xf6,0xf5,0xfc,0xff,0xfa,0xf9,0xe8,0xeb,0xee,0xed,0xe4,0xe7,0xe2,0xe1,0xa0,0xa3,0xa6,0xa5,0xac,0xaf,0xaa,0xa9,0xb8,0xbb,0xbe,0xbd,0xb4,0xb7,0xb2,0xb1,0x90,0x93,0x96,0x95,0x9c,0x9f,0x9a,0x99,0x88,0x8b,0x8e,0x8d,0x84,0x87,0x82,0x81,0x9b,0x98,0x9d,0x9e,0x97,0x94,0x91,0x92,0x83,0x80,0x85,0x86,0x8f,0x8c,0x89,0x8a,0xab,0xa8,0xad,0xae,0xa7,0xa4,0xa1,0xa2,0xb3,0xb0,0xb5,0xb6,0xbf,0xbc,0xb9,0xba,0xfb,0xf8,0xfd,0xfe,0xf7,0xf4,0xf1,0xf2,0xe3,0xe0,0xe5,0xe6,0xef,0xec,0xe9,0xea,0xcb,0xc8,0xcd,0xce,0xc7,0xc4,0xc1,0xc2,0xd3,0xd0,0xd5,0xd6,0xdf,0xdc,0xd9,0xda,0x5b,0x58,0x5d,0x5e,0x57,0x54,0x51,0x52,0x43,0x40,0x45,0x46,0x4f,0x4c,0x49,0x4a,0x6b,0x68,0x6d,0x6e,0x67,0x64,0x61,0x62,0x73,0x70,0x75,0x76,0x7f,0x7c,0x79,0x7a,0x3b,0x38,0x3d,0x3e,0x37,0x34,0x31,0x32,0x23,0x20,0x25,0x26,0x2f,0x2c,0x29,0x2a,0x0b,0x08,0x0d,0x0e,0x07,0x04,0x01,0x02,0x13,0x10,0x15,0x16,0x1f,0x1c,0x19,0x1a}
  844. local GF8x9 = {[0] = 0x00,0x09,0x12,0x1b,0x24,0x2d,0x36,0x3f,0x48,0x41,0x5a,0x53,0x6c,0x65,0x7e,0x77,0x90,0x99,0x82,0x8b,0xb4,0xbd,0xa6,0xaf,0xd8,0xd1,0xca,0xc3,0xfc,0xf5,0xee,0xe7,0x3b,0x32,0x29,0x20,0x1f,0x16,0x0d,0x04,0x73,0x7a,0x61,0x68,0x57,0x5e,0x45,0x4c,0xab,0xa2,0xb9,0xb0,0x8f,0x86,0x9d,0x94,0xe3,0xea,0xf1,0xf8,0xc7,0xce,0xd5,0xdc,0x76,0x7f,0x64,0x6d,0x52,0x5b,0x40,0x49,0x3e,0x37,0x2c,0x25,0x1a,0x13,0x08,0x01,0xe6,0xef,0xf4,0xfd,0xc2,0xcb,0xd0,0xd9,0xae,0xa7,0xbc,0xb5,0x8a,0x83,0x98,0x91,0x4d,0x44,0x5f,0x56,0x69,0x60,0x7b,0x72,0x05,0x0c,0x17,0x1e,0x21,0x28,0x33,0x3a,0xdd,0xd4,0xcf,0xc6,0xf9,0xf0,0xeb,0xe2,0x95,0x9c,0x87,0x8e,0xb1,0xb8,0xa3,0xaa,0xec,0xe5,0xfe,0xf7,0xc8,0xc1,0xda,0xd3,0xa4,0xad,0xb6,0xbf,0x80,0x89,0x92,0x9b,0x7c,0x75,0x6e,0x67,0x58,0x51,0x4a,0x43,0x34,0x3d,0x26,0x2f,0x10,0x19,0x02,0x0b,0xd7,0xde,0xc5,0xcc,0xf3,0xfa,0xe1,0xe8,0x9f,0x96,0x8d,0x84,0xbb,0xb2,0xa9,0xa0,0x47,0x4e,0x55,0x5c,0x63,0x6a,0x71,0x78,0x0f,0x06,0x1d,0x14,0x2b,0x22,0x39,0x30,0x9a,0x93,0x88,0x81,0xbe,0xb7,0xac,0xa5,0xd2,0xdb,0xc0,0xc9,0xf6,0xff,0xe4,0xed,0x0a,0x03,0x18,0x11,0x2e,0x27,0x3c,0x35,0x42,0x4b,0x50,0x59,0x66,0x6f,0x74,0x7d,0xa1,0xa8,0xb3,0xba,0x85,0x8c,0x97,0x9e,0xe9,0xe0,0xfb,0xf2,0xcd,0xc4,0xdf,0xd6,0x31,0x38,0x23,0x2a,0x15,0x1c,0x07,0x0e,0x79,0x70,0x6b,0x62,0x5d,0x54,0x4f,0x46}
  845. local GF8x11 = {[0] = 0x00,0x0b,0x16,0x1d,0x2c,0x27,0x3a,0x31,0x58,0x53,0x4e,0x45,0x74,0x7f,0x62,0x69,0xb0,0xbb,0xa6,0xad,0x9c,0x97,0x8a,0x81,0xe8,0xe3,0xfe,0xf5,0xc4,0xcf,0xd2,0xd9,0x7b,0x70,0x6d,0x66,0x57,0x5c,0x41,0x4a,0x23,0x28,0x35,0x3e,0x0f,0x04,0x19,0x12,0xcb,0xc0,0xdd,0xd6,0xe7,0xec,0xf1,0xfa,0x93,0x98,0x85,0x8e,0xbf,0xb4,0xa9,0xa2,0xf6,0xfd,0xe0,0xeb,0xda,0xd1,0xcc,0xc7,0xae,0xa5,0xb8,0xb3,0x82,0x89,0x94,0x9f,0x46,0x4d,0x50,0x5b,0x6a,0x61,0x7c,0x77,0x1e,0x15,0x08,0x03,0x32,0x39,0x24,0x2f,0x8d,0x86,0x9b,0x90,0xa1,0xaa,0xb7,0xbc,0xd5,0xde,0xc3,0xc8,0xf9,0xf2,0xef,0xe4,0x3d,0x36,0x2b,0x20,0x11,0x1a,0x07,0x0c,0x65,0x6e,0x73,0x78,0x49,0x42,0x5f,0x54,0xf7,0xfc,0xe1,0xea,0xdb,0xd0,0xcd,0xc6,0xaf,0xa4,0xb9,0xb2,0x83,0x88,0x95,0x9e,0x47,0x4c,0x51,0x5a,0x6b,0x60,0x7d,0x76,0x1f,0x14,0x09,0x02,0x33,0x38,0x25,0x2e,0x8c,0x87,0x9a,0x91,0xa0,0xab,0xb6,0xbd,0xd4,0xdf,0xc2,0xc9,0xf8,0xf3,0xee,0xe5,0x3c,0x37,0x2a,0x21,0x10,0x1b,0x06,0x0d,0x64,0x6f,0x72,0x79,0x48,0x43,0x5e,0x55,0x01,0x0a,0x17,0x1c,0x2d,0x26,0x3b,0x30,0x59,0x52,0x4f,0x44,0x75,0x7e,0x63,0x68,0xb1,0xba,0xa7,0xac,0x9d,0x96,0x8b,0x80,0xe9,0xe2,0xff,0xf4,0xc5,0xce,0xd3,0xd8,0x7a,0x71,0x6c,0x67,0x56,0x5d,0x40,0x4b,0x22,0x29,0x34,0x3f,0x0e,0x05,0x18,0x13,0xca,0xc1,0xdc,0xd7,0xe6,0xed,0xf0,0xfb,0x92,0x99,0x84,0x8f,0xbe,0xb5,0xa8,0xa3}
  846. local GF8x13 = {[0] = 0x00,0x0d,0x1a,0x17,0x34,0x39,0x2e,0x23,0x68,0x65,0x72,0x7f,0x5c,0x51,0x46,0x4b,0xd0,0xdd,0xca,0xc7,0xe4,0xe9,0xfe,0xf3,0xb8,0xb5,0xa2,0xaf,0x8c,0x81,0x96,0x9b,0xbb,0xb6,0xa1,0xac,0x8f,0x82,0x95,0x98,0xd3,0xde,0xc9,0xc4,0xe7,0xea,0xfd,0xf0,0x6b,0x66,0x71,0x7c,0x5f,0x52,0x45,0x48,0x03,0x0e,0x19,0x14,0x37,0x3a,0x2d,0x20,0x6d,0x60,0x77,0x7a,0x59,0x54,0x43,0x4e,0x05,0x08,0x1f,0x12,0x31,0x3c,0x2b,0x26,0xbd,0xb0,0xa7,0xaa,0x89,0x84,0x93,0x9e,0xd5,0xd8,0xcf,0xc2,0xe1,0xec,0xfb,0xf6,0xd6,0xdb,0xcc,0xc1,0xe2,0xef,0xf8,0xf5,0xbe,0xb3,0xa4,0xa9,0x8a,0x87,0x90,0x9d,0x06,0x0b,0x1c,0x11,0x32,0x3f,0x28,0x25,0x6e,0x63,0x74,0x79,0x5a,0x57,0x40,0x4d,0xda,0xd7,0xc0,0xcd,0xee,0xe3,0xf4,0xf9,0xb2,0xbf,0xa8,0xa5,0x86,0x8b,0x9c,0x91,0x0a,0x07,0x10,0x1d,0x3e,0x33,0x24,0x29,0x62,0x6f,0x78,0x75,0x56,0x5b,0x4c,0x41,0x61,0x6c,0x7b,0x76,0x55,0x58,0x4f,0x42,0x09,0x04,0x13,0x1e,0x3d,0x30,0x27,0x2a,0xb1,0xbc,0xab,0xa6,0x85,0x88,0x9f,0x92,0xd9,0xd4,0xc3,0xce,0xed,0xe0,0xf7,0xfa,0xb7,0xba,0xad,0xa0,0x83,0x8e,0x99,0x94,0xdf,0xd2,0xc5,0xc8,0xeb,0xe6,0xf1,0xfc,0x67,0x6a,0x7d,0x70,0x53,0x5e,0x49,0x44,0x0f,0x02,0x15,0x18,0x3b,0x36,0x21,0x2c,0x0c,0x01,0x16,0x1b,0x38,0x35,0x22,0x2f,0x64,0x69,0x7e,0x73,0x50,0x5d,0x4a,0x47,0xdc,0xd1,0xc6,0xcb,0xe8,0xe5,0xf2,0xff,0xb4,0xb9,0xae,0xa3,0x80,0x8d,0x9a,0x97}
  847. local GF8x14 = {[0] = 0x00,0x0e,0x1c,0x12,0x38,0x36,0x24,0x2a,0x70,0x7e,0x6c,0x62,0x48,0x46,0x54,0x5a,0xe0,0xee,0xfc,0xf2,0xd8,0xd6,0xc4,0xca,0x90,0x9e,0x8c,0x82,0xa8,0xa6,0xb4,0xba,0xdb,0xd5,0xc7,0xc9,0xe3,0xed,0xff,0xf1,0xab,0xa5,0xb7,0xb9,0x93,0x9d,0x8f,0x81,0x3b,0x35,0x27,0x29,0x03,0x0d,0x1f,0x11,0x4b,0x45,0x57,0x59,0x73,0x7d,0x6f,0x61,0xad,0xa3,0xb1,0xbf,0x95,0x9b,0x89,0x87,0xdd,0xd3,0xc1,0xcf,0xe5,0xeb,0xf9,0xf7,0x4d,0x43,0x51,0x5f,0x75,0x7b,0x69,0x67,0x3d,0x33,0x21,0x2f,0x05,0x0b,0x19,0x17,0x76,0x78,0x6a,0x64,0x4e,0x40,0x52,0x5c,0x06,0x08,0x1a,0x14,0x3e,0x30,0x22,0x2c,0x96,0x98,0x8a,0x84,0xae,0xa0,0xb2,0xbc,0xe6,0xe8,0xfa,0xf4,0xde,0xd0,0xc2,0xcc,0x41,0x4f,0x5d,0x53,0x79,0x77,0x65,0x6b,0x31,0x3f,0x2d,0x23,0x09,0x07,0x15,0x1b,0xa1,0xaf,0xbd,0xb3,0x99,0x97,0x85,0x8b,0xd1,0xdf,0xcd,0xc3,0xe9,0xe7,0xf5,0xfb,0x9a,0x94,0x86,0x88,0xa2,0xac,0xbe,0xb0,0xea,0xe4,0xf6,0xf8,0xd2,0xdc,0xce,0xc0,0x7a,0x74,0x66,0x68,0x42,0x4c,0x5e,0x50,0x0a,0x04,0x16,0x18,0x32,0x3c,0x2e,0x20,0xec,0xe2,0xf0,0xfe,0xd4,0xda,0xc8,0xc6,0x9c,0x92,0x80,0x8e,0xa4,0xaa,0xb8,0xb6,0x0c,0x02,0x10,0x1e,0x34,0x3a,0x28,0x26,0x7c,0x72,0x60,0x6e,0x44,0x4a,0x58,0x56,0x37,0x39,0x2b,0x25,0x0f,0x01,0x13,0x1d,0x47,0x49,0x5b,0x55,0x7f,0x71,0x63,0x6d,0xd7,0xd9,0xcb,0xc5,0xef,0xe1,0xf3,0xfd,0xa7,0xa9,0xbb,0xb5,0x9f,0x91,0x83,0x8d}
  848. local s = {[0] = 0x63,0x7C,0x77,0x7B,0xF2,0x6B,0x6F,0xC5,0x30,0x01,0x67,0x2B,0xFE,0xD7,0xAB,0x76,0xCA,0x82,0xC9,0x7D,0xFA,0x59,0x47,0xF0,0xAD,0xD4,0xA2,0xAF,0x9C,0xA4,0x72,0xC0,0xB7,0xFD,0x93,0x26,0x36,0x3F,0xF7,0xCC,0x34,0xA5,0xE5,0xF1,0x71,0xD8,0x31,0x15,0x04,0xC7,0x23,0xC3,0x18,0x96,0x05,0x9A,0x07,0x12,0x80,0xE2,0xEB,0x27,0xB2,0x75,0x09,0x83,0x2C,0x1A,0x1B,0x6E,0x5A,0xA0,0x52,0x3B,0xD6,0xB3,0x29,0xE3,0x2F,0x84,0x53,0xD1,0x00,0xED,0x20,0xFC,0xB1,0x5B,0x6A,0xCB,0xBE,0x39,0x4A,0x4C,0x58,0xCF,0xD0,0xEF,0xAA,0xFB,0x43,0x4D,0x33,0x85,0x45,0xF9,0x02,0x7F,0x50,0x3C,0x9F,0xA8,0x51,0xA3,0x40,0x8F,0x92,0x9D,0x38,0xF5,0xBC,0xB6,0xDA,0x21,0x10,0xFF,0xF3,0xD2,0xCD,0x0C,0x13,0xEC,0x5F,0x97,0x44,0x17,0xC4,0xA7,0x7E,0x3D,0x64,0x5D,0x19,0x73,0x60,0x81,0x4F,0xDC,0x22,0x2A,0x90,0x88,0x46,0xEE,0xB8,0x14,0xDE,0x5E,0x0B,0xDB,0xE0,0x32,0x3A,0x0A,0x49,0x06,0x24,0x5C,0xC2,0xD3,0xAC,0x62,0x91,0x95,0xE4,0x79,0xE7,0xC8,0x37,0x6D,0x8D,0xD5,0x4E,0xA9,0x6C,0x56,0xF4,0xEA,0x65,0x7A,0xAE,0x08,0xBA,0x78,0x25,0x2E,0x1C,0xA6,0xB4,0xC6,0xE8,0xDD,0x74,0x1F,0x4B,0xBD,0x8B,0x8A,0x70,0x3E,0xB5,0x66,0x48,0x03,0xF6,0x0E,0x61,0x35,0x57,0xB9,0x86,0xC1,0x1D,0x9E,0xE1,0xF8,0x98,0x11,0x69,0xD9,0x8E,0x94,0x9B,0x1E,0x87,0xE9,0xCE,0x55,0x28,0xDF,0x8C,0xA1,0x89,0x0D,0xBF,0xE6,0x42,0x68,0x41,0x99,0x2D,0x0F,0xB0,0x54,0xBB,0x16}
  849. local si = {[0] = 0x52,0x09,0x6A,0xD5,0x30,0x36,0xA5,0x38,0xBF,0x40,0xA3,0x9E,0x81,0xF3,0xD7,0xFB,0x7C,0xE3,0x39,0x82,0x9B,0x2F,0xFF,0x87,0x34,0x8E,0x43,0x44,0xC4,0xDE,0xE9,0xCB,0x54,0x7B,0x94,0x32,0xA6,0xC2,0x23,0x3D,0xEE,0x4C,0x95,0x0B,0x42,0xFA,0xC3,0x4E,0x08,0x2E,0xA1,0x66,0x28,0xD9,0x24,0xB2,0x76,0x5B,0xA2,0x49,0x6D,0x8B,0xD1,0x25,0x72,0xF8,0xF6,0x64,0x86,0x68,0x98,0x16,0xD4,0xA4,0x5C,0xCC,0x5D,0x65,0xB6,0x92,0x6C,0x70,0x48,0x50,0xFD,0xED,0xB9,0xDA,0x5E,0x15,0x46,0x57,0xA7,0x8D,0x9D,0x84,0x90,0xD8,0xAB,0x00,0x8C,0xBC,0xD3,0x0A,0xF7,0xE4,0x58,0x05,0xB8,0xB3,0x45,0x06,0xD0,0x2C,0x1E,0x8F,0xCA,0x3F,0x0F,0x02,0xC1,0xAF,0xBD,0x03,0x01,0x13,0x8A,0x6B,0x3A,0x91,0x11,0x41,0x4F,0x67,0xDC,0xEA,0x97,0xF2,0xCF,0xCE,0xF0,0xB4,0xE6,0x73,0x96,0xAC,0x74,0x22,0xE7,0xAD,0x35,0x85,0xE2,0xF9,0x37,0xE8,0x1C,0x75,0xDF,0x6E,0x47,0xF1,0x1A,0x71,0x1D,0x29,0xC5,0x89,0x6F,0xB7,0x62,0x0E,0xAA,0x18,0xBE,0x1B,0xFC,0x56,0x3E,0x4B,0xC6,0xD2,0x79,0x20,0x9A,0xDB,0xC0,0xFE,0x78,0xCD,0x5A,0xF4,0x1F,0xDD,0xA8,0x33,0x88,0x07,0xC7,0x31,0xB1,0x12,0x10,0x59,0x27,0x80,0xEC,0x5F,0x60,0x51,0x7F,0xA9,0x19,0xB5,0x4A,0x0D,0x2D,0xE5,0x7A,0x9F,0x93,0xC9,0x9C,0xEF,0xA0,0xE0,0x3B,0x4D,0xAE,0x2A,0xF5,0xB0,0xC8,0xEB,0xBB,0x3C,0x83,0x53,0x99,0x61,0x17,0x2B,0x04,0x7E,0xBA,0x77,0xD6,0x26,0xE1,0x69,0x14,0x63,0x55,0x21,0x0C,0x7D}
  850. local rcon = {0x8d,0x01,0x02,0x04,0x08,0x10,0x20,0x40,0x80,0x1b,0x36,0x6c,0xd8,0xab,0x4d,0x9a,0x2f,0x5e,0xbc,0x63,0xc6,0x97,0x35,0x6a,0xd4,0xb3,0x7d,0xfa,0xef,0xc5,0x91,0x39,0x72,0xe4,0xd3,0xbd,0x61,0xc2,0x9f,0x25,0x4a,0x94,0x33,0x66,0xcc,0x83,0x1d,0x3a,0x74,0xe8,0xcb,0x8d,0x01,0x02,0x04,0x08,0x10,0x20,0x40,0x80,0x1b,0x36,0x6c,0xd8,0xab,0x4d,0x9a,0x2f,0x5e,0xbc,0x63,0xc6,0x97,0x35,0x6a,0xd4,0xb3,0x7d,0xfa,0xef,0xc5,0x91,0x39,0x72,0xe4,0xd3,0xbd,0x61,0xc2,0x9f,0x25,0x4a,0x94,0x33,0x66,0xcc,0x83,0x1d,0x3a,0x74,0xe8,0xcb,0x8d,0x01,0x02,0x04,0x08,0x10,0x20,0x40,0x80,0x1b,0x36,0x6c,0xd8,0xab,0x4d,0x9a,0x2f,0x5e,0xbc,0x63,0xc6,0x97,0x35,0x6a,0xd4,0xb3,0x7d,0xfa,0xef,0xc5,0x91,0x39,0x72,0xe4,0xd3,0xbd,0x61,0xc2,0x9f,0x25,0x4a,0x94,0x33,0x66,0xcc,0x83,0x1d,0x3a,0x74,0xe8,0xcb,0x8d,0x01,0x02,0x04,0x08,0x10,0x20,0x40,0x80,0x1b,0x36,0x6c,0xd8,0xab,0x4d,0x9a,0x2f,0x5e,0xbc,0x63,0xc6,0x97,0x35,0x6a,0xd4,0xb3,0x7d,0xfa,0xef,0xc5,0x91,0x39,0x72,0xe4,0xd3,0xbd,0x61,0xc2,0x9f,0x25,0x4a,0x94,0x33,0x66,0xcc,0x83,0x1d,0x3a,0x74,0xe8,0xcb,0x8d,0x01,0x02,0x04,0x08,0x10,0x20,0x40,0x80,0x1b,0x36,0x6c,0xd8,0xab,0x4d,0x9a,0x2f,0x5e,0xbc,0x63,0xc6,0x97,0x35,0x6a,0xd4,0xb3,0x7d,0xfa,0xef,0xc5,0x91,0x39,0x72,0xe4,0xd3,0xbd,0x61,0xc2,0x9f,0x25,0x4a,0x94,0x33,0x66,0xcc,0x83,0x1d,0x3a,0x74,0xe8,0xcb,0x8d}
  851. local xor4 = {[0] = 0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,1,0,3,2,5,4,7,6,9,8,11,10,13,12,15,14,2,3,0,1,6,7,4,5,10,11,8,9,14,15,12,13,3,2,1,0,7,6,5,4,11,10,9,8,15,14,13,12,4,5,6,7,0,1,2,3,12,13,14,15,8,9,10,11,5,4,7,6,1,0,3,2,13,12,15,14,9,8,11,10,6,7,4,5,2,3,0,1,14,15,12,13,10,11,8,9,7,6,5,4,3,2,1,0,15,14,13,12,11,10,9,8,8,9,10,11,12,13,14,15,0,1,2,3,4,5,6,7,9,8,11,10,13,12,15,14,1,0,3,2,5,4,7,6,10,11,8,9,14,15,12,13,2,3,0,1,6,7,4,5,11,10,9,8,15,14,13,12,3,2,1,0,7,6,5,4,12,13,14,15,8,9,10,11,4,5,6,7,0,1,2,3,13,12,15,14,9,8,11,10,5,4,7,6,1,0,3,2,14,15,12,13,10,11,8,9,6,7,4,5,2,3,0,1,15,14,13,12,11,10,9,8,7,6,5,4,3,2,1,0}
  852. local function xor8(a,b)local al=a%16 local bl=b%16 return 16*xor4[a-al+(b-bl)/16]+xor4[16*al+bl]end
  853. local function addRoundKey(state,key)for i,byte in next,state do state[i]=xor8(byte,key[i])end end
  854. local function subBytes(state,s_box)for i,byte in next,state do state[i]=s_box[byte]end end
  855. local function shiftRows(state)state[5],state[6],state[7],state[8]=state[6],state[7],state[8],state[5]state[9],state[10],state[11],state[12]=state[11],state[12],state[9],state[10]state[13],state[14],state[15],state[16]=state[16],state[13],state[14],state[15]end
  856. local function inv_shiftRows(state)state[6],state[7],state[8],state[5]=state[5],state[6],state[7],state[8]state[11],state[12],state[9],state[10]=state[9],state[10],state[11],state[12]state[16],state[13],state[14],state[15]=state[13],state[14],state[15],state[16]end
  857. local function mixColumns(state)for cur=1,4 do local a,b,c,d=state[cur],state[cur+4],state[cur+8],state[cur+12]state[cur+0]=xor8(xor8(xor8(GF8x2[a],GF8x3[b]),c),d)state[cur+4]=xor8(xor8(xor8(a,GF8x2[b]),GF8x3[c]),d)state[cur+8]=xor8(xor8(xor8(a,b),GF8x2[c]),GF8x3[d])state[cur+12]=xor8(xor8(xor8(GF8x3[a],b),c),GF8x2[d])end end
  858. local function inv_mixColumns(state)for cur=1,4 do local a,b,c,d=state[cur],state[cur+4],state[cur+8],state[cur+12]state[cur+0]=xor8(xor8(xor8(GF8x14[a],GF8x11[b]),GF8x13[c]),GF8x9[d])state[cur+4]=xor8(xor8(xor8(GF8x9[a],GF8x14[b]),GF8x11[c]),GF8x13[d])state[cur+8]=xor8(xor8(xor8(GF8x13[a],GF8x9[b]),GF8x14[c]),GF8x11[d])state[cur+12]=xor8(xor8(xor8(GF8x11[a],GF8x13[b]),GF8x9[c]),GF8x14[d])end end
  859. local n, b = 32, 240
  860. local function schedule256(key)local expanded={}local tn=tonumber(key)key=tn and tn or parseToBytes(key)for c=0,n do local byte=key%256 expanded[c]=byte key=(key-byte)/256 end local i=1 local c=n local t1=expanded[1]local t2=expanded[2]local t3=expanded[3]local t4=expanded[4]while c<b do t1,t2,t3,t4=xor8(rcon[i],s[t2]),s[t3],s[t4],s[t1]i=i+1 for _=1,4 do c=c+1 t1=xor8(t1,expanded[c-n])expanded[c]=t1 c=c+1 t2=xor8(t2,expanded[c-n])expanded[c]=t2 c=c+1 t3=xor8(t3,expanded[c-n])expanded[c]=t3 c=c+1 t4=xor8(t4,expanded[c-n])expanded[c]=t4 end t1=s[t1]t2=s[t2]t3=s[t3]t4=s[t4]for _=1,4 do c=c+1 t1=xor8(t1,expanded[c-n])expanded[c]=t1 c=c+1 t2=xor8(t2,expanded[c-n])expanded[c]=t2 c=c+1 t3=xor8(t3,expanded[c-n])expanded[c]=t3 c=c+1 t4=xor8(t4,expanded[c-n])expanded[c]=t4 end end local roundKeys={}for round=0,14 do local roundKey={}for byte=1,16 do roundKey[byte]=expanded[round*16+byte]end roundKeys[round]=roundKey end return roundKeys end
  861. local function chunks(text,i)local first=i*16+1 if first>#text then return end i=i+1 local chunk={text:byte(first,first+15)}for j=#chunk+1,16 do chunk[j]=0 end return i,chunk end
  862. local function encrypt(state,roundKeys)addRoundKey(state,roundKeys[0])for round=1,13 do subBytes(state,s)shiftRows(state)mixColumns(state)addRoundKey(state,roundKeys[round])end subBytes(state,s)shiftRows(state)addRoundKey(state,roundKeys[14])end
  863. local function decrypt(state,roundKeys)addRoundKey(state,roundKeys[14])inv_shiftRows(state)subBytes(state,si)for round=13,1,-1 do addRoundKey(state,roundKeys[round])inv_mixColumns(state)inv_shiftRows(state)subBytes(state,si)end addRoundKey(state,roundKeys[0])end
  864. local function ECB_256(method,key,originaltext)local text={}local roundKeys=schedule256(key)for chunk,state in chunks,originaltext,0 do method(state,roundKeys)text[chunk]=string.char(unpack(state))end return table.concat(text)end
  865. local b, Base64 = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/', {}
  866. function baseEncode(data)return((data:gsub('.',function(x)local r,b='',x:byte()for i=8,1,-1 do r=r..(b%2^i-b%2^(i-1)>0 and'1'or'0')end return r end)..'0000'):gsub('%d%d%d?%d?%d?%d?',function(x)if(#x<6)then return''end local c=0 for i=1,6 do c=c+(x:sub(i,i)=='0'and 2^(6-i)or 0)end return b:sub(c+1,c+1)end)..({'','==','='})[#data%3+1])end
  867. function baseDecode(data)data=string.gsub(data,'[^'..b..'=]','')return(data:gsub('.',function(x)if(x=='=')then return''end local r,f='',(b:find(x)-1)for i=6,1,-1 do r=r..(f%2^i-f%2^(i-1)>0 and'1'or'0')end return r end):gsub('%d%d%d?%d?%d?%d?%d?%d?',function(x)if(#x~=8)then return''end local c=0 for i=1,8 do c=c+(x:sub(i,i)=='0'and 2^(8-i)or 0)end return string.char(c)end))end
  868. function AES.encrypt(originaltext)encData=baseEncode(ECB_256(encrypt,grabKey(),originaltext))return encData end
  869. function AES.decrypt(originaltext)data=ECB_256(decrypt,grabKey(),baseDecode(originaltext))data=data:gsub('[%p%c%s]','')return data end
  870.  
  871.  
  872. --// Anti Http-Spy
  873. local Disable = true
  874.  
  875. local function DisableFunc(func)
  876. if func then
  877. local old = func
  878. func = function(...)
  879. if not Disable then
  880. return old(...)
  881. end
  882. end
  883. local hook = hookfunction(func, function(...)
  884. if not Disable then
  885. return hook(...)
  886. end
  887. end)
  888. end
  889. end
  890.  
  891. -- Disables most output functions
  892. DisableFunc(print)
  893. DisableFunc(warn)
  894. DisableFunc(error)
  895. DisableFunc(setclipboard)
  896. DisableFunc(rconsoleprint)
  897. DisableFunc(rconsolewarn)
  898. DisableFunc(rconsoleerr)
  899. DisableFunc(printconsole)
  900. DisableFunc(rconsolename)
  901. DisableFunc(writefile)
  902. DisableFunc(appendfile)
  903.  
  904.  
  905. --// Anti Hooks
  906.  
  907. if (Exploit == "Synapse" and not isreadonly(syn)) then -- you can modify stuff in a table when its not readonly, so its just checking if the syn table is readonly
  908. report("RO", tostring(isreadonly(syn)))
  909. end
  910.  
  911. local function Compare(a, b) -- compare function, uses functions rather than operators, preventing things like an eq hook
  912. a, b = tostring(a), tostring(b)
  913. local alen, blen = string.len(a), string.len(b)
  914. local diff = alen - blen
  915. if string.find(a, b) and string.find(tostring(diff/0), "nan") then
  916. return true
  917. end
  918. return
  919. end
  920.  
  921. -- anti beaitufy
  922. local function GetInfo()
  923. return debug.getinfo(1)
  924. end
  925.  
  926. if GetInfo().func ~= GetInfo then
  927. -- they fucked the debug.getinfo
  928. report("debug.getinfo tamper", tostring(GetInfo))
  929. end
  930.  
  931. c = debug.getinfo(1).currentline
  932.  
  933. if c ~= 1 or not Compare(c, 1) then
  934. -- they fucked the formatting
  935. --report("beautified", tostring(c))
  936. end
  937.  
  938.  
  939. if os.time() <= 1602705157 or os.time() == math.huge then -- checks if os.time is above a threshold
  940. report("OT-THRESHOLD", tostring(os.time()))
  941. end
  942.  
  943. local BeganIncrementalChecks = false
  944. ot = os.time()
  945.  
  946. spawn(function() -- loops every one second, and checks if os.time has increased, if not, report
  947. BeganIncrementalChecks = true
  948. while wait(2.1) do
  949. if os.time() <= ot then
  950. report("OT-JUMP", tostring(ot).." "..tostring(os.time()))
  951. end
  952. ot = os.time()
  953. end
  954. end)
  955.  
  956. wait()
  957. if not BeganIncrementalChecks then -- makes sure the spawn started
  958. report("SPAWN-HOOK-OT", tostring(BeganIncrementalChecks))
  959. end
  960.  
  961. local TimeZone = os.difftime(tick(), os.time())/3600 -- gets the time zone
  962.  
  963. if TimeZone < -12 or TimeZone > 14 then -- makes sure the time zone is valid
  964. report("TZ", TimeZone)
  965. end
  966.  
  967. local Lengths = {math.random(3, 15), math.random(3, 15), math.random(3, 15)} -- defines some random numbers for later
  968.  
  969. local function GenerateName(length) -- function to generate a randomized string with a specified length
  970. local chars = "AaBbCcDdEeFfGgHhIiJjKkLlMmNnOoPpQqRrSsTtUuVvWwXxYyZz1234567890"
  971. local things = {}
  972. local Output = ""
  973. local amount = #chars
  974. local s = chars:split("")
  975.  
  976. for i = 1, length do
  977. table.insert(things, math.random(1, amount))
  978. end
  979.  
  980. for i = 1, amount do
  981. if table.find(things, i) then
  982. Output = Output .. s[i]
  983. end
  984. end
  985.  
  986. local diff = length - #Output
  987.  
  988. if diff > 0 then
  989. Output = Output..s[math.random(1, #s)]:rep(diff)
  990. end
  991.  
  992. return Output
  993. end
  994.  
  995. for i,v in next, Lengths do -- makes sure all of the strings are the correct length, if not, report/crash
  996. local a = GenerateName(v)
  997. if string.len(a) ~= v or not Compare(string.len(a), v) then
  998. report("len", tostring(string.len(a)).." "..tostring(v))
  999. end
  1000. end
  1001.  
  1002. local str = GenerateName(32).."#".."=".."]".."*" -- generates a random string and adds characters to the end to check
  1003.  
  1004. if not string.find(str, "#") or not string.find(str, "=") or not string.find(str, "]") or not string.find(str, "*") then -- checks if the string contains those characters
  1005. report("find", str)
  1006. end
  1007.  
  1008. if tick() <= 1602691638 or tick() == math.huge then -- make sure tick is above a threshold
  1009. report("TICK-THRESHOLD", tostring(tick()))
  1010. end
  1011.  
  1012. local t = tick()
  1013.  
  1014. local BeganIncrementalChecks = false
  1015.  
  1016. spawn(function() -- same thing as I did for os.time, just checking if tick has increased over a 1 second increment
  1017. BeganIncrementalChecks = true
  1018. while wait(1) do
  1019. if tick() <= t then
  1020. report("TICK", tostring(t).." "..tostring(tick()))
  1021. t = tick()
  1022. end
  1023. end
  1024. end)
  1025.  
  1026. wait()
  1027.  
  1028. if not BeganIncrementalChecks then -- makes sure the spawn started
  1029. report("SPAWN-HOOK-TICK", tostring(BeganIncrementalChecks))
  1030. end
  1031.  
  1032. local tstest = math.random(1, 10) -- makes sure tostring isnt being hooked by checking type, and other stuff
  1033. if (typeof(tostring(tstest)) ~= "string" or not Compare(typeof(tostring(tstest)), "string")) or (tostring(tstest) ~= string.format(tstest, "%d") or not Compare(tostring(tstest), string.format(tstest, "%d"))) then
  1034. report("ts", tostring(tstest))
  1035. end
  1036.  
  1037. local BeganSpawn = false
  1038.  
  1039. spawn(function() -- anti hook for jsondecode
  1040. BeganSpawn = true
  1041. for i = 1, 10 do
  1042. local mega, gay = GenerateName(math.random(5, 15)), GenerateName(math.random(5, 15)) -- defines random var stuff
  1043. local a, b = math.random(1, 2) == 1 and GenerateName(math.random(5, 15)) or tostring(math.random(5, 75)), math.random(1, 2) == 1 and GenerateName(math.random(5, 15)) or tostring(math.random(5, 75)) -- defines more random stuff
  1044. local mrob, epic = a, b
  1045. if not tonumber(mrob) then -- make strings have quotation marks (for json format)
  1046. mrob = '"'..mrob..'"'
  1047. end
  1048. if not tonumber(b) then -- make strings have quotation marks (for json format)
  1049. epic = '"'..epic..'"'
  1050. end
  1051. local JSONCheck = '{"'..mega..'":'..mrob..',"'..gay..'":'..epic..'}' -- makes a json string to check
  1052. local Decoded = game:GetService("HttpService"):JSONDecode(JSONCheck) -- decodes our json string
  1053.  
  1054. if not Decoded[mega] or not Decoded[gay] then -- makes sure everything we put is still there
  1055. report("JDecode", "nil")
  1056. end
  1057.  
  1058. if tostring(Decoded[mega]) ~= tostring(a) or not Compare(tostring(Decoded[mega]), tostring(a)) then -- checking that the value is equal
  1059. report("JDecode", tostring(Decoded[mega]))
  1060. end
  1061.  
  1062. if tostring(Decoded[gay]) ~= tostring(b) or not Compare(tostring(Decoded[gay]),tostring(b)) then -- checking that the value is equal
  1063. report("JDecode", tostring(Decoded[gay]))
  1064. end
  1065. wait()
  1066. end
  1067. end)
  1068.  
  1069. wait()
  1070.  
  1071. if not BeganSpawn then -- makes sure the spawn started
  1072. report("SPAWN", tostring(BeganSpawn))
  1073. end
  1074.  
  1075. sanityTime = tostring(Get(website.."sanity.lua"))
  1076. curTime = tostring(os.time()):sub(1,-5)
  1077.  
  1078. -- sanity check sometimes is off by one, this is the fix
  1079. local function CheckSanity(sanity, original)
  1080. if (sanity == original and Compare(sanity, original)) or (sanity + 1 == original and Compare(sanity + 1, original)) or (sanity - 1 == original and Compare(sanity - 1, original)) then
  1081. return true
  1082. end
  1083. return false
  1084. end
  1085.  
  1086. if not CheckSanity(sanityTime, curTime) then -- sanity check
  1087. failReport("Sanity Check Failed", "Sanity Time: ".. sanityTime.. " Time on Syanpse:" .. curTime)
  1088. end
  1089.  
  1090. --// Anti JMP
  1091.  
  1092. local function jmp(v1) -- anti jmp function, returns some important script variables, you'll implement this table into the script to make sure it wasnt jmped
  1093. if Compare(v1, true) and v1 == true then
  1094. return {game:GetService("CollectionService"), game:GetService("PathfindingService"), table.insert, table.remove}
  1095. else
  1096. report('jmp')
  1097. end
  1098. end
  1099.  
  1100. local rand = math.random(1, 4)
  1101. local randcheck = rand == 3 and Compare(rand, 3)
  1102. if randcheck then
  1103. gamer = jmp(randcheck)
  1104. end
  1105.  
  1106. --// Anti EQ
  1107.  
  1108. function eq(v1,v2,crash) -- this function checks if something is equal to another thing but with a lot of stuff so it confuses anyone trying to crack
  1109. if type(v1) ~= type(v2) then
  1110. if crash then
  1111. return report('eq1',v1..' '..v2)
  1112. end
  1113. return false
  1114. end
  1115. if v1 ~= v2 then
  1116. if crash then
  1117. return report('eq2',v1..' '..v2)
  1118. end
  1119. return false
  1120. end
  1121. v1, v2 = tostring(v1), tostring(v2)
  1122. if v2:reverse() ~= v1:reverse() then
  1123. if crash then
  1124. return report('eq3',v1..' '..v2)
  1125. end
  1126. return false
  1127. end
  1128. for i = 1, 1 do
  1129. eqdep = math.random(1,4)
  1130. eqdep = 1
  1131. for _i = 1, eqdep do
  1132. if _i == 1 then
  1133. if v1:len() ~= v2:len() then
  1134. if crash then
  1135. report('eq',v1..' '..v2)
  1136. end
  1137. return false
  1138. elseif v1:reverse() ~= v2:reverse() then
  1139. if crash then
  1140. report('eq',v1..' '..v2)
  1141. end
  1142. return false
  1143. elseif v2:len() ~= v1:len() then
  1144. if crash then
  1145. report('eq',v1..' '..v2)
  1146. end
  1147. return false
  1148. elseif v2:reverse() == v1:reverse() then
  1149. if Compare(v1,v2) and v1 == v2 then
  1150. return true
  1151. else
  1152. if crash then
  1153. report('eqC',v1..' '..v2)
  1154. end
  1155. return false
  1156. end
  1157. else
  1158. if crash then
  1159. report('eq',v1..' '..v2)
  1160. end
  1161. return false
  1162. end
  1163. elseif _i == 2 then
  1164. if v1:len() ~= v2:len() then
  1165. if crash then
  1166. report('eq',v1..' '..v2)
  1167. end
  1168. return false
  1169. elseif v1:reverse() ~= v2:reverse() then
  1170. if crash then
  1171. report('eq',v1..' '..v2)
  1172. end
  1173. return false
  1174. elseif v2:len() ~= v1:len() then
  1175. if crash then
  1176. report('eq',v1..' '..v2)
  1177. end
  1178. return false
  1179. elseif v2:reverse() == v1:reverse() then
  1180. if crash then
  1181. report('eq',v1..' '..v2)
  1182. end
  1183. return false
  1184. else
  1185. if crash then
  1186. report('eq',v1..' '..v2)
  1187. end
  1188. return false
  1189. end
  1190. elseif _i == 3 then
  1191. if v1:len() ~= v2:len() then
  1192. if crash then
  1193. report('eq',v1..' '..v2)
  1194. end
  1195. return false
  1196. elseif v1:reverse() ~= v2:reverse() then
  1197. if crash then
  1198. report('eq',v1..' '..v2)
  1199. end
  1200. return false
  1201. elseif v2:len() ~= v1:len() then
  1202. if crash then
  1203. report('eq',v1..' '..v2)
  1204. end
  1205. return false
  1206. elseif v2:reverse() == v1:reverse() then
  1207. if crash then
  1208. report('eq',v1..' '..v2)
  1209. end
  1210. return false
  1211. else
  1212. if crash then
  1213. report('eq',v1..' '..v2)
  1214. end
  1215. return false
  1216. end
  1217. elseif _i == 4 then
  1218. if v1:len() ~= v2:len() then
  1219. if crash then
  1220. report('eq',v1..' '..v2)
  1221. end
  1222. return false
  1223. elseif v1:reverse() ~= v2:reverse() then
  1224. if crash then
  1225. report('eq',v1..' '..v2)
  1226. end
  1227. return false
  1228. elseif v2:len() ~= v1:len() then
  1229. if crash then
  1230. report('eq',v1..' '..v2)
  1231. end
  1232. return false
  1233. elseif v2:reverse() == v1:reverse() then
  1234. if crash then
  1235. report('eq',v1..' '..v2)
  1236. end
  1237. return false
  1238. else
  1239. if crash then
  1240. report('eq',v1..' '..v2)
  1241. end
  1242. return false
  1243. end
  1244. end
  1245. end
  1246. end
  1247. end
  1248.  
  1249. --// roblox id checks
  1250.  
  1251. function idCheck()
  1252. if Compare(me.userId, me.UserId) then
  1253. return true;
  1254. elseif pcall(function() return me.userid end) then
  1255. return true;
  1256. end
  1257.  
  1258. if Compare(me.CharacterAppearanceId, me.UserId) then
  1259. return true;
  1260. end;
  1261.  
  1262. if Compare(plrs:GetPlayerByUserId(me.userId), me) then
  1263. return true
  1264. end;
  1265.  
  1266. if Compare(plrs:GetNameFromUserIdAsync(me.UserId), me.Name) then
  1267. return true;
  1268. end;
  1269.  
  1270. if Compare(plrs:GetUserIdFromNameAsync(me.Name), me.UserId) then
  1271. return true;
  1272. end;
  1273. return false
  1274. end
  1275.  
  1276. spawn(function()
  1277. while wait(15) do
  1278. if not idCheck() then
  1279. report("RBLX ID Spoofed", "bad boys smh")
  1280. end
  1281. local w = "https://api.roblox.com/users/get-by-username?username="..tostring(me.Name)
  1282. local s = (game:GetService("HttpService"):JSONDecode(Get(w, "GET")))
  1283. if not Compare(s.Username, me.Name) then
  1284. report("RBLX Name Spoofed", "API User: "..tostring(s.Username).." Local Name: "..tostring(me.Name))
  1285. elseif not Compare(s.Id, me.userId) then
  1286. report("RBLX Name Spoofed", "API User: "..tostring(s.Id).." Local Name: "..tostring(me.userId))
  1287. end
  1288. end
  1289. end)
  1290.  
  1291. --// Responses
  1292.  
  1293. data2 = math.random(40000000,43424201)
  1294. local wanted
  1295.  
  1296. local function GrabRes() -- gets response with some additional stuff
  1297. wanted = tostring(grabData()+data2)
  1298. return game:GetService("HttpService"):JSONDecode(Get(website.."auth.lua?key="..tostring(key).."&id="..tostring(id).."&rid="..tostring(me.UserId).."&data=".. baseEncode(tostring(data2))))
  1299. end
  1300.  
  1301. local res = GrabRes()
  1302.  
  1303. local rand = math.random(1, 4)
  1304. local randcheck = rand == 2 and Compare(rand, 2)
  1305. if not gamer and randcheck then
  1306. gamer = jmp(randcheck)
  1307. end
  1308.  
  1309. if res.data == "invalid key" then
  1310. return failReport("Invalid Key or ID", false) -- invalid key
  1311. elseif res.data == "invalid hwid" then
  1312. return failReport("Invalid HWID", false) -- invalid hwid
  1313. elseif res.data == "invalid roblox ID" then
  1314. return failReport("Invalid Roblox ID", false) -- invalid roblox id
  1315. elseif res.data == "invalid script" then
  1316. return failReport("Invalid Script", false) -- invalid roblox id
  1317. elseif res.data == "timesettings" then
  1318. return failReport("Bad Time Settings", false) -- invalid roblox id
  1319. end
  1320.  
  1321. if res.signature ~= tostring(os.time()):sub(1,-4) then -- checks signature from the response
  1322. res = GrabRes()
  1323. end
  1324.  
  1325. data = AES.decrypt(res.data) -- decrypts the data from the response using AES
  1326.  
  1327. if not gamer then
  1328. gamer = jmp(true)
  1329. end
  1330.  
  1331. if not eq(data, wanted) then
  1332. res = GrabRes()
  1333.  
  1334. if res.signature ~= tostring(os.time()):sub(1,-4) then
  1335. res = GrabRes()
  1336. end
  1337.  
  1338. data = AES.decrypt(res.data)
  1339. end
  1340.  
  1341. if eq(data, wanted, true) then -- main whitelisted check
  1342. --Debug("Authentication Check 1", "Success")
  1343.  
  1344. if eq(data, wanted, true) then -- gamer has 4 required varaiables for the script
  1345. if not gamer then
  1346. report("JMP", "1")
  1347. end
  1348. --Debug("Authentication Check 2", "Success")
  1349. Debug("Successfully Authenticated", string.format("Took %s Seconds to Authenticate", tick() - start))
  1350.  
  1351.  
  1352. -- script here
  1353. --PSU_MAX_SECURITY_END();
  1354. local stuffTransparency = 1
  1355. local abilityRange = _G.abilityRange
  1356. local mobRange = _G.mobRange
  1357. local bossRange = _G.bossRange
  1358. local extremelyFast = _G.extremelyFast
  1359. local walkspeed = 30
  1360. local insert = gamer[3]
  1361. local remove = gamer[4]
  1362.  
  1363. local bossRaid = false
  1364. local normalDungeon = true
  1365. local waveDefense = false
  1366. local eggEvent = false
  1367. if sDebug then
  1368. stuffTransparency = .5
  1369. end
  1370. -- stops loops when dungeon progress changes
  1371. local gameOver = false
  1372. -- variable for hitbox
  1373. local bossPresent = false
  1374. -- follow path variables
  1375. _G.auto_attack = true
  1376. _G.smallTeleportVal = 15
  1377.  
  1378. -- expiermental instakilltable
  1379. local instakillTable = {
  1380. ["Sand Peasant"] = true,
  1381. ["Sand Giant"] = true,
  1382. ["Frost Minion"] = true,
  1383. ["Frost Wizard"] = true,
  1384. ["Pirate Rifleman"] = true,
  1385. ["Pirate Savage"] = true,
  1386. ["Elementalist"] = true,
  1387. ["King's Guard"] = true,
  1388. ["Dark Mage"] = true,
  1389. ["Demon Warrior"] = true,
  1390. ["Samurai Swordsman"] = true,
  1391. ["Bodyguard"] = true,
  1392. ["Burly Enforcer"] = true,
  1393. ["Raider"] = true,
  1394. ["Harpoon Gunner"] = true,
  1395. ["Cannon Crab"] = true,
  1396. ["Spinner Bot"] = true,
  1397. ["Fighter Bot"] = true,
  1398. ["Cog Shooter"] = true,
  1399. ["Hammer Bot"] = true,
  1400. ["Hologram Assassin"] = true,
  1401. ["Hologram Warrior"] = true,
  1402. ["Chicken Mage"] = true,
  1403. ["Chicken Brawler"] = true,
  1404. }
  1405.  
  1406.  
  1407. local VirtualUser=game:service'VirtualUser' -- afk
  1408. game:service'Players'.LocalPlayer.Idled:connect(function()
  1409. VirtualUser:CaptureController()
  1410. VirtualUser:ClickButton2(Vector2.new())
  1411. end)
  1412.  
  1413. local vu = game:GetService("VirtualUser") -- second afk script
  1414. game:GetService("Players").LocalPlayer.Idled:connect(function()
  1415. vu:Button2Down(Vector2.new(0,0),workspace.CurrentCamera.CFrame)
  1416. wait(1)
  1417. vu:Button2Up(Vector2.new(0,0),workspace.CurrentCamera.CFrame)
  1418. end)
  1419.  
  1420. function AIMovementInLobby()
  1421. local clock = 0
  1422. local doneMoving = false
  1423. _G.ai_done = false
  1424. local zombie = game.Players.LocalPlayer.Character
  1425. local Zombiehumanoid = zombie.Humanoid
  1426. spawn(function()
  1427. local PathfindingService = game:GetService("PathfindingService")
  1428. local randomWayPoints = {
  1429. {
  1430. Vector3.new(29.4448986, 10.6809521, 1005.28198),
  1431. },
  1432. {
  1433. Vector3.new(120.158272, 5.05413818, 1005.26672),
  1434. },
  1435. {
  1436. Vector3.new(145.121567, 4.79999876, 1028.203),
  1437. },
  1438. {
  1439. Vector3.new(138.910416, 4.85120726, 1080.46936),
  1440. },
  1441. {
  1442. Vector3.new(50.0033913, 5.40119982, 1025.59448),
  1443. Vector3.new(12.7496023, 4.94986296, 1046.24768),
  1444. },
  1445. {
  1446. Vector3.new(56.9857826, 5.10824966, 1066.79846),
  1447. Vector3.new(40.124321, 5, 1055.27551),
  1448. },
  1449. {
  1450. Vector3.new(28.1154366, 4.8208971, 1041.24829),
  1451. },
  1452. {
  1453. Vector3.new(8.27422428, 4.80000019, 1034.32092),
  1454. Vector3.new(-36.9196014, 4.80000019, 1022.45972),
  1455. Vector3.new(-93.4016876, 5.84888077, 1107.07776),
  1456. Vector3.new(-134.147461, 5.84888077, 1080.1228),
  1457. },
  1458. {
  1459. Vector3.new(8.27422428, 4.80000019, 1034.32092),
  1460. Vector3.new(-36.9196014, 4.80000019, 1022.45972),
  1461. Vector3.new(-69.0564728, 5.87887812, 1101.21545),
  1462. },
  1463. {
  1464. Vector3.new(8.27422428, 4.80000019, 1034.32092),
  1465. Vector3.new(-36.9196014, 4.80000019, 1022.45972),
  1466. Vector3.new(-57.2358208, 5.81887817, 1059.91345),
  1467. },
  1468. {
  1469. Vector3.new(104.851845, 4.80013657, 1029.08655),
  1470. Vector3.new(66.5649185, 11.1366758, 981.947205),
  1471. Vector3.new(58.9183998, 15.5042267, 969.327759),
  1472. },
  1473. {
  1474. Vector3.new(106.917046, 5.1029253, 1033.20129),
  1475. Vector3.new(126.421371, 4.80742407, 1017.41754),
  1476. Vector3.new(109.249374, 4.99999857, 998.975525),
  1477. },
  1478. {
  1479. Vector3.new(37.6123543, 5.1142168, 1041.55664),
  1480. Vector3.new(8.08811092, 11.3835154, 1087.04956),
  1481. Vector3.new(3.8377471, 4.81672573, 1051.76331),
  1482. },
  1483. {
  1484. Vector3.new(74.2765732, 4.79785824, 1034.74109),
  1485. Vector3.new(59.2142448, 5, 1081.58557),
  1486. Vector3.new(23.250845, 5.6657753, 1021.79108),
  1487. },
  1488. {
  1489. Vector3.new(75.4334259, 5.07404947, 1048.54626),
  1490. Vector3.new(59.5415268, 9.24949932, 1002.75214),
  1491. Vector3.new(21.7118225, 26.9064331, 982.54895),
  1492. },
  1493. {
  1494. Vector3.new(86.8510361, 4.95114946, 1012.60217),
  1495. Vector3.new(78.8645248, 5.21786928, 1063.84338),
  1496. Vector3.new(39.1454849, 5, 1062.37744),
  1497. },
  1498. {
  1499. Vector3.new(85.5781631, 5.19999838, 1044.32336),
  1500. Vector3.new(7.32494354, 4.79999876, 1031.84668),
  1501. Vector3.new(-16.918314, 7.10381889, 999.609253),
  1502. },
  1503. {
  1504. Vector3.new(85.5781631, 5.19999838, 1044.32336),
  1505. Vector3.new(7.32494354, 4.79999876, 1031.84668),
  1506. Vector3.new(-60.5333252, 4.90647602, 1025.54321),
  1507. },
  1508. {
  1509. Vector3.new(85.5781631, 5.19999838, 1044.32336),
  1510. Vector3.new(7.32494354, 4.79999876, 1031.84668),
  1511. Vector3.new(-76.8479233, 4.87704134, 1009.79724),
  1512. },
  1513. {
  1514. Vector3.new(116.443657, 5.34364605, 1031.54187),
  1515. Vector3.new(136.55043, 4.80000019, 1068.89758),
  1516. Vector3.new(96.5291367, 5.04907751, 1055.71301),
  1517. },
  1518. {
  1519. Vector3.new(136.55043, 4.80000019, 1068.89758),
  1520. Vector3.new(96.5291367, 5.04907751, 1055.71301),
  1521. Vector3.new(116.443657, 5.34364605, 1031.54187),
  1522. },
  1523. {
  1524. Vector3.new(84.3650131, 4.95895767, 1011.05023),
  1525. Vector3.new(28.3323727, 5.77999735, 1021.42993),
  1526. Vector3.new(32.4552689, 5, 1067.22888),
  1527. },
  1528. }
  1529. -- Variables for the zombie, its humanoid, and destination
  1530.  
  1531.  
  1532.  
  1533. for i,v in pairs(randomWayPoints[math.random(1,#randomWayPoints)]) do
  1534. local path = PathfindingService:CreatePath()
  1535. -- Compute the path
  1536. path:ComputeAsync(zombie.HumanoidRootPart.Position, v)
  1537. local waypoints = path:GetWaypoints()
  1538. -- Get the path waypoints
  1539.  
  1540. local wayPointParts = {}
  1541. -- Loop through waypoints
  1542. local number2 = 0
  1543. for _, waypoint in pairs(waypoints) do
  1544. if _G.ai_done then break end
  1545. number2 = number2 + .5
  1546. local part = Instance.new("Part")
  1547. part.Shape = "Ball"
  1548. part.Material = "Neon"
  1549. local number = (math.sin(number2) + 1.5) /2
  1550. part.Size = Vector3.new(number, number, number)
  1551. part.Position = waypoint.Position
  1552. part.Anchored = true
  1553. part.CanCollide = false
  1554. part.Parent = game.Workspace
  1555. insert(wayPointParts, part)
  1556. end
  1557.  
  1558. for i, waypoint in pairs(waypoints) do
  1559. if _G.ai_done then break end
  1560. wayPointParts[i].BrickColor = BrickColor.new("Bright blue")
  1561. Zombiehumanoid:MoveTo(waypoint.Position)
  1562. Zombiehumanoid.MoveToFinished:Wait()
  1563. wayPointParts[i].BrickColor = BrickColor.new("Fire Yellow")
  1564. end
  1565. end
  1566. doneMoving = true
  1567. end)
  1568. while not(doneMoving or clock >_G.maxWaitTimeInLobby) do
  1569. clock = clock+.1
  1570. wait(.1)
  1571. end
  1572. _G.ai_done = true
  1573. Zombiehumanoid:MoveTo(zombie.HumanoidRootPart.Position)
  1574. end
  1575.  
  1576. function autoupgrade()
  1577. if _G.auto_stat_upgrade then
  1578. if game.Players.LocalPlayer.skillPoints.Value > 0 then
  1579. while game.Players.LocalPlayer.skillPoints.Value > 0 do
  1580. game:GetService("ReplicatedStorage").remotes.spendSkillPoint:FireServer(_G.stat)
  1581. wait()
  1582. end
  1583. end
  1584. end
  1585. end
  1586.  
  1587. function getItemType(v, includeHealth)
  1588. if v.health == nil then -- is a weapon
  1589. if v.spellPower < v.physicalDamage then
  1590. return "physical"
  1591. else
  1592. return "mage"
  1593. end
  1594. else -- is an armor
  1595. if v.spellPower > v.physicalPower then
  1596. if includeHealth then
  1597. if v.spellPower > v.health then
  1598. return "mage"
  1599. else
  1600. return "guardian"
  1601. end
  1602. else
  1603. return "mage"
  1604. end
  1605. else
  1606. if includeHealth then
  1607. if v.physicalPower > v.health then
  1608. return "physical"
  1609. else
  1610. return "guardian"
  1611. end
  1612. else
  1613. return "physical"
  1614. end
  1615. end
  1616. end
  1617. end
  1618.  
  1619. function lobbyStrCheck(a, b)
  1620. local la, lb = string.lower(a), string.lower(b)
  1621. la = string.gsub(la, "'", "") -- remove ' from item name
  1622. lb = string.gsub(lb, "'", "") -- remove ' from item name
  1623. la = string.gsub(la, "s", "") -- remove s from item name
  1624. lb = string.gsub(lb, "s", "") -- remove s from item name
  1625. return la == lb
  1626. end
  1627.  
  1628. function checkSell(rare, name) -- vital function
  1629. for itemName,rareTable in pairs(_G.itemlist) do
  1630. if lobbyStrCheck(itemName, name) then
  1631. for _, j in pairs(rareTable) do
  1632. if rare == j then
  1633. return false
  1634. end
  1635. end
  1636. end
  1637. end
  1638. return not _G.keeprarities[rare]
  1639. end
  1640.  
  1641. local function sell() -- autosell script bring all together
  1642. if _G.autosell then
  1643. local tallyList = {}
  1644. local itemType, gitems
  1645. gitems = getPlayerInvy(game.Players.LocalPlayer)
  1646. for itemFolderName,itemFolder in pairs(gitems) do
  1647. gitems = getPlayerInvy(game.Players.LocalPlayer)
  1648. if itemFolderName == "weapons" or itemFolderName == "chests" or itemFolderName == "helmets" then
  1649. for i, item in pairs(itemFolder) do
  1650. itemType = getItemType(item, false)
  1651. local itemTypeCheck = not _G.keep_items_from_class[itemType]
  1652. if not item.equipped and (checkSell(item.rarity, item.name) and item.levelReq < _G.keep_items_level_requirement and itemTypeCheck) then
  1653. if itemFolderName == "weapons" then
  1654. if _G.testSell then
  1655. print('MROBSWAG Selling: ', item.name)
  1656. else
  1657. game:GetService("ReplicatedStorage").remotes.sellItemEvent:FireServer({ ["ability"]= { }, ["helmet"]= { }, ["chest"]= { }, ["weapon"]= { (tonumber(string.sub(i, 8))) } })
  1658. end
  1659. elseif itemFolderName == "chests" then
  1660. if _G.testSell then
  1661. print('MROBSWAG Selling: ', item.name)
  1662. else
  1663. game:GetService("ReplicatedStorage").remotes.sellItemEvent:FireServer({ ["ability"]= { }, ["helmet"]= { }, ["chest"]= { (tonumber(string.sub(i, 7))) }, ["weapon"]= { } })
  1664. end
  1665. elseif itemFolderName == "helmets" then
  1666. if _G.testSell then
  1667. print('MROBSWAG Selling: ', item.name)
  1668. else
  1669. game:GetService("ReplicatedStorage").remotes.sellItemEvent:FireServer({ ["ability"]= { }, ["helmet"]= { (tonumber(string.sub(i, 8))) }, ["chest"]= { }, ["weapon"]= { } })
  1670. end
  1671. end
  1672. end
  1673. end
  1674. end
  1675. if itemFolderName == "abilities" then
  1676. for i, item in pairs(gitems.abilities) do
  1677. if tallyList[item.name] then
  1678. tallyList[item.name] = tallyList[item.name] +1
  1679. else
  1680. tallyList[item.name] = 1
  1681. end
  1682. if not item.equipped.q and not item.equipped.e then
  1683. if (checkSell(item.rarity, item.name) and item.levelReq < _G.keep_items_level_requirement) or (((tallyList[item.name] > 2) and _G.keep2spells)) then
  1684. if _G.testSell then
  1685. print('MROBSWAG Selling: ', item.name)
  1686. else
  1687. game:GetService("ReplicatedStorage").remotes.sellItemEvent:FireServer({ ["ability"]= {(tonumber(string.sub(i, 9))) }, ["helmet"]= { }, ["chest"]= { }, ["weapon"]= { } })
  1688. end
  1689. end
  1690. end
  1691. end
  1692. end
  1693. end
  1694. end
  1695. end
  1696.  
  1697.  
  1698. local function calculatePot(baseStat, maxUpgrade)
  1699. local upgradeLevel = 1
  1700. for i= 1, maxUpgrade do
  1701. upgradeLevel = baseStat * .05
  1702. if upgradeLevel >10 then
  1703. upgradeLevel = 10
  1704. end
  1705. baseStat = baseStat + upgradeLevel
  1706. end
  1707. return math.floor(baseStat)
  1708. end
  1709.  
  1710. local function calcCost(totalUpg, currentUpgrade)
  1711. local i = 0
  1712. local r = 100
  1713. for o = 1, totalUpg, 1 do
  1714. local a = 0
  1715. if (o > 1) then
  1716. local s = 1.06 * r + 50
  1717. if (220 < s - r) then
  1718. a = r + 220
  1719. else
  1720. a = s
  1721. end
  1722. else
  1723. a = r
  1724. end
  1725. if currentUpgrade < o then
  1726. if o <= 466 then
  1727. i = i + a
  1728. else
  1729. i = i + 100000
  1730. a = 100000
  1731. end
  1732. end
  1733. r = a
  1734. end
  1735. return i
  1736. end
  1737.  
  1738. function autoUpgradeEquip(equipType)
  1739. if _G.auto_upgrade_equip then
  1740.  
  1741. local gitems = getPlayerInvy(game.Players.LocalPlayer)
  1742. if equipType == "chests" then
  1743. for i,v in pairs(gitems.chests) do
  1744. local upgradeAmount = v.maxUpgrades - v.currentUpgrade
  1745. if v.equipped and upgradeAmount ~= 0 then
  1746. if v.spellPower > v.physicalPower then
  1747. game:GetService("ReplicatedStorage").remotes.upgradeItem:FireServer("chest", (tonumber(string.sub(i, 7))), "spell", upgradeAmount)
  1748. else
  1749. game:GetService("ReplicatedStorage").remotes.upgradeItem:FireServer("chest", (tonumber(string.sub(i, 7))), "physical", upgradeAmount)
  1750. end
  1751. end
  1752. end
  1753. elseif equipType == "helmets" then
  1754. for i,v in pairs(gitems.helmets) do
  1755. local upgradeAmount = v.maxUpgrades - v.currentUpgrade
  1756. if v.equipped and upgradeAmount ~= 0 then
  1757. if v.spellPower > v.physicalPower then
  1758. game:GetService("ReplicatedStorage").remotes.upgradeItem:FireServer("helmet", (tonumber(string.sub(i, 8))), "spell", upgradeAmount)
  1759. else
  1760. game:GetService("ReplicatedStorage").remotes.upgradeItem:FireServer("helmet", (tonumber(string.sub(i, 8))), "physical", upgradeAmount)
  1761. end
  1762. end
  1763. end
  1764. elseif equipType == "weapons" then
  1765. for i,v in pairs(gitems.weapons) do
  1766. local upgradeAmount = v.maxUpgrades - v.currentUpgrade
  1767. if v.equipped and upgradeAmount ~= 0 then
  1768. if v.spellPower > v.physicalDamage then
  1769. game:GetService("ReplicatedStorage").remotes.upgradeItem:FireServer("weapon", (tonumber(string.sub(i, 8))), "spell", upgradeAmount)
  1770. else
  1771. game:GetService("ReplicatedStorage").remotes.upgradeItem:FireServer("weapon", (tonumber(string.sub(i, 8))), "physical", upgradeAmount)
  1772. end
  1773. end
  1774. end
  1775. end
  1776. end
  1777. end
  1778.  
  1779.  
  1780. local function _equipBestSpell(spellArray, typ)
  1781. local bestVal, best, b = 0, nil
  1782. for i,v in pairs(spellArray) do
  1783. if v.name ~= "skip" then -- if i renamed a item to skip then dont compare it
  1784. local d = v.description:lower()
  1785. if d:find("spell") and typ == "spell" then -- if the description contains spell, then its probably a spellpower one
  1786. if v.levelReq > bestVal then
  1787. bestVal = v.levelReq
  1788. best = i
  1789. b = v.name
  1790. end
  1791. elseif d:find("physical") and typ == "physical" then -- if the description contains phyiscal, then its probably a phyiscal one
  1792. if v.levelReq > bestVal then
  1793. bestVal = v.levelReq
  1794. best = i
  1795. b = v.name
  1796. end
  1797. end
  1798. end
  1799. end
  1800. return best, b
  1801. end
  1802.  
  1803. local function equipBestSpell()
  1804. if _G.autoEquipSpell then
  1805. local gitems = getPlayerInvy(game.Players.LocalPlayer)
  1806. local gabil = gitems.abilities
  1807. local aBest, aName = _equipBestSpell(gabil, _G.spellType:lower()) -- finds ability with highest level
  1808. for i,v in pairs(gitems.abilities) do -- remove one ability
  1809. if v.name == aName then
  1810. v.name = "skip"
  1811. break
  1812. end
  1813. end
  1814. local bBest, bName = _equipBestSpell(gabil, _G.spellType:lower()) -- finds another ability with highest level
  1815. if aBest ~= nil and bBest ~= nil then
  1816. print(bBest, aBest)
  1817. game:GetService("ReplicatedStorage").remotes.equipItem:InvokeServer("ability", (tonumber(string.sub(aBest, 9))), "q") -- equips ability
  1818. wait(1)
  1819. game:GetService("ReplicatedStorage").remotes.equipItem:InvokeServer("ability", (tonumber(string.sub(bBest, 9))), "e") -- equips ability
  1820. end
  1821. end
  1822. end
  1823.  
  1824. local function autoEquipLvlGear()
  1825. if _G.auto_equip_gear then
  1826. print('autoEquip')
  1827. local playerLevel = game.Players.LocalPlayer.leaderstats.Level.Value
  1828. local gitems = getPlayerInvy(game.Players.LocalPlayer)
  1829. local bestDamage = 0 -- CHESTS
  1830. local bestEquip = nil
  1831. if gitems.chests ~= nil then
  1832. local gold = game.Players.LocalPlayer.leaderstats.Gold.Value
  1833. for i,v in pairs(gitems.chests) do
  1834. local upgradeAmount = v.maxUpgrades - v.currentUpgrade
  1835. if _G.equip_type == "spell" and v.levelReq <= playerLevel and v.spellPower > v.physicalPower then
  1836. local upgradeAmount = v.maxUpgrades - upgradeAmount
  1837. local tempNum = calculatePot(v.spellPower, v.maxUpgrades, i)
  1838. local canAfford = false
  1839. if calcCost(v.maxUpgrades, v.currentUpgrade) < gold then
  1840. canAfford = true
  1841. end
  1842. if (tempNum > bestDamage and canAfford) or (bestDamage < v.spellPower) then
  1843. bestDamage = tempNum
  1844. bestEquip = i
  1845. end
  1846. end
  1847. if _G.equip_type == "physical" and v.levelReq <= playerLevel and v.physicalPower > v.spellPower then
  1848. local tempNum = calculatePot(v.physicalPower, upgradeAmount)
  1849. local canAfford = false
  1850. if calcCost(v.maxUpgrades, v.currentUpgrade) < gold then
  1851. canAfford = true
  1852. end
  1853. if (tempNum > bestDamage and canAfford) or (bestDamage < v.physicalPower) then
  1854. bestDamage = tempNum
  1855. bestEquip = i
  1856. end
  1857. end
  1858. end
  1859. if not (bestEquip == nil) then
  1860. game:GetService("ReplicatedStorage").remotes.equipItem:InvokeServer("chest", (tonumber(string.sub(bestEquip, 7))))
  1861. end
  1862. end
  1863. wait(1)
  1864. autoUpgradeEquip("helmets")
  1865. wait(1)
  1866. local bestDamage = 0 -- HELMETS
  1867. local bestEquip = nil
  1868. if gitems.helmets ~= nil then
  1869. local gold = game.Players.LocalPlayer.leaderstats.Gold.Value
  1870. for i,v in pairs(gitems.helmets) do
  1871. local upgradeAmount = v.maxUpgrades - v.currentUpgrade
  1872. if _G.equip_type == "spell" and v.levelReq <= playerLevel and v.spellPower > v.physicalPower then
  1873. local tempNum = calculatePot(v.spellPower, upgradeAmount)
  1874. local canAfford = false
  1875. if calcCost(v.maxUpgrades, v.currentUpgrade) < gold then
  1876. canAfford = true
  1877. end
  1878. if (tempNum > bestDamage and canAfford) or (bestDamage < v.spellPower) then
  1879. bestDamage = tempNum
  1880. bestEquip = i
  1881. end
  1882. end
  1883. if _G.equip_type == "physical" and v.levelReq <= playerLevel and v.physicalPower > v.spellPower then
  1884. local tempNum = calculatePot(v.physicalPower, upgradeAmount)
  1885. local canAfford = false
  1886. if calcCost(v.maxUpgrades, v.currentUpgrade) < gold then
  1887. canAfford = true
  1888. end
  1889. if (tempNum > bestDamage and canAfford) or (bestDamage < v.physicalPower) then
  1890. bestDamage = tempNum
  1891. bestEquip = i
  1892. end
  1893. end
  1894. end
  1895. if not (bestEquip == nil) then
  1896. game:GetService("ReplicatedStorage").remotes.equipItem:InvokeServer("helmet", (tonumber(string.sub(bestEquip, 8))))
  1897. end
  1898. end
  1899. wait(1)
  1900. autoUpgradeEquip("chests")
  1901. wait(1)
  1902. local bestDamage = 0 -- WEAPONS
  1903. local bestEquip = nil
  1904. if gitems.weapons ~= nil then
  1905. local gold = game.Players.LocalPlayer.leaderstats.Gold.Value
  1906. for i,v in pairs(gitems.weapons) do
  1907. local upgradeAmount = v.maxUpgrades - v.currentUpgrade
  1908. if _G.equip_type == "spell" and v.levelReq <= playerLevel and v.spellPower > v.physicalDamage then
  1909. local tempNum = calculatePot(v.spellPower, v.maxUpgrades)
  1910. local canAfford = false
  1911. if calcCost(v.maxUpgrades, upgradeAmount) < gold then
  1912. canAfford = true
  1913. end
  1914. if (tempNum > bestDamage and canAfford) or (bestDamage < v.spellPower) then
  1915. bestDamage = tempNum
  1916. bestEquip = i
  1917. end
  1918. end
  1919. if _G.equip_type == "physical" and v.levelReq <= playerLevel and v.physicalDamage > v.spellPower then
  1920. local tempNum = calculatePot(v.physicalDamage, upgradeAmount)
  1921. local canAfford = false
  1922. if calcCost(v.maxUpgrades, v.currentUpgrade) < gold then
  1923. canAfford = true
  1924. end
  1925. if (tempNum > bestDamage and canAfford) or (bestDamage < v.physicalDamage) then
  1926. bestDamage = tempNum
  1927. bestEquip = i
  1928. end
  1929. end
  1930. end
  1931. if not (bestEquip == nil) then
  1932. game:GetService("ReplicatedStorage").remotes.equipItem:InvokeServer("weapon", (tonumber(string.sub(bestEquip, 8))))
  1933. end
  1934. end
  1935. wait(1)
  1936. autoUpgradeEquip("weapons")
  1937. wait(1)
  1938. end
  1939. end
  1940.  
  1941.  
  1942. local function autochoosedungeon()
  1943. if _G.auto_choose_dungeon_and_difficulty then
  1944. game.Players.LocalPlayer:WaitForChild("leaderstats")
  1945. game.Players.LocalPlayer.leaderstats:WaitForChild("Level")
  1946. lvl = game.Players.LocalPlayer.leaderstats.Level.Value
  1947. print(lvl)
  1948. if lvl <= 5 then
  1949. _G.dungeon = "Desert Temple"
  1950. _G.difficulty = "Easy"
  1951. elseif lvl <= 11 then
  1952. _G.dungeon = "Desert Temple"
  1953. _G.difficulty = "Medium"
  1954. elseif lvl <= 19 then
  1955. _G.dungeon = "Desert Temple"
  1956. _G.difficulty = "Hard"
  1957. elseif lvl <= 26 then
  1958. _G.dungeon = "Desert Temple"
  1959. _G.difficulty = "Insane"
  1960. elseif lvl <= 32 then
  1961. _G.dungeon = "Desert Temple"
  1962. _G.difficulty = "Nightmare"
  1963. elseif lvl <= 39 then
  1964. _G.dungeon = "Winter Outpost"
  1965. _G.difficulty = "Easy"
  1966. elseif lvl <= 44 then
  1967. _G.dungeon = "Winter Outpost"
  1968. _G.difficulty = "Medium"
  1969. elseif lvl <= 49 then
  1970. _G.dungeon = "Winter Outpost"
  1971. _G.difficulty = "Hard"
  1972. elseif lvl <= 54 then
  1973. _G.dungeon = "Winter Outpost"
  1974. _G.difficulty = "Insane"
  1975. elseif lvl <= 59 then
  1976. _G.dungeon = "Winter Outpost"
  1977. _G.difficulty = "Nightmare"
  1978. elseif lvl <= 64 then
  1979. _G.dungeon = "Pirate Island"
  1980. _G.difficulty = "Insane"
  1981. elseif lvl <= 69 then
  1982. _G.dungeon = "Pirate Island"
  1983. _G.difficulty = "Nightmare"
  1984. elseif lvl <= 74 then
  1985. _G.dungeon = "King's Castle"
  1986. _G.difficulty = "Insane"
  1987. elseif lvl <= 79 then
  1988. _G.dungeon = "King's Castle"
  1989. _G.difficulty = "Nightmare"
  1990. elseif lvl <= 84 then
  1991. _G.dungeon = "The Underworld"
  1992. _G.difficulty = "Insane"
  1993. elseif lvl <= 89 then
  1994. _G.dungeon = "The Underworld"
  1995. _G.difficulty = "Nightmare"
  1996. elseif lvl <= 94 then
  1997. _G.dungeon = "Samurai Palace"
  1998. _G.difficulty = "Insane"
  1999. elseif lvl <= 99 then
  2000. _G.dungeon = "Samurai Palace"
  2001. _G.difficulty = "Nightmare"
  2002. elseif lvl <= 104 then
  2003. _G.dungeon = "The Canals"
  2004. _G.difficulty = "Insane"
  2005. elseif lvl <= 109 then
  2006. _G.dungeon = "The Canals"
  2007. _G.difficulty = "Nightmare"
  2008. elseif lvl <= 114 then
  2009. _G.dungeon = "Ghastly Harbor"
  2010. _G.difficulty = "Insane"
  2011. elseif lvl <= 119 then
  2012. _G.dungeon = "Ghastly Harbor"
  2013. _G.difficulty = "Nightmare"
  2014. elseif lvl <= 124 then
  2015. _G.dungeon = "Steampunk Sewers"
  2016. _G.difficulty = "Insane"
  2017. elseif lvl <= 139 then
  2018. _G.dungeon = "Steampunk Sewers"
  2019. _G.difficulty = "Nightmare"
  2020. elseif lvl <= 145 then
  2021. _G.dungeon = "Orbital Outpost"
  2022. _G.difficulty = "Insane"
  2023. elseif lvl <= 149 then
  2024. _G.dungeon = "Orbital Outpost"
  2025. _G.difficulty = "Nightmare"
  2026. elseif lvl <= 154 then
  2027. _G.dungeon = "Volcanic Chambers"
  2028. _G.difficulty = "Insane"
  2029. else
  2030. _G.dungeon = "Volcanic Chambers"
  2031. _G.difficulty = "Nightmare"
  2032. end
  2033. end
  2034. end
  2035.  
  2036. function autoChooseBossRaidTier()
  2037. if _G.auto_choose_raid_boss_tier then
  2038. local gitems = getPlayerInvy(game.Players.LocalPlayer)
  2039. local largestKey = 0
  2040. if gitems.keys ~= nil then
  2041. if gitems.keys then
  2042. for i, v in pairs(gitems.keys) do
  2043. if tonumber(i) > largestKey and v then
  2044. largestKey = tonumber(i)
  2045. _G.boss_raid_tier = tonumber(i)
  2046. end
  2047. end
  2048. end
  2049. end
  2050. end
  2051. end
  2052.  
  2053. local function del_armor_ui() -- deletes armor and ui
  2054. spawn(function()
  2055. pgui = game.Players.LocalPlayer.PlayerGui
  2056. if game.CoreGui.RobloxGui:FindFirstChild("TopBarContainer") then
  2057. game.CoreGui.RobloxGui.TopBarContainer:WaitForChild("NameHealthContainer")
  2058. if game.CoreGui.RobloxGui.TopBarContainer.NameHealthContainer:FindFirstChild("Username") then
  2059. game.CoreGui.RobloxGui.TopBarContainer.NameHealthContainer.Username:Destroy()
  2060. end
  2061. end
  2062. while not game.Players.LocalPlayer.PlayerGui:FindFirstChild("playerStatus") do
  2063. wait(.1)
  2064. end
  2065. pstat = pgui.playerStatus.Frame
  2066. --pstat:Destroy()
  2067.  
  2068. if _G.edit_ui then
  2069. while not game.Players.LocalPlayer.PlayerGui:FindFirstChild("playerStatus") do
  2070. wait(.1)
  2071. end
  2072. pstat = pgui.playerStatus.Frame
  2073. while not pstat.portraitBorder:FindFirstChild("portrait") do
  2074. wait(.1)
  2075. end
  2076. pstat.portraitBorder.portrait.Image = _G.UI_portait_image
  2077. if pstat.moneyMain:FindFirstChild("updateMoney") then
  2078. pstat.moneyMain.updateMoney:Destroy()
  2079. end
  2080. pstat.moneyMain.TextLabel.Text = _G.UI_money
  2081. pstat.healthFrame.health.Text = _G.UI_health
  2082. if pstat.healthFrame.health:FindFirstChild("label") then
  2083. pstat.healthFrame.health.label:Destroy()
  2084. pstat.healthFrame.healthUpdater:Destroy()
  2085. end
  2086. pstat.playerName.Text = _G.UI_name
  2087. pstat.xpFrame.xp.Text = _G.UI_xp
  2088. if pstat.xpFrame:FindFirstChild("xpUpdater") then
  2089. pstat.xpFrame.xp.label:Destroy()
  2090. pstat.xpFrame.xpUpdater:Destroy()
  2091. end
  2092. pstat.levelBorder.level.Text = _G.UI_lvl
  2093.  
  2094. game.Players.LocalPlayer.PlayerGui:WaitForChild("abilities")
  2095. end
  2096. end)
  2097. game.Players.LocalPlayer.Character:WaitForChild("playerNameplate", 5)
  2098. if game.Players.LocalPlayer.Character:FindFirstChild("playerNameplate") then
  2099. game.Players.LocalPlayer.Character["playerNameplate"]:Destroy()
  2100. end
  2101.  
  2102. while not game.Players.LocalPlayer.Character do
  2103. wait()
  2104. end
  2105. while not game.Players.LocalPlayer.Character:FindFirstChildOfClass("Accessory") do
  2106. wait()
  2107. end
  2108. wait()
  2109. pchar = game.Players.LocalPlayer.Character
  2110. for _, v in pairs(pchar:GetChildren()) do
  2111. if v.ClassName == "Accessory" then
  2112. if not v:FindFirstChild("swing") then
  2113. if _G.del_weapon then
  2114. v:Destroy()
  2115. end
  2116. else
  2117. if _G.del_armor then
  2118. v:FindFirstChildOfClass("Model"):Destroy()
  2119. end
  2120. end
  2121. end
  2122. end
  2123. end
  2124. warn('place id check')
  2125. if game.PlaceId == 2414851778 or game.PlaceId == 3220968688 then
  2126. warn('place id check done')
  2127. while not workspace:FindFirstChild(game.Players.LocalPlayer.Name) do
  2128. wait(.1)
  2129.  
  2130. local Event = game:GetService("ReplicatedStorage").remotes.loadPlayerCharacter
  2131. Event:FireServer()
  2132. end
  2133. warn("pressed start")
  2134. spawn(function()
  2135. while not workspace:FindFirstChild(game.Players.LocalPlayer.Name):FindFirstChild("Humanoid") do
  2136. wait(.1)
  2137. end
  2138. spawn(function()
  2139. while not game.Lighting:FindFirstChild("Blur") do
  2140. wait(.1)
  2141. end
  2142. while not game.Players.LocalPlayer.PlayerGui:FindFirstChild("introGui") do
  2143. wait(.1)
  2144. end
  2145. game.Players.LocalPlayer.PlayerGui:FindFirstChild("introGui"):Destroy()
  2146. local s = workspace.CurrentCamera
  2147. s.CameraType = Enum.CameraType.Track;
  2148. s.CameraSubject = game.Players.LocalPlayer.Character.Humanoid
  2149. game.Lighting.Blur:Destroy()
  2150. end)
  2151. spawn(function()
  2152. AIMovementInLobby()
  2153. end)
  2154. end)
  2155. warn("player loaded")
  2156. --[[
  2157. spawn(function()
  2158. del_armor_ui()
  2159. end)
  2160. warn("armor del")
  2161. ]]
  2162. if _G.collect_daily_reward then
  2163. while not workspace:FindFirstChild(game.Players.LocalPlayer.Name):FindFirstChild("HumanoidRootPart") do
  2164. wait(.1)
  2165. end
  2166. workspace.dailyRewardTouchPart.CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame
  2167. wait(.1)
  2168. workspace.dailyRewardTouchPart.Size = Vector3.new(10,10,10)
  2169. workspace.dailyRewardTouchPart.CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame * CFrame.new(0,1,0)
  2170. wait(.1)
  2171. spawn(function()
  2172. game.CoreGui:WaitForChild("PurchasePromptApp"):Destroy()
  2173. end)
  2174. end
  2175. warn("daily reward")
  2176. if _G.boss_raid and _G.auto_choose_raid_boss_tier then
  2177. local gitems = getPlayerInvy(game.Players.LocalPlayer)
  2178. if gitems.keys == nil then
  2179. _G.auto_choose_dungeon_and_difficulty = true
  2180. _G.boss_raid = false
  2181. _G.wavedefense = false
  2182. end
  2183. if gitems.keys["1"] ~= nil then
  2184. if gitems.keys["1"] == false then
  2185. _G.auto_choose_dungeon_and_difficulty = true
  2186. _G.boss_raid = false
  2187. _G.wavedefense = false
  2188. end
  2189. end
  2190. end
  2191. warn("key check")
  2192. autochoosedungeon()
  2193. warn("choose dungeon")
  2194. autoChooseBossRaidTier()
  2195. warn("choose boss raid tier")
  2196. equipBestSpell()
  2197. warn("auto spell swap")
  2198. autoEquipLvlGear()
  2199. warn("equip gear")
  2200. sell()
  2201. warn("sell done")
  2202. autoupgrade()
  2203. warn("auto upgrade done")
  2204. if _G.easter_enable then
  2205. _G.dungeon = "Egg Island"
  2206. _G.difficulty = "Nightmare"
  2207. _G.hardcore = false
  2208. end
  2209. print("JOINING DUNGEON")
  2210. while not _G.ai_done do -- movement AI
  2211. wait(.1)
  2212. end
  2213. if _G.auto_join_dungeon then
  2214. if _G.wait_for_friends_to_host then
  2215. if _G.boss_raid then
  2216. while not workspace.bossLobbies:FindFirstChild(_G.host_name) do
  2217. wait()
  2218. end
  2219. while wait(.1) do
  2220. game:GetService("ReplicatedStorage").remotes.playerJoinBossLobby:InvokeServer(workspace.bossLobbies:FindFirstChild(_G.host_name))
  2221. end
  2222. else
  2223. while not workspace.games.inLobby:FindFirstChild(_G.host_name) do
  2224. wait()
  2225. end
  2226. while wait(.1) do
  2227. game:GetService("ReplicatedStorage").remotes.joinDungeon:InvokeServer(_G.host_name)
  2228. end
  2229. end
  2230. end
  2231. if _G.multi_roblox then
  2232. if game.Players.LocalPlayer.Name == _G.host_name_key[1] then -- what the hosts does
  2233. if _G.boss_raid then
  2234. local Event = game:GetService("ReplicatedStorage").remotes.createBossLobby
  2235. Event:InvokeServer(_G.boss_raid_tier, true, 0)
  2236. else
  2237. local Event = game:GetService("ReplicatedStorage").remotes.createLobby
  2238. Event:InvokeServer(_G.dungeon, _G.difficulty, 0, _G.hardcore, true, _G.wavedefense)
  2239. end
  2240. wait(.1)
  2241. if _G.boss_raid then
  2242. for i, v in pairs(_G.name_key_list) do -- whitelist everyone
  2243. game:GetService("ReplicatedStorage").remotes.addPlayerToBossWhitelist:FireServer(v[1])
  2244. end
  2245. else
  2246. for i, v in pairs(_G.name_key_list) do -- whitelist everyone
  2247. game:GetService("ReplicatedStorage").remotes.addPlayerToWhitelist:FireServer(v[1])
  2248. end
  2249. end
  2250. if _G.boss_raid then
  2251. while (#(workspace.bossLobbies:FindFirstChild(game.Players.LocalPlayer.Name).players:GetChildren())) ~= (#_G.name_key_list + 1) do -- wait for lobby to be full
  2252. wait()
  2253. end
  2254. else
  2255. while (#(workspace.games.inLobby:FindFirstChild(game.Players.LocalPlayer.Name):GetChildren()) - 1) ~= (#_G.name_key_list + 1) do -- wait for lobby to be full
  2256. wait()
  2257. end
  2258. end
  2259. if _G.boss_raid then
  2260. game:GetService("ReplicatedStorage").remotes.startBossRaid:FireServer()
  2261. else
  2262. game:GetService("ReplicatedStorage").remotes.startDungeon:FireServer()
  2263. end
  2264. else -- what the joiners do
  2265. if _G.boss_raid then
  2266. while not workspace.bossLobbies:FindFirstChild(_G.host_name_key[1]) do
  2267. wait()
  2268. end
  2269. while wait(.1) do
  2270. game:GetService("ReplicatedStorage").remotes.playerJoinBossLobby:InvokeServer(workspace.bossLobbies:FindFirstChild(_G.host_name_key[1]))
  2271. end
  2272. else
  2273. while not workspace.games.inLobby:FindFirstChild(_G.host_name_key[1]) do
  2274. wait()
  2275. end
  2276. while wait(.1) do
  2277. game:GetService("ReplicatedStorage").remotes.joinDungeon:InvokeServer(_G.host_name_key[1])
  2278. end
  2279. end
  2280. end
  2281. end
  2282.  
  2283.  
  2284. if _G.wait_for_friends then
  2285. if _G.boss_raid then
  2286. local Event = game:GetService("ReplicatedStorage").remotes.createBossLobby
  2287. Event:InvokeServer(_G.boss_raid_tier, true, 0)
  2288. else
  2289. local Event = game:GetService("ReplicatedStorage").remotes.createLobby
  2290. Event:InvokeServer(_G.dungeon, _G.difficulty, 0, _G.hardcore, true, _G.wavedefense)
  2291. end
  2292. wait(.1)
  2293. if _G.boss_raid then
  2294. for i, v in pairs(_G.friends) do -- whitelist everyone
  2295. game:GetService("ReplicatedStorage").remotes.addPlayerToBossWhitelist:FireServer(v)
  2296. end
  2297. else
  2298. for i, v in pairs(_G.friends) do -- whitelist everyone
  2299. game:GetService("ReplicatedStorage").remotes.addPlayerToWhitelist:FireServer(v)
  2300. end
  2301. end
  2302. wait(.1)
  2303. if _G.boss_raid then
  2304. while (#(workspace.bossLobbies:FindFirstChild(game.Players.LocalPlayer.Name).players:GetChildren())) ~= (#_G.friends + 1) do -- wait for lobby to be full
  2305. wait()
  2306. end
  2307. else
  2308. while (#(workspace.games.inLobby:FindFirstChild(game.Players.LocalPlayer.Name):GetChildren()) - 1) ~= (#_G.friends + 1) do -- wait for lobby to be full
  2309. wait()
  2310. end
  2311. end
  2312. if _G.boss_raid then
  2313. local Event = game:GetService("ReplicatedStorage").remotes.startBossRaid
  2314. Event:FireServer()
  2315. else
  2316. local Event = game:GetService("ReplicatedStorage").remotes.startDungeon
  2317. Event:FireServer()
  2318. end
  2319. wait(20)
  2320. end
  2321.  
  2322. if _G.boss_raid then -- boss raid
  2323. print("make boss lobby")
  2324. local Event = game:GetService("ReplicatedStorage").remotes.createBossLobby
  2325. Event:InvokeServer(_G.boss_raid_tier, true, 0)
  2326. wait(1)
  2327. local Event = game:GetService("ReplicatedStorage").remotes.startBossRaid
  2328. Event:FireServer()
  2329. wait(20)
  2330. elseif not _G.boss_raid then -- normal dungeons/wavedefense
  2331. local Event = game:GetService("ReplicatedStorage").remotes.createLobby
  2332. Event:InvokeServer(_G.dungeon, _G.difficulty, 0, _G.hardcore, true, _G.wavedefense)
  2333. wait(1)
  2334. local Event = game:GetService("ReplicatedStorage").remotes.startDungeon
  2335. Event:FireServer()
  2336. wait(20)
  2337. end
  2338. else
  2339. while wait(.1) do
  2340. end
  2341. end
  2342. while wait(.1) do
  2343. end
  2344. end
  2345.  
  2346.  
  2347. while not game.Players.LocalPlayer do
  2348. wait(.1)
  2349. end
  2350.  
  2351. while not game.Players.LocalPlayer.Character do
  2352. wait(.1)
  2353. end
  2354.  
  2355. while not game.Players.LocalPlayer.Character:FindFirstChild("HumanoidRootPart") do
  2356. wait(.1)
  2357. end
  2358.  
  2359. while not game.Players.LocalPlayer.Character:FindFirstChild("Humanoid") do
  2360. wait(.1)
  2361. end
  2362.  
  2363. while not workspace:FindFirstChild(game.Players.LocalPlayer.Name) do
  2364. wait(.1)
  2365. end
  2366. -- dungeon specific waits
  2367. while not workspace:FindFirstChild("dungeon") and not workspace:FindFirstChild("tier") and not workspace:FindFirstChild("currentWave") do
  2368. wait(1)
  2369. end
  2370.  
  2371. while not game:GetService("Workspace"):FindFirstChild("dungeonProgress") and not game:GetService("Workspace"):FindFirstChild("raidProgress") do
  2372. wait()
  2373. end
  2374.  
  2375. wait(.5)
  2376.  
  2377.  
  2378. local pathargs = {
  2379. ["AgentHeight"] = 5,
  2380. ["AgentRadius"] = 3,
  2381. ["AgentCanJump"] = true
  2382. }
  2383. local PathfindingService = gamer[2]
  2384. local cs = gamer[1]
  2385. local localPlayer = game.Players.LocalPlayer.Character
  2386. local path = PathfindingService:CreatePath(pathargs)
  2387. local waypoints = {}
  2388. local currentWaypointIndex = 0
  2389. local weaponCooldown = 1
  2390. local enemy
  2391. local ballArray = {}
  2392.  
  2393. function stringInTable(st, tb)
  2394. if tb[st] ~= nil then return true else return false end
  2395. for i,v in pairs(tb) do
  2396. if st == v then
  2397. return true
  2398. end
  2399. end
  2400. return false
  2401. end
  2402.  
  2403.  
  2404. local function createWall(cf, sz)
  2405. if _G.loadSlow then
  2406. game:GetService("RunService").RenderStepped:wait()
  2407. end
  2408. local part = Instance.new("Part")
  2409. cs:AddTag(part, "RayWhitelist")
  2410. part.Size = sz
  2411. part.CFrame = cf
  2412. part.Name = regionPartName
  2413. part.Anchored = true
  2414. part.Transparency = _G.wall_transparency--stuffTransparency
  2415. part.CanCollide = true
  2416. part.Parent = workspace
  2417. return part
  2418. end
  2419.  
  2420. local function antiTransChange(property)
  2421. report("ANTI SKID, TransChange", property)
  2422. end
  2423.  
  2424. local function antiChildChange(child)
  2425. if child.ClassName ~= "TouchTransmitter" then
  2426. report("ANTI SKID, ChildChange", child)
  2427. end
  2428. end
  2429.  
  2430. local function createPart(cframe, size, name, shape) -- this is the part we walk to
  2431. local part = Instance.new("Part")
  2432. part.Shape = shape
  2433. cs:AddTag(part, "RayIgnore")
  2434. part.Material = "Neon"
  2435. if _G.showPath then
  2436. part.Transparency = .5
  2437. else
  2438. part.Transparency = stuffTransparency
  2439. end
  2440.  
  2441. part.Size = size
  2442. part.CFrame = cframe
  2443. part.Name = name
  2444. part.Anchored = true
  2445. part.CanCollide = false
  2446. part.Parent = workspace
  2447. part:GetPropertyChangedSignal("Transparency"):Connect(antiTransChange)
  2448. part.ChildAdded:Connect(antiChildChange)
  2449. return part
  2450. end
  2451.  
  2452. local function createHitBoxPart(size, cframe, obj)
  2453. local part = Instance.new("Part")
  2454. cs:AddTag(part, "RayIgnore")
  2455. part.Size = size
  2456. part.CFrame = cframe
  2457. part.Parent = obj
  2458. part.Name = "enemyRadius"
  2459. part.Anchored = false
  2460. part.CanCollide = false
  2461. part.Material = "SmoothPlastic"
  2462. part.Transparency = stuffTransparency
  2463. part:GetPropertyChangedSignal("Transparency"):Connect(antiTransChange)
  2464. part.ChildAdded:Connect(antiChildChange)
  2465. part.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  2466. local weld = Instance.new("WeldConstraint")
  2467. if obj.ClassName == "Model" then
  2468. weld.Part1 = obj.PrimaryPart
  2469. else
  2470. weld.Part1 = obj
  2471. end
  2472. weld.Part0 = part
  2473. weld.Parent = obj
  2474. return part
  2475. end
  2476.  
  2477. local function addHitBox(obj, size, shape)
  2478. local psize, cframe
  2479. if shape == nil then
  2480. local t = {
  2481. {size, size}, {0, size}, {-size, size},
  2482. {size, 0}, {-size, 0},
  2483. {size, -size}, {0, -size}, {-size, -size},
  2484. }
  2485. for i,v in pairs(t) do
  2486. psize = Vector3.new(1, 1, (size))
  2487. local pos1 = (obj.PrimaryPart.CFrame * CFrame.new(v[1],0,v[2])).Position
  2488. cframe = CFrame.new(pos1, obj.PrimaryPart.Position)
  2489. cframe = cframe * CFrame.new(0,0,(-size/2) + 2)
  2490. createHitBoxPart(psize, cframe, obj)
  2491. end
  2492. elseif shape =="square" then -- this is for when things shoot ball projectiles
  2493. psize = Vector3.new(size, size, size)
  2494. cframe = CFrame.new(0,0,0)
  2495. if obj.ClassName == "Model" then
  2496. obj:WaitForChild("PrimaryPart", .5)
  2497. cframe = obj.PrimaryPart.CFrame
  2498. else
  2499. cframe = obj.CFrame
  2500. end
  2501. createHitBoxPart(psize, cframe, obj)
  2502. elseif shape == "rectangle" then
  2503. psize = Vector3.new(size, size, size) -- create square around projectile
  2504. cframe = CFrame.new(0,0,0)
  2505. if obj.ClassName == "Model" then
  2506. obj:WaitForChild("PrimaryPart", .5)
  2507. cframe = obj.PrimaryPart.CFrame
  2508. else
  2509. cframe = obj.CFrame
  2510. end
  2511. createHitBoxPart(psize, cframe, obj)
  2512.  
  2513. psize = Vector3.new(1, size, size*2)
  2514. cframe = CFrame.new(0,0,0)
  2515. if obj.ClassName == "Model" then -- add the pointy thing
  2516. obj:WaitForChild("PrimaryPart", .5)
  2517. cframe = obj.PrimaryPart.CFrame * CFrame.new(0, 0, (size - 5) * -1)
  2518. else
  2519. cframe = obj.CFrame * CFrame.new(0, 0, (size - 5) * -1)
  2520. end
  2521. createHitBoxPart(psize, cframe, obj)
  2522.  
  2523. elseif shape == "rectanglev2" then
  2524. psize = Vector3.new(size, size, size)
  2525. cframe = CFrame.new(0,0,0)
  2526. if obj.ClassName == "Model" then
  2527. obj:WaitForChild("PrimaryPart", .5)
  2528. cframe = obj.PrimaryPart.CFrame
  2529. else
  2530. cframe = obj.CFrame
  2531. end
  2532. createHitBoxPart(psize, cframe, obj)
  2533.  
  2534. psize = Vector3.new(size, size, size)
  2535. cframe = CFrame.new(0,0,0)
  2536. if obj.ClassName == "Model" then
  2537. obj:WaitForChild("PrimaryPart", .5)
  2538. cframe = (obj.PrimaryPart.CFrame * CFrame.new(0, 0, (size - 10) * -1)) * CFrame.Angles(math.rad(45), 0,math.rad(90))
  2539. else
  2540. cframe = (obj.CFrame * CFrame.new(0, 0, (size - 10) * -1))* CFrame.Angles(math.rad(45), 0,math.rad(90))
  2541. end
  2542. createHitBoxPart(psize, cframe, obj)
  2543. elseif shape == "rectanglev3" then
  2544. psize = Vector3.new(size, size, size)
  2545. cframe = CFrame.new(0,0,0)
  2546. if obj.ClassName == "Model" then
  2547. obj:WaitForChild("PrimaryPart", .5)
  2548. cframe = obj.PrimaryPart.CFrame
  2549. else
  2550. cframe = obj.CFrame
  2551. end
  2552. createHitBoxPart(psize, cframe, obj)
  2553.  
  2554. psize = Vector3.new(size -5 , size - 5, size - 5)
  2555. cframe = CFrame.new(0,0,0)
  2556. if obj.ClassName == "Model" then
  2557. obj:WaitForChild("PrimaryPart", .5)
  2558. cframe = (obj.PrimaryPart.CFrame * CFrame.new(0, 0, (size - 5) * -1)) * CFrame.Angles(0, math.rad(45),0)
  2559. else
  2560. cframe = (obj.CFrame * CFrame.new(0, 0, (size - 5) * -1))* CFrame.Angles(0, math.rad(45),0)
  2561. end
  2562. createHitBoxPart(psize, cframe, obj)
  2563.  
  2564. elseif shape == "rectangle-2" then -- rectnagle with no offset
  2565. psize = Vector3.new(size, size, size)
  2566. cframe = CFrame.new(0,0,0)
  2567. if obj.ClassName == "Model" then
  2568. obj:WaitForChild("PrimaryPart", .5)
  2569. cframe = obj.PrimaryPart.CFrame
  2570. cframe = cframe * CFrame.Angles(0, math.rad(45), 0)
  2571. else
  2572. cframe = obj.CFrame
  2573. cframe = cframe * CFrame.Angles(0, math.rad(45), 0)
  2574. end
  2575. createHitBoxPart(psize, cframe, obj)
  2576. end
  2577. end
  2578.  
  2579. local function cleanMobUp(t)
  2580. if _G.optimize_mobs then
  2581. for i,v in pairs(t:GetChildren()) do
  2582. if v.ClassName == "Model" then
  2583. v:Destroy()
  2584. end
  2585. end
  2586. if t:FindFirstChild("HumanoidRootPart") then
  2587. t.HumanoidRootPart.Transparency = 0
  2588. end
  2589. if t:FindFirstChild("Head") then
  2590. t.Head.Transparency = 0
  2591. end
  2592. end
  2593. end
  2594.  
  2595. local function _initHitBox(instance)
  2596. if instance.ClassName == "Model" then
  2597. while instance.PrimaryPart == nil do wait() end
  2598. while not instance:FindFirstChild(instance.PrimaryPart.Name) do wait() end
  2599. instance:WaitForChild("HumanoidRootPart")
  2600. instance:WaitForChild("enemyStyle", 1.5)
  2601. if not instance:FindFirstChild("enemyStyle") then print('no enemy style') return end
  2602. local mobType = instance.enemyStyle.Value
  2603. if mobType == "mob" or mobType == "ranged" or mobType == "melee" or mobType == "burly" then --f if mob
  2604. if eggEvent then -- egg event only has one tag on each mob
  2605. while (#cs:GetTags(instance) == 0) do
  2606. wait(.1)
  2607. end
  2608. else
  2609. while (#cs:GetTags(instance) < 2) do -- normally each mob has two
  2610. ScriptDebug("waiting for mob to add tag" )
  2611. wait(.1)
  2612. end
  2613. end
  2614. cs:AddTag(instance, "Enemy")
  2615. if _G.doInstakill then
  2616. if instance:FindFirstChild("Humanoid") and instakillTable[instance.Name] then
  2617. instance.Humanoid.Health = 0
  2618. end
  2619. end
  2620. if mobType ~= "ranged" then
  2621. if game.PlaceId == 5281215714 then -- if volcanic mob
  2622. if instance.Name == "Explosive Lava Walker" or instance.Name == "Aggressive Lava Walker" then
  2623. addHitBox(instance, 8.5)
  2624. end
  2625. elseif game.PlaceId == 6216785535 then
  2626. if instance.Name == "Temple Guard" then
  2627. addHitBox(instance, 3)
  2628. end
  2629. else
  2630. addHitBox(instance, 7)
  2631. end
  2632. end
  2633. else -- if not mob then
  2634. if eggEvent then -- egg event has 0 tagso n boss
  2635. while #cs:GetTags(instance) ~= 0 do
  2636. wait()
  2637. end
  2638. else
  2639. while #cs:GetTags(instance) < 1 do
  2640. wait()
  2641. end
  2642. end
  2643. if _G.doInstakill then
  2644. if instance:FindFirstChild("Humanoid") and instakillTable[instance.Name] then
  2645. instance.Humanoid.Health = 0
  2646. end
  2647. end
  2648. cs:AddTag(instance, "Enemy")
  2649. end
  2650. end
  2651. end
  2652.  
  2653. local function initHitBox()
  2654. if workspace:FindFirstChild("tier") or workspace:FindFirstChild("currentWave") then -- boss raid or wave defense ( they work the same )
  2655. workspace.enemies.ChildAdded:Connect(function(instance)
  2656. if instance.Name == "Stone Warrior" then -- instakill in mob folder
  2657. instance:WaitForChild("Humanoid")
  2658. addHitBox(instance, 5)
  2659. wait(1)
  2660. instance.Humanoid.Health = 0
  2661. else
  2662. _initHitBox(instance)
  2663. cleanMobUp(instance)
  2664. end
  2665. end)
  2666. else
  2667. for i,room in pairs(workspace.dungeon:GetChildren()) do -- normal dungeon handler
  2668. if room:FindFirstChild("enemyFolder") then
  2669. local efold = room:FindFirstChild("enemyFolder")
  2670. if efold then
  2671. local e = efold:FindFirstChildOfClass("Model")
  2672. if e then
  2673. if e:FindFirstChild("Humanoid") then -- if folder already has mobs then add hit box
  2674. wait(.5)
  2675. for i,instance in pairs(efold:GetChildren()) do
  2676. _initHitBox(instance)
  2677. cleanMobUp(instance)
  2678. end
  2679. end
  2680. end
  2681. efold.ChildAdded:Connect(function(instance) -- all future folders, if mob spawned, give hitbox
  2682. _initHitBox(instance)
  2683. cleanMobUp(instance)
  2684. end)
  2685. end
  2686. end
  2687. end
  2688. end
  2689. end
  2690.  
  2691. local projNameList = {} -- important
  2692. local enemyProjNameList = {}
  2693.  
  2694. local function updateProjsList()
  2695. if game.ReplicatedStorage:FindFirstChild("projectiles") then
  2696. local n1 = game:GetService("ReplicatedStorage").projectiles:GetChildren()
  2697. local n2 = game:GetService("ReplicatedStorage").enemyProjectiles:GetChildren()
  2698. for i,v in pairs(n1) do
  2699. projNameList[v.Name] = true
  2700. end
  2701. for i,v in pairs(n2) do
  2702. enemyProjNameList[v.Name] = true
  2703. end
  2704. enemyProjNameList["secondBossSlamHitbox"] = true
  2705. end
  2706. end
  2707.  
  2708. updateProjsList()
  2709.  
  2710. local function createBall(vector) -- balls that pathfinding places
  2711. local part = Instance.new("Part")
  2712. cs:AddTag(part, "RayIgnore")
  2713. part.Shape = "Ball"
  2714. part.Material = "Neon"
  2715. part.Size = Vector3.new(0.6, 0.6, 0.6)
  2716. part.Position = vector
  2717. part.Anchored = true
  2718. part.CanCollide = false
  2719. part.Name = regionPartName
  2720. part.Parent = game.Workspace
  2721. ballArray[#ballArray+1] = part
  2722. end
  2723.  
  2724. local thePart = createPart(CFrame.new(0,0,0), Vector3.new(3,3,3), regionPartName, "Ball")
  2725. local selectionBox = Instance.new("SelectionBox")
  2726.  
  2727. local function getMag(vector1, vector2)
  2728. -- removes sqrt because time, reduces function complexity
  2729. local newV2 = Vector3.new(vector2.X, vector1.Y, vector2.Z)
  2730. --return (vector1 - newV2).magnitude
  2731. return (vector1 - vector2).magnitude
  2732. --return ((vector1.X - vector2.X)^2)+((vector1.Y - vector2.Y)^2)+((vector1.Z - vector2.Z)^2)
  2733. end
  2734.  
  2735. local function getPlayer()
  2736. local play, chara, hum, root = nil, nil, nil, nil
  2737. while not game.Players.LocalPlayer do
  2738. wait()
  2739. end
  2740. if game.Players.LocalPlayer then
  2741. play = game.Players.LocalPlayer
  2742. while not game.Players.LocalPlayer.Character do
  2743. wait()
  2744. end
  2745. if game.Players.LocalPlayer.Character then
  2746. chara = game.Players.LocalPlayer.character
  2747. while not game.Players.LocalPlayer.Character:FindFirstChild("Humanoid") do
  2748. wait()
  2749. end
  2750. if game.Players.LocalPlayer.Character:FindFirstChild("Humanoid") then
  2751. hum = game.Players.LocalPlayer.Character.Humanoid
  2752. end
  2753. while not game.Players.LocalPlayer.Character:FindFirstChild("HumanoidRootPart") do
  2754. wait()
  2755. end
  2756. if game.Players.LocalPlayer.Character:FindFirstChild("HumanoidRootPart") then
  2757. root = game.Players.LocalPlayer.Character.HumanoidRootPart
  2758. end
  2759. end
  2760. end
  2761. return play, chara, hum, root
  2762. end
  2763.  
  2764. -- discord webhook stuff
  2765. local webhookLocals = {
  2766. itemsEarned = {},
  2767. startingInventory = getPlayerInvy(game.Players.LocalPlayer),
  2768. dungeonName = nil,
  2769. timeLeft = nil,
  2770. endingInventory = nil,
  2771. colorTable = {
  2772. ['legendary'] = "16426522",
  2773. ['epic'] = "14031610",
  2774. ['rare'] = "39423",
  2775. ['uncommon'] = "2096896",
  2776. ['common'] = "15859184",
  2777. }
  2778. }
  2779.  
  2780. function Format(Int)
  2781. return string.format("%02i", Int)
  2782. end
  2783.  
  2784. local function convertToHMS(Seconds)
  2785. local Minutes = (Seconds - Seconds%60)/60
  2786. Seconds = Seconds - Minutes*60
  2787. return Format(Minutes)..":"..Format(Seconds)
  2788. end
  2789.  
  2790. local function sendWebhookItem()
  2791. (syn and syn.request or http_request) {
  2792. Url = _G.webhookLink;
  2793. Method = 'POST';
  2794. Headers = {
  2795. ['Content-Type'] = 'application/json';
  2796. };
  2797. Body = game:GetService'HttpService':JSONEncode( { embeds = webhookLocals.itemsEarned } );
  2798. };
  2799. end
  2800.  
  2801. local function capFirstLetter(word)
  2802. local done = ""
  2803. local firstLetter = word:sub(1,1) --get the 1st letter of the word
  2804. local theRest = word:sub(2) --grt everything except the first letter
  2805. return firstLetter:upper() .. theRest
  2806. end
  2807.  
  2808.  
  2809. local function getNewItems(firstTable, secondTable)
  2810. for i ,item in pairs (secondTable) do
  2811. if firstTable[i] then
  2812. else
  2813. local s = {}
  2814. s.description = "```\n"..capFirstLetter(item.name).."```"
  2815. s.color = webhookLocals.colorTable[item.rarity]
  2816. table.insert(webhookLocals.itemsEarned, s)
  2817. end
  2818. end
  2819. end
  2820.  
  2821.  
  2822. local function webHookOnEnd()
  2823. if _G.webhookEnabled then
  2824. webhookLocals.timeLeft = convertToHMS(workspace.timeLeft.Value)
  2825. webhookLocals.itemsEarned = {
  2826. {
  2827. color = '0';
  2828. author = {
  2829. name = 'MRobSwag Item Notifier';
  2830. };
  2831. fields = {
  2832. {
  2833. name = "Dungeon: ",
  2834. value = tostring(webhookLocals.dungeonName)
  2835. },
  2836. {
  2837. name = "Clear Time: ",
  2838. value = webhookLocals.timeLeft
  2839. },
  2840. };
  2841. },
  2842. };
  2843. wait(2)
  2844. print('doing webhook')
  2845. webhookLocals.endingInventory = getPlayerInvy(game.Players.LocalPlayer)
  2846. getNewItems(webhookLocals.startingInventory.weapons, webhookLocals.endingInventory.weapons)
  2847. getNewItems(webhookLocals.startingInventory.abilities, webhookLocals.endingInventory.abilities)
  2848. getNewItems(webhookLocals.startingInventory.chests, webhookLocals.endingInventory.chests)
  2849. getNewItems(webhookLocals.startingInventory.helmets, webhookLocals.endingInventory.helmets)
  2850. sendWebhookItem()
  2851. print('done webhook')
  2852. end
  2853. end
  2854.  
  2855. -- discord webhook stuff ending
  2856.  
  2857. if workspace:FindFirstChild("dungeonProgress") then
  2858. game:GetService("Workspace"):FindFirstChild("dungeonProgress").Changed:Connect(function(NewValue)
  2859. if NewValue ~= "" and NewValue ~= "inProgress" and NewValue ~= "playersNotReady" then
  2860. gameOver = true
  2861. if regionTable ~= nil then
  2862. for i,v in pairs(regionTable) do
  2863. for j, k in pairs(v) do
  2864. regionTable[i][j]['obj']:Destroy()
  2865. end
  2866. end
  2867. end
  2868. if readyPartTable ~= nil then
  2869. for i,v in pairs(readyPartTable) do
  2870. v:Destroy()
  2871. end
  2872. end
  2873. spawn(webHookOnEnd)
  2874. print('set timeout')
  2875. wait(.5)
  2876. game:GetService("ScriptContext"):SetTimeout(0)
  2877. end
  2878. end)
  2879. elseif workspace:FindFirstChild("raidPorgress") then
  2880. game:GetService("Workspace"):FindFirstChild("raidProgress").Changed:Connect(function(NewValue)
  2881. if NewValue ~= "" and NewValue ~= "inProgress" and NewValue ~= "playersNotReady" then
  2882. gameOver = true
  2883. if regionTable ~= nil then
  2884. for i,v in pairs(regionTable) do
  2885. for j, k in pairs(v) do
  2886. regionTable[i][j]['obj']:Destroy()
  2887. end
  2888. end
  2889. end
  2890. if readyPartTable ~= nil then
  2891. for i,v in pairs(readyPartTable) do
  2892. v:Destroy()
  2893. end
  2894. end
  2895. spawn(webHookOnEnd)
  2896. print('set timeout')
  2897. wait(.5)
  2898. game:GetService("ScriptContext"):SetTimeout(0)
  2899. end
  2900. end)
  2901.  
  2902. end
  2903.  
  2904.  
  2905. function SelectBoxChange(adornee)
  2906. selectionBox.Adornee = adornee
  2907. selectionBox.Color3 = Color3.new(1,0,0)
  2908. selectionBox.Parent = adornee
  2909. end
  2910.  
  2911. local function findCloseEnemy()
  2912. local bestMob = nil
  2913. local bestDist = math.huge
  2914. if #cs:GetTagged("Prio-Enemy") > 0 then
  2915. return cs:GetTagged("Prio-Enemy")[1]
  2916. end
  2917. while #cs:GetTagged("Enemy") < 1 do
  2918. -- script should enter a dodge mode
  2919. ScriptDebug("Waiting for enemies...")
  2920. if extremelyFast then
  2921. game:GetService("RunService").RenderStepped:wait()
  2922. else
  2923. wait()
  2924. end
  2925. end
  2926. while bestMob == nil do
  2927. local enemies = cs:GetTagged("Enemy")
  2928. local _, _, _, root = getPlayer()
  2929. for i, mob in pairs(enemies) do
  2930. if mob:FindFirstChild("HumanoidRootPart") and root ~= nil then
  2931. local dst = getMag(root.Position, mob.HumanoidRootPart.Position)
  2932. if dst < bestDist then
  2933. bestMob = mob
  2934. bestDist = dst
  2935. end
  2936. end
  2937. end
  2938. if bestMob ~= nil then break end
  2939. if extremelyFast then
  2940. game:GetService("RunService").RenderStepped:wait()
  2941. else
  2942. wait()
  2943. end
  2944. end
  2945. if _G.showTarget then
  2946. SelectBoxChange(bestMob.HumanoidRootPart)
  2947. end
  2948. --targetPart.CFrame = bestMob.HumanoidRootPart.CFrame * CFrame.new(0,5,0)
  2949. return bestMob
  2950. end
  2951.  
  2952.  
  2953. function charLookAt(chr,target) --assume chr is a character and target is a brick to look towards
  2954. if chr.PrimaryPart then --just make sure the character's HRP has loaded
  2955. local chrPos=chr.PrimaryPart.Position --get the position of the HRP
  2956. local tPos=target.Position --get the position of the target
  2957. local newCF=CFrame.new(Vector3.new(chrPos.x,chrPos.y,chrPos.z),Vector3.new(tPos.x,chrPos.y,tPos.z)) --create our CFrame
  2958. chr:SetPrimaryPartCFrame(newCF) --set the HRP's CFrame to our result, thus moving the character!
  2959. end
  2960. end
  2961.  
  2962. local function clearBalls()
  2963. for i, v in pairs(ballArray) do
  2964. v:Destroy()
  2965. end
  2966. ballArray = {}
  2967. end
  2968.  
  2969.  
  2970. local function followPath(position)
  2971. local root = game.Players.LocalPlayer.Character.HumanoidRootPart
  2972. local hum = game.Players.LocalPlayer.Character.Humanoid
  2973. path:ComputeAsync(root.Position, position)
  2974. waypoints = {}
  2975. if path.Status == Enum.PathStatus.Success then
  2976. waypoints = path:GetWaypoints()
  2977. if sDebug then
  2978. clearBalls()
  2979. for i, v in pairs(waypoints) do
  2980. createBall(v.Position)
  2981. end
  2982. end
  2983. currentWaypointIndex = 2
  2984. if waypoints[currentWaypointIndex] == Enum.PathWaypointAction.Jump then
  2985. hum.Jump = true
  2986. end
  2987. hum:MoveTo(waypoints[currentWaypointIndex].Position)
  2988.  
  2989. else
  2990. print('path not success')
  2991. if enemy then
  2992. hum:MoveTo(enemy.PrimaryPart.Position)
  2993. else
  2994. hum:MoveTo(root.Position)
  2995. end
  2996.  
  2997. end
  2998. end
  2999.  
  3000. local function onWaypointReached(reached)
  3001. local play, chara, hum, root = getPlayer()
  3002. if chara ~= nil and hum ~= nil and reached and currentWaypointIndex < #waypoints then
  3003. currentWaypointIndex = currentWaypointIndex + 1
  3004. charLookAt(chara, enemy.HumanoidRootPart)
  3005. hum:MoveTo(waypoints[currentWaypointIndex].Position)
  3006. elseif chara ~= nil and hum ~= ni then
  3007. charLookAt(chara, enemy.HumanoidRootPart)
  3008. end
  3009. end
  3010.  
  3011. local function onPathBlocked(blockedWaypointIndex)
  3012. print('path blocked')
  3013. local play, chara, hum, root = getPlayer()
  3014. if chara ~= nil and enemy ~= nil then
  3015. charLookAt(chara, enemy.HumanoidRootPart)
  3016. end
  3017. if blockedWaypointIndex > currentWaypointIndex then
  3018. followPath(destination)
  3019. end
  3020. end
  3021.  
  3022. local function rayCollectionService()
  3023. local play, chara, hum, root = getPlayer()
  3024. if chara == nil then return end
  3025. cs:AddTag(chara, "RayIgnore")
  3026. cs:AddTag(workspace.Terrain, "RayWhitelist")
  3027. if workspace:FindFirstChild("tier") then -- boss raid
  3028. for i,v in pairs(game:GetService("Workspace").mapModel:GetChildren()) do
  3029. if v.ClassName == "Part" or v.ClassName == "UnionOperation" or v.ClassName == "WedgePart" then
  3030. if v ~= chara and v.Name ~= regionPartName and v.Transparency < 1 and v.Name ~= "enemyRadius" then
  3031. cs:AddTag(v, "RayWhitelist")
  3032. end
  3033. elseif v.ClassName == "Model" then
  3034. if v ~= chara then
  3035. cs:AddTag(v, "RayWhitelist")
  3036. end
  3037. end
  3038. end
  3039. elseif workspace:FindFirstChild("currentWave") then -- wave defense
  3040. for i,v in pairs(workspace:GetChildren()) do
  3041. if string.find(v.Name, "Arena") then
  3042. cs:AddTag(v, "RayWhitelist")
  3043. end
  3044. end
  3045. else -- normal dungeon
  3046. local dun = waitForExist(workspace, "dungeon")
  3047. for i,room in pairs(dun:GetChildren()) do
  3048. for j, v in pairs(room:GetChildren()) do
  3049. if v.ClassName == "Part" or v.ClassName == "UnionOperation" or v.ClassName == "WedgePart" then
  3050. if v.Transparency < 1 then
  3051. cs:AddTag(v, "RayWhitelist")
  3052. end
  3053. elseif v.ClassName == "Model" then
  3054. cs:AddTag(v, "RayWhitelist")
  3055. end
  3056. end
  3057. end
  3058. for i,v in pairs(workspace:GetChildren()) do
  3059. if v.ClassName == "Part" or v.ClassName == "UnionOperation" or v.ClassName == "WedgePart" then
  3060. if v ~= chara and v.Name ~= regionPartName and v.Transparency < 1 and v.Name ~= "enemyRadius" then
  3061. cs:AddTag(v, "RayWhitelist")
  3062. end
  3063. elseif v.ClassName == "Model" then
  3064. if v ~= chara then
  3065. cs:AddTag(v, "RayWhitelist")
  3066. end
  3067. end
  3068. end
  3069. end
  3070. end
  3071.  
  3072.  
  3073. local function lookAt(target, eye)
  3074. local forwardVector = (target - eye).Unit
  3075. local upVector = Vector3.new(0, 1, 0)
  3076. -- Remember the right-hand rule
  3077. local rightVector = forwardVector:Cross(upVector)
  3078. local upVector2 = rightVector:Cross(forwardVector)
  3079.  
  3080. return CFrame.fromMatrix(eye, rightVector, upVector2)
  3081. end
  3082.  
  3083. function round(num)
  3084. return math.floor(num + 0.5)
  3085. end
  3086.  
  3087. function roundVector(vector)
  3088. return Vector3.new(round(vector.X), round(vector.Y), round(vector.Z))
  3089. end
  3090.  
  3091. local oldTargetPos = Vector3.new(0,0,0)
  3092. local targetPos = Vector3.new(1,0,0)
  3093. local function makePath(target, value)
  3094. if value == nil then value = false end
  3095. local play, chara, hum, root = getPlayer()
  3096. if target.ClassName == "Model" then
  3097. targetPos = roundVector(target.PrimaryPart.Position)
  3098. else
  3099. targetPos = roundVector(target.Position)
  3100. end
  3101. if hum ~= nil and root ~= nil then
  3102. oldTargetPos = targetPos
  3103. destination = targetPos
  3104. if value then
  3105. if enemy ~= nil then
  3106. charLookAt(chara, enemy.PrimaryPart)
  3107. end
  3108. spawn(clearBalls)
  3109. hum:MoveTo(targetPos)
  3110. else
  3111. followPath(targetPos)
  3112. end
  3113. end
  3114. end
  3115.  
  3116. function visualRay(long)
  3117. local p = Instance.new("Part")
  3118. cs:AddTag(p, "RayIgnore")
  3119. p.Size = Vector3.new(2,2,2)
  3120. p.Name = "Ray"
  3121. p.Anchored = true
  3122. p.Material = "Neon"
  3123. p.CanCollide = false
  3124. p.Parent = workspace
  3125. local Debris = game:GetService("Debris")
  3126. Debris:AddItem(p, long)
  3127. return p
  3128. end
  3129.  
  3130. function rayCast(sCF, eCF, ignoreName, whitelist)
  3131. local endGoal = eCF.p
  3132. local start = sCF.p
  3133. local Ray = Ray.new(start, (endGoal - start))
  3134. local list = cs:GetTagged(ignoreName)
  3135. local part, hitPosition
  3136. if whitelist then
  3137. part, hitPosition = workspace:FindPartOnRayWithWhitelist(Ray,list)
  3138. else
  3139. part, hitPosition = workspace:FindPartOnRayWithIgnoreList(Ray,list)
  3140. end
  3141. --if ignoreName == "directionWL" then
  3142. --[[ ray visualize
  3143. local p = visualRay(.005)
  3144. local distance = (start - hitPosition).Magnitude
  3145. p.Size = Vector3.new(0.3, 0.3, distance)
  3146. p.CFrame = lookAt(start, hitPosition)*CFrame.new(0, 0, -distance/2)
  3147. end]]
  3148.  
  3149. return hitPosition, part
  3150. end
  3151. -- false is blacklist, true is whitelist
  3152. local whiteListBlackList = {
  3153. ["laserBeam"] = true,
  3154. ["bossRiflePreCast"] = true,
  3155. ["bossRifleShot"] = true,
  3156. ["hitIndicatorIceAOE"] = true,
  3157. ["iceBeamIndicator"] = true,
  3158. ["projectile"] = true,
  3159. ["mageProjectileBall"] = true,
  3160. ["thirdBossSafeSpots"] = true,
  3161. ["secondBossOrb"] = true,
  3162. ["thirdBossOrbShot"] = true,
  3163. ["spikePrecast"] = true,
  3164. ["kolvumarTrail"] = true,
  3165. ["Kraken Tentacle"] = true,
  3166. ["secondBossRandomSquare"] = true,
  3167. ["initialMageBossEntry"] = false,
  3168. ["initialKingBossEntry"] = false,
  3169. ["initialHunterBossEntry"] = false,
  3170. ["thirdBossSafeSpot"] = false,
  3171. ["forceField"] = false,
  3172. ["safeSpotCircle"] = false,
  3173. ["secondBossSafeSpots"] = false
  3174.  
  3175. }
  3176. local lastCheckList = {
  3177. ["glowPart"] = true,
  3178. ["outerPrecast"] = true,
  3179. ["beam"] = true,
  3180. ["Beam"] = true,
  3181. ["precast"] = true,
  3182. ["preCast"] = true,
  3183. ["HumanoidRootPart"] = true
  3184. }
  3185.  
  3186. local checkProjResult = nil
  3187. local checkProjResult1 = nil
  3188. local checkProjResult2 = nil
  3189. local projNameTemp = nil
  3190. local projNameParentTemp = nil
  3191.  
  3192. local function checkIfProjectile(obj)
  3193. projNameTemp = obj.Name
  3194. if projNameTemp == "enemyRadius" then
  3195. return true
  3196. end
  3197. if obj.Transparency == 1 then
  3198. return false
  3199. end
  3200.  
  3201. checkProjResult = whiteListBlackList[projNameTemp]
  3202. if checkProjResult ~= nil then
  3203. if checkProjResult then
  3204. return checkProjResult
  3205. end
  3206. end
  3207. projNameParentTemp = obj.Parent
  3208. checkProjResult1 = whiteListBlackList[obj.Parent.Name]
  3209. if checkProjResult1 ~= nil then
  3210. return checkProjResult1
  3211. end
  3212.  
  3213. if stringInTable(projNameTemp, projNameList) then
  3214. return false
  3215. end
  3216.  
  3217. checkProjResult2 = lastCheckList[projNameTemp]
  3218. if checkProjResult2 ~= nil and (obj.ClassName == "Part" ) and projNameParentTemp ~= game.Players.LocalPlayer.Character and (checkProjResult2) then --or obj.ClassName == "Union"
  3219. return true
  3220. else
  3221. return false
  3222. end
  3223. end
  3224.  
  3225.  
  3226. local regionPartSize = 4
  3227. local regionStartSize = 5--5
  3228. local regionPartDivisor = 1.4--1.5
  3229. local readyPartTable = {}
  3230. local randomNum = math.random(0,4)
  3231. local function createRegionPart()
  3232. if _G.loadSlow then
  3233. game:GetService("RunService").RenderStepped:wait()
  3234. end
  3235. local part = Instance.new("Part")
  3236. cs:AddTag(part, "RayIgnore")
  3237. part.Size = Vector3.new(regionPartSize, 50, regionPartSize)
  3238. part.CFrame = CFrame.new(0,100,0)
  3239. part.Name = regionPartName
  3240. part.Anchored = true
  3241. part.CanCollide = false
  3242. part.Material = "SmoothPlastic"
  3243. part.Transparency = stuffTransparency --.9
  3244. part:GetPropertyChangedSignal("Transparency"):Connect(antiTransChange)
  3245. part.ChildAdded:Connect(antiChildChange)
  3246. part.BrickColor = BrickColor.new("Black")
  3247.  
  3248. if randomNum == 0 then
  3249. if workspace:FindFirstChild("hardcore") then
  3250. part.Parent = workspace.hardcore
  3251. else
  3252. part.Parent = workspace.raidProgress
  3253. end
  3254. elseif randomNum== 1 then
  3255. part.Parent = workspace.timeLeft
  3256. elseif randomNum == 2 then
  3257. part.Parent = workspace.stats
  3258. elseif randomNum==3 then
  3259. if workspace:FindFirstChild("start") then
  3260. part.Parent = workspace.start
  3261. else
  3262. part.Parent = workspace.dungeonStarted
  3263. end
  3264. elseif randomNum == 4 then
  3265. part.Parent = workspace.Camera
  3266. end
  3267.  
  3268.  
  3269. local connection = part.Touched:Connect(function() end)
  3270. insert(readyPartTable, part)
  3271. return part
  3272. end
  3273.  
  3274. local function getTableSetup(size)
  3275. local t = {}
  3276. for j = 1, size do -- these loops actually make the table
  3277. for l = 1, size do
  3278. if t[j] == nil then -- if not obj, make obj
  3279. t[j] = {}
  3280. end
  3281. if t[j][l] == nil then -- if not obj, make obj
  3282. t[j][l] = {['obj'] = nil, ['safe'] = nil}
  3283. end
  3284. end
  3285. end
  3286. return t
  3287. end
  3288.  
  3289. local function createInitalRegionTable(size)
  3290. --441
  3291. for i= 1, 441 do
  3292. createRegionPart()
  3293. end
  3294. local root = game.Players.LocalPlayer.Character.HumanoidRootPart
  3295. local regionTable = getTableSetup(size)
  3296. local midPoint = (size/2) + .5 --get center cords
  3297. for i = 1, size do
  3298. for j = 1, size do
  3299. local part = remove(readyPartTable)
  3300. regionTable[i][j]['obj'] = part
  3301. regionTable[i][j]['safe'] = true
  3302. if i ~= midPoint or j ~= midPoint then
  3303. cs:AddTag(regionTable[i][j]['obj'], "directionWL")
  3304. end
  3305. end
  3306. end
  3307. return regionTable
  3308. end
  3309.  
  3310. local regionTable = createInitalRegionTable(regionStartSize)
  3311.  
  3312.  
  3313. local function GenerateSpiral(size)
  3314. --local _,_,_,root = getPlayer()
  3315. local size = #regionTable
  3316. local _,_,_,root = getPlayer()
  3317. if root ~= nil then
  3318. local x = 0
  3319. local y = 0
  3320. local d = 0
  3321. local c = 0
  3322. local s = 0
  3323. local tableIndex, part, parts
  3324. for k = 1, size - 1 do
  3325. for j = 0, (k < (size - 1) and 2 or 3) do
  3326. for i = 0, s do
  3327. local Vector = root.Position + Vector3.new(x, 0, y)
  3328.  
  3329. local Part = Instance.new("Part")
  3330. Part.Anchored = true
  3331. Part.CanCollide = false
  3332. Part.Position = Vector
  3333. Part.Size = Vector3.new(2, 2, 2)
  3334. Part.Parent = workspace
  3335.  
  3336. if d == 0 then
  3337. y = y + 5
  3338. elseif d == 1 then
  3339. x = x + 5
  3340. elseif d == 2 then
  3341. y = y - 5
  3342. elseif d == 3 then
  3343. x = x - 5
  3344. end
  3345. end
  3346. d = (d + 1) % 4
  3347. end
  3348. s = s + 1
  3349. end
  3350. end
  3351. end
  3352.  
  3353. local function updateRegionTable()
  3354. local _,_,_,root = getPlayer()
  3355. if root ~= nil then
  3356. local size = #regionTable
  3357. local x = (((size - 1) * regionPartSize) / 2) * -1/regionPartDivisor -- size minus one because the number has to be odd for the player to be centered, *5 because thats size of part being crreated, /2 to get how far back it muist go, *-1 to get negative #
  3358. local z = (((size - 1) * regionPartSize) / 2) * -1/regionPartDivisor
  3359. local tableIndex, part, parts
  3360. for i, v in pairs(regionTable) do
  3361. for j, k in pairs(v) do
  3362. tableIndex = k
  3363. part = tableIndex['obj']
  3364. if root ~= nil and part ~= nil then
  3365. part.CFrame = root.CFrame * CFrame.new(x,0,z)
  3366. --part.Position = (root.CFrame * CFrame.new(x,-1,z)).Position
  3367. parts = part:GetTouchingParts() -- local parts = GetTouchingParts(part)
  3368. part.BrickColor = BrickColor.new("Black")
  3369. tableIndex['safe'] = true
  3370. for m, k in pairs(parts) do
  3371. if checkIfProjectile(k) then
  3372. part.BrickColor = BrickColor.new("Bright red")
  3373. tableIndex['safe'] = false
  3374. break
  3375. end
  3376. end
  3377. end
  3378. z = z + regionPartSize/regionPartDivisor
  3379. end
  3380. z = (((size - 1) * regionPartSize) / 2) * -1/regionPartDivisor
  3381. x = x + regionPartSize/regionPartDivisor
  3382. end
  3383. end
  3384. end
  3385.  
  3386. --[[
  3387. local function updateRegionTable()
  3388. local _,_,_,root = getPlayer()
  3389. if root ~= nil then
  3390. local size = #regionTable
  3391. local x = (((size - 1) * regionPartSize) / 2) * -1/regionPartDivisor -- size minus one because the number has to be odd for the player to be centered, *5 because thats size of part being crreated, /2 to get how far back it muist go, *-1 to get negative #
  3392. local z = (((size - 1) * regionPartSize) / 2) * -1/regionPartDivisor
  3393. local tableIndex, part, parts
  3394. for i, v in pairs(regionTable) do
  3395. for j, k in pairs(v) do
  3396. tableIndex = k
  3397. part = tableIndex['obj']
  3398. if root ~= nil and part ~= nil then
  3399. part.CFrame = root.CFrame * CFrame.new(x,0,z)
  3400. --part.Position = (root.CFrame * CFrame.new(x,-1,z)).Position
  3401. parts = part:GetTouchingParts() -- local parts = GetTouchingParts(part)
  3402. part.BrickColor = BrickColor.new("Black")
  3403. tableIndex['safe'] = true
  3404. for m, k in pairs(parts) do
  3405. if checkIfProjectile(k) then
  3406. part.BrickColor = BrickColor.new("Bright red")
  3407. tableIndex['safe'] = false
  3408. break
  3409. end
  3410. end
  3411. end
  3412. z = z + regionPartSize/regionPartDivisor
  3413. end
  3414. z = (((size - 1) * regionPartSize) / 2) * -1/regionPartDivisor
  3415. x = x + regionPartSize/regionPartDivisor
  3416. end
  3417. end
  3418. end
  3419. ]]
  3420.  
  3421. local function increaseRegionTable()
  3422. local p, new
  3423. for i,col in pairs(regionTable) do
  3424. if #readyPartTable == 0 then
  3425. createRegionPart()
  3426. end
  3427. p = remove(readyPartTable)
  3428. new = {}
  3429. new['obj'] = p
  3430. insert(regionTable[i], 1, new)
  3431. if #readyPartTable == 0 then
  3432. createRegionPart()
  3433. end
  3434. p = remove(readyPartTable)
  3435. new = {}
  3436. new['obj'] = p
  3437. insert(regionTable[i], new)
  3438. end
  3439. local topColumn = {}
  3440. for i, row in pairs(regionTable[1]) do
  3441. if #readyPartTable == 0 then
  3442. createRegionPart()
  3443. end
  3444. p = remove(readyPartTable)
  3445. new = {}
  3446. new['obj'] = p
  3447. insert(topColumn, new)
  3448. end
  3449. local botColumn = {}
  3450. for i, row in pairs(regionTable[1]) do
  3451. if #readyPartTable == 0 then
  3452. createRegionPart()
  3453. end
  3454. p = remove(readyPartTable)
  3455. local new = {}
  3456. new['obj'] = p
  3457. insert(botColumn, new)
  3458. end
  3459. insert(regionTable, 1, topColumn)
  3460. insert(regionTable, botColumn)
  3461. end
  3462.  
  3463. local function decreaseRegionTable()
  3464. local tr
  3465. for i,col in pairs(regionTable) do
  3466. tr = remove(regionTable[i], #regionTable[i])
  3467. if tr ~= nil then
  3468. tr['obj'].CFrame = CFrame.new(0,0,0)
  3469. insert(readyPartTable, tr['obj'])
  3470. local tr = remove(regionTable[i], 1)
  3471. tr['obj'].CFrame = CFrame.new(0,0,0)
  3472. insert(readyPartTable, tr['obj'])
  3473. end
  3474. end
  3475. tr = remove(regionTable, #regionTable)
  3476. for i, v in pairs(tr) do
  3477. if v ~= nil then
  3478. v['obj'].CFrame = CFrame.new(0,0,0)
  3479. insert(readyPartTable, v['obj'])
  3480. end
  3481. end
  3482. tr = remove(regionTable, 1)
  3483. for i, v in pairs(tr) do
  3484. if v ~= nil then
  3485. v['obj'].CFrame = CFrame.new(0,0,0)
  3486. insert(readyPartTable, v['obj'])
  3487. end
  3488. end
  3489. end
  3490.  
  3491.  
  3492.  
  3493. local objectiveExists = false
  3494. local objectiveObject = nil
  3495. local forceObjectiveExists = false
  3496. function checkAroundPlayer(regionTable, s)
  3497. s = (s/2) + .5 --get center cords
  3498. for i = #regionTable - s, regionStartSize do
  3499. if not regionTable[i][i]['safe'] then return false end
  3500. end
  3501. return true
  3502. end
  3503.  
  3504. local function checkCenter(regionTable, s)
  3505. s = (s/2) + .5 --get center cords
  3506. return regionTable[s][s]['safe']
  3507. end
  3508.  
  3509. local function decide()
  3510. enemy = findCloseEnemy()
  3511. local num = mobRange
  3512. if enemy ~= nil and enemy.Name ~= "Azrallik's Heart" and enemy.Name ~= "Dragon Orb" then
  3513. enemy:WaitForChild("enemyStyle")
  3514. local mobType = enemy.enemyStyle.Value
  3515. if mobType ~= "mob" and mobType ~= "ranged" and mobType ~= "melee" and mobType ~= "burly" then -- if boss then
  3516. num = bossRange
  3517. bossPresent = true
  3518. else -- if mob
  3519. if bossPresent then -- if boss did exist but now didnt, that means boss died
  3520. for i,v in pairs(workspace:GetChildren()) do
  3521. if enemyProjNameList[v.Name] then
  3522. v:Destroy()
  3523. end
  3524. end
  3525. end
  3526. bossPresent = false
  3527. end
  3528. end
  3529. --if enemy.Name == "Ancient Lava Mage" then num = 25 end
  3530. local _,_, hum,root = getPlayer()
  3531. if root ~= nil and enemy ~= nil then
  3532. local ePos = enemy.PrimaryPart.Position
  3533. local eNVec = Vector3.new(ePos.X, root.Position.Y, ePos.z)
  3534. local actualDist = getMag(eNVec, root.Position) - (enemy.PrimaryPart.Size.Z/2)
  3535. updateRegionTable()
  3536.  
  3537. if forceObjectiveExists then
  3538. return 'chase_fobjective', nil
  3539. elseif not checkAroundPlayer(regionTable, #regionTable) then
  3540. if not bossPresent and _G.teleportDuringBossOnly then
  3541. walkspeed = 30
  3542. else
  3543. walkspeed = 24
  3544. end
  3545. return 'dodge', nil
  3546. elseif objectiveExists and objectiveObject ~= nil then
  3547. walkspeed = 24
  3548. return 'chase_objective', nil
  3549. elseif actualDist < num - 5 then --elseif actualDist < num - 5 and bossPresent then
  3550. walkspeed = 24
  3551. return "run", nil
  3552. elseif actualDist < num then
  3553. walkspeed = 24
  3554. return "strafe", nil
  3555. else
  3556. if bossPresent then
  3557. walkspeed = 24
  3558. else
  3559. walkspeed = 30
  3560. end
  3561. return "chase", nil
  3562. end
  3563. else
  3564. return "nothing"
  3565. end
  3566. end
  3567.  
  3568. if _G.doInstakill then
  3569. game:GetService("RunService").RenderStepped:connect(function()
  3570. if (sethiddenproperty) then
  3571. sethiddenproperty(game:GetService("Players").LocalPlayer, 'SimulationRadius', math.huge)
  3572. end
  3573. end)
  3574. end
  3575. local _, p, height
  3576. local smalltpdebuff = true
  3577. local function mainLoop()
  3578. spawn(function()
  3579. local _,_,hum,root = getPlayer()
  3580. while not gameOver do
  3581. _,_,hum,root = getPlayer()
  3582. if root ~= nil and hum ~= nil and hum.Health > 0 then
  3583. spawn(function()
  3584. game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = walkspeed
  3585. end)
  3586. local thought, data = decide()
  3587. ScriptDebug("Thought: ".. thought .. ", Enemy: " .. enemy.Name)
  3588. if thought == "chase" then
  3589. _, p = rayCast(root.CFrame, enemy.PrimaryPart.CFrame, "RayWhitelist", true)
  3590. if p == nil then -- if no walls between player and enemy then use moveto instead of pathfinding it
  3591. makePath(enemy, true)
  3592. else
  3593. makePath(enemy)
  3594. end
  3595. elseif thought == "chase_objective" then
  3596. if objectiveObject ~= nil and objectiveObject.ClassName == "Model" then
  3597. _, p = rayCast(root.CFrame * CFrame.new(0,0,0), objectiveObject.PrimaryPart.CFrame * CFrame.new(0,4,0), "RayWhitelist", true)
  3598. elseif objectiveObject ~= nil then
  3599. _, p = rayCast(root.CFrame * CFrame.new(0,0,0), objectiveObject.CFrame * CFrame.new(0,4,0), "RayWhitelist", true)
  3600. end
  3601. if p == nil then -- if no walls between player and objective then use moveto instead of pathfinding it
  3602. makePath(objectiveObject, true)
  3603. else
  3604. makePath(objectiveObject)
  3605. end
  3606. elseif thought == "chase_fobjective" then
  3607. _, p = rayCast(root.CFrame, thePart.CFrame, "RayWhitelist", true)
  3608. if p == nil then -- if no walls between player and objective then use moveto instead of pathfinding it
  3609. makePath(thePart, true)
  3610. else
  3611. makePath(thePart)
  3612. end
  3613. elseif thought == "strafe" then
  3614. local left, p = rayCast(root.CFrame, root.CFrame * CFrame.new(1000,0,0), "RayWhitelist", true) -- left
  3615. local right = rayCast(root.CFrame, root.CFrame * CFrame.new(-1000,0,0), "RayWhitelist", true)-- right
  3616. local leftDist = getMag(root.Position, left)
  3617. local rightDist = getMag(root.Position, right)
  3618. if math.abs(leftDist - rightDist) < 5 then
  3619. thePart.CFrame = root.CFrame
  3620. else
  3621. if rightDist < leftDist then
  3622. thePart.CFrame = root.CFrame * CFrame.new(5,0,0)
  3623. else
  3624. thePart.CFrame = root.CFrame * CFrame.new(-5,0,0)
  3625. end
  3626. end
  3627. makePath(thePart, true)
  3628. elseif thought == "run" then
  3629. _, p = rayCast(root.CFrame * CFrame.new(0,0,0), root.CFrame * CFrame.new(0,0,25), "RayWhitelist", true)
  3630. if p == nil then -- if nothing is behind me, then run backwards
  3631. thePart.CFrame = root.CFrame * CFrame.new(0,0,25)
  3632. makePath(thePart, true)
  3633. else -- keep looking to the left and right till we find a point with no part
  3634. local found = false
  3635. for i = 1, 20 do
  3636. if found then
  3637. break
  3638. end
  3639. for j = 1, 2 do
  3640. local studVal = i * 9
  3641. if j == 1 then
  3642. studVal = studVal * -1
  3643. end
  3644. _, p = rayCast(root.CFrame, root.CFrame * CFrame.new(studVal,-2,25 - i), "RayWhitelist", true)
  3645. if p == nil then -- location found!
  3646. found = true
  3647. thePart.CFrame = root.CFrame * CFrame.new(studVal,-2,25 - i)
  3648. break
  3649. end
  3650. end
  3651. end
  3652. makePath(thePart, true)
  3653. end
  3654. elseif thought == "dodge" then
  3655. local cSafe = nil -- gets the nearest safe spot
  3656. local cSafeVal = math.huge
  3657. local temp, temp1
  3658. local inCenter = false
  3659. local s = (#regionTable/2) + .5 --get center cords
  3660. while cSafe == nil and root ~= nil and hum ~= nil and hum.Health > 0 do
  3661. if regionTable[s][s]['safe'] then inCenter = true cSafe = regionTable[s][s]['obj'] break end -- if its 1, break cause it has to be best
  3662. for x,rowObj in pairs(regionTable) do
  3663. for y, colObj in pairs(rowObj) do
  3664. temp = regionTable[x][y]
  3665. temp1 = math.floor(getMag(root.Position, temp['obj'].Position) + .5)
  3666. if temp['safe'] and temp1 < cSafeVal then
  3667. --print("Cur Val: ".. temp1 .. " Best Val: " .. cSafeVal)
  3668. _, p = rayCast(root.CFrame * CFrame.new(0,0,0), CFrame.new(temp['obj'].Position, root.Position) * CFrame.new(0,0,regionPartSize/2), "RayWhitelist", true)
  3669. if p == nil then
  3670. cSafe = temp['obj']
  3671. cSafeVal = temp1
  3672. else
  3673. temp['obj'].BrickColor = BrickColor.new("Bright yellow")
  3674. end
  3675. end
  3676. end
  3677. end
  3678. if cSafe ~= nil then -- if safe found break loop,
  3679. break
  3680. else -- if no safe found, increase scope and loop over everything again
  3681. increaseRegionTable()
  3682. updateRegionTable()
  3683. if extremelyFast then
  3684. game:GetService("RunService").RenderStepped:wait()
  3685. else
  3686. wait()
  3687. end
  3688. end
  3689. end -- while loop done here, searching done
  3690. _,_,hum,root = getPlayer()
  3691. if cSafe ~= nil and root ~= nil and hum ~= nil then
  3692. if inCenter then
  3693. if objectiveExists then
  3694. if objectiveObject ~= nil and objectiveObject.ClassName == "Model" then
  3695. height = Vector3.new(objectiveObject.PrimaryPart.Position.X, root.Position.Y, objectiveObject.PrimaryPart.Position.Z)
  3696. elseif objectiveObject ~= nil then
  3697. height = Vector3.new(objectiveObject.Position.X, root.Position.Y, objectiveObject.Position.Z)
  3698. end
  3699. else
  3700. height = Vector3.new(enemy.PrimaryPart.Position.X, root.Position.Y, enemy.PrimaryPart.Position.Z)
  3701. end
  3702. _, p = rayCast(root.CFrame * CFrame.new(0,0,0), CFrame.new(height), "directionWL", true)
  3703. if p ~= nil and p.BrickColor == BrickColor.new("Black") then
  3704. if objectiveExists then
  3705. thePart.CFrame = p.CFrame -- move thepart to the thing safe thats towards objective
  3706. elseif getMag(enemy.PrimaryPart.Position, root.Position) > bossRange then -- if the enemy isnt within ability range then set thepart to the closet safe spot
  3707. --print('move closer')
  3708. thePart.CFrame = p.CFrame
  3709. else -- if everything is wrong then go to safe spot
  3710. --print('stay')
  3711. thePart.CFrame = root.CFrame
  3712. end
  3713. else -- safe spot towards objectives/enemy is not safe/ dont do shit
  3714. --print('dont move')
  3715. thePart.CFrame = cSafe.CFrame
  3716. end
  3717. else
  3718. thePart.CFrame = cSafe.CFrame
  3719. end
  3720. cSafe.BrickColor = BrickColor.new("Lime green")
  3721. if inCenter then -- if incenter then just path to the part (since it might be towards an enemy or objective
  3722. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = cSafe.CFrame
  3723. makePath(thePart, true)
  3724. else
  3725. if (cSafeVal < _G.smallTeleportVal) and _G.smallTeleports and smalltpdebuff then -- if not incenter and the dodge is close, just TP to it -- > 9
  3726. if not _G.teleportDuringBossOnly or bossPresent then
  3727. smalltpdebuff = false
  3728. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = thePart.CFrame
  3729. makePath(thePart, true)
  3730. spawn(function()
  3731. wait(.1)
  3732. smalltpdebuff = true
  3733. end)
  3734. else -- if neither just play normal
  3735. makePath(thePart, true)
  3736. end
  3737. else -- if neither just play normal
  3738. makePath(thePart, true)
  3739. end
  3740. end
  3741. end
  3742. while #regionTable > regionStartSize do
  3743. decreaseRegionTable()
  3744. if extremelyFast then
  3745. game:GetService("RunService").RenderStepped:wait()
  3746. else
  3747. wait()
  3748. end
  3749. end
  3750. end
  3751. end
  3752. if extremelyFast then
  3753. game:GetService("RunService").RenderStepped:wait()
  3754. else
  3755. wait()
  3756. end
  3757. end
  3758. end)
  3759. end
  3760. --PSU_FAST_EXECUTION(function() mainLoop() end)
  3761. mainLoop()
  3762.  
  3763. local function useabilities()
  3764. while not game.Players.LocalPlayer:FindFirstChild("Backpack") do
  3765. wait()
  3766. end
  3767. while not gameOver do
  3768. if _G.ignoreAbilityRange then
  3769. game:GetService("RunService").RenderStepped:wait()
  3770. else
  3771. wait()
  3772. end
  3773. char = game.Players.LocalPlayer.Character
  3774. if enemy ~= nil and enemy.PrimaryPart ~= nil and char ~= nil and char.PrimaryPart ~= nil then
  3775. if (getMag(enemy.PrimaryPart.Position, char.PrimaryPart.Position) - (enemy.PrimaryPart.Size.Z/2) ) < abilityRange or _G.ignoreAbilityRange then -- 25, 65 is the range in which we attack
  3776. for _, v in pairs(game.Players.LocalPlayer.Backpack:GetChildren()) do
  3777. if v:FindFirstChildOfClass("RemoteEvent") and v.cooldown.Value <= 0 then
  3778. v:FindFirstChildOfClass("RemoteEvent"):FireServer()
  3779. end
  3780. end
  3781. end
  3782. end
  3783. end
  3784. end
  3785.  
  3786. local function getswordstats()
  3787. player = game.Players.LocalPlayer.Character:GetChildren()
  3788. for _, v in pairs(player) do
  3789. if v.ClassName == "Accessory" then
  3790. if v:FindFirstChild("swing") then
  3791. if v:FindFirstChild("attackSpeed") then
  3792. return v.swing, v.attackSpeed.Value
  3793. end
  3794. end
  3795. end
  3796. end
  3797. end
  3798.  
  3799. if _G.auto_attack then
  3800. spawn(useabilities)
  3801. spawn(function()
  3802. while not gameOver do
  3803. sword, cooldown = getswordstats()
  3804. player = game.Players.LocalPlayer.Character
  3805. if enemy ~= nil and enemy.PrimaryPart ~= nil and player ~= nil and player.PrimaryPart ~= nil then
  3806. if cooldown ~= nil and (getMag(enemy.PrimaryPart.Position, player.PrimaryPart.Position) - (enemy.PrimaryPart.Size.Z/2) ) < 13 then
  3807. wait(cooldown/10)
  3808. sword:FireServer()
  3809. end
  3810. end
  3811. wait()
  3812. end
  3813. end)
  3814. end
  3815.  
  3816. local function steamPunkLast(instance) -- finds the four spots and returns the best one
  3817. instance:WaitForChild("precast")
  3818. --wait(.5)
  3819. local steamTable = {
  3820. bestVal = math.huge,
  3821. bestObj = nil,
  3822. dist = nil,
  3823. newPoint = nil,
  3824. }
  3825.  
  3826. local _, _, _, root = getPlayer()
  3827. for i,v in pairs(instance:GetChildren()) do
  3828. if v.Name == "hitBox" then
  3829. steamTable.dist = getMag(root.Position, v.Position)
  3830. v.Transparency = .9
  3831. if steamTable.dist < steamTable.bestVal then
  3832. steamTable.bestVal = steamTable.dist
  3833. steamTable.bestObj = v
  3834. end
  3835. elseif v.Name == "cog" then
  3836. v:Destroy()
  3837. end
  3838. end
  3839. steamTable.bestObj.BrickColor = BrickColor.new("Lime Green")
  3840. local a = (steamTable.bestObj.CFrame * CFrame.new(0,0,(steamTable.bestObj.Size.Z/-2) + 5)).Position
  3841. local b = (steamTable.bestObj.CFrame * CFrame.new(0,0,(steamTable.bestObj.Size.Z/2) - 5)).Position
  3842. if getMag(enemy.PrimaryPart.Position, a) < getMag(enemy.PrimaryPart.Position, b) then
  3843. return a
  3844. else
  3845. return b
  3846. end
  3847. end
  3848.  
  3849. -- secondBossGeyser
  3850. local function findClosestRockPile(i)
  3851. local a = workspace.secondBossRockPile2.Union
  3852. local b = workspace.secondBossRockPile1.Union
  3853. if (a.Position - i.PrimaryPart.Position).Magnitude < (b.Position - i.PrimaryPart.Position).Magnitude then
  3854. return a
  3855. else
  3856. return b
  3857. end
  3858. end
  3859.  
  3860.  
  3861.  
  3862. local childAddedT = {
  3863. forceFieldCounter = 0,
  3864. gotRock = false,
  3865. gyzerTable = {},
  3866. gyzerLoopRunning = false,
  3867. }
  3868.  
  3869. local function createTentacleAttack(tentacle)
  3870. local r = game.Players.LocalPlayer.Character.HumanoidRootPart
  3871. local t = tentacle.PrimaryPart
  3872. local part = Instance.new("Part")
  3873. part.CFrame = CFrame.new(part.Position, r.Position)
  3874. part.CFrame = t.CFrame * CFrame.new(0,10,-60)
  3875. part.Size = Vector3.new(14,5,128)
  3876. part.Parent = workspace
  3877. part.CanCollide = false
  3878. part.Transparency = 1
  3879. part.Anchored = true
  3880. part.Name = "enemyRadius"
  3881. wait(3)
  3882. part:Destroy()
  3883. end
  3884.  
  3885.  
  3886. workspace.ChildAdded:Connect(function(instance)
  3887. if instance.Name == regionPartName then return end
  3888. --print(instance.Name)
  3889. if instance.Name == "firstBossMoveOrb" then -- ocean 1
  3890. addHitBox(instance, 27, "rectanglev3")
  3891. elseif instance.Name == "thirdBossOrbCircle" or instance.Name == "finalBossOrbShot" then -- ocean 3
  3892. addHitBox(instance, 30, "rectangle-2")
  3893. elseif instance.Name == "firstBossFollowOrb" then -- volcanic 1
  3894. addHitBox(instance, 25, "rectangle-2")
  3895. elseif instance.Name == "mageProjectileBall" then -- canals 1
  3896. addHitBox(instance, 10, "rectangle")
  3897. elseif instance.Name == "secondBossCrescent" then -- canals 2
  3898. addHitBox(instance, 12, "square")
  3899. elseif instance.Name == "secondBossOrb" then -- orbital 2
  3900. addHitBox(instance, 12, "rectanglev3")
  3901. elseif instance.Name == "secondBossStabProjectile" then -- bos raid, ancient stone guardian
  3902. addHitBox(instance, 15, "rectangle-2")
  3903. elseif instance.Name == "gasBall" then -- egg event
  3904. addHitBox(instance, 10, "rectangle")
  3905. elseif instance.Name == "tornado" then -- boss raid, dragon
  3906. addHitBox(instance, 20, "square")
  3907. elseif instance.Name == "thirdBossOrbShot" then -- orbital 3
  3908. addHitBox(instance, 26, "rectanglev2")
  3909. elseif instance.Name == "Kraken Tentacle" then -- ghastly 1
  3910. local debuff = true
  3911. instance:WaitForChild("Humanoid")
  3912. while instance.Parent ~= nil and instance:FindFirstChild("Humanoid") and instance.Humanoid.Health > 0 do
  3913. if #instance.Humanoid:GetPlayingAnimationTracks() == 2 and debuff then
  3914. debuff = false
  3915. createTentacleAttack(instance)
  3916. wait(3)
  3917. debuff = true
  3918. else
  3919. print('not attacking')
  3920. end
  3921. wait()
  3922. end
  3923. elseif instance.Name == "Kraken Tentacle" then -- ghastly 1
  3924. local debuff = true
  3925. instance:WaitForChild("Humanoid")
  3926. while instance.Parent ~= nil and instance:FindFirstChild("Humanoid") and instance.Humanoid.Health > 0 do
  3927. if #instance.Humanoid:GetPlayingAnimationTracks() == 2 and debuff then
  3928. debuff = false
  3929. createTentacleAttack(instance)
  3930. wait(3)
  3931. debuff = true
  3932. else
  3933. print('not attacking')
  3934. end
  3935. wait()
  3936. end
  3937. elseif instance.Name == "overheadCannon" then -- ghastly 2
  3938. print('got cannon')
  3939. objectiveExists = true
  3940. objectiveObject = game:GetService("Workspace").playerFireCannon.ring
  3941. spawn(function()
  3942. while instance ~= nil and instance.Parent ~= nil do
  3943. wait()
  3944. end
  3945. if workspace.playerFireCannonHitMark.Transparency == 1 then
  3946. print('obj done')
  3947. objectiveObject = nil
  3948. objectiveExists = false
  3949. else
  3950. print('chara prob died, get new cannon')
  3951. objectiveObject = workspace.playerPickupCannonballRing
  3952. objectiveExists = true
  3953. end
  3954. -- used cannon shot
  3955. end)
  3956. elseif instance.Name == "secondBossGeyser" then -- volcanic 2
  3957. instance:WaitForChild("PrimaryPart")
  3958. spawn(function()
  3959. local gyzerPos = #childAddedT.gyzerTable+1
  3960. insert(childAddedT.gyzerTable, instance)
  3961. while instance ~= nil and instance.Parent ~= nil do
  3962. wait()
  3963. end
  3964. print('remove gyzzer instance')
  3965. remove(childAddedT.gyzerTable, gyzerPos)
  3966. end)
  3967. spawn(function()
  3968. if not childAddedT.gyzerLoopRunning then
  3969. -- gyzer has spawned
  3970. objectiveExists = true
  3971. childAddedT.gyzerLoopRunning = true
  3972. while workspace.secondBossRockPile2.Union.Transparency ~= 1 and #childAddedT.gyzerTable ~= 0 do -- while gyzer active do
  3973. if childAddedT.gotRock then
  3974. objectiveObject = childAddedT.gyzerTable[#childAddedT.gyzerTable]
  3975. else
  3976. objectiveObject = findClosestRockPile(childAddedT.gyzerTable[#childAddedT.gyzerTable])
  3977. end
  3978. wait()
  3979. end
  3980. childAddedT.gyzerLoopRunning = false
  3981. if #childAddedT.gyzerTable == 0 or workspace.secondBossRockPile2.Union.Transparency == 1 then
  3982. objectiveObject = nil
  3983. objectiveExists = false
  3984. end
  3985. end
  3986. end)
  3987. elseif instance.Name == "secondBossOverheadRock" then -- volcanic 2
  3988. -- player got the rock
  3989. childAddedT.gotRock = true
  3990. while workspace:FindFirstChild("secondBossOverheadRock") and workspace.secondBossRockPile2.Union.Transparency ~= 1 do -- while rock exists wait
  3991. wait()
  3992. end
  3993. childAddedT.gotRock = false
  3994. elseif instance.Name == "thirdBossSafeSpots" then -- steampunk 3
  3995. forceObjectiveExists = true
  3996. local safe = steamPunkLast(instance)
  3997. thePart.CFrame = CFrame.new(safe)
  3998. while workspace:FindFirstChild(instance.Name) and workspace[instance.Name]:FindFirstChild("precast") and workspace[instance.Name]:FindFirstChild("precast").Transparency < 1 do
  3999. safe = steamPunkLast(instance)
  4000. thePart.CFrame = CFrame.new(safe)
  4001. wait()
  4002. end
  4003. forceObjectiveExists = false
  4004. elseif instance.Name == "thirdBossSpreadLine" then -- volcanic 3
  4005. instance:WaitForChild("precast")
  4006. local s = instance.precast:Clone()
  4007. s.Parent = workspace
  4008. s.Transparency = 1
  4009. s.Size = instance.precast.Size + Vector3.new(2,0,0)
  4010. s.Name = "enemyRadius"
  4011. wait(1.4)
  4012. s:Destroy()
  4013. instance.precast.Name = "precast"
  4014. elseif instance.Name == "firstBossLaserPrecast" then -- ocean 1
  4015. instance:WaitForChild("precast")
  4016. wait(.5)
  4017. if instance:FindFirstChild("precast") then
  4018. local s = instance.precast:Clone()
  4019. s.Parent = workspace
  4020. s.Transparency = 1
  4021. s.Size = instance.precast.Size
  4022. s.Name = "enemyRadius"
  4023. wait(1)
  4024. s:Destroy()
  4025. end
  4026. elseif instance.Name == "secondBossSlamHitbox" then -- ocean 2
  4027. local a = instance:WaitForChild("precast")
  4028. local sum = 0
  4029. sum = sum + a.Size.X + a.Size.Z + a.Size.Y
  4030. warn(sum)
  4031. if sum == 46.431163787842 then
  4032. forceObjectiveExists = true
  4033. thePart.CFrame = CFrame.new(-2653.086, 196.526, 2325.825)
  4034. wait(5)
  4035. forceObjectiveExists = false
  4036. end
  4037. elseif instance.Name == "preCast" then -- winter mob
  4038. instance:WaitForChild("preCast")
  4039. instance.preCast.Size = instance.preCast.Size + Vector3.new(0,0,3)
  4040. elseif instance.Name == "riflemanShot" then -- pirate mob
  4041. instance:WaitForChild("hitBox")
  4042. instance.hitBox.Size = instance.hitBox.Size + Vector3.new(0,0,3)
  4043. elseif instance.Name == "firstBossGatlingGunShot" then -- orbital 1
  4044. instance:WaitForChild("precast")
  4045. instance.precast.Size = instance.precast.Size + Vector3.new(1,0,0)
  4046. elseif instance.Name == "firstBossFlameShot" then -- orbital 1
  4047. instance:WaitForChild("precast")
  4048. instance.precast.Size = instance.precast.Size + Vector3.new(1,0,0)
  4049. elseif instance.Name == "chickenMage" then -- egg event
  4050. instance:WaitForChild("precast")
  4051. instance.precast.Size = instance.precast.Size + Vector3.new(0,0,3)
  4052. elseif instance.Name == "droneShot" then -- orbital mob
  4053. instance:WaitForChild("shot")
  4054. wait()
  4055. for i,c in pairs(instance:GetChildren()) do
  4056. if c.Name == "shot" then
  4057. c.precast.Size = c.precast.Size + Vector3.new(1.2,0,0)
  4058. end
  4059. end
  4060.  
  4061. elseif instance.Name == "poisonBomb" then -- egg event
  4062. instance:WaitForChild("eggPart")
  4063. instance:WaitForChild("fuse")
  4064. instance:WaitForChild("PrimaryPart")
  4065. instance:WaitForChild("Union")
  4066. instance.eggPart.Name = "enemyRadius"
  4067. instance.fuse.Name = "enemyRadius"
  4068. instance.PrimaryPart.Name = "enemyRadius"
  4069. instance.Union.Name = "enemyRadius"
  4070. elseif instance.Name == "rangeMobShot" then -- egg event
  4071. instance:WaitForChild("precast")
  4072. instance.precast.Size = instance.precast.Size + Vector3.new(1.5,0,3)
  4073. elseif instance.Name == "chickenMage" then -- egg event
  4074. instance:WaitForChild("precast")
  4075. instance.precast.Size = instance.precast.Size + Vector3.new(0,0,3)
  4076. elseif instance.Name == "npcMageShot" then -- kings castle mob
  4077. instance:WaitForChild("precast")
  4078. instance.precast.Size = instance.precast.Size + Vector3.new(0,0,3)
  4079. elseif instance.Name == "iceBeamIndicator" then -- winter boss
  4080. instance:WaitForChild("Part")
  4081. instance.Part.Size = instance.Part.Size + Vector3.new(0,3,3)
  4082. elseif instance.Name == "hitIndicatorIceAOE" then -- winter boss
  4083. instance:WaitForChild("Part")
  4084. instance.Part.Transparency = 0
  4085. elseif instance.Name == "thirdBossLifeStealBeams" then -- orbital 3
  4086. local thePart = createPart(enemy.PrimaryPart.CFrame * CFrame.new(0,0,-75), Vector3.new(40,40,150), "enemyRadius", "Block")
  4087. wait(1.5)
  4088. thePart:Destroy()
  4089. elseif instance.Name == "silkBlast" then -- pirate 2
  4090. local s = instance:WaitForChild("precast"):Clone()
  4091. s.Size = instance.precast.Size + Vector3.new(3,5,3)
  4092. s.Name = "enemyRadius"
  4093. s.Transparency = 0
  4094. s.Parent = workspace
  4095. wait(5.5)
  4096. s:Destroy()
  4097. elseif instance.Name == "thirdBossSafeSpot" then -- volcanic 3
  4098. objectiveExists = true
  4099. while not instance:FindFirstChild("precast") do
  4100. wait()
  4101. end
  4102. objectiveObject = instance
  4103. while workspace:FindFirstChild(objectiveObject.Name) and workspace:FindFirstChild(objectiveObject.Name):FindFirstChild("precast") and workspace:FindFirstChild(objectiveObject.Name).precast.Transparency > 0 do
  4104. wait()
  4105. end
  4106. objectiveObject = nil
  4107. objectiveExists = false
  4108.  
  4109. elseif instance.Name == "safeSpotCircle" then -- canals 2?
  4110. objectiveExists = true
  4111. objectiveObject = instance
  4112. while instance ~= nil and workspace:FindFirstChild(instance.Name) and workspace:FindFirstChild(instance.Name).Transparency > 0 do
  4113. wait()
  4114. end
  4115. objectiveObject = nil
  4116. objectiveExists = false
  4117.  
  4118. elseif instance.Name == "forceField" then -- canals 3
  4119. childAddedT.forceFieldCounter = childAddedT.forceFieldCounter + 1
  4120. objectiveExists = true
  4121. objectiveObject = instance
  4122. if childAddedT.forceFieldCounter == 2 then
  4123. childAddedT.forceFieldCounter = 0
  4124. objectiveExists = false
  4125. objectiveObject = nil
  4126. end
  4127. elseif instance.ClassName == "Model" then -- if a mob spawns in workspace
  4128. if instance.Name == "Kraken Tentacle" then return end -- has no enemy style
  4129. instance:WaitForChild("HumanoidRootPart", 10)
  4130. if instance ~= nil and instance:FindFirstChild("HumanoidRootPart") and instance ~= game.Players.LocalPlayer.Character then
  4131. if instance.Name == "Azrallik's Heart" or instance.Name == "Dragon Orb" then
  4132. cs:AddTag(instance, "Prio-Enemy")
  4133. elseif instance.Name == "Blood Minion" or instance.Name == "Infected Pirate" or instance.Name == "Ice Minion" or instance.Name == "Tracking Minion" or instance.Name == "Stone Minion" or instance.Name == "Flame Minion" then -- insta kill
  4134. instance:WaitForChild("Humanoid")
  4135. addHitBox(instance, 5, "square")
  4136. instance.Humanoid.Health = 0
  4137. wait(3)
  4138. instance:Destroy()
  4139. else
  4140. local isPlayer = false
  4141. for i,v in pairs(game.Players:GetChildren()) do
  4142. if instance.name == v.Name then
  4143. isPlayer = true
  4144. end
  4145. end
  4146. if not isPlayer then
  4147. cs:AddTag(instance, "Enemy")
  4148. addHitBox(instance, 7)
  4149. end
  4150. end
  4151. end
  4152. end
  4153. end)
  4154. Game:GetService("LogService").MessageOut:Connect(function(Message)
  4155. --[[=table.foreach(strings, function(i,v)
  4156. if Message == v then
  4157. game:GetService('TeleportService'):Teleport(2414851778)
  4158. end
  4159. end)]]
  4160. if string.find(Message,"Server Kick Message:") then
  4161. game:GetService('TeleportService'):Teleport(2414851778)
  4162. end
  4163. end)
  4164. spawn(del_armor_ui)
  4165.  
  4166. path.Blocked:Connect(onPathBlocked)
  4167. local Players = game:GetService("Players")
  4168. game.Players.LocalPlayer.Character.Humanoid.MoveToFinished:Connect(onWaypointReached)
  4169.  
  4170. local function onCharacterAdded(character)
  4171. local _, vchar, hum, root = getPlayer()
  4172. hum.MoveToFinished:Connect(onWaypointReached)
  4173. hum.WalkSpeed = walkspeed
  4174. hum.AutoRotate = false
  4175. spawn(del_armor_ui)
  4176. end
  4177.  
  4178. game.Players.LocalPlayer.CharacterAdded:Connect(onCharacterAdded)
  4179.  
  4180. function oceanFix()
  4181. createWall(CFrame.new(-2530.18213, 217.300583, 2292.73022, 0.978144467, 0, 0.207926437, 0, 1, 0, -0.207926437, 0, 0.978144467), Vector3.new(19.569891, 131.600006, 27.9050236))
  4182. createWall(CFrame.new(-783.23999, 69.9086685, 2350.23462, -1, 0, 0, 0, 1, 0, 0, 0, -1), Vector3.new(372.139984, 128.209991, 15.29))
  4183. createWall(CFrame.new(-2038.21997, 198.318665, 2348.7041, 1, 0, 0, 0, 1, 0, 0, 0, 1), Vector3.new(50.9199371, 138.75, 9.52999496))
  4184. createWall(CFrame.new(-2032.505, 198.318665, 2303.51416, 1, 0, 0, 0, 1, 0, 0, 0, 1), Vector3.new(39.4899368, 138.75, 9.52999496))
  4185. createWall(CFrame.new(-1876.875, 54.728653, 2323.83374, 1, 0, 0, 0, 1, 0, 0, 0, 1), Vector3.new(3.30993915, 161.48999, 138.289993))
  4186. createWall(CFrame.new(-1944.46509, 54.728653, 2256.06372, 0, 0, -1, 0, 1, 0, 1, 0, 0), Vector3.new(3.30993915, 161.48999, 138.289993))
  4187. createWall(CFrame.new(-2013.51514, 54.728653, 2323.55371, -1, 0, 0, 0, 1, 0, 0, 0, -1), Vector3.new(3.30993915, 161.48999, 138.289993))
  4188. createWall(CFrame.new(-1940.46277, 186.948654, 2392.69385, 0, 0, 1, 0, 1, 0, -1, 0, 0), Vector3.new(3.30993915, 161.48999, 149.454834))
  4189. createWall(CFrame.new(-2018.40503, 198.318665, 2369.28418, 1, 0, 0, 0, 1, 0, 0, 0, 1), Vector3.new(11.2899389, 138.75, 50.3699913))
  4190. createWall(CFrame.new(-2018.40503, 198.318665, 2276.61914, 1, 0, 0, 0, 1, 0, 0, 0, 1), Vector3.new(11.2899389, 138.75, 63.3199921))
  4191. createWall(CFrame.new(-1936.995, 162.913666, 2251.38916, 0, 0, -1, 0, 1, 0, 1, 0, 0), Vector3.new(11.2899389, 67.9399948, 155.979996))
  4192. createWall(CFrame.new(-1855.01501, 162.913666, 2254.21924, 0, 0, -1, 0, 1, 0, 1, 0, 0), Vector3.new(11.2899389, 67.9399948, 44.0399971))
  4193. createWall(CFrame.new(-1835.495, 162.913666, 2321.28931, -1, 0, 0, 0, 1, 0, 0, 0, -1), Vector3.new(11.2899389, 67.9399948, 129.720001))
  4194. createWall(CFrame.new(-1270.09351, 52.6868362, 2227.28467, -0.998307824, 0, 0.058156427, 0, 1, 0, -0.058156427, 0, -0.998307824), Vector3.new(2.08999944, 162.653656, 36.7399902))
  4195. createWall(CFrame.new(-1277.76965, 52.6868362, 2242.85889, 0.0161704421, 0, 0.999869287, 0, 1, 0, -0.999869287, 0, 0.0161704421), Vector3.new(9.21999931, 162.653656, 26.4699898))
  4196. createWall(CFrame.new(-1238.92224, 52.6868362, 2468.63843, -0.999989033, 0, 0.00474769808, 0, 1, 0, -0.00474769808, 0, -0.999989033), Vector3.new(9.21999931, 162.653656, 107.419983))
  4197. createWall(CFrame.new(-1241.41284, 52.6868362, 2419.99854, 0.0148379207, 0, 0.999890029, 0, 1, 0, -0.999890029, 0, 0.0148379207), Vector3.new(10.3999996, 162.653656, 28.6099815))
  4198. createWall(CFrame.new(-1261.41321, 52.6868362, 2393.58862, 0.891518176, 0, 0.452984959, 0, 1, 0, -0.452984959, 0, 0.891518176), Vector3.new(9.21999931, 162.653656, 65.5099792))
  4199. createWall(CFrame.new(-1284.52197, 52.6868362, 2302.46655, 0.990956247, 0, 0.134185284, 0, 1, 0, -0.134185284, 0, 0.990956247), Vector3.new(9.21999931, 162.653656, 129.029984))
  4200. createWall(CFrame.new(-1263.70508, 69.9086685, 2329.61914, 0, 0, -1, 0, 1, 0, 1, 0, 0), Vector3.new(46.2999954, 128.209991, 13.9499998))
  4201. createWall(CFrame.new(-1265.06799, 52.6868362, 2238.36621, 0.993771136, 0, 0.111440428, 0, 1, 0, -0.111440428, 0, 0.993771136), Vector3.new(1.61999965, 162.653656, 139.828094))
  4202. createWall(CFrame.new(-1227.82751, 52.6868362, 2201.66064, 0.993771136, 0, 0.111440428, 0, 1, 0, -0.111440428, 0, 0.993771136), Vector3.new(9.21999931, 162.653656, 212.23999))
  4203. createWall(CFrame.new(-1292.28625, 52.6868362, 2105.9895, 0, 0, -1, 0, 1, 0, 1, 0, 0), Vector3.new(9.21999931, 162.653656, 141.559982))
  4204. createWall(CFrame.new(-1364.03931, 52.6868362, 2176.00854, -1, 0, 0, 0, 1, 0, 0, 0, -1), Vector3.new(9.21999931, 162.653656, 141.559982))
  4205. createWall(CFrame.new(-1348.71521, 52.6868362, 2243.71948, 0, 0, 1, 0, 1, -0, -1, 0, 0), Vector3.new(9.21999931, 162.653656, 29.5399895))
  4206. createWall(CFrame.new(-1332.10864, 52.6868362, 2284.60376, 0.990956247, 0, 0.134185284, 0, 1, 0, -0.134185284, 0, 0.990956247), Vector3.new(9.21999931, 162.653656, 90.7599869))
  4207. createWall(CFrame.new(-1331.63562, 52.6868362, 2374.04199, 0.991267025, -0, -0.131870151, 0, 1, -0, 0.131870151, 0, 0.991267025), Vector3.new(9.21999931, 162.653656, 92.5399857))
  4208. createWall(CFrame.new(-1337.19312, 52.6868362, 2448.06567, 0.999832571, 0, 0.0182995033, 0, 1, 0, -0.0182995033, 0, 0.999832571), Vector3.new(9.21999931, 162.653656, 64.6399918))
  4209. createWall(CFrame.new(-1397.48499, 65.1518402, 2454.98486, 0, 0, -1, 0, 1, 0, 1, 0, 0), Vector3.new(60.1099968, 137.723663, 7.00999975))
  4210. createWall(CFrame.new(-1413.17004, 65.1518402, 2428.40991, 0, 0, -1, 0, 1, 0, 1, 0, 0), Vector3.new(6.95999908, 137.723663, 38.3799973))
  4211. createWall(CFrame.new(-1482.84009, 65.1518402, 2428.40991, 0, 0, -1, 0, 1, 0, 1, 0, 0), Vector3.new(6.95999908, 137.723663, 21.1599998))
  4212. createWall(CFrame.new(-1491.44507, 65.1518402, 2475.6748, 0, 0, -1, 0, 1, 0, 1, 0, 0), Vector3.new(101.489998, 137.723663, 3.94999886))
  4213. createWall(CFrame.new(-1443.73999, 65.1518402, 2525.38989, 0, 0, -1, 0, 1, 0, 1, 0, 0), Vector3.new(9.71999931, 137.723663, 99.5199966))
  4214. createWall(CFrame.new(-1831.43005, 101.343674, 2414.46924, -1, 0, 0, 0, 1, 0, 0, 0, -1), Vector3.new(10.3799305, 191.080002, 57.9199944))
  4215. createWall(CFrame.new(-1360.9574, 52.6868362, 2520.39917, 0.0592788458, -0, -0.998241484, 0, 1, -0, 0.998241484, 0, 0.0592788458), Vector3.new(9.71999931, 162.653656, 86.7799988))
  4216. createWall(CFrame.new(-1364.93335, 52.6868362, 2477.90015, 0.0592788458, -0, -0.998241484, 0, 1, -0, 0.998241484, 0, 0.0592788458), Vector3.new(9.21999931, 162.653656, 64.6399918))
  4217. createWall(CFrame.new(-1280.71997, 52.6868362, 2518.2002, 0, 0, -1, 0, 1, 0, 1, 0, 0), Vector3.new(9.71999931, 162.653656, 86.7799988))
  4218. createWall(CFrame.new(-1835.495, 101.343674, 2365.10938, -1, 0, 0, 0, 1, 0, 0, 0, -1), Vector3.new(11.2899389, 191.080002, 42.0799942))
  4219. createWall(CFrame.new(-1853.7251, 101.343674, 2437.48438, -1, 0, 0, 0, 1, 0, 0, 0, -1), Vector3.new(54.9699287, 191.080002, 11.8899946))
  4220. createWall(CFrame.new(-1467.53931, 65.1518402, 2402.24146, 0.979213893, -0, -0.202830359, 0, 1, -0, 0.202830359, 0, 0.979213893), Vector3.new(6.95999908, 137.723663, 60.1899948))
  4221. createWall(CFrame.new(-1858.97498, 62.0486679, 2350.79932, -1, 0, 0, 0, 1, 0, 0, 0, -1), Vector3.new(38.1499329, 112.48999, 13.4599934))
  4222. createWall(CFrame.new(-1853.11987, 101.343674, 2213.18994, 0, 0, -1, 0, 1, 0, 1, 0, 0), Vector3.new(10.3799305, 191.080002, 57.9199944))
  4223. createWall(CFrame.new(-2055.80542, 101.343674, 2279.81958, 0, 0, 1, 0, 1, -0, -1, 0, 0), Vector3.new(35.4999313, 191.080002, 11.8899946))
  4224. createWall(CFrame.new(-2058.75537, 101.343674, 2238.39453, 0, 0, 1, 0, 1, -0, -1, 0, 0), Vector3.new(54.9699287, 191.080002, 11.8899946))
  4225. createWall(CFrame.new(-2031.19507, 101.343674, 2212.02441, -1, 0, 0, 0, 1, 0, 0, 0, -1), Vector3.new(48.0899277, 191.080002, 11.8899946))
  4226. createWall(CFrame.new(-1830.10474, 101.343674, 2253.21997, 0, 0, -1, 0, 1, 0, 1, 0, 0), Vector3.new(90.4399261, 191.080002, 11.8899946))
  4227. createWall(CFrame.new(-1944.03992, 101.343674, 2216.88501, -1, 0, 0, 0, 1, 0, 0, 0, -1), Vector3.new(126.819931, 191.080002, 11.8899946))
  4228. createWall(CFrame.new(-2034.54504, 101.343674, 2439.59448, -1, 0, 0, 0, 1, 0, 0, 0, -1), Vector3.new(54.9699287, 191.080002, 11.8899946))
  4229. createWall(CFrame.new(-2056.00513, 101.343674, 2367.26953, 0, 0, -1, 0, 1, 0, 1, 0, 0), Vector3.new(42.0799294, 191.080002, 11.8899946))
  4230. createWall(CFrame.new(-2060.91504, 101.343674, 2409.96436, 0, 0, -1, 0, 1, 0, 1, 0, 0), Vector3.new(48.0899277, 191.080002, 11.8899946))
  4231. createWall(CFrame.new(-2530.13501, 217.300583, 2359.55347, -0.978144407, 0, 0.207926437, 0, 1, 0, -0.207926437, 0, -0.978144407), Vector3.new(19.569891, 131.600006, 28.2675056))
  4232. createWall(CFrame.new(-2814.97021, 217.300583, 2295.89038, -0.978144407, 0, 0.207926437, 0, 1, 0, -0.207926437, 0, -0.978144407), Vector3.new(19.569891, 131.600006, 34.3708916))
  4233. createWall(CFrame.new(-2538.92798, 217.300583, 2385.58179, -0.913549781, 0, 0.406727046, 0, 1, 0, -0.406727046, 0, -0.913549781), Vector3.new(19.569891, 131.600006, 34.3708916))
  4234. createWall(CFrame.new(-2805.54321, 217.300583, 2266.87744, -0.913549781, 0, 0.406727046, 0, 1, 0, -0.406727046, 0, -0.913549781), Vector3.new(19.569891, 131.600006, 34.3708916))
  4235. createWall(CFrame.new(-2554.1814, 217.300583, 2412.00098, -0.808997631, 0, 0.587812185, 0, 1, 0, -0.587812185, 0, -0.808997631), Vector3.new(19.569891, 131.600006, 34.3708916))
  4236. createWall(CFrame.new(-2790.29028, 217.300583, 2240.4585, -0.808997631, 0, 0.587812185, 0, 1, 0, -0.587812185, 0, -0.808997631), Vector3.new(19.569891, 131.600006, 34.3708916))
  4237. createWall(CFrame.new(-2574.59448, 217.300583, 2434.67188, -0.66911006, 0, 0.743163466, 0, 1, 0, -0.743163466, 0, -0.66911006), Vector3.new(19.569891, 131.600006, 34.3708916))
  4238. createWall(CFrame.new(-2769.87793, 217.300583, 2217.78784, -0.66911006, 0, 0.743163466, 0, 1, 0, -0.743163466, 0, -0.66911006), Vector3.new(19.569891, 131.600006, 34.3708916))
  4239. createWall(CFrame.new(-2599.27612, 217.300583, 2452.60132, -0.499959469, 0, 0.866048813, 0, 1, 0, -0.866048813, 0, -0.499959469), Vector3.new(19.569891, 131.600006, 34.3708916))
  4240. createWall(CFrame.new(-2745.19702, 217.300583, 2199.85962, -0.499959469, 0, 0.866048813, 0, 1, 0, -0.866048813, 0, -0.499959469), Vector3.new(19.569891, 131.600006, 34.3708916))
  4241. createWall(CFrame.new(-2717.32861, 217.300583, 2187.45264, -0.309060812, 0, 0.951042235, 0, 1, 0, -0.951042235, 0, -0.309060812), Vector3.new(19.569891, 131.600006, 34.3708916))
  4242. createWall(CFrame.new(-2627.14502, 217.300583, 2465.00854, -0.309060812, 0, 0.951042235, 0, 1, 0, -0.951042235, 0, -0.309060812), Vector3.new(19.569891, 131.600006, 34.3708916))
  4243. createWall(CFrame.new(-2687.49023, 217.300583, 2181.1106, -0.104543328, 0, 0.994520426, 0, 1, 0, -0.994520426, 0, -0.104543328), Vector3.new(19.569891, 131.600006, 34.3708916))
  4244. createWall(CFrame.new(-2656.98462, 217.300583, 2471.35083, -0.104543328, 0, 0.994520426, 0, 1, 0, -0.994520426, 0, -0.104543328), Vector3.new(19.569891, 131.600006, 34.3708916))
  4245. createWall(CFrame.new(-2687.48999, 217.300583, 2471.35059, 0.10454309, 0, 0.994520426, 0, 1, 0, -0.994520426, 0, 0.10454309), Vector3.new(19.569891, 131.600006, 34.3708916))
  4246. createWall(CFrame.new(-2656.98462, 217.300583, 2181.11084, 0.10454309, 0, 0.994520426, 0, 1, 0, -0.994520426, 0, 0.10454309), Vector3.new(19.569891, 131.600006, 34.3708916))
  4247. createWall(CFrame.new(-2717.32886, 217.300583, 2465.00806, 0.309060872, 0, 0.951042235, 0, 1, 0, -0.951042235, 0, 0.309060872), Vector3.new(19.569891, 131.600006, 34.3708916))
  4248. createWall(CFrame.new(-2627.146, 217.300583, 2187.45313, 0.309060872, 0, 0.951042235, 0, 1, 0, -0.951042235, 0, 0.309060872), Vector3.new(19.569891, 131.600006, 34.3708916))
  4249. createWall(CFrame.new(-2745.19629, 217.300583, 2452.59839, 0.499959469, 0, 0.866048813, 0, 1, 0, -0.866048813, 0, 0.499959469), Vector3.new(19.569891, 131.600006, 34.3708916))
  4250. createWall(CFrame.new(-2599.27905, 217.300583, 2199.8623, 0.499959469, 0, 0.866048813, 0, 1, 0, -0.866048813, 0, 0.499959469), Vector3.new(19.569891, 131.600006, 34.3708916))
  4251. createWall(CFrame.new(-2769.875, 217.300583, 2434.66724, 0.669109941, 0, 0.743163466, 0, 1, 0, -0.743163466, 0, 0.669109941), Vector3.new(19.569891, 131.600006, 34.3708916))
  4252. createWall(CFrame.new(-2574.60059, 217.300583, 2217.79272, 0.669109941, 0, 0.743163466, 0, 1, 0, -0.743163466, 0, 0.669109941), Vector3.new(19.569891, 131.600006, 34.3708916))
  4253. createWall(CFrame.new(-2554.18921, 217.300583, 2240.4624, 0.808997452, 0, 0.587812185, 0, 1, 0, -0.587812185, 0, 0.808997452), Vector3.new(19.569891, 131.600006, 34.3708916))
  4254. createWall(CFrame.new(-2790.28687, 217.300583, 2411.99756, 0.808997452, 0, 0.587812185, 0, 1, 0, -0.587812185, 0, 0.808997452), Vector3.new(19.569891, 131.600006, 34.3708916))
  4255. createWall(CFrame.new(-2538.93652, 217.300583, 2266.88037, 0.913549721, 0, 0.406727046, 0, 1, 0, -0.406727046, 0, 0.913549721), Vector3.new(19.569891, 131.600006, 34.3708916))
  4256. createWall(CFrame.new(-2805.53906, 217.300583, 2385.57935, 0.913549721, 0, 0.406727046, 0, 1, 0, -0.406727046, 0, 0.913549721), Vector3.new(19.569891, 131.600006, 34.3708916))
  4257. createWall(CFrame.new(-2814.96558, 217.300583, 2356.56763, 0.978144467, 0, 0.207926437, 0, 1, 0, -0.207926437, 0, 0.978144467), Vector3.new(19.569891, 131.600006, 34.3708916))
  4258. createWall(CFrame.new(-1465.67212, 65.1518402, 2326.36108, 0.418038607, 0, 0.908429265, 0, 1, 0, -0.908429265, 0, 0.418038607), Vector3.new(6.95999908, 137.723663, 119.360001))
  4259. createWall(CFrame.new(-1945.50989, 101.343674, 2432.42505, -1, 0, 0, 0, 1, 0, 0, 0, -1), Vector3.new(128.319931, 191.080002, 11.8899946))
  4260. createWall(CFrame.new(-2297.98022, 144.288208, 2350.95459, -1, 0, 0, 0, 1, 0, 0, 0, -1), Vector3.new(476.47998, 282.413544, 13.9443436))
  4261. createWall(CFrame.new(-2818.1543, 217.300583, 2326.22998, 1, 0, 0, 0, 1, 0, 0, 0, 1), Vector3.new(19.569891, 131.600006, 34.3708916))
  4262. createWall(CFrame.new(-1131.17993, 69.9086685, 2381.5293, -1, 0, 0, 0, 1, 0, 0, 0, -1), Vector3.new(20.5199738, 128.209991, 74.9199982))
  4263. createWall(CFrame.new(-1420.72083, 65.1518402, 2388.11353, 0.979213893, -0, -0.202830359, 0, 1, -0, 0.202830359, 0, 0.979213893), Vector3.new(6.95999908, 137.723663, 81.0299988))
  4264. createWall(CFrame.new(-961.265015, 69.9086685, 2380.78955, -1, 0, 0, 0, 1, 0, 0, 0, -1), Vector3.new(16.0899849, 128.209991, 76.3999939))
  4265. createWall(CFrame.new(-1189.79504, 69.9086685, 2350.74414, -1, 0, 0, 0, 1, 0, 0, 0, -1), Vector3.new(137.75, 128.209991, 13.9499998))
  4266. createWall(CFrame.new(-1169.94495, 69.9086685, 2300.8855, 1, 0, 0, 0, 1, 0, 0, 0, 1), Vector3.new(98.0499878, 128.209991, 13.9499998))
  4267. createWall(CFrame.new(-1680.02002, 101.343666, 2350.79932, -1, 0, 0, 0, 1, 0, 0, 0, -1), Vector3.new(322.239929, 191.079987, 13.4599934))
  4268. createWall(CFrame.new(-1676.88501, 101.343666, 2301.47925, -1, 0, 0, 0, 1, 0, 0, 0, -1), Vector3.new(328.509979, 191.079987, 13.4599934))
  4269. createWall(CFrame.new(-783.23999, 69.9086685, 2301.69507, 1, 0, 0, 0, 1, 0, 0, 0, 1), Vector3.new(372.139984, 128.209991, 15.29))
  4270. createWall(CFrame.new(-961.265015, 69.9086685, 2271.14014, 1, 0, 0, 0, 1, 0, 0, 0, 1), Vector3.new(16.0899849, 128.209991, 76.3999939))
  4271. createWall(CFrame.new(-1489.99719, 65.1518402, 2361.78638, 0.418038607, 0, 0.908429265, 0, 1, 0, -0.908429265, 0, 0.418038607), Vector3.new(6.95999908, 137.723663, 67.8799973))
  4272. createWall(CFrame.new(-1131.17993, 69.9086685, 2270.40039, 1, 0, 0, 0, 1, 0, 0, 0, 1), Vector3.new(20.5199738, 128.209991, 74.9199982))
  4273. createWall(CFrame.new(-1047.32996, 69.9086685, 2241.58521, 1, 0, 0, 0, 1, 0, 0, 0, 1), Vector3.new(188.219971, 128.209991, 17.2899971))
  4274. createWall(CFrame.new(-2294.77515, 144.288223, 2300.9751, 1, 0, 0, 0, 1, 0, 0, 0, 1), Vector3.new(489.929993, 282.413544, 13.9443436))
  4275. createWall(CFrame.new(-1047.32996, 69.9086685, 2410.34448, -1, 0, 0, 0, 1, 0, 0, 0, -1), Vector3.new(188.219971, 128.209991, 17.2899971))
  4276. createWall(CFrame.new(-2055.80542, 63.3636742, 2325.40967, 0, 0, 1, 0, 1, -0, -1, 0, 0), Vector3.new(126.679932, 115.119995, 11.8899946))
  4277. createWall(CFrame.new(-605.989746, 69.9086685, 2325.82007, -1, 0, 0, 0, 1, 0, 0, 0, -1), Vector3.new(17.639555, 128.209991, 64.1190643))
  4278. createWall(CFrame.new(-908.832153, 19.1552086, 2328.98291, -1, 0, 0, 0, 1, 0, 0, 0, -1), Vector3.new(623.32428, 26.7030716, 180.023346))
  4279. createWall(CFrame.new(-1240.33691, 19.1552086, 2326.72632, -1, 0, 0, 0, 1, 0, 0, 0, -1), Vector3.new(44.9513016, 26.7030716, 38.2773705))
  4280. createWall(CFrame.new(-1246.12073, 2.28969336, 2217.56665, -0.994147718, -0.0294061154, -0.103950247, 0.00436780788, 0.950511336, -0.310659111, 0.107941173, -0.309295058, -0.944820225), Vector3.new(43.4626274, 0.818213403, 196.637329))
  4281. createWall(CFrame.new(-1283.27283, -26.5007706, 2155.53857, -0.785861552, -0.612678826, -0.0839429274, -0.561007082, 0.763435185, -0.320059299, 0.260178566, -0.204429671, -0.943671346), Vector3.new(22.6772556, 2.00851345, 39.9963722))
  4282. createWall(CFrame.new(-1277.3429, -23.8319092, 2181.02539, -0.785853446, -0.528600097, 0.320961922, -0.561008096, 0.390993059, -0.729653716, 0.260201216, -0.75346303, -0.603811979), Vector3.new(24.3937035, 18.8500004, 1.07342899))
  4283. createWall(CFrame.new(-1279.44299, -28.572773, 2173.7793, -1.00000024, 0, 0, 0, 1, -5.96046448e-08, 0, 5.96046448e-08, -1), Vector3.new(171.743622, 4.61810207, 136.415924))
  4284. createWall(CFrame.new(-1312.07739, -23.9459343, 2329.72607, -0.99006927, 0.0131960101, -0.13996321, 0.0200383328, 0.998665988, -0.0475906916, 0.139148533, -0.0499224477, -0.98901242), Vector3.new(93.4838867, 4.94735384, 208.818771))
  4285. createWall(CFrame.new(-1286.50586, -19.7647514, 2468.22461, -1.00000107, -2.79396772e-09, 0, 2.79396772e-09, 1.00000012, -2.38418579e-07, 0, 2.38418579e-07, -1.00000012), Vector3.new(93.4838867, 7.73166227, 87.2299957))
  4286. createWall(CFrame.new(-1286.50586, -20.5263233, 2466.67285, -1.00000107, -2.79396772e-09, 0, 2.79396772e-09, 1.00000012, -2.38418579e-07, 0, 2.38418579e-07, -1.00000012), Vector3.new(93.4838867, 8.40604877, 90.3334351))
  4287. createWall(CFrame.new(-1286.50586, -20.8730373, 2463.3562, -1.00000107, -2.79396772e-09, 0, 2.79396772e-09, 1.00000012, -2.38418579e-07, 0, 2.38418579e-07, -1.00000012), Vector3.new(93.4838867, 7.71262121, 96.9668121))
  4288. createWall(CFrame.new(-1286.50586, -21.1191273, 2460.82324, -1.00000107, -2.79396772e-09, 0, 2.79396772e-09, 1.00000012, -2.38418579e-07, 0, 2.38418579e-07, -1.00000012), Vector3.new(93.4838867, 7.21999979, 102.032936))
  4289. createWall(CFrame.new(-1357.41565, -10.7322168, 2529.74609, -0.974118412, 0.215022326, -0.0697357282, 0.21412079, 0.976597607, 0.0202486329, 0.0724577755, 0.00479363743, -0.99736017), Vector3.new(87.857872, 5.51671267, 107.359512))
  4290. createWall(CFrame.new(-1349.19824, 38.4995384, 2479.56812, -0.974118412, 0.215022326, -0.0697357282, 0.21412079, 0.976597607, 0.0202486329, 0.0724577755, 0.00479363743, -0.99736017), Vector3.new(85.6598358, 104.72879, 6.42000008))
  4291. createWall(CFrame.new(-1453.97693, 1.46386302, 2476.76196, -1.00000453, 9.7497832e-09, -1.49011612e-08, -9.7497832e-09, 1.00000048, -9.550713e-07, -1.49011612e-08, 9.550713e-07, -1.00000036), Vector3.new(109.169998, 0.424085021, 108.226189))
  4292. createWall(CFrame.new(-1454.32715, 1.63537717, 2476.76196, -1.00000453, 9.7497832e-09, -1.49011612e-08, -9.7497832e-09, 1.00000048, -9.550713e-07, -1.49011612e-08, 9.550713e-07, -1.00000036), Vector3.new(108.46965, 0.767113209, 108.226189))
  4293. createWall(CFrame.new(-1454.69763, 1.91353273, 2476.76196, -1.00000453, 9.7497832e-09, -1.49011612e-08, -9.7497832e-09, 1.00000048, -9.550713e-07, -1.49011612e-08, 9.550713e-07, -1.00000036), Vector3.new(107.728615, 1.32342398, 108.226189))
  4294. createWall(CFrame.new(-1443.73267, 10.8826275, 2394.87671, -0.977953851, -0.0425007194, 0.204492941, 0.00425821915, 0.974818051, 0.222961426, -0.208821028, 0.218918473, -0.953138232), Vector3.new(36.4249535, 6.1712513, 130.547668))
  4295. createWall(CFrame.new(-1427.18213, 70.4603043, 2405.68164, -0.977953851, -0.0425007194, 0.204492941, 0.00425821915, 0.974818051, 0.222961426, -0.208821028, 0.218918473, -0.953138232), Vector3.new(0.0500000007, 125.649826, 117.808311))
  4296. createWall(CFrame.new(-1487.76672, 20.8402691, 2338.7666, -0.893995583, 0.14297086, 0.424654365, 0.145493388, 0.988999486, -0.0266750585, -0.423796773, 0.0379370227, -0.90496242), Vector3.new(88.661377, 9.92626381, 41.2240219))
  4297. createWall(CFrame.new(-1700.78955, 29.0303326, 2325.34424, -1.00000012, 2.97213205e-08, 1.88447302e-08, -2.97213205e-08, 0.999999821, -1.86264515e-09, 1.88447302e-08, 1.86264515e-09, -0.999999881), Vector3.new(371.852844, 5.56997252, 53.5832138))
  4298. createWall(CFrame.new(-1529.57568, 28.8269882, 2325.34424, -1.00000012, 2.97213205e-08, 1.88447302e-08, -2.97213205e-08, 0.999999821, -1.86264515e-09, 1.88447302e-08, 1.86264515e-09, -0.999999881), Vector3.new(31.7297535, 5.16327238, 53.5832138))
  4299. createWall(CFrame.new(-1528.28796, 28.558382, 2325.34424, -1.00000012, 2.97213205e-08, 1.88447302e-08, -2.97213205e-08, 0.999999821, -1.86264515e-09, 1.88447302e-08, 1.86264515e-09, -0.999999881), Vector3.new(31.3896217, 4.62606096, 53.5832138))
  4300. createWall(CFrame.new(-1527.79773, 28.3058643, 2325.34424, -1.00000012, 2.97213205e-08, 1.88447302e-08, -2.97213205e-08, 0.999999821, -1.86264515e-09, 1.88447302e-08, 1.86264515e-09, -0.999999881), Vector3.new(32.3699989, 4.12102604, 53.5832138))
  4301. createWall(CFrame.new(-1527.37683, 28.102354, 2325.34424, -1.00000012, 2.97213205e-08, 1.88447302e-08, -2.97213205e-08, 0.999999821, -1.86264515e-09, 1.88447302e-08, 1.86264515e-09, -0.999999881), Vector3.new(33.211895, 3.71400523, 53.5832138))
  4302. createWall(CFrame.new(-1526.84424, 27.9374313, 2325.34424, -1.00000012, 2.97213205e-08, 1.88447302e-08, -2.97213205e-08, 0.999999821, -1.86264515e-09, 1.88447302e-08, 1.86264515e-09, -0.999999881), Vector3.new(34.2771111, 3.38415861, 53.5832138))
  4303. createWall(CFrame.new(-1855.52856, 37.2675323, 2286.03491, -1.00000024, -8.24050039e-06, 3.51449016e-05, 4.88978958e-06, 0.932308853, 0.36166212, -3.57189347e-05, 0.36166209, -0.932308912), Vector3.new(44.2060127, 6.02838516, 49.6322327))
  4304. createWall(CFrame.new(-1858.3186, 46.4191093, 2232.7439, -1.00000048, 1.18888238e-07, 7.53789209e-08, -1.18888238e-07, 0.999999285, 0, 7.53789209e-08, 0, -0.999999404), Vector3.new(56.2976837, 5.61337185, 63.1329041))
  4305. createWall(CFrame.new(-1938.64209, 59.3698273, 2253.55371, -0.975066185, 0.221918508, 1.4699873e-07, 0.221918583, 0.975063741, -3.34559616e-08, 1.50757813e-07, -8.96166618e-15, -0.999998748), Vector3.new(141.891571, 6.28999996, 63.1329041))
  4306. createWall(CFrame.new(-2031.08984, 76.6613846, 2259.55518, -1.00000191, 4.61935997e-07, 3.01515627e-07, -4.61935997e-07, 0.999997079, 5.15942202e-14, 3.01515627e-07, -5.15942202e-14, -0.999997497), Vector3.new(48.2068825, 3.13832617, 97.6713715))
  4307. createWall(CFrame.new(-2037.69958, 90.5315781, 2323.69995, -1.00000381, -4.73108639e-06, -5.01252653e-05, 4.97483006e-06, 0.975067258, -0.221883357, 5.15119791e-05, -0.221883178, -0.975068092), Vector3.new(48.2068825, 4.05999994, 133.019562))
  4308. createWall(CFrame.new(-2035.52686, 103.249794, 2413.302, -1, 1.79664345e-14, 1.13686838e-13, -1.79664345e-14, 1, -8.8817842e-16, 1.13686838e-13, 8.8817842e-16, -1), Vector3.new(48.8988571, 8.13232899, 50.8320503))
  4309. createWall(CFrame.new(-1952.27319, 116.819923, 2413.41699, -0.97507298, -0.221884459, 5.84738664e-05, -0.221884459, 0.97507298, 7.50656818e-06, -5.86818787e-05, -5.65499067e-06, -1), Vector3.new(144.940002, 7.03901482, 40.3282356))
  4310. createWall(CFrame.new(-1857.91382, 134.10907, 2348.59229, -0.99999994, 3.59328656e-14, 2.27373662e-13, -3.5932869e-14, 1, -1.77635684e-15, 2.27373675e-13, 1.77635684e-15, -1), Vector3.new(56.4390755, 4.47680473, 177.607712))
  4311. createWall(CFrame.new(-1873.65051, 136.331314, 2318.76172, -0.855346203, 0.518056273, 7.74251973e-13, 0.518056035, 0.85534656, -4.77246931e-13, 9.09494539e-13, 7.10542736e-15, -1), Vector3.new(6.69999218, 0.0500000007, 150.532593))
  4312. createWall(CFrame.new(-1946.55249, 137.231415, 2319.61206, -0.999999166, 2.98023224e-08, 1.81898875e-12, -2.98023224e-08, 1, -1.42108547e-14, 1.81898875e-12, 1.42108547e-14, -1), Vector3.new(137.636246, 3.40450764, 150.532593))
  4313. createWall(CFrame.new(-1945.93896, 137.022552, 2319.61206, -0.999999166, 2.98023224e-08, 1.81898875e-12, -2.98023224e-08, 1, -1.42108547e-14, 1.81898875e-12, 1.42108547e-14, -1), Vector3.new(138.863373, 2.98677969, 150.532593))
  4314. createWall(CFrame.new(-2190.23413, 136.711761, 2325.40161, -0.999999166, 2.98023224e-08, 1.81898875e-12, -2.98023224e-08, 1, -1.42108547e-14, 1.81898875e-12, 1.42108547e-14, -1), Vector3.new(366.358093, 2.36521196, 39.7483025))
  4315. createWall(CFrame.new(-2674.35205, 192.732971, 2320.76904, -1, 0, 0, 0, 1, 0, 0, 0, -1), Vector3.new(279.199799, 6.58692169, 290.013947))
  4316. createWall(CFrame.new(-2672.68774, 192.732971, 2320.76904, -1, 0, 0, 0, 1, 0, 0, 0, -1), Vector3.new(282.528381, 6.58692169, 290.013947))
  4317. createWall(CFrame.new(-2398.11328, 162.203232, 2325.17139, 0.970287263, 0.241955817, 0, -0.241955817, 0.970287263, 0, 0, 0, 1.00000012), Vector3.new(274.739532, 0.558954656, 51.0499992))
  4318. local t = waitForExist(workspace, "borders")
  4319. t:Destroy()
  4320. if _G.destroy_map then
  4321. workspace.Terrain:Clear()
  4322. for i,v in pairs(workspace:GetChildren()) do
  4323. if v.Name ~= "lastBossSafeZones" and v.Name ~="Terrain" and (v.ClassName == "Model" or v:IsA("BasePart")) and v ~= game.Players.LocalPlayer.Character and v.Name ~= regionPartName then
  4324. v:Destroy()
  4325. end
  4326. end
  4327. end
  4328. while true do
  4329. local s = game:GetService("Workspace").dungeon.room3.enemyFolder
  4330. if #s:GetChildren() == 41 then
  4331. forceObjectiveExists = true
  4332. thePart.CFrame = CFrame.new(-1240.337, 7.648, 2246.159)
  4333. while wait() do
  4334. local _,_,_,root = getPlayer()
  4335. if root then
  4336. if root.Position.Y < 21 then break end
  4337. end
  4338. end
  4339. forceObjectiveExists = false
  4340. break
  4341. end
  4342. wait(1)
  4343. end
  4344. while true do
  4345. local s = game:GetService("Workspace").dungeon.room5.enemyFolder
  4346. if #s:GetChildren() == 16 then
  4347. forceObjectiveExists = true
  4348. thePart.CFrame = CFrame.new(-1858.319, 46.419, 2232.744)
  4349. while wait() do
  4350. local _,_,_,root = getPlayer()
  4351. if root then
  4352. if root.Position.Y < 38 then break end
  4353. end
  4354. end
  4355. forceObjectiveExists = false
  4356. break
  4357. end
  4358. wait(1)
  4359. end
  4360. spawn(function()
  4361. while true do
  4362. local s = game:GetService("Workspace").dungeon.room6.enemyFolder
  4363. if s:FindFirstChild("Ancient Temple Protector") then
  4364. local g = s:FindFirstChild("Ancient Temple Protector")
  4365. local ts = game:GetService("TweenService")
  4366. g:WaitForChild("HumanoidRootPart")
  4367. while g ~= nil and g.Parent ~= nil and g:FindFirstChild("Humanoid") and g.Humanoid.Health > 0 do
  4368. local s = g.Humanoid:GetPlayingAnimationTracks()
  4369. bossRange = 15
  4370. for i,v in pairs(s) do
  4371. if v.Animation.AnimationId == "rbxassetid://6106580202" then
  4372. -- doing stupid ass attack
  4373. forceObjectiveExists = true
  4374. walkspeed = 32
  4375. thePart.CFrame = g.HumanoidRootPart.CFrame * CFrame.new(0,-(g.HumanoidRootPart.Size.Y*.4),10)
  4376. local _,_,_,root = getPlayer()
  4377. if root ~= nil then
  4378. dist = (thePart.Position-root.Position).magnitude
  4379. ts:Create(root, TweenInfo.new(dist/30), {CFrame = g.HumanoidRootPart.CFrame * CFrame.new(0,-(g.HumanoidRootPart.Size.Y*.4),10)}):Play()
  4380. warn(dist/30)
  4381. break
  4382. end
  4383. else
  4384. walkspeed = 24
  4385. forceObjectiveExists = false
  4386. end
  4387. end
  4388. wait()
  4389. end
  4390. forceObjectiveExists = false
  4391. bossRange = 15
  4392. break
  4393. end
  4394. wait(1)
  4395. end
  4396. end)
  4397. end
  4398. function volcanicFix()
  4399. createWall(CFrame.new(-1233.02295, 2.79844761, 705.183167, -0.999982297, -6.14493274e-08, -0.00593414903, -6.1298465e-08, 1, -2.56039989e-08, 0.00593414903, -2.52398049e-08, -0.999982297), Vector3.new(148.029877, 17.849968, 161.050003))
  4400. createWall(CFrame.new(-1127.02625, -2.89132118, 699.554077, -0.981609523, 0.190805554, -0.00593414763, 0.190808892, 0.981627166, -2.57277861e-08, 0.0058251163, -0.00113231386, -0.999982119), Vector3.new(69.5298767, 18.849968, 35.0500031))
  4401. createWall(CFrame.new(-793.540466, -8.58208942, 699.325134, -0.999981225, -4.8950298e-08, -0.00593414297, -5.41017471e-08, 0.999999881, -2.59606168e-08, 0.00593414484, -2.53785402e-08, -0.999981582), Vector3.new(606.529907, 18.849968, 38.5500031))
  4402. createWall(CFrame.new(-417.026733, -7.0820694, 700.590942, -0.999981225, -4.8950298e-08, -0.00593414297, -5.41017471e-08, 0.999999881, -2.59606168e-08, 0.00593414484, -2.53785402e-08, -0.999981582), Vector3.new(157.529907, 18.849968, 158.550003))
  4403. createWall(CFrame.new(-498.050507, 0.667925298, 696.821716, -0.999981225, -4.8950298e-08, -0.00593414297, -5.41017471e-08, 0.999999881, -2.59606168e-08, 0.00593414484, -2.53785402e-08, -0.999981582), Vector3.new(5.52990723, 2.34996796, 37.0500031))
  4404. createWall(CFrame.new(-498.800507, 0.417925298, 696.826172, -0.999981225, -4.8950298e-08, -0.00593414297, -5.41017471e-08, 0.999999881, -2.59606168e-08, 0.00593414484, -2.53785402e-08, -0.999981582), Vector3.new(7.02990723, 1.84996796, 37.0500031))
  4405. createWall(CFrame.new(135.459915, -8.58203983, 696.812256, -0.999981225, -4.8950298e-08, -0.00593414297, -5.41017471e-08, 0.999999881, -2.59606168e-08, 0.00593414484, -2.53785402e-08, -0.999981582), Vector3.new(280.529907, 18.849968, 44.5500031))
  4406. createWall(CFrame.new(273.457336, -8.0820322, 695.993347, -0.999981225, -4.8950298e-08, -0.00593414297, -5.41017471e-08, 0.999999881, -2.59606168e-08, 0.00593414484, -2.53785402e-08, -0.999981582), Vector3.new(4.52990723, 19.849968, 44.5500031))
  4407. createWall(CFrame.new(276.957275, -7.5820322, 695.972595, -0.999981225, -4.8950298e-08, -0.00593414297, -5.41017471e-08, 0.999999881, -2.59606168e-08, 0.00593414484, -2.53785402e-08, -0.999981582), Vector3.new(9.52990723, 20.849968, 44.5500031))
  4408. createWall(CFrame.new(289.707031, -6.58203173, 695.896912, -0.999981225, -4.8950298e-08, -0.00593414297, -5.41017471e-08, 0.999999881, -2.59606168e-08, 0.00593414484, -2.53785402e-08, -0.999981582), Vector3.new(21.0299072, 22.849968, 44.5500031))
  4409. createWall(CFrame.new(-12.0373135, -8.08204746, 697.687561, -0.999981225, -4.8950298e-08, -0.00593414297, -5.41017471e-08, 0.999999881, -2.59606168e-08, 0.00593414484, -2.53785402e-08, -0.999981582), Vector3.new(44.5299072, 19.849968, 44.5500031))
  4410. createWall(CFrame.new(-14.5372658, -7.58204746, 697.702393, -0.999981225, -4.8950298e-08, -0.00593414297, -5.41017471e-08, 0.999999881, -2.59606168e-08, 0.00593414484, -2.53785402e-08, -0.999981582), Vector3.new(39.5299072, 20.849968, 44.5500031))
  4411. createWall(CFrame.new(-16.5372276, -7.08204746, 697.714233, -0.999981225, -4.8950298e-08, -0.00593414297, -5.41017471e-08, 0.999999881, -2.59606168e-08, 0.00593414484, -2.53785402e-08, -0.999981582), Vector3.new(35.5299072, 21.849968, 44.5500031))
  4412. createWall(CFrame.new(-19.0371799, -6.58204746, 697.729065, -0.999981225, -4.8950298e-08, -0.00593414297, -5.41017471e-08, 0.999999881, -2.59606168e-08, 0.00593414484, -2.53785402e-08, -0.999981582), Vector3.new(30.5299072, 22.849968, 44.5500031))
  4413. createWall(CFrame.new(-24.2870808, -6.08204794, 697.760193, -0.999981225, -4.8950298e-08, -0.00593414297, -5.41017471e-08, 0.999999881, -2.59606168e-08, 0.00593414484, -2.53785402e-08, -0.999981582), Vector3.new(20.0299072, 23.849968, 44.5500031))
  4414. createWall(CFrame.new(-40.2867775, -5.83204842, 697.855164, -0.999981225, -4.8950298e-08, -0.00593414297, -5.41017471e-08, 0.999999881, -2.59606168e-08, 0.00593414484, -2.53785402e-08, -0.999981582), Vector3.new(39.0299072, 24.349968, 44.5500031))
  4415. createWall(CFrame.new(-44.036705, -6.58204842, 697.877441, -0.999981225, -4.8950298e-08, -0.00593414297, -5.41017471e-08, 0.999999881, -2.59606168e-08, 0.00593414484, -2.53785402e-08, -0.999981582), Vector3.new(46.5299072, 22.849968, 44.5500031))
  4416. createWall(CFrame.new(-48.0366287, -7.08204889, 697.901123, -0.999981225, -4.8950298e-08, -0.00593414297, -5.41017471e-08, 0.999999881, -2.59606168e-08, 0.00593414484, -2.53785402e-08, -0.999981582), Vector3.new(54.5299072, 21.849968, 44.5500031))
  4417. createWall(CFrame.new(-65.2863083, -7.33204985, 698.003479, -0.999981225, -4.8950298e-08, -0.00593414297, -5.41017471e-08, 0.999999881, -2.59606168e-08, 0.00593414484, -2.53785402e-08, -0.999981582), Vector3.new(89.0299072, 21.349968, 44.5500031))
  4418. createWall(CFrame.new(-80.536026, -7.58205032, 698.093994, -0.999981225, -4.8950298e-08, -0.00593414297, -5.41017471e-08, 0.999999881, -2.59606168e-08, 0.00593414484, -2.53785402e-08, -0.999981582), Vector3.new(119.529907, 20.849968, 44.5500031))
  4419. createWall(CFrame.new(-88.5358734, -8.08205032, 698.141479, -0.999981225, -4.8950298e-08, -0.00593414297, -5.41017471e-08, 0.999999881, -2.59606168e-08, 0.00593414484, -2.53785402e-08, -0.999981582), Vector3.new(135.529907, 19.849968, 44.5500031))
  4420. createWall(CFrame.new(-113.535408, -8.58205223, 698.289856, -0.999981225, -4.8950298e-08, -0.00593414297, -5.41017471e-08, 0.999999881, -2.59606168e-08, 0.00593414484, -2.53785402e-08, -0.999981582), Vector3.new(185.529907, 18.849968, 44.5500031))
  4421. createWall(CFrame.new(-215.033478, -8.08205795, 698.89209, -0.999981225, -4.8950298e-08, -0.00593414297, -5.41017471e-08, 0.999999881, -2.59606168e-08, 0.00593414484, -2.53785402e-08, -0.999981582), Vector3.new(26.5299072, 19.849968, 44.5500031))
  4422. createWall(CFrame.new(-243.282944, -7.83205986, 699.059753, -0.999981225, -4.8950298e-08, -0.00593414297, -5.41017471e-08, 0.999999881, -2.59606168e-08, 0.00593414484, -2.53785402e-08, -0.999981582), Vector3.new(32.0299072, 20.349968, 44.5500031))
  4423. createWall(CFrame.new(-270.78241, -7.33206129, 699.222961, -0.999981225, -4.8950298e-08, -0.00593414297, -5.41017471e-08, 0.999999881, -2.59606168e-08, 0.00593414484, -2.53785402e-08, -0.999981582), Vector3.new(49.0299072, 21.349968, 44.5500031))
  4424. createWall(CFrame.new(-309.781677, -7.0820632, 699.454407, -0.999981225, -4.8950298e-08, -0.00593414297, -5.41017471e-08, 0.999999881, -2.59606168e-08, 0.00593414484, -2.53785402e-08, -0.999981582), Vector3.new(53.0299072, 21.849968, 44.5500031))
  4425. createWall(CFrame.new(-313.281616, -6.5820632, 699.475159, -0.999981225, -4.8950298e-08, -0.00593414297, -5.41017471e-08, 0.999999881, -2.59606168e-08, 0.00593414484, -2.53785402e-08, -0.999981582), Vector3.new(46.0299072, 22.849968, 44.5500031))
  4426. createWall(CFrame.new(-314.781586, -6.3320632, 699.48407, -0.999981225, -4.8950298e-08, -0.00593414297, -5.41017471e-08, 0.999999881, -2.59606168e-08, 0.00593414484, -2.53785402e-08, -0.999981582), Vector3.new(43.0299072, 23.349968, 44.5500031))
  4427. createWall(CFrame.new(-317.031555, -5.8320632, 699.497437, -0.999981225, -4.8950298e-08, -0.00593414297, -5.41017471e-08, 0.999999881, -2.59606168e-08, 0.00593414484, -2.53785402e-08, -0.999981582), Vector3.new(38.5299072, 24.349968, 44.5500031))
  4428. createWall(CFrame.new(-319.531494, -5.5820632, 699.512268, -0.999981225, -4.8950298e-08, -0.00593414297, -5.41017471e-08, 0.999999881, -2.59606168e-08, 0.00593414484, -2.53785402e-08, -0.999981582), Vector3.new(33.5299072, 24.849968, 44.5500031))
  4429. createWall(CFrame.new(-320.531464, -6.0820632, 699.518188, -0.999981225, -4.8950298e-08, -0.00593414297, -5.41017471e-08, 0.999999881, -2.59606168e-08, 0.00593414484, -2.53785402e-08, -0.999981582), Vector3.new(35.5299072, 23.849968, 44.5500031))
  4430. createWall(CFrame.new(-323.031403, -6.5820632, 699.53302, -0.999981225, -4.8950298e-08, -0.00593414297, -5.41017471e-08, 0.999999881, -2.59606168e-08, 0.00593414484, -2.53785402e-08, -0.999981582), Vector3.new(40.5299072, 22.849968, 44.5500031))
  4431. createWall(CFrame.new(-326.776886, -6.5820632, 700.305298, -0.999981225, -4.8950298e-08, -0.00593414297, -5.41017471e-08, 0.999999881, -2.59606168e-08, 0.00593414484, -2.53785402e-08, -0.999981582), Vector3.new(48.0299072, 22.849968, 76.0500031))
  4432. createWall(CFrame.new(-330.281281, -7.0820632, 699.57605, -0.999981225, -4.8950298e-08, -0.00593414297, -5.41017471e-08, 0.999999881, -2.59606168e-08, 0.00593414484, -2.53785402e-08, -0.999981582), Vector3.new(55.0299072, 21.849968, 90.5500031))
  4433. createWall(CFrame.new(-2341.5, 9.19974613, 695.25, 1, 0, 0, 0, 1, 0, 0, 0, 1), Vector3.new(197, 3, 194.5))
  4434. createWall(CFrame.new(-2244.75, 10.1997461, 695.25, 1, 0, 0, 0, 1, 0, 0, 0, 1), Vector3.new(10.5, 1, 194.5))
  4435. createWall(CFrame.new(-46.5366592, -6.33204842, 697.892273, -0.999981225, -4.8950298e-08, -0.00593414297, -5.41017471e-08, 0.999999881, -2.59606168e-08, 0.00593414484, -2.53785402e-08, -0.999981582), Vector3.new(34.5299072, 23.349968, 44.5500031))
  4436. createWall(CFrame.new(278.207245, -7.0820322, 695.965149, -0.999981225, -4.8950298e-08, -0.00593414297, -5.41017471e-08, 0.999999881, -2.59606168e-08, 0.00593414484, -2.53785402e-08, -0.999981582), Vector3.new(7.02990723, 21.849968, 44.5500031))
  4437. createWall(CFrame.new(-2093.75, 9.94974613, 696.75, 1, 0, 0, 0, 1, 0, 0, 0, 1), Vector3.new(692.5, 0.5, 37.5))
  4438. createWall(CFrame.new(-1725.44324, 10.6997461, 694.778015, 0.694658399, 0, 0.719339788, 0, 1, 0, -0.719339788, 0, 0.694658399), Vector3.new(48, 2, 45))
  4439. createWall(CFrame.new(-1339.51733, 4.49533796, 698.180054, 0.99026829, -0.13917312, 0, 0.13917312, 0.99026829, 0, 0, 0, 1), Vector3.new(67.5, 4, 37))
  4440. createWall(CFrame.new(-1363.59412, 1.11156046, 708.326904, 0.820969999, -0.13917318, 0.553750992, 0.115379818, 0.990268767, 0.0778246224, -0.559193194, 0, 0.829037607), Vector3.new(34, 4, 49))
  4441. createWall(CFrame.new(-1371.4259, -0.998918772, 723.160156, 0.930549145, -0.139173374, -0.338692099, 0.13078016, 0.990270197, -0.047600057, 0.34202072, -7.4505806e-09, 0.939693034), Vector3.new(38.5, 4, 48))
  4442. createWall(CFrame.new(-1393.78589, -4.70867538, 741.874329, 0.525701582, -0.11796616, -0.842453718, 0.0624936409, 0.993020117, -0.100052938, 0.848372996, -4.99562702e-05, 0.529402494), Vector3.new(57, 4, 48))
  4443. createWall(CFrame.new(-1426.87244, -9.64694118, 727.73645, -0.0525785685, -0.117965765, -0.991624653, -0.00619550375, 0.993017733, -0.117802992, 0.998597682, -5.02976873e-05, -0.0529423133), Vector3.new(43, 4, 49))
  4444. createWall(CFrame.new(-1542.79834, -24.1414528, 693.151733, 0.151433259, -0.117894612, -0.981410801, 0.0179410838, 0.993028104, -0.116522513, 0.988308668, 3.75595118e-05, 0.152491033), Vector3.new(16.5, 4, 24.5))
  4445. createWall(CFrame.new(-1525.43823, -22.3317413, 680.852295, 0.711567044, -0.117893316, -0.692656934, 0.0844521746, 0.993026376, -0.0822597519, 0.697524667, 3.69343543e-05, 0.716561079), Vector3.new(16.5, 3.5, 31))
  4446. createWall(CFrame.new(-1512.83789, -21.387928, 669.898132, 0.0859401673, -0.117966108, -0.989292026, 0.010259347, 0.993018389, -0.117519177, 0.996249139, -4.99039452e-05, 0.086550802), Vector3.new(16.5, 3.5, 26))
  4447. createWall(CFrame.new(-1502.39136, -20.650486, 668.989319, 0.0859401673, -0.117966108, -0.989292026, 0.010259347, 0.993018389, -0.117519177, 0.996249139, -4.99039452e-05, 0.086550802), Vector3.new(16.5, 3.5, 26))
  4448. createWall(CFrame.new(-1481.26001, -18.1399117, 673.785461, -0.526738107, -0.117966197, -0.841804624, -0.0625315532, 0.993019879, -0.100029439, 0.847729981, -4.99358321e-05, -0.530434847), Vector3.new(16.5, 3.5, 26))
  4449. createWall(CFrame.new(-1468.12195, -15.5714817, 686.85675, -0.526738107, -0.117966197, -0.841804624, -0.0625315532, 0.993019879, -0.100029439, 0.847729981, -4.99358321e-05, -0.530434847), Vector3.new(24.5, 3.5, 34.5))
  4450. createWall(CFrame.new(-1726.15015, 10.4497461, 694.790344, 0.694658399, 0, 0.719339788, 0, 1, 0, -0.719339788, 0, 0.694658399), Vector3.new(49, 1.5, 46))
  4451. createWall(CFrame.new(-1727.22302, 10.1997461, 694.101868, 0.694658399, 0, 0.719339788, 0, 1, 0, -0.719339788, 0, 0.694658399), Vector3.new(49.5, 1, 48.5))
  4452. createWall(CFrame.new(-1594.52539, -24.3682365, 695.275208, 1, 0, 0, 0, 1, 0, 0, 0, 1), Vector3.new(88.5, 2.5, 96))
  4453. createWall(CFrame.new(-1677.15637, -15.417098, 623.046021, 0.984657705, 0.0171872638, -0.173648149, -0.0174524058, 0.99984771, 0, 0.173621729, 0.00303057837, 0.98480767), Vector3.new(80.5, 8, 85.5))
  4454. createWall(CFrame.new(-1450.97681, -13.2820768, 704.461609, -0.526738107, -0.117966197, -0.841804624, -0.0625315532, 0.993019879, -0.100029439, 0.847729981, -4.99358321e-05, -0.530434847), Vector3.new(36, 4, 32.5))
  4455. createWall(CFrame.new(-1635.84265, -139.839996, 622.938721, 0.178292945, 0, 0.98397553, 0, 1, 0, -0.983975589, 0, 0.178293034), Vector3.new(14, 255, 4.35629797))
  4456. createWall(CFrame.new(-1631.328, -140.839996, 623.947815, 0.2464917, 0, 0.969143093, 0, 1, 0, -0.969143093, 0, 0.24649176), Vector3.new(14, 255, 5.8792901))
  4457. createWall(CFrame.new(-1608.31348, -147.839996, 639.822876, 0.866703033, 0, 0.498820961, 0, 1, 0, -0.498820961, 0, 0.866703033), Vector3.new(14, 255, 5.13447332))
  4458. createWall(CFrame.new(-1606.00684, -148.839996, 644.197998, 0.899387717, 0, 0.437147677, 0, 1, 0, -0.437147677, 0, 0.899387717), Vector3.new(14, 255, 5.74125433))
  4459. createWall(CFrame.new(-1626.75098, -141.839996, 625.260925, 0.313491344, 0, 0.949589133, 0, 1, 0, -0.949589133, 0, 0.313491404), Vector3.new(14, 255, 4.62769413))
  4460. createWall(CFrame.new(-1623.35046, -142.839996, 626.612061, 0.426887631, 0, 0.904302716, 0, 1, 0, -0.904302716, 0, 0.426887691), Vector3.new(14, 255, 4.41635466))
  4461. createWall(CFrame.new(-1610.32239, -146.839996, 636.802979, 0.78356123, 0, 0.621311903, 0, 1, 0, -0.621311784, 0, 0.783561289), Vector3.new(14, 255, 4.21742392))
  4462. createWall(CFrame.new(-1619.98938, -143.839996, 628.473572, 0.532674611, 0, 0.846318007, 0, 1, 0, -0.846318007, 0, 0.53267467), Vector3.new(14, 255, 4.97442102))
  4463. createWall(CFrame.new(-1616.38782, -144.839996, 630.914368, 0.590408921, 0, 0.807102084, 0, 1, 0, -0.807102084, 0, 0.59040904), Vector3.new(14, 255, 4.71004725))
  4464. createWall(CFrame.new(-1613.16479, -145.839996, 633.713562, 0.701997042, 0, 0.712177455, 0, 1, 0, -0.712177455, 0, 0.701997101), Vector3.new(14, 255, 5.9066267))
  4465. createWall(CFrame.new(-1604.04761, -149.839996, 648.575867, 0.927696943, 0, 0.373347104, 0, 1, 0, -0.373347104, 0, 0.927697003), Vector3.new(14, 255, 4.8348875))
  4466. createWall(CFrame.new(-1712.18823, -137.559921, 611.531189, -0.0305747688, -3.8556589e-08, 0.999530673, -1.6698479e-07, 1, 3.34666268e-08, -0.999530613, -1.6588379e-07, -0.030574739), Vector3.new(14, 255, 5.74125433))
  4467. createWall(CFrame.new(-1717.12427, -136.559921, 611.844177, -0.100224018, -3.8556589e-08, 0.994963169, -1.6891255e-07, 1, 2.17368452e-08, -0.994963109, -1.6588379e-07, -0.100223958), Vector3.new(14, 255, 5.13447332))
  4468. createWall(CFrame.new(-1720.7019, -135.559921, 612.44043, -0.246018708, -3.8556589e-08, 0.969263375, -1.7027071e-07, 1, -3.43903395e-09, -0.969263315, -1.6588379e-07, -0.246018708), Vector3.new(14, 255, 4.21742392))
  4469. createWall(CFrame.new(-1724.68433, -134.559921, 613.768799, -0.362314641, -3.8556589e-08, 0.932054043, -1.68582289e-07, 1, -2.41653098e-08, -0.932054043, -1.6588379e-07, -0.362314641), Vector3.new(14, 255, 5.9066267))
  4470. createWall(CFrame.new(-1728.55774, -133.559921, 615.56311, -0.494606912, -3.8556589e-08, 0.869114876, -1.63242419e-07, 1, -4.85371636e-08, -0.869114757, -1.6588379e-07, -0.494606853), Vector3.new(14, 255, 4.71004725))
  4471. createWall(CFrame.new(-1732.25928, -132.559921, 617.849548, -0.554024041, -3.8556589e-08, 0.83249861, -1.5945929e-07, 1, -5.9805302e-08, -0.83249855, -1.6588379e-07, -0.554023981), Vector3.new(14, 255, 4.97442102))
  4472. createWall(CFrame.new(-1735.33374, -131.559921, 620.153809, -0.650239468, -3.8556589e-08, 0.759727001, -1.5109741e-07, 1, -7.8571702e-08, -0.759726942, -1.6588379e-07, -0.650239348), Vector3.new(14, 255, 4.41635466))
  4473. createWall(CFrame.new(-1737.95874, -130.559921, 622.703003, -0.737985492, -3.8556589e-08, 0.674813986, -1.40394903e-07, 1, -9.64013083e-08, -0.674813926, -1.6588379e-07, -0.737985432), Vector3.new(14, 255, 4.62769413))
  4474. createWall(CFrame.new(-1741.03076, -129.559921, 626.341125, -0.783257902, -3.8556589e-08, 0.621694207, -1.33328726e-07, 1, -1.0595938e-07, -0.621694148, -1.6588379e-07, -0.783257842), Vector3.new(14, 255, 5.8792901))
  4475. createWall(CFrame.new(-1743.79993, -128.559921, 630.046875, -0.824713767, -3.8556589e-08, 0.565547168, -1.25613255e-07, 1, -1.15001065e-07, -0.565547168, -1.6588379e-07, -0.824713647), Vector3.new(14, 255, 4.35629797))
  4476. createWall(CFrame.new(-1745.77539, -127.560036, 633.337646, -0.879498184, -8.67711378e-08, 0.475898564, -1.12849136e-07, 1, -2.62235904e-08, -0.475898594, -7.67686217e-08, -0.879498243), Vector3.new(14, 255, 4.99258232))
  4477. createWall(CFrame.new(-1747.48596, -126.560036, 637.008545, -0.930946112, -8.67711378e-08, 0.365169674, -1.08812841e-07, 1, -3.97812556e-08, -0.365169674, -7.67686217e-08, -0.930946112), Vector3.new(14, 255, 4.8348875))
  4478. createWall(CFrame.new(-1749.06567, -125.560036, 641.53717, -0.954145014, -8.67711378e-08, 0.299338609, -1.05772067e-07, 1, -4.72744333e-08, -0.299338609, -7.67686217e-08, -0.954145014), Vector3.new(14, 255, 5.74125433))
  4479. createWall(CFrame.new(-1750.39087, -124.560036, 646.302246, -0.972701669, -8.67711378e-08, 0.2320517, -1.02216717e-07, 1, -5.45375691e-08, -0.2320517, -7.67686217e-08, -0.972701669), Vector3.new(14, 255, 5.13447332))
  4480. createWall(CFrame.new(-1751.00244, -123.560036, 649.877319, -0.99630177, -8.67711378e-08, 0.0859023929, -9.30448607e-08, 1, -6.90308681e-08, -0.0859024227, -7.67686217e-08, -0.996301889), Vector3.new(14, 255, 4.21742392))
  4481. createWall(CFrame.new(-1751.05554, -122.560036, 654.075134, -0.99934417, -8.67711378e-08, -0.0361632407, -8.39380334e-08, 1, -7.98561928e-08, 0.0361632407, -7.67686217e-08, -0.99934417), Vector3.new(14, 255, 5.9066267))
  4482. createWall(CFrame.new(-1750.63257, -121.560036, 658.322998, -0.983336091, -8.67711378e-08, -0.181787133, -7.13696551e-08, 1, -9.12632245e-08, 0.181787133, -7.67686217e-08, -0.983336091), Vector3.new(14, 255, 4.71004725))
  4483. createWall(CFrame.new(-1749.68848, -120.560036, 662.570007, -0.968261242, -8.67711378e-08, -0.249933213, -6.4830104e-08, 1, -9.60190647e-08, 0.249933243, -7.67686217e-08, -0.968261242), Vector3.new(14, 255, 4.97442102))
  4484. createWall(CFrame.new(-1741.95715, -116.560036, 677.476013, -0.80499965, -8.67711378e-08, -0.59327215, -2.43060558e-08, 1, -1.13277608e-07, 0.59327215, -7.67686217e-08, -0.80499959), Vector3.new(14, 255, 4.35629797))
  4485. createWall(CFrame.new(-1744.5481, -117.560036, 673.643494, -0.844420195, -8.67711378e-08, -0.535677969, -3.21480513e-08, 1, -1.11306363e-07, 0.535678029, -7.67686217e-08, -0.844420195), Vector3.new(14, 255, 5.8792901))
  4486. createWall(CFrame.new(-1746.97571, -118.560036, 669.54718, -0.879728258, -8.67711378e-08, -0.475472927, -3.98336297e-08, 1, -1.08792854e-07, 0.475472957, -7.67686217e-08, -0.879728317), Vector3.new(14, 255, 4.62769413))
  4487. createWall(CFrame.new(-1748.52148, -119.560036, 666.230652, -0.931119382, -8.67711378e-08, -0.364709496, -5.27960502e-08, 1, -1.03127007e-07, 0.364709556, -7.67686217e-08, -0.931119382), Vector3.new(14, 255, 4.41635466))
  4488. createWall(CFrame.new(-1740.73279, 50.4497452, 720.327759, 0.694658399, 0, 0.719339788, 0, 1, 0, -0.719339788, 0, 0.694658399), Vector3.new(8, 81.5, 31.5))
  4489. createWall(CFrame.new(-1994.25, 10.4497461, 709.5, 1, 0, 0, 0, 1, 0, 0, 0, 1), Vector3.new(492.5, 0.5, 5))
  4490. createWall(CFrame.new(-1994.25, 10.4497461, 681.5, 1, 0, 0, 0, 1, 0, 0, 0, 1), Vector3.new(492.5, 0.5, 4))
  4491. wait(.1)
  4492. local t = waitForExist(workspace, "borders")
  4493. for i,v in pairs(t:GetChildren()) do
  4494. cs:AddTag(v, "RayWhitelist")
  4495. v.Transparency = _G.wall_transparency
  4496. end
  4497. if _G.destroy_map then
  4498. workspace.map:Destroy()
  4499. else
  4500. for j, k in pairs(workspace.map:GetChildren()) do
  4501. if k:FindFirstChild("Meshes/Forgers Mark2_Circle.001") then
  4502. k:Destroy()
  4503. end
  4504. end
  4505. end
  4506.  
  4507. end
  4508.  
  4509. function fixOrbital()
  4510. createWall(CFrame.new(2.05055237, 6.13212585, 144.456467, 1, 0, 0, 0, 1, 0, 0, 0, 1), Vector3.new(184, 1.5, 81))
  4511. createWall(CFrame.new(-27.9494476, 18.8821259, 183.206467, 1, 0, 0, 0, 1, 0, 0, 0, 1), Vector3.new(130, 27, 3.5))
  4512. createWall(CFrame.new(65.8005524, 18.8821259, 182.206467, 1, 0, 0, 0, 1, 0, 0, 0, 1), Vector3.new(60.5, 27, 5.5))
  4513. createWall(CFrame.new(80.5505524, 18.8821259, 176.206467, 1, 0, 0, 0, 1, 0, 0, 0, 1), Vector3.new(31, 27, 17.5))
  4514. createWall(CFrame.new(91.5505524, 18.8821259, 162.206467, 1, 0, 0, 0, 1, 0, 0, 0, 1), Vector3.new(9, 27, 45.5))
  4515. createWall(CFrame.new(71.8005524, 20.3821259, 101.206467, 1, 0, 0, 0, 1, 0, 0, 0, 1), Vector3.new(72.5, 30, 3.5))
  4516. createWall(CFrame.new(86.5673981, 5.77369833, 120.956467, 0.98480767, -0.173648179, 0, 0.173648179, 0.98480767, 0, 0, 0, 1), Vector3.new(40, 7, 38))
  4517. createWall(CFrame.new(122.800552, 8.88212585, 116.456467, 1, 0, 0, 0, 1, 0, 0, 0, 1), Vector3.new(35.5, 7, 35))
  4518. createWall(CFrame.new(136.300552, 16.8821259, 132.706467, 1, 0, 0, 0, 1, 0, 0, 0, 1), Vector3.new(60.5, 23, 10.5))
  4519. createWall(CFrame.new(123.300552, 16.8821259, 103.206467, 1, 0, 0, 0, 1, 0, 0, 0, 1), Vector3.new(34.5, 23, 0.5))
  4520. createWall(CFrame.new(130.692398, 10.4759054, 116.456467, 0.98480773, -0.173648179, 0, 0.173648179, 0.98480773, 0, 0, 0, 1), Vector3.new(24, 7, 35))
  4521. createWall(CFrame.new(225.300552, 10.8821259, 83.7064667, 1, 0, 0, 0, 1, 0, 0, 0, 1), Vector3.new(172.5, 11, 149.5))
  4522. createWall(CFrame.new(139.050552, 16.6321259, 84.4564667, 1, 0, 0, 0, 1, 0, 0, 0, 1), Vector3.new(11, 22.5, 47))
  4523. createWall(CFrame.new(151.469864, 16.6321259, 61.0406761, 0.91354543, 0, -0.406736642, 0, 1, 0, 0.406736642, 0, 0.91354543), Vector3.new(3, 22.5, 94))
  4524. createWall(CFrame.new(169.348312, 16.6321259, 42.4514313, 0.694658279, 0, -0.719339728, 0, 1, 0, 0.719339728, 0, 0.694658279), Vector3.new(4, 22.5, 94))
  4525. createWall(CFrame.new(207.741302, 16.6321259, 22.175375, 0.358367801, 0, -0.93358016, 0, 1, 0, 0.93358016, 0, 0.358367801), Vector3.new(3.5, 22.5, 94))
  4526. createWall(CFrame.new(200.99971, 16.6321259, 23.0883999, 0.0174523592, 0, -0.999846816, 0, 1, 0, 0.999846816, 0, 0.0174523592), Vector3.new(2, 22.5, 94))
  4527. createWall(CFrame.new(251.564911, 16.6321259, 18.5538025, 0.766042292, 0, -0.642785966, 0, 1, 0, 0.642785966, 0, 0.766042292), Vector3.new(2, 22.5, 13.5))
  4528. createWall(CFrame.new(255.064896, 16.6321259, 9.05387974, 0.999991894, 0, -1.78813934e-07, 0, 1, 0, 1.78813934e-07, 0, 0.999991894), Vector3.new(5, 22.5, 13.5))
  4529. createWall(CFrame.new(170.300552, 16.8821259, 128.706467, 1, 0, 0, 0, 1, 0, 0, 0, 1), Vector3.new(9.5, 23, 18.5))
  4530. createWall(CFrame.new(174.550552, 16.8821259, 109.206467, 1, 0, 0, 0, 1, 0, 0, 0, 1), Vector3.new(1, 23, 21.5))
  4531. createWall(CFrame.new(178.440842, 16.8821259, 87.8495941, 0.906307757, 0, -0.42261827, 0, 1, 0, 0.42261827, 0, 0.906307757), Vector3.new(3, 23, 26.5))
  4532. createWall(CFrame.new(192.023926, 16.8821259, 70.1889038, 0.629320323, 0, -0.777145863, 0, 1, 0, 0.777145863, 0, 0.629320323), Vector3.new(4, 23, 21))
  4533. createWall(CFrame.new(207.625092, 16.8821259, 62.0181961, 0.258818924, 0, -0.965925455, 0, 1, 0, 0.965925455, 0, 0.258818924), Vector3.new(5.5, 23, 21.5))
  4534. createWall(CFrame.new(235.841599, 16.8821259, 62.0727882, -0.0174523555, 0, -0.999844193, 0, 1, 0, 0.999844193, 0, -0.0174523555), Vector3.new(9, 23, 42))
  4535. createWall(CFrame.new(268.73175, 16.8821259, 68.6477737, -0.0174523555, 0, -0.999844193, 0, 1, 0, 0.999844193, 0, -0.0174523555), Vector3.new(6, 23, 49))
  4536. createWall(CFrame.new(295.005676, 16.8821259, 38.8518867, -0.0174523555, 0, -0.999844193, 0, 1, 0, 0.999844193, 0, -0.0174523555), Vector3.new(66.5, 23, 5.5))
  4537. createWall(CFrame.new(290.775604, 16.8821259, 9.02362251, -0.0174523555, 0, -0.999844193, 0, 1, 0, 0.999844193, 0, -0.0174523555), Vector3.new(13, 23, 15))
  4538. createWall(CFrame.new(237.565033, 20.8821259, -8.44598103, 0.999991894, 0, -1.78813934e-07, 0, 1, 0, 1.78813934e-07, 0, 0.999991894), Vector3.new(31, 31, 48.5))
  4539. createWall(CFrame.new(216.315201, 20.8821259, -32.4457855, 0.999991894, 0, -1.78813934e-07, 0, 1, 0, 1.78813934e-07, 0, 0.999991894), Vector3.new(21.5, 31, 96.5))
  4540. createWall(CFrame.new(335.789215, 20.8821259, -32.4457664, 0.999991894, 0, -1.78813934e-07, 0, 1, 0, 1.78813934e-07, 0, 0.999991894), Vector3.new(44.5500183, 31, 96.5))
  4541. createWall(CFrame.new(306.28949, 20.8821259, -8.19596863, 0.999991894, 0, -1.78813934e-07, 0, 1, 0, 1.78813934e-07, 0, 0.999991894), Vector3.new(19.5500164, 31, 48))
  4542. createWall(CFrame.new(274.800537, 11.3821259, -97.7935333, 1, 0, 0, 0, 1, 0, 0, 0, 1), Vector3.new(146.5, 12, 225.5))
  4543. createWall(CFrame.new(204.550537, 22.3821259, -144.543533, 1, 0, 0, 0, 1, 0, 0, 0, 1), Vector3.new(6, 34, 132))
  4544. createWall(CFrame.new(346.550537, 22.3821259, -144.543533, 1, 0, 0, 0, 1, 0, 0, 0, 1), Vector3.new(3, 34, 132))
  4545. createWall(CFrame.new(253.300537, 22.3821259, -206.043533, 1, 0, 0, 0, 1, 0, 0, 0, 1), Vector3.new(103.5, 34, 5))
  4546. createWall(CFrame.new(334.550537, 22.3821259, -206.043533, 1, 0, 0, 0, 1, 0, 0, 0, 1), Vector3.new(19, 34, 5))
  4547. createWall(CFrame.new(339.300537, 22.3821259, -242.043533, 1, 0, 0, 0, 1, 0, 0, 0, 1), Vector3.new(9.5, 34, 77))
  4548. createWall(CFrame.new(260.300537, 22.3821259, -219.293533, 1, 0, 0, 0, 1, 0, 0, 0, 1), Vector3.new(54.5, 34, 31.5))
  4549. createWall(CFrame.new(312.050537, 11.3821259, -110.543533, 1, 0, 0, 0, 1, 0, 0, 0, 1), Vector3.new(72, 12, 251))
  4550. createWall(CFrame.new(314.800537, 22.3821259, -277.293518, 1, 0, 0, 0, 1, 0, 0, 0, 1), Vector3.new(58.5, 34, 9.5))
  4551. createWall(CFrame.new(221.550537, 23.8821259, -421.543518, 1, 0, 0, 0, 1, 0, 0, 0, 1), Vector3.new(14, 42, 8))
  4552. createWall(CFrame.new(221.300537, 23.8821259, -497.293518, 1, 0, 0, 0, 1, 0, 0, 0, 1), Vector3.new(14.5, 42, 32.5))
  4553. createWall(CFrame.new(319.965942, 16.5022373, -230.817398, 0.950360954, 4.37113883e-08, -0.311149508, -2.79408212e-08, 1, 5.51423724e-08, 0.311149508, -4.37113883e-08, 0.950360954), Vector3.new(69, 1.5, 85))
  4554. createWall(CFrame.new(289.800537, 9.63212585, -304.293518, 1, 0, 0, 0, 1, 0, 0, 0, 1), Vector3.new(116.5, 8.5, 138.5))
  4555. createWall(CFrame.new(233.300537, 21.6321259, -252.543518, 1, 0, 0, 0, 1, 0, 0, 0, 1), Vector3.new(3.5, 34.5, 35))
  4556. createWall(CFrame.new(234.925537, 22.1321259, -319.043518, 1, 0, 0, 0, 1, 0, 0, 0, 1), Vector3.new(21.25, 33.5, 100))
  4557. createWall(CFrame.new(313.300537, 22.1321259, -304.043518, 1, 0, 0, 0, 1, 0, 0, 0, 1), Vector3.new(37.5, 33.5, 57))
  4558. createWall(CFrame.new(352.550537, 22.1321259, -322.793518, 1, 0, 0, 0, 1, 0, 0, 0, 1), Vector3.new(55, 33.5, 94.5))
  4559. createWall(CFrame.new(268.550537, 22.1321259, -366.043518, 1, 0, 0, 0, 1, 0, 0, 0, 1), Vector3.new(66, 33.5, 6))
  4560. createWall(CFrame.new(302.300537, 9.63212585, -375.543518, 1, 0, 0, 0, 1, 0, 0, 0, 1), Vector3.new(154.5, 8.5, 281))
  4561. createWall(CFrame.new(377.550537, 25.1321259, -440.043518, 1, 0, 0, 0, 1, 0, 0, 0, 1), Vector3.new(4, 39.5, 147))
  4562. createWall(CFrame.new(302.800537, 25.1321259, -512.293518, 1, 0, 0, 0, 1, 0, 0, 0, 1), Vector3.new(153.5, 39.5, 2.5))
  4563. createWall(CFrame.new(227.050537, 25.1321259, -492.793518, 1, 0, 0, 0, 1, 0, 0, 0, 1), Vector3.new(10, 39.5, 41.5))
  4564. createWall(CFrame.new(227.300537, 25.1321259, -400.043518, 1, 0, 0, 0, 1, 0, 0, 0, 1), Vector3.new(10.5, 39.5, 68))
  4565. createWall(CFrame.new(149.300537, 23.8821259, -501.293518, 1, 0, 0, 0, 1, 0, 0, 0, 1), Vector3.new(158.5, 42, 24.5))
  4566. createWall(CFrame.new(72.3005371, 23.8821259, -414.543518, 1, 0, 0, 0, 1, 0, 0, 0, 1), Vector3.new(4.5, 42, 16))
  4567. createWall(CFrame.new(165.300537, 23.3821259, -412.793518, 1, 0, 0, 0, 1, 0, 0, 0, 1), Vector3.new(123.5, 41, 14.5))
  4568. createWall(CFrame.new(143.550537, 10.1321259, -427.793518, 1, 0, 0, 0, 1, 0, 0, 0, 1), Vector3.new(178, 9.5, 176.5))
  4569. createWall(CFrame.new(170.300537, 23.8821259, -387.293518, 1, 0, 0, 0, 1, 0, 0, 0, 1), Vector3.new(4.5, 42, 60.5))
  4570. createWall(CFrame.new(159.175537, 23.8821259, -335.043518, 1, 0, 0, 0, 1, 0, 0, 0, 1), Vector3.new(25.25, 42, 59))
  4571. createWall(CFrame.new(92.8005371, 23.8821259, -360.793518, 1, 0, 0, 0, 1, 0, 0, 0, 1), Vector3.new(47.5, 42, 7.5))
  4572. createWall(CFrame.new(69.8005371, 23.8821259, -424.543518, 1, 0, 0, 0, 1, 0, 0, 0, 1), Vector3.new(1.5, 42, 135))
  4573. createWall(CFrame.new(84.3005371, 22.6321259, -303.543518, 1, 0, 0, 0, 1, 0, 0, 0, 1), Vector3.new(133.5, 44.5, 6))
  4574. createWall(CFrame.new(67.0505371, 22.6321259, -351.293518, 1, 0, 0, 0, 1, 0, 0, 0, 1), Vector3.new(54, 44.5, 26.5))
  4575. createWall(CFrame.new(89.0505371, 22.6321259, -344.543518, 1, 0, 0, 0, 1, 0, 0, 0, 1), Vector3.new(17, 44.5, 25))
  4576. createWall(CFrame.new(122.300537, 10.8821259, -333.793518, 1, 0, 0, 0, 1, 0, 0, 0, 1), Vector3.new(51.5, 11, 54.5))
  4577. createWall(CFrame.new(64.4733582, -4.418859, -333.793518, 0.906307757, -0.42261827, 0, 0.42261827, 0.906307757, 0, 0, 0, 1), Vector3.new(75.5, 11, 54.5))
  4578. createWall(CFrame.new(20.3005371, -3.61787415, -356.293518, 1, 0, 0, 0, 1, 0, 0, 0, 1), Vector3.new(95.5, 11, 99.5))
  4579. createWall(CFrame.new(39.9685135, 6.63212585, -380.228729, 0.913545489, 0, 0.406736732, 0, 1, 0, -0.406736732, 0, 0.913545489), Vector3.new(14.5, 31.5, 46.5))
  4580. createWall(CFrame.new(18.114563, 6.63212585, -403.113617, 0.0174522102, 0, 0.999847889, 0, 1, 0, -0.999847889, 0, 0.0174522102), Vector3.new(14.5, 31.5, 91))
  4581. createWall(CFrame.new(-26.2788792, 6.63212585, -366.632813, 0.0174522102, 0, 0.999847889, 0, 1, 0, -0.999847889, 0, 0.0174522102), Vector3.new(89, 31.5, 3.5))
  4582. createWall(CFrame.new(-36.5266075, 17.3821259, -309.552948, 0.0174522102, 0, 0.999847889, 0, 1, 0, -0.999847889, 0, 0.0174522102), Vector3.new(26.5, 53, 57))
  4583. createWall(CFrame.new(5.80053711, 4.07662964, -309.267822, 1, 0, 0, 0, -0.656059086, 0.754709542, 0, -0.754709542, -0.656059086), Vector3.new(31.5, 24, 15.5))
  4584. createWall(CFrame.new(19.5505371, 19.3427505, -291.517181, 1, 0, 0, 0, 0.0174524486, 0.99984777, 0, -0.99984777, 0.0174524486), Vector3.new(5, 62, 50.5))
  4585. createWall(CFrame.new(-102.175552, 17.3821259, -272.943085, 0.0174522102, 0, 0.999847889, 0, 1, 0, -0.999847889, 0, 0.0174522102), Vector3.new(102, 53, 90))
  4586. createWall(CFrame.new(4.05209827, 17.3821259, -242.084457, 0.0174522102, 0, 0.999847889, 0, 1, 0, -0.999847889, 0, 0.0174522102), Vector3.new(40, 53, 74.5))
  4587. createWall(CFrame.new(38.5662766, 17.3821259, -170.971268, 0.0174522102, 0, 0.999847889, 0, 1, 0, -0.999847889, 0, 0.0174522102), Vector3.new(181, 53, 3))
  4588. createWall(CFrame.new(-47.4959297, 17.3821259, -82.2097092, 0.0174522102, 0, 0.999847889, 0, 1, 0, -0.999847889, 0, 0.0174522102), Vector3.new(0.499998093, 53, 172))
  4589. createWall(CFrame.new(-130.682892, 17.3821259, -158.17308, 0.0174522102, 0, 0.999847889, 0, 1, 0, -0.999847889, 0, 0.0174522102), Vector3.new(149.5, 53, 3))
  4590. createWall(CFrame.new(-40.7920074, 4.38212585, -194.109756, 0.0174522102, 0, 0.999847889, 0, 1, 0, -0.999847889, 0, 0.0174522102), Vector3.new(224.5, 27, 181.5))
  4591. createWall(CFrame.new(-25.6994476, 18.8821259, 117.706467, 1, 0, 0, 0, 1, 0, 0, 0, 1), Vector3.new(125.5, 27, 36.5))
  4592. createWall(CFrame.new(-89.1994476, 18.8821259, 154.206467, 1, 0, 0, 0, 1, 0, 0, 0, 1), Vector3.new(7.5, 27, 61.5))
  4593. createWall(CFrame.new(282.050537, 22.1321259, -316.793518, 1, 0, 0, 0, 1, 0, 0, 0, 1), Vector3.new(28, 33.5, 5.5))
  4594. createWall(CFrame.new(226.777496, 14.4964676, -453.289978, 0.99999994, -8.74227766e-08, -2.84238873e-16, 8.74227695e-08, 1, 8.74227766e-08, -7.35850217e-15, -8.74227766e-08, 1), Vector3.new(8, 1, 45.5))
  4595. createWall(CFrame.new(226.277496, 14.9964676, -453.289978, 0.99999994, -8.74227766e-08, -2.84238873e-16, 8.74227695e-08, 1, 8.74227766e-08, -7.35850217e-15, -8.74227766e-08, 1), Vector3.new(7, 2, 43.5))
  4596. createWall(CFrame.new(225.777496, 15.4964676, -453.289978, 0.99999994, -8.74227766e-08, -2.84238873e-16, 8.74227695e-08, 1, 8.74227766e-08, -7.35850217e-15, -8.74227766e-08, 1), Vector3.new(6, 3, 41.5))
  4597. createWall(CFrame.new(210.777496, 15.9964666, -456.539978, 0.99999994, -8.74227766e-08, -2.84238873e-16, 8.74227695e-08, 1, 8.74227766e-08, -7.35850217e-15, -8.74227766e-08, 1), Vector3.new(31, 4, 77))
  4598. createWall(CFrame.new(210.027496, 14.9964666, -456.539978, 0.99999994, -8.74227766e-08, -2.84238873e-16, 8.74227695e-08, 1, 8.74227766e-08, -7.35850217e-15, -8.74227766e-08, 1), Vector3.new(32.5, 4, 77))
  4599. createWall(CFrame.new(209.527496, 14.4964666, -456.539978, 0.99999994, -8.74227766e-08, -2.84238873e-16, 8.74227695e-08, 1, 8.74227766e-08, -7.35850217e-15, -8.74227766e-08, 1), Vector3.new(33.5, 3, 77))
  4600. createWall(CFrame.new(-3.77072525, 17.3821259, -202.161972, -0.731354296, 0, 0.681998551, 0, 1, 0, -0.681998551, 0, -0.731354296), Vector3.new(29.5, 53, 29.5))
  4601. createWall(CFrame.new(21.5335732, 17.3821259, -189.938141, -0.99026978, 0, 0.13917309, 0, 1, 0, -0.13917309, 0, -0.99026978), Vector3.new(45, 53, 24.5))
  4602. createWall(CFrame.new(-11.1203985, 17.3821259, -219.985062, -0.190809608, 0, 0.981628776, 0, 1, 0, -0.981628776, 0, -0.190809608), Vector3.new(29.5, 53, 29.5))
  4603. createWall(CFrame.new(21.5335732, 17.3821259, -189.938141, -0.99026978, 0, 0.13917309, 0, 1, 0, -0.13917309, 0, -0.99026978), Vector3.new(45, 53, 24.5))
  4604. createWall(CFrame.new(201.004074, 16.6321259, 23.3383617, 0.0174523592, 0, -0.999846816, 0, 1, 0, 0.999846816, 0, 0.0174523592), Vector3.new(2.5, 22.5, 94))
  4605. createWall(CFrame.new(291.03064, 16.8821259, 66.0365601, -0.0174523555, 0, -0.999844193, 0, 1, 0, 0.999844193, 0, -0.0174523555), Vector3.new(12, 23, 12.5))
  4606. createWall(CFrame.new(292.446808, 16.8821259, 13.5534649, -0.0174523555, 0, -0.999844193, 0, 1, 0, 0.999844193, 0, -0.0174523555), Vector3.new(16, 23, 11.5))
  4607. createWall(CFrame.new(241.550537, 22.1321259, -316.793518, 1, 0, 0, 0, 1, 0, 0, 0, 1), Vector3.new(12, 33.5, 5.5))
  4608. createWall(CFrame.new(198.585739, 15.9964609, -495.978149, 0.69465822, -8.74227766e-08, 0.719339728, -2.15772644e-09, 1, 1.23615649e-07, -0.719339669, -8.74227837e-08, 0.694658399), Vector3.new(31, 4, 24.5))
  4609. createWall(CFrame.new(197.891083, 14.9964609, -495.25882, 0.69465822, -8.74227766e-08, 0.719339728, -2.15772644e-09, 1, 1.23615649e-07, -0.719339669, -8.74227837e-08, 0.694658399), Vector3.new(31, 4, 24.5))
  4610. createWall(CFrame.new(196.849091, 13.9964609, -494.17981, 0.69465822, -8.74227766e-08, 0.719339728, -2.15772644e-09, 1, 1.23615649e-07, -0.719339669, -8.74227837e-08, 0.694658399), Vector3.new(31, 4, 24.5))
  4611. createWall(CFrame.new(200.608017, 15.9964695, -413.158813, 0.707106352, -8.74227979e-08, -0.70710659, 1.23634393e-07, 1, 2.44249065e-14, 0.707106471, -8.74227837e-08, 0.707106888), Vector3.new(31, 4, 21))
  4612. createWall(CFrame.new(199.900909, 14.9964695, -413.865906, 0.707106352, -8.74227979e-08, -0.70710659, 1.23634393e-07, 1, 2.44249065e-14, 0.707106471, -8.74227837e-08, 0.707106888), Vector3.new(31, 4, 21))
  4613. createWall(CFrame.new(199.193802, 13.9964695, -414.572998, 0.707106352, -8.74227979e-08, -0.70710659, 1.23634393e-07, 1, 2.44249065e-14, 0.707106471, -8.74227837e-08, 0.707106888), Vector3.new(31, 4, 21))
  4614. createWall(CFrame.new(82.0505371, 23.8821259, -496.543518, 1, 0, 0, 0, 1, 0, 0, 0, 1), Vector3.new(24, 42, 34))
  4615. createWall(CFrame.new(319.015594, 15.5022373, -231.12854, 0.950360954, 4.37113883e-08, -0.311149508, -2.79408212e-08, 1, 5.51423724e-08, 0.311149508, -4.37113883e-08, 0.950360954), Vector3.new(69, 1.5, 85))
  4616. createWall(CFrame.new(318.065247, 14.5022373, -231.439682, 0.950360954, 4.37113883e-08, -0.311149508, -2.79408212e-08, 1, 5.51423724e-08, 0.311149508, -4.37113883e-08, 0.950360954), Vector3.new(69, 1.5, 85))
  4617. createWall(CFrame.new(317.114899, 13.5022373, -231.750824, 0.950360954, 4.37113883e-08, -0.311149508, -2.79408212e-08, 1, 5.51423724e-08, 0.311149508, -4.37113883e-08, 0.950360954), Vector3.new(69, 1.5, 85))
  4618. createWall(CFrame.new(241.800537, 22.1321259, -317.043518, 1, 0, 0, 0, 1, 0, 0, 0, 1), Vector3.new(12.5, 33.5, 6))
  4619. createWall(CFrame.new(122.300537, 9.88212585, -334.293518, 1, 0, 0, 0, 1, 0, 0, 0, 1), Vector3.new(51.5, 11.5, 55.5))
  4620. wait(.1)
  4621. if _G.destroy_map then
  4622. workspace.Terrain:Clear()
  4623. workspace.Map:Destroy()
  4624. end
  4625. end
  4626.  
  4627. function canalsFix()
  4628. createWall(CFrame.new(155.957275, 32.8910141, -46.5320663, 1, 0, 0, 0, 1, 0, 0, 0, 1), Vector3.new(11.7300148, 87.4399948, 105.580002))
  4629. createWall(CFrame.new(-138.143799, 32.8910141, 163.496231, -4.37113883e-08, 0, 1, 0, 1, 0, -1, 0, -4.37113883e-08), Vector3.new(97.5299759, 87.4399948, 22.3999958))
  4630. createWall(CFrame.new(-34.8195114, 32.8910141, -67.9616165, -1, -8.74227766e-08, 0, -8.74227766e-08, 1, -8.74227766e-08, 7.64274186e-15, -8.74227766e-08, -1), Vector3.new(83.9499435, 87.4399948, 46.5899925))
  4631. createWall(CFrame.new(-103.979477, 32.8910141, -224.424011, -4.37113883e-08, 0, -1, 0, 1, 0, 1, 0, -4.37113883e-08), Vector3.new(6.84993505, 87.4399948, 235.629959))
  4632. createWall(CFrame.new(-186.825027, 62.1460152, 73.4007111, 1, 0, 0, 0, 1, 0, 0, 0, 1), Vector3.new(84.4299774, 145.949997, 5.42000008))
  4633. createWall(CFrame.new(-241.964264, 32.8910141, -94.9756775, -0.766044438, -6.69697329e-08, -0.642787576, -3.12285025e-08, 1, -6.69697329e-08, 0.642787576, -3.12285025e-08, -0.766044438), Vector3.new(66.1999207, 87.4399948, 5.42000008))
  4634. createWall(CFrame.new(-55.4694901, 32.8910141, -157.089325, -1, -8.74227766e-08, 0, -8.74227766e-08, 1, -8.74227766e-08, 7.64274186e-15, -8.74227766e-08, -1), Vector3.new(6.84993505, 87.4399948, 138.609985))
  4635. createWall(CFrame.new(-145.703644, 32.8910141, 28.710371, -1, -8.74227766e-08, 0, -8.74227766e-08, 1, -8.74227766e-08, 7.64274186e-15, -8.74227766e-08, -1), Vector3.new(84.4299774, 87.4399948, 5.42000008))
  4636. createWall(CFrame.new(71.0828094, 32.8910141, 50.8468018, -4.37113883e-08, 0, -1, 0, 1, 0, 1, 0, -4.37113883e-08), Vector3.new(49.6700058, 87.4399948, 93.9099808))
  4637. createWall(CFrame.new(135.878815, 32.8910141, 15.5871773, 0.719339788, 0, -0.694658399, 0, 1, 0, 0.694658399, 0, 0.719339788), Vector3.new(11.7300148, 87.4399948, 58.2199783))
  4638. createWall(CFrame.new(225.497131, 36.9860115, -59.8648605, 1, 0, 0, 0, 1, 0, 0, 0, 1), Vector3.new(150.809937, 95.6299896, 52.0899887))
  4639. createWall(CFrame.new(-242.781433, 32.8910141, -16.9685707, -0.121869326, -1.06541549e-08, 0.992546141, -1.74193914e-07, 1, -1.06541549e-08, -0.992546141, -1.74193914e-07, -0.121869326), Vector3.new(80.8499374, 87.4399948, 5.42000008))
  4640. createWall(CFrame.new(-224.062851, 32.8910141, -75.7806473, -0.766044438, -6.69697329e-08, -0.642787576, -3.12285025e-08, 1, -6.69697329e-08, 0.642787576, -3.12285025e-08, -0.766044438), Vector3.new(63.4499245, 87.4399948, 5.92000008))
  4641. createWall(CFrame.new(-145.703644, 62.2310066, 113.641754, -4.37113883e-08, 0, 1, 0, 1, 0, -1, 0, -4.37113883e-08), Vector3.new(84.4299774, 146.11998, 5.42000008))
  4642. createWall(CFrame.new(-294.795288, 32.8910141, -76.0985794, -0.99862951, -8.73029649e-08, -0.0523359589, -8.28474214e-08, 1, -8.73029649e-08, 0.0523359589, -8.28474214e-08, -0.99862951), Vector3.new(63.6999283, 87.4399948, 5.42000008))
  4643. createWall(CFrame.new(-123.277046, 32.8910141, 120.19175, -4.37113883e-08, 0, 1, 0, 1, 0, -1, 0, -4.37113883e-08), Vector3.new(97.5299759, 87.4399948, 15.5299997))
  4644. createWall(CFrame.new(397.023865, 36.9860115, -58.8248749, 1, 0, 0, 0, 1, 0, 0, 0, 1), Vector3.new(150.809937, 95.6299896, 54.1699905))
  4645. createWall(CFrame.new(416.749054, 36.9860115, -96.7398682, 1, 0, 0, 0, 1, 0, 0, 0, 1), Vector3.new(111.359848, 95.6299896, 117.999992))
  4646. createWall(CFrame.new(425.636475, 36.9860115, 1.16940498, 1, 0, 0, 0, 1, 0, 0, 0, 1), Vector3.new(106.859848, 95.6299896, 82.909996))
  4647. createWall(CFrame.new(-121.666016, 32.8910141, 279.982574, -4.37113883e-08, 0, 1, 0, 1, 0, -1, 0, -4.37113883e-08), Vector3.new(97.5299759, 87.4399948, 11.550005))
  4648. createWall(CFrame.new(-98.9495239, 59.7010269, -44.2266006, -1, -8.74227766e-08, 0, -8.74227766e-08, 1, -8.74227766e-08, 7.64274186e-15, -8.74227766e-08, -1), Vector3.new(58.7299576, 33.8199959, 24.7199955))
  4649. createWall(CFrame.new(-98.8532333, 32.8910141, 51.1067657, -4.37113883e-08, 0, -1, 0, 1, 0, 1, 0, -4.37113883e-08), Vector3.new(50.0699921, 87.4399948, 41.260006))
  4650. createWall(CFrame.new(371.486694, 36.9860115, 44.0894165, 1, 0, 0, 0, 1, 0, 0, 0, 1), Vector3.new(215.159775, 95.6299896, 16.9300041))
  4651. createWall(CFrame.new(189.412186, 36.9860115, 17.0006351, 1, 0, 0, 0, 1, 0, 0, 0, 1), Vector3.new(16.339817, 95.6299896, 52.0800133))
  4652. createWall(CFrame.new(196.772171, 36.9860115, -85.2920761, 1, 0, 0, 0, 1, 0, 0, 0, 1), Vector3.new(93.3599701, 95.6299896, 28.0600014))
  4653. createWall(CFrame.new(155.065796, 36.9860115, 67.287796, 1, 0, 0, 0, 1, 0, 0, 0, 1), Vector3.new(20.3698311, 95.6299896, 17.1600227))
  4654. createWall(CFrame.new(124.959198, 36.9860115, 134.113754, 1, 0, 0, 0, 1, 0, 0, 0, 1), Vector3.new(41.2598, 95.6299896, 74.7600098))
  4655. createWall(CFrame.new(-162.458191, 32.8910141, -68.6916199, -1, -8.74227766e-08, 0, -8.74227766e-08, 1, -8.74227766e-08, 7.64274186e-15, -8.74227766e-08, -1), Vector3.new(83.9499435, 87.4399948, 45.1299858))
  4656. createWall(CFrame.new(-111.588234, 32.8910141, 50.9817734, -4.37113883e-08, 0, -1, 0, 1, 0, 1, 0, -4.37113883e-08), Vector3.new(49.939991, 87.4399948, 15.7900009))
  4657. createWall(CFrame.new(-25.9021072, 32.8910141, 50.9817734, -4.37113883e-08, 0, -1, 0, 1, 0, 1, 0, -4.37113883e-08), Vector3.new(49.939991, 87.4399948, 114.280014))
  4658. createWall(CFrame.new(-223.311798, 32.8910141, -168.529022, 1, 0, 0, 0, 1, 0, 0, 0, 1), Vector3.new(6.84993505, 87.4399948, 116.899963))
  4659. createWall(CFrame.new(-136.288849, 32.8910141, 301.444031, -4.37113883e-08, 0, 1, 0, 1, 0, -1, 0, -4.37113883e-08), Vector3.new(32.1999626, 87.4399948, 18.6900043))
  4660. createWall(CFrame.new(-232.190765, 32.8910141, 48.9222374, -0.224951044, -1.96658441e-08, 0.974370062, -1.72604913e-07, 1, -1.96658441e-08, -0.974370062, -1.72604913e-07, -0.224951044), Vector3.new(54.5299835, 87.4399948, 5.42000008))
  4661. createWall(CFrame.new(-170.796127, 32.8910141, 24.3202763, -4.37113883e-08, 0, -1, 0, 1, 0, 1, 0, -4.37113883e-08), Vector3.new(84.4299774, 87.4399948, 5.42000008))
  4662. createWall(CFrame.new(186.772171, 36.9860115, -167.385376, 1, 0, 0, 0, 1, 0, 0, 0, 1), Vector3.new(113.35997, 95.6299896, 15.4500008))
  4663. createWall(CFrame.new(-132.073868, 32.8910141, 268.779114, -4.37113883e-08, 0, 1, 0, 1, 0, -1, 0, -4.37113883e-08), Vector3.new(97.5299759, 87.4399948, 10.260006))
  4664. createWall(CFrame.new(175.484131, 36.9860115, 53.6146545, -0.707106769, -6.18172393e-08, 0.707106769, -1.49240009e-07, 1, -6.18172393e-08, -0.707106769, -1.49240009e-07, -0.707106769), Vector3.new(16.339817, 95.6299896, 46.5600052))
  4665. createWall(CFrame.new(124.959198, 36.9860115, 71.5675964, 1, 0, 0, 0, 1, 0, 0, 0, 1), Vector3.new(41.2598, 95.6299896, 17.1600227))
  4666. createWall(CFrame.new(117.913742, 77.9372025, 156.825684, 1, 0, 0, 0, 1, 0, 0, 0, 1), Vector3.new(167.879807, 17.2299976, 14.8899794))
  4667. createWall(CFrame.new(-207.538849, 32.8910141, 296.944031, -4.37113883e-08, 0, 1, 0, 1, 0, -1, 0, -4.37113883e-08), Vector3.new(41.1999626, 87.4399948, 2.19000244))
  4668. createWall(CFrame.new(-187.778656, 27.8627968, 362.189514, -4.37113883e-08, 0, 1, 0, 1, 0, -1, 0, -4.37113883e-08), Vector3.new(125.759773, 117.039948, 42.3200684))
  4669. createWall(CFrame.new(-47.6979599, 48.4710083, 120.507584, 1, 0, 0, 0, 1, 0, 0, 0, 1), Vector3.new(68.4998016, 72.6599579, 42.0500107))
  4670. createWall(CFrame.new(-330.275391, 43.1127968, 387.889862, 1, 0, 0, 0, 1, 0, 0, 0, 1), Vector3.new(245.559784, 86.5399475, 41.8200684))
  4671. createWall(CFrame.new(267.329956, 44.1549873, 47.4600601, 1, 0, -4.37113883e-08, 0, 1, 0, 4.37113883e-08, 0, 1), Vector3.new(83.4698105, 65.7099991, 33.4500122))
  4672. createWall(CFrame.new(-281.293365, 65.0105286, 53.0568275, -0.241921902, -2.11494839e-08, 0.970295727, -1.72248718e-07, 1, -2.11494839e-08, -0.970295727, -1.72248718e-07, -0.241921902), Vector3.new(145.519989, 89.8999939, 14.3299999))
  4673. createWall(CFrame.new(-463.079102, 43.6127968, 295.492493, -4.37113883e-08, 0, 1, 0, 1, 0, -1, 0, -4.37113883e-08), Vector3.new(245.559784, 85.5399475, 41.8200684))
  4674. createWall(CFrame.new(46.2713356, 50.5749092, -60.2988358, -4.37113883e-08, 0, -1, 0, 1, 0, 1, 0, -4.37113883e-08), Vector3.new(102.98999, 76.6199799, 150.919952))
  4675. createWall(CFrame.new(-51.3865967, 44.7459869, 279.715424, 1, 0, 0, 0, 1, 0, 0, 0, 1), Vector3.new(140.999802, 54.1599617, 44.3200684))
  4676. createWall(CFrame.new(-304.962646, 44.8627968, 155.790512, -1, -8.74227766e-08, 0, -8.74227766e-08, 1, -8.74227766e-08, 7.64274186e-15, -8.74227766e-08, -1), Vector3.new(245.559784, 83.0399475, 41.8200684))
  4677. createWall(CFrame.new(-33.8865967, 44.7459869, 164.972504, 1, 0, 0, 0, 1, 0, 0, 0, 1), Vector3.new(101.999802, 54.1599617, 52.3200684))
  4678. createWall(CFrame.new(-303.172791, 48.7665901, -37.5034637, -0.10452842, -9.13816489e-09, 0.994521916, -1.74366647e-07, 1, -9.13816489e-09, -0.994521916, -1.74366647e-07, -0.10452842), Vector3.new(48.9499397, 19.0299969, 20.3599987))
  4679. createWall(CFrame.new(13.9149284, 36.9860115, 136.112579, 1, 0, 0, 0, 1, 0, 0, 0, 1), Vector3.new(57.2598, 95.6299896, 76.2600098))
  4680. createWall(CFrame.new(-219.415039, 70.8955231, 110.323151, 1, 0, 0, 0, 1, 0, 0, 0, 1), Vector3.new(83.8099518, 122.169983, 13.8299999))
  4681. createWall(CFrame.new(-165.575058, 61.5059929, 108.555695, 1, 0, 0, 0, 1, 0, 0, 0, 1), Vector3.new(41.9299812, 144.669952, 23.8700027))
  4682. createWall(CFrame.new(-198.054108, 47.3627968, 299.961273, -0.809017003, -7.07265144e-08, 0.587785244, -1.38808588e-07, 1, -7.07265144e-08, -0.587785244, -1.38808588e-07, -0.809017003), Vector3.new(21.0899963, 78.0399475, 6.30006504))
  4683. createWall(CFrame.new(17.4978638, 32.8910141, 45.4267883, -4.37113883e-08, 0, -1, 0, 1, 0, 1, 0, -4.37113883e-08), Vector3.new(38.8299904, 87.4399948, 201.079956))
  4684. createWall(CFrame.new(-304.545441, 64.4899902, 21.4497986, -0.104528427, 1.77635684e-15, 0.994521916, 0, 1, 0, -0.994521916, 1.42108547e-14, -0.104528427), Vector3.new(190.769989, 98.3999939, 10.8299999))
  4685. createWall(CFrame.new(-112.038849, 4.6410141, 169.694031, -4.37113883e-08, 0, 1, 0, 1, 0, -1, 0, -4.37113883e-08), Vector3.new(17.6999512, 30.9399948, 41.1900024))
  4686. createWall(CFrame.new(-249.993698, 65.0105209, 98.5818253, -0.681998253, -2.1149468e-08, 0.731353581, -1.4039864e-07, 1, -1.02005565e-07, -0.731353581, -1.72248718e-07, -0.681998253), Vector3.new(214.269989, 89.8999939, 3.57999992))
  4687. createWall(CFrame.new(-248.899078, 32.8910065, -55.5102959, -0.121869326, -1.06541549e-08, 0.992546141, -1.74193914e-07, 1, -1.06541549e-08, -0.992546141, -1.74193914e-07, -0.121869326), Vector3.new(4.34993744, 87.4399948, 8.17000008))
  4688. createWall(CFrame.new(-273.835968, 17.4611702, 40.0727425, 0, -8.74227695e-08, 1, -8.74227837e-08, 1, 8.74227837e-08, -1, -8.74227837e-08, 0), Vector3.new(230.769989, 4.8999939, 88.3300018))
  4689. createWall(CFrame.new(-251.195892, 7.01116419, 91.0399628, -1, -8.74227766e-08, 0, -8.74227766e-08, 1, -8.74227766e-08, 7.64274186e-15, -8.74227766e-08, -1), Vector3.new(47.0499802, 24, 33.1999054))
  4690. createWall(CFrame.new(-249.195892, 6.01116419, 91.5399628, -1, -8.74227766e-08, 0, -8.74227766e-08, 1, -8.74227766e-08, 7.64274186e-15, -8.74227766e-08, -1), Vector3.new(47.0499802, 24, 41.1999054))
  4691. createWall(CFrame.new(-247.195892, 5.01116419, 93.2899628, -1, -8.74227766e-08, 0, -8.74227766e-08, 1, -8.74227766e-08, 7.64274186e-15, -8.74227766e-08, -1), Vector3.new(47.0499802, 24, 45.6999054))
  4692. createWall(CFrame.new(-245.195892, 4.01116419, 89.2899628, -1, -8.74227766e-08, 0, -8.74227766e-08, 1, -8.74227766e-08, 7.64274186e-15, -8.74227766e-08, -1), Vector3.new(47.0499802, 24, 50.6999054))
  4693. createWall(CFrame.new(-243.195892, 3.01116443, 92.0399628, -1, -8.74227766e-08, 0, -8.74227766e-08, 1, -8.74227766e-08, 7.64274186e-15, -8.74227766e-08, -1), Vector3.new(47.0499802, 24, 46.1999054))
  4694. createWall(CFrame.new(-241.195892, 2.01116443, 92.2899628, -1, -8.74227766e-08, 0, -8.74227766e-08, 1, -8.74227766e-08, 7.64274186e-15, -8.74227766e-08, -1), Vector3.new(47.0499802, 24, 47.6999054))
  4695. createWall(CFrame.new(-239.195892, 1.01116467, 95.2899628, -1, -8.74227766e-08, 0, -8.74227766e-08, 1, -8.74227766e-08, 7.64274186e-15, -8.74227766e-08, -1), Vector3.new(47.0499802, 24, 45.6999054))
  4696. createWall(CFrame.new(-181.175049, 11.859992, 89.4149475, -2.80912309e-16, -8.74227624e-08, 1, -8.74227766e-08, 1, 8.74227908e-08, -1, -8.74227766e-08, 7.36183101e-15), Vector3.new(33.769989, 0.899993896, 68.8300018))
  4697. createWall(CFrame.new(-38.9890747, 11.6300173, -100.624664, -1, -8.74227766e-08, 7.70258813e-15, -8.74227766e-08, 1, -8.74227766e-08, -5.98462659e-17, -8.74227766e-08, -1), Vector3.new(388.849945, 2.43999481, 252.609985))
  4698. createWall(CFrame.new(-79.9495239, 44.2010269, -44.2266006, -1, -8.74227766e-08, 0, -8.74227766e-08, 1, -8.74227766e-08, 7.64274186e-15, -8.74227766e-08, -1), Vector3.new(20.7299576, 64.8199921, 24.7199955))
  4699. createWall(CFrame.new(-114.449524, 44.2010269, -44.2266006, -1, -8.74227766e-08, 0, -8.74227766e-08, 1, -8.74227766e-08, 7.64274186e-15, -8.74227766e-08, -1), Vector3.new(21.7299576, 64.8199921, 24.7199955))
  4700. createWall(CFrame.new(-146.699524, 44.2010269, -23.4766006, -1, -8.74227766e-08, 0, -8.74227766e-08, 1, -8.74227766e-08, 7.64274186e-15, -8.74227766e-08, -1), Vector3.new(56.2299576, 64.8199921, 66.2199936))
  4701. createWall(CFrame.new(-47.6995239, 44.2010345, -30.7266006, -1, -8.74227766e-08, 0, -8.74227766e-08, 1, -8.74227766e-08, 7.64274186e-15, -8.74227766e-08, -1), Vector3.new(41.22995, 64.8199921, 51.7199936))
  4702. createWall(CFrame.new(121.772171, 36.9860115, -141.885376, 1, 0, 0, 0, 1, 0, 0, 0, 1), Vector3.new(21.3599701, 95.6299896, 66.4499969))
  4703. createWall(CFrame.new(305.272156, 36.9860115, -162.635376, 1, 0, 0, 0, 1, 0, 0, 0, 1), Vector3.new(125.35997, 95.6299896, 24.9500008))
  4704. createWall(CFrame.new(207.30394, 36.9860153, 63.8677101, -0.707106769, -6.18172393e-08, 0.707106769, -1.49240009e-07, 1, -6.18172393e-08, -0.707106769, -1.49240009e-07, -0.707106769), Vector3.new(6.83981705, 95.6299896, 61.0600052))
  4705. createWall(CFrame.new(182.976639, 30.7049866, 90.3965759, -0.887010872, -3.55271368e-15, 0.46174866, 0, 1, -7.10542736e-15, -0.46174866, 0, -0.887010872), Vector3.new(5.33981705, 95.6299896, 14.0600052))
  4706. createWall(CFrame.new(178.860107, 32.4249954, 129.819794, -1.00000012, -3.15129545e-15, -2.98023224e-08, 3.15129566e-15, 1, -8.74588793e-15, 2.98023224e-08, 8.74588793e-15, -1.00000012), Vector3.new(4.33981705, 95.6299896, 69.0600052))
  4707. createWall(CFrame.new(160.610107, 32.4249954, 163.569794, -1.00000012, -3.15129545e-15, -2.98023224e-08, 3.15129566e-15, 1, -8.74588793e-15, 2.98023224e-08, 8.74588793e-15, -1.00000012), Vector3.new(40.839817, 95.6299896, 1.56000519))
  4708. createWall(CFrame.new(88.459198, 36.9860115, 166.613754, 1, 0, 0, 0, 1, 0, 0, 0, 1), Vector3.new(114.259796, 95.6299896, 9.76000977))
  4709. createWall(CFrame.new(311.260925, 24.7869816, -58.2802277, -1, -8.74098589e-08, -1.52582125e-09, -8.74224142e-08, 0.99984777, 0.0174522698, 3.52690052e-14, 0.0174522698, -0.99984777), Vector3.new(23.3499451, 39.9399948, 24.6099854))
  4710. createWall(CFrame.new(17.1134033, 44.7459869, 243.465424, 1, 0, 0, 0, 1, 0, 0, 0, 1), Vector3.new(3.99980164, 54.1599617, 116.820068))
  4711. createWall(CFrame.new(-166.538849, 32.8910141, 307.694031, -4.37113883e-08, 0, 1, 0, 1, 0, -1, 0, -4.37113883e-08), Vector3.new(19.6999626, 87.4399948, 79.1900024))
  4712. createWall(CFrame.new(-207.538849, 32.8910141, 217.694031, -4.37113883e-08, 0, 1, 0, 1, 0, -1, 0, -4.37113883e-08), Vector3.new(82.6999664, 87.4399948, 2.19000244))
  4713. createWall(CFrame.new(-427.212646, 47.3627853, 175.540512, -1, -8.74227766e-08, 0, -8.74227766e-08, 1, -8.74227766e-08, 7.64274186e-15, -8.74227766e-08, -1), Vector3.new(31.0597839, 78.0399475, 81.3200684))
  4714. createWall(CFrame.new(-176.288849, 32.8910141, 211.694031, -4.37113883e-08, 0, 1, 0, 1, 0, -1, 0, -4.37113883e-08), Vector3.new(42.6999664, 87.4399948, 59.6900024))
  4715. createWall(CFrame.new(75.8479004, 0.891014099, -2.7682178, -4.37113883e-08, 0, -1, 0, 1, 0, 1, 0, -4.37113883e-08), Vector3.new(391.440002, 23.4399948, 462.780029))
  4716. createWall(CFrame.new(-49.6365967, 18.9959869, 200.222504, 1, 0, 0, 0, 1, 0, 0, 0, 1), Vector3.new(133.499802, 2.6599617, 121.820068))
  4717. createWall(CFrame.new(-290.788849, 0.641014099, 262.194031, -4.37113883e-08, 0, 1, 0, 1, 0, -1, 0, -4.37113883e-08), Vector3.new(241.699966, 22.9399948, 369.690002))
  4718. createWall(CFrame.new(-109.038849, 1.3910141, 264.194031, -4.37113883e-08, 0, 1, 0, 1, 0, -1, 0, -4.37113883e-08), Vector3.new(237.699951, 24.4399948, 35.1900024))
  4719. createWall(CFrame.new(239.912186, 36.9860115, -22.4993649, 1, 0, 0, 0, 1, 0, 0, 0, 1), Vector3.new(117.339813, 95.6299896, 48.0800133))
  4720. createWall(CFrame.new(178.260925, 23.3800297, -162.874664, -1, -8.74227766e-08, 7.70258813e-15, -8.74227766e-08, 1, -8.74227766e-08, -5.98462659e-17, -8.74227766e-08, -1), Vector3.new(121.349945, 25.9399948, 128.109985))
  4721. createWall(CFrame.new(307.760925, 23.380043, -136.374664, -1, -8.74227766e-08, 7.70258813e-15, -8.74227766e-08, 1, -8.74227766e-08, -5.98462659e-17, -8.74227766e-08, -1), Vector3.new(137.349945, 25.9399948, 181.109985))
  4722. createWall(CFrame.new(-99.9021072, -12.9436626, 113.714745, -3.53632537e-08, 2.56929074e-08, -1, 0.587785184, 0.809016943, -4.4408921e-16, 0.809016943, -0.587785184, -4.37113918e-08), Vector3.new(79.9400024, 23.4399948, 56.2800293))
  4723. createWall(CFrame.new(42.959198, 36.9860115, 134.363754, 1, 0, 0, 0, 1, 0, 0, 0, 1), Vector3.new(23.2597961, 95.6299896, 74.2600098))
  4724. createWall(CFrame.new(-121.288857, 0.756968558, 202.870163, -4.20180761e-08, 1.20484973e-08, 1, 0.275637388, 0.961261809, 3.33066907e-15, -0.961261809, 0.275637388, -4.37113918e-08), Vector3.new(59.1999512, 23.9399948, 10.6900024))
  4725. createWall(CFrame.new(310.510925, 23.1539402, -49.8755417, -1, -7.33189793e-08, -4.76138418e-08, -8.7422741e-08, 0.838670671, 0.544638932, -1.30358269e-14, 0.544638932, -0.838670671), Vector3.new(24.8499451, 39.9399948, 16.6099854))
  4726. createWall(CFrame.new(310.510925, 21.0615959, -71.9470215, -1, -7.78942706e-08, 3.96891195e-08, -8.74227766e-08, 0.89100647, -0.453990608, -5.3323414e-17, -0.453990608, -0.89100647), Vector3.new(24.8499451, 39.9399948, 24.6099854))
  4727. createWall(CFrame.new(137.010925, 20.868412, -68.4826736, -1, -8.04731002e-08, -3.41587914e-08, -8.74227695e-08, 0.920504868, 0.390731037, -5.14420645e-17, 0.390731037, -0.920504868), Vector3.new(38.8499451, 4.43999481, 68.1099854))
  4728. createWall(CFrame.new(256.935089, 9.34212494, 30.1253357, -0.920504808, -0.390731215, 3.55271368e-15, -0.390731215, 0.920504808, -8.74227837e-08, 3.41587985e-08, -8.04730931e-08, -1), Vector3.new(66.8499451, 24.4399948, 66.1099854))
  4729. createWall(CFrame.new(337.760925, 22.6300564, 12.8753357, -1, -8.74227766e-08, 7.70258813e-15, -8.74227766e-08, 1, -8.74227766e-08, -5.98462659e-17, -8.74227766e-08, -1), Vector3.new(77.3499451, 24.4399948, 100.609985))
  4730. createWall(CFrame.new(337.010925, 22.1300583, 30.1253357, -1, -8.74227766e-08, 7.70258813e-15, -8.74227766e-08, 1, -8.74227766e-08, -5.98462659e-17, -8.74227766e-08, -1), Vector3.new(78.8499451, 23.4399948, 66.1099854))
  4731. createWall(CFrame.new(329.510925, 21.1300583, 30.1253357, -1, -8.74227766e-08, 7.70258813e-15, -8.74227766e-08, 1, -8.74227766e-08, -5.98462659e-17, -8.74227766e-08, -1), Vector3.new(93.8499451, 24.4399948, 66.1099854))
  4732. createWall(CFrame.new(-110.288849, 1.1410141, 231.444031, -4.37113883e-08, 0, 1, 0, 1, 0, -1, 0, -4.37113883e-08), Vector3.new(51.1999512, 23.9399948, 37.6900024))
  4733. createWall(CFrame.new(-112.038849, 0.891014099, 231.444031, -4.37113883e-08, 0, 1, 0, 1, 0, -1, 0, -4.37113883e-08), Vector3.new(51.1999512, 23.4399948, 41.1900024))
  4734. createWall(CFrame.new(-245.053238, 24.6439991, -76.1922913, 0.131052777, 0.743242264, 0.656061411, -0.984807491, 0.173650265, -3.70293856e-06, -0.113928005, -0.646093667, 0.754707873), Vector3.new(4.34993744, 13.9399948, 22.9200001))
  4735. createWall(CFrame.new(-219.118988, 16.1449757, -98.7366257, -0.342632473, 0.672451258, 0.656058371, -0.891007841, -0.453988045, -5.27128577e-06, 0.297839075, -0.58455497, 0.754710317), Vector3.new(4.34993744, 33.9399948, 22.9200001))
  4736. createWall(CFrame.new(-235.20369, 24.6545467, -84.7544098, -0.118063509, 0.745420098, 0.656065226, -0.987691581, -0.156433806, -3.13296914e-06, 0.102626264, -0.647989988, 0.754713774), Vector3.new(4.59993744, 13.9399948, 22.9200001))
  4737. createWall(CFrame.new(-254.772614, 20.8520355, -67.7679214, 0.335811794, 0.688516259, 0.642787576, -0.898794055, 0.438371211, -1.86264515e-09, -0.281779528, -0.577733696, 0.766044378), Vector3.new(3.09993744, 14.6899948, 22.9200001))
  4738. if _G.destroy_map then
  4739. workspace.Terrain:Clear()
  4740. for i,v in pairs(workspace:GetChildren()) do
  4741. if v.ClassName == "Model" or v.ClassName == "Part" or v.ClassName == "UnionOperation" or v.ClassName == "WedgePart" or v.Name == "MeshPart" then
  4742. if v ~= game.Players.LocalPlayer.Character and v.Name ~= regionPartName and v.Name ~= "secondBossSafeSpots" and v.Name ~= "finalBossObjectSpawns" then
  4743. v:Destroy()
  4744. end
  4745. end
  4746. end
  4747. end
  4748. end
  4749.  
  4750. function steamFix()
  4751. createWall(CFrame.new(1598.42798, -10.4780731, -429.198364, 1, 0, 0, 0, 1, 0, 0, 0, 1), Vector3.new(2.5, 59, 146.5))
  4752. createWall(CFrame.new(1487.67798, -10.4780731, -502.198364, 1, 0, 0, 0, 1, 0, 0, 0, 1), Vector3.new(224, 59, 0.5))
  4753. createWall(CFrame.new(1488.92798, -10.4780731, -357.448364, 1, 0, 0, 0, 1, 0, 0, 0, 1), Vector3.new(221.5, 59, 7))
  4754. createWall(CFrame.new(1388.92798, -40.2280731, -429.448364, 1, 0, 0, 0, 1, 0, 0, 0, 1), Vector3.new(44.5, 29.5, 151))
  4755. createWall(CFrame.new(1431.1106, -53.0152588, -431.698364, 0.882947683, 0.469471514, 0, -0.469471514, 0.882947683, 0, 0, 0, 1), Vector3.new(62.5, 29.5, 31.5))
  4756. createWall(CFrame.new(1326.0979, -27.7056007, -431.698364, 0.965927362, 0.258819342, 0, -0.258819342, 0.965927362, 0, 0, 0, 1), Vector3.new(155, 29.5, 31.5))
  4757. createWall(CFrame.new(1316.12097, -7.95021439, -416.198364, 0.965927362, 0.258819342, 0, -0.258819342, 0.965927362, 0, 0, 0, 1), Vector3.new(125.5, 62.5, 0.5))
  4758. createWall(CFrame.new(1316.84546, -8.14432907, -447.948364, 0.965927362, 0.258819342, 0, -0.258819342, 0.965927362, 0, 0, 0, 1), Vector3.new(127, 62.5, 3))
  4759. createWall(CFrame.new(1171.92798, -8.22807312, -429.448364, 1, 0, 0, 0, 1, 0, 0, 0, 1), Vector3.new(165.5, 29.5, 151))
  4760. createWall(CFrame.new(1171.92798, 9.52192688, -481.448364, 1, 0, 0, 0, 1, 0, 0, 0, 1), Vector3.new(165.5, 65, 47))
  4761. createWall(CFrame.new(1171.92798, 9.52192688, -397.198364, 1, 0, 0, 0, 1, 0, 0, 0, 1), Vector3.new(165.5, 65, 10.5))
  4762. createWall(CFrame.new(1088.17798, 9.52192688, -408.698364, 1, 0, 0, 0, 1, 0, 0, 0, 1), Vector3.new(5, 65, 33.5))
  4763. createWall(CFrame.new(1088.92798, 9.52192688, -447.698364, 1, 0, 0, 0, 1, 0, 0, 0, 1), Vector3.new(3.5, 65, 22.5))
  4764. createWall(CFrame.new(1059.92798, -3.47807312, -429.698364, 1, 0, 0, 0, 1, 0, 0, 0, 1), Vector3.new(61.5, 39, 58.5))
  4765. createWall(CFrame.new(1034.92798, -7.47807312, -429.698364, 1, 0, 0, 0, 1, 0, 0, 0, 1), Vector3.new(111.5, 31, 94.5))
  4766. createWall(CFrame.new(1019.40039, -7.82135487, -430.448364, 0.866025388, -0.5, 0, 0.5, 0.866025388, 0, 0, 0, 1), Vector3.new(40.5, 31.5, 28))
  4767. createWall(CFrame.new(978.677979, 0.27192688, -429.698364, 1, 0, 0, 0, 1, 0, 0, 0, 1), Vector3.new(2, 14.5, 94.5))
  4768. createWall(CFrame.new(977.927979, 0.0219268799, -429.698364, 1, 0, 0, 0, 1, 0, 0, 0, 1), Vector3.new(2.5, 14, 94.5))
  4769. createWall(CFrame.new(977.427979, -0.22807312, -429.698364, 1, 0, 0, 0, 1, 0, 0, 0, 1), Vector3.new(3.5, 13.5, 94.5))
  4770. createWall(CFrame.new(960.427979, -13.4780731, -437.698364, 1, 0, 0, 0, 1, 0, 0, 0, 1), Vector3.new(37.5, 39, 161.5))
  4771. createWall(CFrame.new(937.427979, -13.4780731, -481.198364, 1, 0, 0, 0, 1, 0, 0, 0, 1), Vector3.new(83.5, 39, 74.5))
  4772. createWall(CFrame.new(937.427979, 8.27192688, -510.698364, 1, 0, 0, 0, 1, 0, 0, 0, 1), Vector3.new(83.5, 82.5, 15.5))
  4773. createWall(CFrame.new(976.177979, 8.27192688, -489.198364, 1, 0, 0, 0, 1, 0, 0, 0, 1), Vector3.new(9, 82.5, 56.5))
  4774. createWall(CFrame.new(975.927979, 8.27192688, -379.448364, 1, 0, 0, 0, 1, 0, 0, 0, 1), Vector3.new(8.5, 82.5, 39))
  4775. createWall(CFrame.new(811.927979, -33.4780731, -435.948364, 1, 0, 0, 0, 1, 0, 0, 0, 1), Vector3.new(334.5, 2, 165))
  4776. createWall(CFrame.new(947.677979, -27.1234665, -424.020416, 1, 0, 0, 0, 0.777145922, -0.629320383, 0, 0.629320383, 0.777145922), Vector3.new(63, 27, 72.5))
  4777. createWall(CFrame.new(680.177979, -8.72807312, -364.198364, 1, 0, 0, 0, 1, 0, 0, 0, 1), Vector3.new(71, 51.5, 32.5))
  4778. createWall(CFrame.new(679.927979, -9.72807312, -493.948364, 1, 0, 0, 0, 1, 0, 0, 0, 1), Vector3.new(70.5, 49.5, 31))
  4779. createWall(CFrame.new(644.177979, -16.4780731, -461.448364, 1, 0, 0, 0, 1, 0, 0, 0, 1), Vector3.new(4, 36, 35))
  4780. createWall(CFrame.new(644.177979, -16.4780731, -395.948364, 1, 0, 0, 0, 1, 0, 0, 0, 1), Vector3.new(4, 36, 38))
  4781. createWall(CFrame.new(597.093445, -20.3076077, -428.198364, 0.965925813, 0.258819044, 0, -0.258819044, 0.965925813, 0, 0, 0, 1), Vector3.new(129, 2, 35.5))
  4782. createWall(CFrame.new(398.177979, -18.7280731, -428.198364, 1, 0, 0, 0, 1, 0, 0, 0, 1), Vector3.new(277, 31.5, 103.5))
  4783. createWall(CFrame.new(496.177979, 1.77192688, -377.948364, 1, 0, 0, 0, 1, 0, 0, 0, 1), Vector3.new(81, 72.5, 3))
  4784. createWall(CFrame.new(496.177979, 1.77192688, -480.698364, 1, 0, 0, 0, 1, 0, 0, 0, 1), Vector3.new(81, 72.5, 3.5))
  4785. createWall(CFrame.new(467.177979, 1.77192688, -459.948364, 1, 0, 0, 0, 1, 0, 0, 0, 1), Vector3.new(5, 72.5, 45))
  4786. createWall(CFrame.new(467.177979, 1.77192688, -399.948364, 1, 0, 0, 0, 1, 0, 0, 0, 1), Vector3.new(5, 72.5, 39))
  4787. createWall(CFrame.new(589.427979, 1.77192688, -397.448364, 1, 0, 0, 0, 1, 0, 0, 0, 1), Vector3.new(111.5, 72.5, 34))
  4788. createWall(CFrame.new(589.427979, 1.77192688, -466.948364, 1, 0, 0, 0, 1, 0, 0, 0, 1), Vector3.new(111.5, 72.5, 46))
  4789. createWall(CFrame.new(351.927979, -3.47807312, -464.948364, 1, 0, 0, 0, 1, 0, 0, 0, 1), Vector3.new(221.5, 62, 30))
  4790. createWall(CFrame.new(260.677979, -18.4780731, -428.198364, 1, 0, 0, 0, 1, 0, 0, 0, 1), Vector3.new(2, 32, 103.5))
  4791. createWall(CFrame.new(249.677979, -17.9780731, -428.198364, 1, 0, 0, 0, 1, 0, 0, 0, 1), Vector3.new(21, 33, 103.5))
  4792. createWall(CFrame.new(249.677979, -7.97807312, -428.198364, 1, 0, 0, 0, 1, 0, 0, 0, 1), Vector3.new(19, 15, 103.5))
  4793. createWall(CFrame.new(249.677979, -7.47807312, -438.698364, 1, 0, 0, 0, 1, 0, 0, 0, 1), Vector3.new(16, 16, 82.5))
  4794. createWall(CFrame.new(234.190384, -24.4961605, -428.198364, 0.848048091, -0.529919267, 0, 0.529919267, 0.848048091, 0, 0, 0, 1), Vector3.new(33, 33, 103.5))
  4795. createWall(CFrame.new(115.927979, -27.2280731, -296.698364, 1, 0, 0, 0, 1, 0, 0, 0, 1), Vector3.new(292.5, 38.5, 396.5))
  4796. createWall(CFrame.new(41.9279785, -22.7280731, -25.4483643, 1, 0, 0, 0, 1, 0, 0, 0, 1), Vector3.new(56.5, 47.5, 147))
  4797. createWall(CFrame.new(69.1779785, 11.0219269, 10.3016357, 1, 0, 0, 0, 1, 0, 0, 0, 1), Vector3.new(2, 54, 75.5))
  4798. createWall(CFrame.new(18.4279785, 11.0219269, 10.0516357, 1, 0, 0, 0, 1, 0, 0, 0, 1), Vector3.new(0.5, 54, 76))
  4799. createWall(CFrame.new(44.1779785, 11.0219269, 43.3016357, 1, 0, 0, 0, 1, 0, 0, 0, 1), Vector3.new(52, 54, 9.5))
  4800. createWall(CFrame.new(43.1779785, -8.81507015, -108.920464, 1, 0, 0, 0, 0.906307936, 0.4226183, 0, -0.4226183, 0.906307936), Vector3.new(33, 9, 29))
  4801. createWall(CFrame.new(915.927979, -13.4780731, -419.948364, 1, 0, 0, 0, 1, 0, 0, 0, 1), Vector3.new(1.5, 39, 50))
  4802. createWall(CFrame.new(1105.50012, 1.51558495, -430.948364, 0.838670552, 0.544639051, 0, -0.544639051, 0.838670552, 0, 0, 0, 1), Vector3.new(40.5, 8.5, 12))
  4803. createWall(CFrame.new(1258.92798, 9.52192688, -475.698364, 1, 0, 0, 0, 1, 0, 0, 0, 1), Vector3.new(13.5, 65, 58.5))
  4804. createWall(CFrame.new(1259.17798, 9.52192688, -409.448364, 1, 0, 0, 0, 1, 0, 0, 0, 1), Vector3.new(14, 65, 14))
  4805. createWall(CFrame.new(1421.67798, -37.7280731, -416.198364, 1, 0, 0, 0, 1, 0, 0, 0, 1), Vector3.new(31, 34.5, 0.5))
  4806. createWall(CFrame.new(1421.67798, -38.4780731, -447.698364, 1, 0, 0, 0, 1, 0, 0, 0, 1), Vector3.new(31, 33, 0.5))
  4807. createWall(CFrame.new(942.427979, 25.0219269, -440.073364, 1, 0, 0, 0, 1, 0, 0, 0, 1), Vector3.new(1.5, 39, 10.75))
  4808. createWall(CFrame.new(1370.17798, -24.7280731, -383.448364, 1, 0, 0, 0, 1, 0, 0, 0, 1), Vector3.new(7, 60.5, 59))
  4809. createWall(CFrame.new(1371.92798, -24.7280731, -475.948364, 1, 0, 0, 0, 1, 0, 0, 0, 1), Vector3.new(10.5, 60.5, 60))
  4810. createWall(CFrame.new(1059.42798, 3.02192688, -401.698364, 1, 0, 0, 0, 1, 0, 0, 0, 1), Vector3.new(99.5, 52, 47.5))
  4811. createWall(CFrame.new(1059.17798, 3.02192688, -449.948364, 1, 0, 0, 0, 1, 0, 0, 0, 1), Vector3.new(99, 52, 26))
  4812. wait(.1)
  4813. if _G.destroy_map then
  4814. local t = waitForExist(workspace, "borders")
  4815. for i,v in pairs(t:GetChildren()) do
  4816. cs:AddTag(v, "RayWhitelist")
  4817. end
  4818. workspace.Terrain:Clear()
  4819. for i,v in pairs(workspace:GetChildren()) do
  4820. if v.ClassName == "Model" or v.ClassName == "Part" or v.ClassName == "UnionOperation" or v.ClassName == "WedgePart" or v.Name == "MeshPart" then
  4821. if v ~= game.Players.LocalPlayer.Character and v.Name ~= regionPartName then
  4822. v:Destroy()
  4823. end
  4824. end
  4825. end
  4826. end
  4827. end
  4828.  
  4829. function ghastlyFix()
  4830. _G.smallTeleportVal = 100
  4831. _G.smallTeleports = true
  4832. _G.teleportDuringBossOnly = false
  4833. createWall(CFrame.new(314.997986, 164.955307, 141.573303, 0.969875216, 0, 0.243605107, 0, 1.00000072, 0, -0.243605226, 0, 0.96987462), Vector3.new(47.75, 1.75, 32.25))
  4834. createWall(CFrame.new(330.773529, 164.955322, 178.724518, 0.847127557, 0, 0.531389952, 0, 1.00000024, 0, -0.531390011, 0, 0.847127378), Vector3.new(35.25, 1.75, 66.5))
  4835. createWall(CFrame.new(291.867157, 164.455322, 192.210632, 0.847127557, 0, 0.531389952, 0, 1.00000024, 0, -0.531390011, 0, 0.847127378), Vector3.new(45.5, 0.75, 28.5))
  4836. createWall(CFrame.new(314.526306, 166.267242, 122.420898, 0.999228716, 0.0203912593, 0.0335599519, 8.98155777e-05, 0.853422642, -0.521219611, -0.0392691493, 0.520820618, 0.852762461), Vector3.new(31.25, 5.75, 11))
  4837. createWall(CFrame.new(309.891113, 205.179276, -100.146835, 0.995393157, 1.86264515e-09, 0.0958794728, 0, 1.00000012, -2.98023224e-08, -0.0958794951, 0, 0.995392919), Vector3.new(44, 6, 43.25))
  4838. createWall(CFrame.new(310.046906, 204.929276, -98.5293198, 0.995393157, 1.86264515e-09, 0.0958794728, 0, 1.00000012, -2.98023224e-08, -0.0958794951, 0, 0.995392919), Vector3.new(44, 5.5, 46.5))
  4839. createWall(CFrame.new(312.679291, 209.306335, -100.399132, 0.95375818, 0.156644791, 0.256531715, 2.63154507e-05, 0.853422999, -0.521219373, -0.300576419, 0.497123897, 0.813954473), Vector3.new(60.25, 2, 15))
  4840. createWall(CFrame.new(288.865051, 212.591721, -123.438225, 0.948331475, 9.31322575e-10, 0.317283809, -1.49011612e-08, 1.00000048, -2.98023224e-08, -0.317284107, 0, 0.948330641), Vector3.new(71.25, 2.75, 46.5))
  4841. createWall(CFrame.new(271.416656, 208.042877, -149.974716, 0.963662565, -0.133397385, 0.231429577, -2.28088975e-05, 0.866338432, 0.499457479, -0.267122626, -0.481313825, 0.834854841), Vector3.new(44.25, 2.5, 18.75))
  4842. createWall(CFrame.new(317.858276, 226.091736, -141.969772, 0.902594805, -1.11274026e-07, 0.430492133, -6.26038599e-08, 1.00000179, -1.56817535e-07, -0.430491447, -1.11401803e-07, 0.902596354), Vector3.new(14.5, 26.75, 20.25))
  4843. createWall(CFrame.new(327.610962, 226.091751, -128.030334, 0.713265777, -3.46563553e-07, 0.700896978, -2.28876587e-07, 1.00000536, -4.53092753e-07, -0.700894475, -3.37397211e-07, 0.713270009), Vector3.new(14.5, 26.75, 20.25))
  4844. createWall(CFrame.new(299.221466, 219.653625, -171.897232, 0.999782085, -1.21432961e-07, 0.0208872557, -1.15081804e-07, 1.00000358, -3.05271271e-07, -0.0208872557, -3.02800913e-07, 0.999785483), Vector3.new(22.25, 41.75, 50.249836))
  4845. createWall(CFrame.new(302.612976, 218.403732, -206.136353, 0.914973915, 3.57694532e-08, -0.403517187, -2.30164034e-07, 1.00000715, -6.10544703e-07, 0.403514266, -6.51506639e-07, 0.914980114), Vector3.new(18, 41, 29.249836))
  4846. createWall(CFrame.new(326.326263, 224.250214, -238.250687, 0.697180986, 1.19631932e-06, -0.716895223, -4.60329346e-07, 1, 1.22108031e-06, 0.716895163, -5.21306106e-07, 0.697180986), Vector3.new(15.5, 41, 52.499836))
  4847. createWall(CFrame.new(273.453644, 206.549149, -171.125031, 0.999962032, 0, 0.00871858001, -1.49011612e-08, 1.00000012, -8.94069672e-08, -0.00871856511, -2.98023224e-08, 0.999962091), Vector3.new(43.5, 1.5, 45.25))
  4848. createWall(CFrame.new(276.836884, 203.299271, -199.41629, 0.999660194, -0.0130174877, 0.0225868188, -3.66615131e-06, 0.866337717, 0.499459028, -0.026069466, -0.499289542, 0.866043389), Vector3.new(48.75, 0.75, 14))
  4849. createWall(CFrame.new(278.942017, 199.432602, -215.061096, 0.917066813, 7.4505806e-08, -0.398734063, -2.79396772e-08, 1.00000048, -2.38418579e-07, 0.398733914, -2.38418579e-07, 0.917067349), Vector3.new(39, 2.75, 44.25))
  4850. createWall(CFrame.new(289.955353, 198.776428, -221.000946, 0.771579385, -0.317793787, -0.551065564, 0.000133678317, 0.866355062, -0.499431521, 0.636133432, 0.385276377, 0.668504), Vector3.new(52, 0.749944925, 32.75))
  4851. createWall(CFrame.new(310.594818, 206.462585, -252.894989, 0.675608575, 6.66826963e-07, -0.737262726, -1.34110451e-07, 1.00000179, -1.01327896e-06, 0.737261295, -8.04662704e-07, 0.675610304), Vector3.new(52, 1.24994493, 49))
  4852. createWall(CFrame.new(69.4087906, 144.00502, -171.119354, 0.99996233, -5.89203459e-08, 0.00871866941, -5.46784662e-08, 1.00000095, -4.86772592e-07, -0.0087184906, -4.86277315e-07, 0.999963284), Vector3.new(43.75, 3.75, 49))
  4853. createWall(CFrame.new(52.5376968, 153.755035, -170.597244, 0.99996233, -5.89203459e-08, 0.00871866941, -5.46784662e-08, 1.00000095, -4.86772592e-07, -0.0087184906, -4.86277315e-07, 0.999963284), Vector3.new(10, 23.25, 48.25))
  4854. createWall(CFrame.new(64.1473999, 141.698074, -201.493713, 0.999660909, -0.0130176228, 0.022584945, -2.62307003e-06, 0.86633873, 0.499459445, -0.0260674842, -0.499291092, 0.866045833), Vector3.new(29.5, 1.24981689, 14.25))
  4855. createWall(CFrame.new(62.3234749, 137.645157, -210.031967, 0.837708116, -1.23679638e-06, 0.546123624, -2.17929482e-07, 1.00000381, -1.90734863e-06, -0.546121001, -1.4603138e-06, 0.837710857), Vector3.new(38.25, 3.49981689, 32.5))
  4856. createWall(CFrame.new(-166.044968, 37.7829933, 287.729126, 0.0175017715, -2.39997362e-23, 0.999847293, 2.16954798e-23, 1, -2.43831762e-23, -0.999847054, -2.21189041e-23, 0.0175016522), Vector3.new(119.25, 16.2497978, 131.25))
  4857. createWall(CFrame.new(26.7727909, 131.330139, -229.596436, 0.498491108, -1.49011612e-08, 0.866894901, 0, 1, -2.98023224e-08, -0.86689496, -2.98023224e-08, 0.498491049), Vector3.new(49.75, 3.74981594, 60.25))
  4858. createWall(CFrame.new(52.0516853, 155.705139, -223.206177, 0.828062892, -2.11616907e-07, 0.560636103, 4.75783892e-08, 1, -2.57120234e-07, -0.560636997, -1.33975519e-07, 0.828062534), Vector3.new(38.25, 44.9998169, 3.75))
  4859. createWall(CFrame.new(104.046776, 139.162552, -171.938599, 0.986322045, -0.164742291, 0.00536258006, 0.164738536, 0.986336589, 0.00113770308, -0.00547673693, -0.000238718087, 0.99998498), Vector3.new(32.0000076, 16.1000004, 19.6999855))
  4860. createWall(CFrame.new(181.243668, 158.680099, -172.372742, 0.942704737, -0.333585948, 0.0053159981, 0.333584517, 0.94271946, 0.00117557438, -0.00540364953, 0.00066511496, 0.999985158), Vector3.new(27.6000061, 18.1999969, 19.6999855))
  4861. createWall(CFrame.new(131.853058, 145.830246, -172.094543, 0.976343989, -0.216156989, 0.0053403331, 0.216153711, 0.976358593, 0.00119193445, -0.00547172502, -9.40531027e-06, 0.999985039), Vector3.new(25.4000072, 14.2999983, 19.6999855))
  4862. createWall(CFrame.new(318.447052, 163.461685, 37.7652664, 0.999982238, 0.000530938152, 0.0059381309, 1.35496957e-05, 0.995821595, -0.0913198441, -0.00596180419, 0.0913182944, 0.995803893), Vector3.new(16.2999992, 19.3199978, 41.7999878))
  4863. createWall(CFrame.new(318.052277, 174.400818, -28.883812, 0.999982417, 0.00173310237, 0.00567422993, 2.61646928e-05, 0.955086589, -0.296326905, -0.00593294576, 0.296321839, 0.955069721), Vector3.new(16.2999992, 26.0899982, 41.7999878))
  4864. createWall(CFrame.new(226.274368, 183.300385, -172.641464, 0.870467842, -0.492196739, 0.00530316494, 0.492197692, 0.870482564, 0.00121696084, -0.00521529652, 0.00155088026, 0.999985218), Vector3.new(25.4000072, 11.5999985, 19.6999855))
  4865. createWall(CFrame.new(152.616531, 158.295456, -172.219894, 0.958893836, -0.283715218, 0.005320244, 0.283712894, 0.958908498, 0.00120666309, -0.0054439758, 0.000352359959, 0.999985099), Vector3.new(170.769989, 20.6599998, 19.6999855))
  4866. createWall(CFrame.new(318.252289, 167.785767, 4.91963005, 0.999982595, 0.00117594865, 0.00578253064, -2.67500873e-05, 0.980835259, -0.194838986, -0.00590083003, 0.194835439, 0.980818212), Vector3.new(16.2999992, 21.3699989, 41.7999878))
  4867. createWall(CFrame.new(244.598236, 195.088745, -172.753021, 0.824243903, -0.566209912, 0.00532178301, 0.566212296, 0.824258626, 0.00119986106, -0.00506589841, 0.00202428014, 0.999985099), Vector3.new(25.4000072, 11.2999992, 19.6999855))
  4868. createWall(CFrame.new(203.613464, 171.606827, -172.507065, 0.917157352, -0.398489952, 0.00530689815, 0.398489475, 0.917172134, 0.00119122909, -0.00534203229, 0.00102219847, 0.999985218), Vector3.new(25.4000072, 11.8999987, 19.6999855))
  4869. createWall(CFrame.new(317.851074, 185.098953, -62.7725983, 0.999982536, 0.00234849169, 0.00542167015, -1.89922284e-05, 0.918884039, -0.394527793, -0.00590843149, 0.394520819, 0.918868005), Vector3.new(16.2999992, 29.8699989, 41.7999878))
  4870. createWall(CFrame.new(313.591675, 164.848785, 87.4919815, 0.999982238, 1.23396703e-05, 0.00595618133, 1.23396703e-05, 0.999991417, -0.00414342992, -0.00595618133, 0.00414342992, 0.999973655), Vector3.new(26.6000271, 12.3999996, 63.6499863))
  4871. createWall(CFrame.new(313.780762, 164.967224, 119.242188, 0.999982238, 1.23396703e-05, 0.00595618133, 1.23396703e-05, 0.999991417, -0.00414342992, -0.00595618133, 0.00414342992, 0.999973655), Vector3.new(26.6000271, 12.8999996, 1.64998627))
  4872. createWall(CFrame.new(360.600037, 217.278778, 183.034668, -0.66911006, 0, 0.743163466, 0, 1, 0, -0.743163466, 0, -0.66911006), Vector3.new(77.5999832, 140.259995, 5.57999849))
  4873. createWall(CFrame.new(329.736298, 201.704147, 121.851646, 0.990270376, 0, 0.13915664, 0, 1, 0, -0.13915664, 0, 0.990270376), Vector3.new(8.30997372, 92.3699722, 7.27999878))
  4874. createWall(CFrame.new(336.563782, 201.704147, 98.0409088, 0.961273968, -0, -0.275594592, 0, 1, -0, 0.275594592, 0, 0.961273968), Vector3.new(8.30997372, 92.3699722, 49.2699966))
  4875. createWall(CFrame.new(336.604401, 225.51413, 1.04374969, 1, 0, 0, 0, 1, 0, 0, 0, 1), Vector3.new(22.5599785, 139.98996, 158.379974))
  4876. createWall(CFrame.new(291.936859, 201.704147, 117.422958, 1, 0, 0, 0, 1, 0, 0, 0, 1), Vector3.new(22.5599785, 92.3699722, 85.6899643))
  4877. createWall(CFrame.new(325.460632, 217.398804, 205.506134, 0.601813793, -0, -0.798636556, 0, 1, -0, 0.798636556, 0, 0.601813793), Vector3.new(31.1900005, 140.5, 5.57999849))
  4878. createWall(CFrame.new(356.861755, 217.278778, 201.473495, 0.79861635, 0, 0.601840496, 0, 1, 0, -0.601840496, 0, 0.79861635), Vector3.new(52.8799973, 140.259995, 5.57999849))
  4879. createWall(CFrame.new(332.964478, 201.704147, 137.253326, 0.139203906, -0, -0.99026376, 0, 1, -0, 0.99026376, 0, 0.139203906), Vector3.new(37.4799767, 92.3699722, 5.57999849))
  4880. createWall(CFrame.new(299.712402, 225.474121, 0.448717952, 1, 0, 0, 0, 1, 0, 0, 0, 1), Vector3.new(22.5599785, 139.909927, 154.210022))
  4881. createWall(CFrame.new(268.070129, 201.704147, 200.553894, 0.829036474, 0, 0.559194624, 0, 1, 0, -0.559194624, 0, 0.829036474), Vector3.new(4.10997677, 92.3699722, 43.399971))
  4882. createWall(CFrame.new(-3.77216744, 81.1528473, -397.064117, 0.987685978, 0, 0.156449571, 0, 1, 0, -0.156449571, 0, 0.987685978), Vector3.new(26.0000801, 131.969925, 144.389969))
  4883. createWall(CFrame.new(-417.882141, 71.6578674, -111.429916, 0.956294656, 0, 0.292404652, 0, 1, 0, -0.292404652, 0, 0.956294656), Vector3.new(12.0600824, 112.979919, 155.639954))
  4884. createWall(CFrame.new(89.2471313, 201.152954, -201.564957, 0, 0, -1, 0, 1, 0, 1, 0, 0), Vector3.new(12.8600912, 155.529922, 27.2199631))
  4885. createWall(CFrame.new(-322.662384, 71.6578674, -175.193466, 0.970287263, 0, 0.241955817, 0, 1, 0, -0.241955817, 0, 0.970287263), Vector3.new(52.1000938, 112.979919, 26.0899544))
  4886. createWall(CFrame.new(-125.327179, 150.609619, 448.347321, 0, 1, 0, 1, 0, 0, 0, 0, -1), Vector3.new(110.670059, 16.2098866, 21.2899628))
  4887. createWall(CFrame.new(278.299347, 240.282928, -82.8367004, -0.965929747, 0, -0.258804798, 0, 1, 0, 0.258804798, 0, -0.965929747), Vector3.new(26.6800213, 77.2699661, 29.6099987))
  4888. createWall(CFrame.new(268.070129, 201.704147, 200.553894, 0.829036474, 0, 0.559194624, 0, 1, 0, -0.559194624, 0, 0.829036474), Vector3.new(4.10997677, 92.3699722, 43.399971))
  4889. createWall(CFrame.new(321.441681, 258.039154, -126.414459, -0.406715393, 0, 0.913554907, 0, 1, 0, -0.913554907, 0, -0.406715393), Vector3.new(129.209961, 9.13999081, 34.7499962))
  4890. createWall(CFrame.new(136.824524, 71.6578674, -210.560226, 0.788016856, -0, -0.615653694, 0, 1, -0, 0.615653694, 0, 0.788016856), Vector3.new(23.9600925, 112.979919, 112.829971))
  4891. createWall(CFrame.new(280.31485, 201.704147, 174.340118, 0.829036474, 0, 0.559194624, 0, 1, 0, -0.559194624, 0, 0.829036474), Vector3.new(53.7299843, 92.3699722, 13.6299658))
  4892. createWall(CFrame.new(-42.6308556, 83.3778839, -423.266296, 0.987685978, 0, 0.156449571, 0, 1, 0, -0.156449571, 0, 0.987685978), Vector3.new(55.3900757, 136.419937, 3.29997849))
  4893. createWall(CFrame.new(253.593842, 201.152954, -198.05365, -0.999848366, 0, 0.017436387, 0, 1, 0, -0.017436387, 0, -0.999848366), Vector3.new(7.96000004, 155.529922, 9.87997532))
  4894. createWall(CFrame.new(80.389328, 130.517944, -178.993362, 0.587748766, -0, -0.809043527, 0, 1, -0, 0.809043527, 0, 0.587748766), Vector3.new(84.3001022, 14.2599249, 27.2500114))
  4895. createWall(CFrame.new(-56.7383423, 82.0228577, -388.675171, 0.987685978, 0, 0.156449571, 0, 1, 0, -0.156449571, 0, 0.987685978), Vector3.new(16.700079, 133.709915, 144.389969))
  4896. createWall(CFrame.new(-90.3630447, 71.6578674, -322.139832, 0.999847949, -0, -0.017436387, 0, 1, -0, 0.017436387, 0, 0.999847949), Vector3.new(76.3400879, 112.979919, 10.0999537))
  4897. createWall(CFrame.new(-269.883667, 71.6578674, -211.016266, 0.933587551, 0, 0.358349502, 0, 1, 0, -0.358349502, 0, 0.933587551), Vector3.new(28.4701061, 112.979919, 26.0899544))
  4898. createWall(CFrame.new(66.7276688, 201.152954, -145.322754, -1, 0, 0, 0, 1, 0, 0, 0, -1), Vector3.new(65.3700638, 155.529922, 7.01998234))
  4899. createWall(CFrame.new(147.480667, 71.6578674, -481.844696, 0.981621504, -0, -0.190838262, 0, 1, -0, 0.190838262, 0, 0.981621504), Vector3.new(84.450058, 112.979919, 15.2799673))
  4900. createWall(CFrame.new(171.137604, 201.152954, -190.154861, -1, 0, 0, 0, 1, 0, 0, 0, -1), Vector3.new(161.15007, 155.529922, 20.5299816))
  4901. createWall(CFrame.new(289.106201, 199.204453, -237.240112, -0.681973696, 0, 0.731376648, 0, 1, 0, -0.731376648, 0, -0.681973696), Vector3.new(46.5600014, 1.63998556, 20.0499992))
  4902. createWall(CFrame.new(46.1648331, 170.712921, -244.133514, 0.933587551, -0, -0.358349502, 0, 1, -0, 0.358349502, 0, 0.933587551), Vector3.new(48.9500923, 94.6499176, 9.41996288))
  4903. createWall(CFrame.new(32.8624992, 71.6578674, -504.092804, 0.981621504, -0, -0.190838262, 0, 1, -0, 0.190838262, 0, 0.981621504), Vector3.new(84.450058, 112.979919, 15.2799673))
  4904. createWall(CFrame.new(171.137604, 201.152954, -154.059052, -1, 0, 0, 0, 1, 0, 0, 0, -1), Vector3.new(161.15007, 155.529922, 20.5299816))
  4905. createWall(CFrame.new(56.9643517, 128.217972, -214.544128, 0.587748766, -0, -0.809043527, 0, 1, -0, 0.809043527, 0, 0.587748766), Vector3.new(21.7401257, 9.65992451, 31.1400127))
  4906. createWall(CFrame.new(78.888588, 201.152954, -216.94101, 0.544665456, -0, -0.838653445, 0, 1, -0, 0.838653445, 0, 0.544665456), Vector3.new(23.9600925, 155.529922, 9.41996288))
  4907. createWall(CFrame.new(201.904037, 81.967865, -316.362091, 0.788016856, -0, -0.615653694, 0, 1, -0, 0.615653694, 0, 0.788016856), Vector3.new(51.6700859, 133.59993, 141.20993))
  4908. createWall(CFrame.new(-151.983612, 71.6578674, -307.082306, 0.829036474, 0, 0.559194624, 0, 1, 0, -0.559194624, 0, 0.829036474), Vector3.new(100.530083, 112.979919, 10.0999537))
  4909. createWall(CFrame.new(-211.735306, 71.6578674, -241.287537, 0.469467044, 0, 0.882950008, 0, 1, 0, -0.882950008, 0, 0.469467044), Vector3.new(89.0900803, 112.979919, 10.0999537))
  4910. createWall(CFrame.new(10.404254, 71.6578674, -235.046997, 0.984812498, 0, 0.173621148, 0, 1, 0, -0.173621148, 0, 0.984812498), Vector3.new(39.1400681, 112.979919, 31.4799538))
  4911. createWall(CFrame.new(299.215668, 201.704147, 210.820496, 0.829036474, 0, 0.559194624, 0, 1, 0, -0.559194624, 0, 0.829036474), Vector3.new(53.7299843, 92.3699722, 13.6299658))
  4912. createWall(CFrame.new(302.519348, 248.124329, -170.130829, 0.0175017118, 0, 0.999846935, 0, 1, 0, -0.999846935, 0, 0.0175017118), Vector3.new(53.5899887, 22.2499924, 36.8600044))
  4913. createWall(CFrame.new(-72.5408325, 92.6578674, -226.426178, 0.999847949, 0, 0.017436387, 0, 1, 0, -0.017436387, 0, 0.999847949), Vector3.new(130.620087, 154.979904, 36.8499527))
  4914. createWall(CFrame.new(37.5846519, 71.6578674, -237.363373, 0.999847949, -0, -0.017436387, 0, 1, -0, 0.017436387, 0, 0.999847949), Vector3.new(21.0300751, 112.979919, 29.3599606))
  4915. createWall(CFrame.new(-239.524338, 71.6578674, -200.243027, 0.933587551, 0, 0.358349502, 0, 1, 0, -0.358349502, 0, 0.933587551), Vector3.new(28.4701061, 112.979919, 26.0899544))
  4916. createWall(CFrame.new(-286.944824, 71.6578674, -186.516891, 0.90629667, 0, 0.422642082, 0, 1, 0, -0.422642082, 0, 0.90629667), Vector3.new(28.4701061, 112.979919, 26.0899544))
  4917. createWall(CFrame.new(-390.022064, 71.6578674, -175.793915, 0.956294656, 0, 0.292404652, 0, 1, 0, -0.292404652, 0, 0.956294656), Vector3.new(86.9200897, 112.979919, 26.0899544))
  4918. createWall(CFrame.new(296.471771, 209.142975, -107.708954, -0.951068401, 0, -0.308980465, 0, 1, 0, 0.308980465, 0, -0.951068401), Vector3.new(68.9400024, 8.52998447, 9.06999397))
  4919. createWall(CFrame.new(27.5196838, 170.712921, -245.540726, 0.999847949, 0, 0.017436387, 0, 1, 0, -0.017436387, 0, 0.999847949), Vector3.new(48.9500923, 94.6499176, 9.41996288))
  4920. createWall(CFrame.new(285.192871, 209.142975, -142.421982, -0.951068401, 0, -0.308980465, 0, 1, 0, 0.308980465, 0, -0.951068401), Vector3.new(68.9400024, 8.52998447, 9.06999397))
  4921. createWall(CFrame.new(304.893066, 229.299469, -222.380829, -0.766061664, 0, 0.642767608, 0, 1, 0, -0.642767608, 0, -0.766061664), Vector3.new(6.65000296, 61.8299904, 10.8399925))
  4922. createWall(CFrame.new(39.5098419, 201.152954, -171.609802, 0, 0, -1, 0, 1, 0, 1, 0, 0), Vector3.new(66.7700806, 155.529922, 28.3999786))
  4923. createWall(CFrame.new(102.651863, 81.8628693, -404.385468, 0.981621504, -0, -0.190838262, 0, 1, -0, 0.190838262, 0, 0.981621504), Vector3.new(26.0000801, 133.389938, 184.459961))
  4924. createWall(CFrame.new(334.250702, 259.569092, -104.673012, -0.173624277, 0, 0.984811902, 0, 1, 0, -0.984811902, 0, -0.173624277), Vector3.new(80.2499771, 208.099976, 9.06999397))
  4925. createWall(CFrame.new(257.434692, 240.282928, -114.319412, -0.951068401, 0, -0.308980465, 0, 1, 0, 0.308980465, 0, -0.951068401), Vector3.new(7.70001984, 77.2699661, 45.7699966))
  4926. createWall(CFrame.new(331.207611, 201.152954, -268.791962, -0.74314785, 0, -0.669127226, 0, 1, 0, 0.669127226, 0, -0.74314785), Vector3.new(7.96000004, 155.529922, 50.1699715))
  4927. createWall(CFrame.new(259.305756, 201.152954, -219.461853, -0.906296611, 0, 0.422642082, 0, 1, 0, -0.422642082, 0, -0.906296611), Vector3.new(7.96000004, 155.529922, 52.3299637))
  4928. createWall(CFrame.new(285.489746, 202.64946, -249.168152, -0.681973696, 0, 0.731376648, 0, 1, 0, -0.731376648, 0, -0.681973696), Vector3.new(68.9400024, 8.52998447, 9.06999397))
  4929. createWall(CFrame.new(271.153839, 202.64946, -189.05751, -1, 0, 0, 0, 1, 0, 0, 0, -1), Vector3.new(68.9400024, 8.52998447, 9.06999397))
  4930. createWall(CFrame.new(26.5978699, 178.708435, -202.503372, 0.469467044, 0, 0.882950008, 0, 1, 0, -0.882950008, 0, 0.469467044), Vector3.new(87.330101, 11.7599154, 70.6699524))
  4931. createWall(CFrame.new(146.12854, 82.1978836, -359.938873, 0.788016856, -0, -0.615653694, 0, 1, -0, 0.615653694, 0, 0.788016856), Vector3.new(26.0000801, 134.059937, 141.20993))
  4932. createWall(CFrame.new(296.637207, 201.152954, -266.805756, -0.66911006, 0, 0.743163466, 0, 1, 0, -0.743163466, 0, -0.66911006), Vector3.new(7.96000004, 155.529922, 50.1699715))
  4933. createWall(CFrame.new(99.3139725, 71.6578674, -192.906723, 0.788016856, -0, -0.615653694, 0, 1, -0, 0.615653694, 0, 0.788016856), Vector3.new(61.3401108, 112.979919, 38.8199997))
  4934. createWall(CFrame.new(275.48941, 201.152954, -246.046173, -0.731384635, 0, 0.681965172, 0, 1, 0, -0.681965172, 0, -0.731384635), Vector3.new(7.96000004, 155.529922, 10.8099756))
  4935. createWall(CFrame.new(191.84343, 71.6578674, -519.669495, 0.981621504, 0, -0.190838262, 0, 1, 0, 0.190838262, 0, 0.981621504), Vector3.new(11.7900572, 112.979919, 106.469978))
  4936. createWall(CFrame.new(8.56675243, 176.11792, -233.824677, 0.469467044, 0, 0.882950008, 0, 1, 0, -0.882950008, 0, 0.469467044), Vector3.new(48.9500923, 105.459915, 9.41996288))
  4937. createWall(CFrame.new(4.76045275, 71.6578674, -554.318726, 0.981621504, 0, -0.190838262, 0, 1, 0, 0.190838262, 0, 0.981621504), Vector3.new(11.7900572, 112.979919, 103.099976))
  4938. createWall(CFrame.new(336.604401, 238.509155, -76.2662277, 1, 0, 0, 0, 1, 0, 0, 0, 1), Vector3.new(22.5599785, 165.97998, 3.75999427))
  4939. createWall(CFrame.new(103.385704, 71.6578674, -584.13147, 0.981621504, 0, -0.190838262, 0, 1, 0, 0.190838262, 0, 0.981621504), Vector3.new(192.360016, 112.979919, 6.27996731))
  4940. createWall(CFrame.new(45.7099876, 82.1828537, -415.45401, 0.981621504, -0, -0.190838262, 0, 1, -0, 0.190838262, 0, 0.981621504), Vector3.new(26.0000801, 134.029907, 184.459961))
  4941. createWall(CFrame.new(192.358246, 82.1778717, -374.678314, 0.788016856, -0, -0.615653694, 0, 1, -0, 0.615653694, 0, 0.788016856), Vector3.new(39.2300949, 134.019928, 6.05993652))
  4942. createWall(CFrame.new(-353.975555, 71.6578674, -63.2335167, 0.956294656, 0, 0.292404652, 0, 1, 0, -0.292404652, 0, 0.956294656), Vector3.new(86.1100769, 112.979919, 26.0899544))
  4943. createWall(CFrame.new(251.776321, 240.282928, -140.439316, -0.951068401, 0, -0.308980465, 0, 1, 0, 0.308980465, 0, -0.951068401), Vector3.new(13.0800266, 77.2699661, 10.5299988))
  4944. createWall(CFrame.new(22.8892059, 108.482849, 344.445435, 0.515037358, -0, -0.857167721, 0, 1, -0, 0.857167721, 0, 0.515037358), Vector3.new(7.17007732, 196.649918, 88.9599533))
  4945. createWall(CFrame.new(-189.411392, 115.27285, 512.67157, -0.74314785, 0, -0.669127226, 0, 1, 0, 0.669127226, 0, -0.74314785), Vector3.new(7.17007732, 210.229919, 107.459976))
  4946. createWall(CFrame.new(3.59355736, 115.27285, 400.595734, 0.79861635, 0, 0.601840496, 0, 1, 0, -0.601840496, 0, 0.79861635), Vector3.new(20.2200737, 210.229919, 83.4799728))
  4947. createWall(CFrame.new(-48.4561577, 115.27285, 524.388855, 0.994518042, -0, -0.104565002, 0, 1, -0, 0.104565002, 0, 0.994518042), Vector3.new(29.3600597, 210.229919, 38.3299599))
  4948. createWall(CFrame.new(-217.117432, 108.482849, 331.702698, 0.788016856, 0, 0.615653694, 0, 1, 0, -0.615653694, 0, 0.788016856), Vector3.new(7.17007732, 196.649918, 65.809967))
  4949. createWall(CFrame.new(-132.738174, 115.27285, 485.842224, -0.656062722, 0, -0.754706323, 0, 1, 0, 0.754706323, 0, -0.656062722), Vector3.new(15.610075, 210.229919, 80.2799683))
  4950. createWall(CFrame.new(-114.245438, 115.27285, 502.964417, -0.656062722, 0, -0.754706323, 0, 1, 0, 0.754706323, 0, -0.656062722), Vector3.new(23.2500763, 210.229919, 18.7399883))
  4951. createWall(CFrame.new(-181.212082, 108.482849, 455.194031, -0.978144407, 0, -0.207926437, 0, 1, 0, 0.207926437, 0, -0.978144407), Vector3.new(7.17007732, 196.649918, 28.6599598))
  4952. createWall(CFrame.new(-171.409775, 108.482849, 480.494568, -0.866007447, 0, -0.500031412, 0, 1, 0, 0.500031412, 0, -0.866007447), Vector3.new(7.17007732, 196.649918, 28.6599598))
  4953. createWall(CFrame.new(-153.358505, 108.482849, 499.273956, -0.529884458, 0, -0.848069847, 0, 1, 0, 0.848069847, 0, -0.529884458), Vector3.new(7.17007732, 196.649918, 28.6599598))
  4954. createWall(CFrame.new(2.28053975, 191.96788, 412.527252, 0.965929627, 0, 0.258804798, 0, 1, 0, -0.258804798, 0, 0.965929627), Vector3.new(46.6800728, 51.1199303, 30.3899784))
  4955. createWall(CFrame.new(-11.8301239, 69.1528625, -32.3248634, -0.190845728, 0, 0.981620014, 0, 1, 0, -0.981620014, 0, -0.190845728), Vector3.new(33.9601364, 117.989929, 43.3399582))
  4956. createWall(CFrame.new(-5.22509098, 115.27285, 490.063293, 0.484826028, -0, -0.874610603, 0, 1, -0, 0.874610603, 0, 0.484826028), Vector3.new(20.2200737, 210.229919, 83.4799728))
  4957. createWall(CFrame.new(-127.205185, 108.482849, 510.990234, -0.275688529, 0, -0.961247265, 0, 1, 0, 0.961247265, 0, -0.275688529), Vector3.new(8.14007759, 196.649918, 33.0399551))
  4958. createWall(CFrame.new(-159.152649, 108.482849, 380.508484, -0.719358206, 0, 0.694639385, 0, 1, 0, -0.694639385, 0, -0.719358206), Vector3.new(7.17007732, 196.649918, 28.6599598))
  4959. createWall(CFrame.new(-308.969879, 71.6578674, -94.8810577, 0.961249948, 0, 0.275678426, 0, 1, 0, -0.275678426, 0, 0.961249948), Vector3.new(27.9000931, 112.979919, 25.8499527))
  4960. createWall(CFrame.new(-196.633072, 71.6578674, 20.2068882, -0.29242146, 0, 0.95628953, 0, 1, 0, -0.95628953, 0, -0.29242146), Vector3.new(3.35009265, 112.979919, 193.439865))
  4961. createWall(CFrame.new(-64.1702118, 108.482849, 196.430222, 0.808997452, 0, 0.587812185, 0, 1, 0, -0.587812185, 0, 0.808997452), Vector3.new(7.17007732, 196.649918, 19.1599712))
  4962. createWall(CFrame.new(21.93013, 115.27285, 434.743622, 0.965929627, 0, 0.258804798, 0, 1, 0, -0.258804798, 0, 0.965929627), Vector3.new(20.2200737, 210.229919, 83.4799728))
  4963. createWall(CFrame.new(-33.0243149, 115.27285, 372.81546, 0.258864343, 0, 0.965913713, 0, 1, 0, -0.965913713, 0, 0.258864343), Vector3.new(20.2200737, 210.229919, 83.4799728))
  4964. createWall(CFrame.new(-153.190704, 115.27285, 421.939972, -0.913549781, 0, 0.406727046, 0, 1, 0, -0.406727046, 0, -0.913549781), Vector3.new(20.2200737, 210.229919, 83.4799728))
  4965. createWall(CFrame.new(-186.537735, 71.6578674, 55.9972839, -0.29242146, 0, 0.95628953, 0, 1, 0, -0.95628953, 0, -0.29242146), Vector3.new(6.85009241, 112.979919, 191.819916))
  4966. createWall(CFrame.new(-102.091415, 108.482849, 351.480042, -0.374604106, 0, 0.92718488, 0, 1, 0, -0.92718488, 0, -0.374604106), Vector3.new(7.17007732, 196.649918, 105.239922))
  4967. createWall(CFrame.new(-150.674164, 108.482849, 227.823898, 0.0175017118, 0, 0.999846935, 0, 1, 0, -0.999846935, 0, 0.0175017118), Vector3.new(1.08007801, 196.649918, 27.1100006))
  4968. createWall(CFrame.new(2.66658545, 112.507874, 74.4540482, 0.0697871447, 0, 0.997561872, 0, 1, 0, -0.997561872, 0, 0.0697871447), Vector3.new(121.150146, 204.699951, 38.2499657))
  4969. createWall(CFrame.new(-95.8713608, 108.482849, 212.595322, -0.642763734, 0, 0.766064942, 0, 1, 0, -0.766064942, 0, -0.642763734), Vector3.new(2.72007704, 196.649918, 74.0400085))
  4970. createWall(CFrame.new(3.05939007, 111.247864, 1.23464596, -0.342042685, 0, 0.939684391, 0, 1, 0, -0.939684391, 0, -0.342042685), Vector3.new(106.420143, 202.179932, 38.2499657))
  4971. createWall(CFrame.new(-296.766571, 71.6578674, -104.887527, 0.951068401, 0, 0.308980465, 0, 1, 0, -0.308980465, 0, 0.951068401), Vector3.new(21.460104, 112.979919, 5.02994967))
  4972. createWall(CFrame.new(-136.902573, 115.27285, 400.373932, -0.587748766, 0, 0.809043527, 0, 1, 0, -0.809043527, 0, -0.587748766), Vector3.new(20.2200737, 210.229919, 83.4799728))
  4973. createWall(CFrame.new(-126.523605, 71.6578674, -35.9618187, -0.515037298, 0, 0.857167721, 0, 1, 0, -0.857167721, 0, -0.515037298), Vector3.new(69.3901215, 112.979919, 10.0999537))
  4974. createWall(CFrame.new(-107.43457, 108.482849, 200.957001, -0.642763734, 0, 0.766064942, 0, 1, 0, -0.766064942, 0, -0.642763734), Vector3.new(2.72007704, 196.649918, 81.4400024))
  4975. createWall(CFrame.new(-156.125748, 115.27285, 447.67746, -0.961273909, 0, -0.275594592, 0, 1, 0, 0.275594592, 0, -0.961273909), Vector3.new(20.2200737, 210.229919, 83.4799728))
  4976. createWall(CFrame.new(-84.8648453, 108.482849, 167.946167, 0.808997452, 0, 0.587812185, 0, 1, 0, -0.587812185, 0, 0.808997452), Vector3.new(7.17007732, 196.649918, 22.8599682))
  4977. createWall(CFrame.new(-28.1472721, 112.442856, -60.752491, -0.573599219, 0, 0.81913656, 0, 1, 0, -0.81913656, 0, -0.573599219), Vector3.new(63.9601364, 204.569916, 38.2499657))
  4978. createWall(CFrame.new(-75.1926804, 108.482849, 332.591461, -0.74314785, 0, 0.669127226, 0, 1, 0, -0.669127226, 0, -0.74314785), Vector3.new(8.96007824, 196.649918, 53.559948))
  4979. createWall(CFrame.new(-275.843719, 71.6578674, 63.9708595, -0.29242146, 0, 0.95628953, 0, 1, 0, -0.95628953, 0, -0.29242146), Vector3.new(43.8200836, 112.979919, 32.2699165))
  4980. createWall(CFrame.new(-90.2726288, 108.482849, 117.84272, 0.999391913, -0, -0.0348687991, 0, 1, -0, 0.0348687991, 0, 0.999391913), Vector3.new(7.17007732, 196.649918, 88.6899643))
  4981. createWall(CFrame.new(-188.159439, 108.482849, 236.08194, -0.342042685, 0, 0.939684391, 0, 1, 0, -0.939684391, 0, -0.342042685), Vector3.new(7.17007732, 196.649918, 65.809967))
  4982. createWall(CFrame.new(8.69923592, 108.482849, 164.62558, 0.0175017118, 0, 0.999846935, 0, 1, 0, -0.999846935, 0, 0.0175017118), Vector3.new(105.130081, 196.649918, 21.1499653))
  4983. createWall(CFrame.new(-217.38678, 71.6578674, -120.78791, 0.981621504, 0, 0.190838262, 0, 1, 0, -0.190838262, 0, 0.981621504), Vector3.new(28.2900963, 112.979919, 25.8499527))
  4984. createWall(CFrame.new(-177.051682, 71.6578674, -95.5953293, -0.731384635, 0, 0.681965172, 0, 1, 0, -0.681965172, 0, -0.731384635), Vector3.new(92.0400925, 112.979919, 10.0999537))
  4985. createWall(CFrame.new(-91.2905579, 98.7878723, -180.786469, -0.642763734, 0, 0.766064942, 0, 1, 0, -0.766064942, 0, -0.642763734), Vector3.new(100.200134, 167.239929, 34.0199585))
  4986. createWall(CFrame.new(-60.8750038, 104.102882, -118.505707, -0.970287442, 0, 0.241955817, 0, 1, 0, -0.241955817, 0, -0.970287442), Vector3.new(14.3101358, 177.869934, 52.2899513))
  4987. createWall(CFrame.new(-81.9202881, 115.27285, 376.216888, -0.190845728, 0, 0.981620014, 0, 1, 0, -0.981620014, 0, -0.190845728), Vector3.new(20.2200737, 210.229919, 83.4799728))
  4988. createWall(CFrame.new(14.3495579, 115.27285, 466.507202, 0.866007268, -0, -0.500031412, 0, 1, -0, 0.500031412, 0, 0.866007268), Vector3.new(20.2200737, 210.229919, 83.4799728))
  4989. createWall(CFrame.new(16.8177929, 177.457901, 466.780548, 0.965929627, 0, 0.258804798, 0, 1, 0, -0.258804798, 0, 0.965929627), Vector3.new(46.6800728, 22.099926, 30.3899784))
  4990. createWall(CFrame.new(-236.081604, 71.6578674, -107.771599, 0.951068401, 0, 0.308980465, 0, 1, 0, -0.308980465, 0, 0.951068401), Vector3.new(21.460104, 112.979919, 5.02994967))
  4991. createWall(CFrame.new(-51.8448524, 113.727875, -79.1300812, -0.906296611, 0, 0.422642082, 0, 1, 0, -0.422642082, 0, -0.906296611), Vector3.new(63.9601364, 207.139954, 38.2499657))
  4992. createWall(CFrame.new(11.4648485, 108.482849, 293.321198, -0.642763734, 0, -0.766064942, 0, 1, 0, 0.766064942, 0, -0.642763734), Vector3.new(7.17007732, 196.649918, 119.499962))
  4993. createWall(CFrame.new(-37.7696838, 115.27285, 507.855652, 0.241953552, -0, -0.970287859, 0, 1, -0, 0.970287859, 0, 0.241953552), Vector3.new(26.7200642, 210.229919, 20.9799595))
  4994. createWall(CFrame.new(-182.646271, 108.482849, 427.893585, -0.992540598, 0, 0.121917672, 0, 1, 0, -0.121917672, 0, -0.992540598), Vector3.new(7.17007732, 196.649918, 28.6599598))
  4995. createWall(CFrame.new(-212.57103, 108.482849, 383.047607, -0.890994906, 0, 0.454013437, 0, 1, 0, -0.454013437, 0, -0.890994906), Vector3.new(7.17007732, 196.649918, 65.809967))
  4996. createWall(CFrame.new(-219.156174, 115.27285, 442.736725, -0.997561932, 0, -0.0697919354, 0, 1, 0, 0.0697919354, 0, -0.997561932), Vector3.new(7.17007732, 210.229919, 84.3099747))
  4997. createWall(CFrame.new(-47.2210999, 115.27285, 512.638611, 0.5592103, -0, -0.829025805, 0, 1, -0, 0.829025805, 0, 0.5592103), Vector3.new(29.3600597, 210.229919, 13.2199593))
  4998. createWall(CFrame.new(-175.036667, 108.482849, 402.054779, -0.890994906, 0, 0.454013437, 0, 1, 0, -0.454013437, 0, -0.890994906), Vector3.new(7.17007732, 196.649918, 28.6599598))
  4999. createWall(CFrame.new(-34.2681313, 108.482849, 220.731842, 0.601813793, 0, 0.798636556, 0, 1, 0, -0.798636556, 0, 0.601813793), Vector3.new(7.17007732, 196.649918, 65.809967))
  5000. createWall(CFrame.new(-267.718323, 71.6578674, -106.124031, 0.933587551, 0, 0.358349502, 0, 1, 0, -0.358349502, 0, 0.933587551), Vector3.new(47.0600929, 112.979919, 25.8499527))
  5001. createWall(CFrame.new(-79.1659088, 108.482849, 247.456345, 0.224959731, 0, 0.974368095, 0, 1, 0, -0.974368095, 0, 0.224959731), Vector3.new(2.72007704, 196.649918, 93.0200272))
  5002. createWall(CFrame.new(-24.5546627, 153.542862, 346.573395, 0.309060872, 0, 0.951042235, 0, 1, 0, -0.951042235, 0, 0.309060872), Vector3.new(48.760067, 106.5299, 82.7499619))
  5003. createWall(CFrame.new(-130.157043, 115.27285, 543.391418, -0.241953492, 0, -0.970287859, 0, 1, 0, 0.970287859, 0, -0.241953492), Vector3.new(7.17007732, 210.229919, 107.459976))
  5004. createWall(CFrame.new(-62.0073128, 115.27285, 535.006409, 0.587748766, -0, -0.809043527, 0, 1, -0, 0.809043527, 0, 0.587748766), Vector3.new(13.5600739, 210.229919, 78.2199707))
  5005. createWall(CFrame.new(1.19643378, 108.482849, 210.773438, 0.601813793, 0, 0.798636556, 0, 1, 0, -0.798636556, 0, 0.601813793), Vector3.new(55.8600845, 196.649918, 21.1499653))
  5006. createWall(CFrame.new(-226.246323, 108.482849, 280.09845, 0.981621504, -0, -0.190838262, 0, 1, -0, 0.190838262, 0, 0.981621504), Vector3.new(7.17007732, 196.649918, 65.809967))
  5007. createWall(CFrame.new(-93.2036362, 108.482849, 50.1853981, 0.984812498, 0, 0.173621148, 0, 1, 0, -0.173621148, 0, 0.984812498), Vector3.new(7.17007732, 196.649918, 49.9200096))
  5008. createWall(CFrame.new(-99.4887619, 26.6458683, 204.488251, -0.642771602, -0.172286958, 0.74643296, 3.49506736e-05, 0.974375129, 0.224929258, -0.766058028, 0.144604191, -0.626294613), Vector3.new(17.6900787, 52.3899765, 81.5899811))
  5009. createWall(CFrame.new(-90.5216141, 92.6578674, -212.284851, 0.999847949, 0, 0.017436387, 0, 1, 0, -0.017436387, 0, 0.999847949), Vector3.new(20.6700878, 154.979904, 64.4999695))
  5010. createWall(CFrame.new(-69.007225, 150.609619, 414.444153, 0, 1, 0, 1, 0, 0, 0, 0, -1), Vector3.new(110.670059, 54.7698822, 46.6099701))
  5011. createWall(CFrame.new(-17.0605316, 150.609619, 455.940033, 0, 1, 0, 1, 0, 0, 0, 0, -1), Vector3.new(110.670059, 16.2098866, 21.2899628))
  5012. createWall(CFrame.new(44.4533386, 150.080139, -209.457306, 0.828062892, -2.11616907e-07, 0.560636103, 4.75783892e-08, 1, -2.57120234e-07, -0.560636997, -1.33975519e-07, 0.828062534), Vector3.new(10.25, 33.7498169, 18))
  5013. createWall(CFrame.new(90.6520691, 55.3309364, -253.047241, 0.615655065, -8.31751947e-07, 0.788017154, -1.05084027e-07, 1, -9.73401143e-07, -0.78802079, -5.16469811e-07, 0.615655005), Vector3.new(112, 5.24979782, 111))
  5014. createWall(CFrame.new(72.5854263, 90.4559326, -213.070435, 0.615655065, -8.31751947e-07, 0.788017154, -1.05084027e-07, 1, -9.73401143e-07, -0.78802079, -5.16469811e-07, 0.615655005), Vector3.new(26.75, 75.4998016, 90.25))
  5015. createWall(CFrame.new(129.757416, 61.8308907, -222.495361, 0.615655065, -8.31751947e-07, 0.788017154, -1.05084027e-07, 1, -9.73401143e-07, -0.78802079, -5.16469811e-07, 0.615655005), Vector3.new(112, 18.2497978, 11.75))
  5016. createWall(CFrame.new(151.133179, 61.8308983, -266.707794, 0.615655065, -8.31751947e-07, 0.788017154, -1.05084027e-07, 1, -9.73401143e-07, -0.78802079, -5.16469811e-07, 0.615655005), Vector3.new(16, 18.2497978, 32.5))
  5017. createWall(CFrame.new(102.768631, 61.8309555, -304.493622, 0.615655065, -8.31751947e-07, 0.788017154, -1.05084027e-07, 1, -9.73401143e-07, -0.78802079, -5.16469811e-07, 0.615655005), Vector3.new(16, 18.2497978, 26.75))
  5018. createWall(CFrame.new(85.0030518, 61.5809021, -314.366455, 0.190837413, -1.95113194e-06, 0.981623232, -2.10167372e-07, 1, -1.9468032e-06, -0.981629729, -1.65219262e-07, 0.190840572), Vector3.new(16.25, 19.2497978, 25.5))
  5019. createWall(CFrame.new(27.7007961, 61.5810165, -325.506775, 0.190837413, -1.95113194e-06, 0.981623232, -2.10167372e-07, 1, -1.9468032e-06, -0.981629729, -1.65219262e-07, 0.190840572), Vector3.new(16.25, 19.2497978, 26.75))
  5020. createWall(CFrame.new(7.84294891, 61.5429382, -322.138489, -0.156453863, -3.91142521e-06, 0.987685323, -4.20325563e-07, 1, 3.8936123e-06, -0.987685263, 1.94021311e-07, -0.156453878), Vector3.new(7.75, 19.2497978, 25.5))
  5021. createWall(CFrame.new(-43.5881577, 67.4179993, -313.486664, -0.156449482, -3.69780161e-12, 0.987686753, 5.42860245e-13, 1, -3.65791512e-12, -0.9876858, 3.61038239e-14, -0.15644975), Vector3.new(8.25, 19.9997978, 14.25))
  5022. createWall(CFrame.new(-87.1848373, 67.0428085, -313.408112, 0.0174364448, -7.29579678e-12, 0.999851346, 1.08572136e-12, 1, -7.31584064e-12, -0.999849319, -1.21311815e-12, 0.017436415), Vector3.new(7.25, 20.7497978, 75.5))
  5023. createWall(CFrame.new(-156.584213, 67.3979263, -293.36441, -0.559194386, -6.6722218e-12, 0.829037786, 1.08572027e-12, 1, -7.31583284e-12, -0.829036236, 3.19087291e-12, -0.559195638), Vector3.new(7.5, 19.9997978, 71))
  5024. createWall(CFrame.new(-203.402084, 67.4178085, -238.748154, -0.882949471, -8.786364e-12, 0.469468504, 2.17144011e-12, 1, -1.46316795e-11, -0.469466925, 1.18996219e-11, -0.882953048), Vector3.new(7, 19.9997978, 79.75))
  5025. createWall(CFrame.new(-221.330124, 67.1680069, -201.287247, -0.358348906, -2.88762209e-11, 0.93359375, 4.34287719e-12, 1, -2.92634077e-11, -0.933586717, 6.43207146e-12, -0.358352125), Vector3.new(15, 19.9997978, 6.25))
  5026. createWall(CFrame.new(-198.021118, 65.8308716, -124.031624, -0.309060812, -1.50344096e-17, 0.951042354, -1.75127433e-18, 1, -1.63774614e-17, -0.951042652, 6.72716669e-18, -0.309060782), Vector3.new(28, 27.7497978, 11.5))
  5027. createWall(CFrame.new(-166.487717, 67.7930069, -97.6062241, -0.731385112, -1.97760074e-17, 0.681965232, -3.50254989e-18, 1, -3.27549229e-17, -0.681965768, 2.63450672e-17, -0.731384754), Vector3.new(82.75, 27.7497978, 7.25))
  5028. createWall(CFrame.new(-119.565308, 67.7930069, -39.0402756, -0.515038013, -5.25450404e-17, 0.85716784, -7.00510723e-18, 1, -6.55098524e-17, -0.857169032, 3.97445693e-17, -0.515037596), Vector3.new(72, 27.7497978, 9.5))
  5029. createWall(CFrame.new(-87.4858704, 62.2829895, 49.0097618, -0.173621446, -1.26597385e-16, 0.984812856, -1.40102294e-17, 1, -1.31019718e-16, -0.984815359, 3.65452431e-17, -0.173621505), Vector3.new(51.25, 27.7497978, 10))
  5030. createWall(CFrame.new(-83.2823715, 63.5329895, 120.683098, 0.0348694921, -2.62857167e-16, 0.999392748, -2.80205249e-17, 1, -2.62039489e-16, -0.999397576, 1.88664826e-17, 0.0348683298), Vector3.new(96, 25.2497978, 7))
  5031. createWall(CFrame.new(-78.467865, 63.5329933, 166.610886, -0.587812185, -1.65436123e-23, 0.808997571, 6.6174449e-24, 1, -1.4889251e-23, -0.808997512, -6.6174449e-24, -0.587812304), Vector3.new(18.5, 25.2497978, 4.75))
  5032. createWall(CFrame.new(-60.2567482, 64.4079895, 191.676926, -0.587812245, -3.24787982e-23, 0.80899781, 2.16954798e-23, 1, -2.43831762e-23, -0.808997631, -3.21885739e-24, -0.587812483), Vector3.new(16.25, 24.4997978, 4.75))
  5033. createWall(CFrame.new(-37.4936447, 64.6579895, 210.83847, -0.798636854, -6.40018756e-23, 0.60181427, 4.33909659e-23, 1, -4.87663651e-23, -0.601814091, 1.28333249e-23, -0.79863739), Vector3.new(43.75, 23.9997978, 4.75))
  5034. createWall(CFrame.new(-313.654449, 46.2073135, -131.273331, -0.275637358, 0, 0.96126169, 0, 1, 0, -0.96126169, 0, -0.275637358), Vector3.new(110, 14.7497978, 208))
  5035. createWall(CFrame.new(-165.12883, 54.2137146, 31.6172218, -0.294678897, 0, 0.955596387, 0, 1, 0, -0.955596209, 0, -0.294678926), Vector3.new(40.5, 2.24979782, 249.25))
  5036. createWall(CFrame.new(-73.2428131, 56.4560051, -257.687622, 1, 0, 0, 0, 1, 0, 0, 0, 1), Vector3.new(290.25, 2.99979782, 126))
  5037. createWall(CFrame.new(-112.780289, 56.830883, -107.574318, 0.857371926, 0, 0.514697373, 0, 1, 0, -0.514697313, 0, 0.857372046), Vector3.new(93, 2.24979782, 263.25))
  5038. createWall(CFrame.new(-187.362808, 55.7058716, -134.105606, 0.95104146, 0, 0.309061378, 0, 1, 0, -0.309060663, 0, 0.951044798), Vector3.new(31.5, 4.49979782, 93.75))
  5039. createWall(CFrame.new(-34.3526993, 56.1579857, 102.725609, 0.984812677, 1.29029866e-16, 0.173621446, -1.31019705e-16, 1.00000048, -3.97046694e-23, -0.173621535, -2.27477779e-17, 0.984813035), Vector3.new(110, 3.49979782, 231))
  5040. createWall(CFrame.new(-69.5363007, 58.0819054, 176.25325, 0.788472474, 0.182033852, 0.587515831, -0.224951565, 0.974369884, -3.37541366e-07, -0.57245779, -0.132162333, 0.809212744), Vector3.new(16, 3.24977589, 25.75))
  5041. createWall(CFrame.new(-97.6610107, 59.0887032, 8.19114017, 0.955596149, 6.10016286e-08, 0.294679552, 8.05594027e-08, 0.999999285, -1.49011612e-08, -0.294679046, -4.09781933e-08, 0.95559752), Vector3.new(16.5, 1.99977589, 36))
  5042. createWall(CFrame.new(-97.7346802, 58.7137032, 7.95224094, 0.955596149, 6.10016286e-08, 0.294679552, 8.05594027e-08, 0.999999285, -1.49011612e-08, -0.294679046, -4.09781933e-08, 0.95559752), Vector3.new(20, 1.24977589, 40.5))
  5043. createWall(CFrame.new(-97.6341782, 58.2137032, 7.00558901, 0.955596149, 6.10016286e-08, 0.294679552, 8.05594027e-08, 0.999999285, -1.49011612e-08, -0.294679046, -4.09781933e-08, 0.95559752), Vector3.new(24.25, 1.24977589, 43.75))
  5044. createWall(CFrame.new(-113.563217, 56.2356071, 13.2257681, 0.89212507, -0.342453569, 0.294681668, 0.358367622, 0.933576107, -1.11758709e-07, -0.275106102, 0.10560298, 0.955603957), Vector3.new(11, 1.24977589, 43.75))
  5045. createWall(CFrame.new(-223.621185, 51.8409386, -176.644882, 0.842409015, -0.48570472, 0.233319089, 0.499448329, 0.866343617, 0.000202953815, -0.202233106, 0.116359845, 0.972400308), Vector3.new(20.75, 6.74979782, 89))
  5046. createWall(CFrame.new(-212.42215, 57.5808716, -169.559814, 0.951042056, 3.16649675e-08, 0.309060723, 1.11758709e-08, 0.99999994, -7.4505806e-09, -0.309060752, -1.49011612e-08, 0.951042473), Vector3.new(7.75, 4.24979782, 117))
  5047. createWall(CFrame.new(-224.997284, 52.5610962, -177.975052, 0.811471164, -0.467886627, 0.350137621, 0.499437302, 0.866349936, 0.000212810439, -0.303441286, 0.174699053, 0.936698556), Vector3.new(17.75, 6.74979782, 32))
  5048. createWall(CFrame.new(-210.638947, 57.2058716, -170.139297, 0.951042056, 3.16649675e-08, 0.309060723, 1.11758709e-08, 0.99999994, -7.4505806e-09, -0.309060752, -1.49011612e-08, 0.951042473), Vector3.new(7, 3.49979782, 117))
  5049. createWall(CFrame.new(86.809967, 54.2058792, -434.137939, 0.188369185, 1.58486137e-12, 0.982098579, 4.9803499e-13, 1, 1.51822587e-12, -0.98209846, -2.03132501e-13, 0.188369095), Vector3.new(301, 3.49979782, 287.25))
  5050. createWall(CFrame.new(52.8619156, 58.8309174, -320.487793, 0.190833777, -3.74184447e-06, 0.981622398, -4.20325563e-07, 1, 3.8936123e-06, -0.981622398, -1.15563375e-06, 0.190833792), Vector3.new(17, 1.74979782, 44))
  5051. createWall(CFrame.new(54.4297676, 58.455925, -320.692352, 0.190833777, -3.74184447e-06, 0.981622398, -4.20325563e-07, 1, 3.8936123e-06, -0.981622398, -1.15563375e-06, 0.190833792), Vector3.new(22, 0.999797821, 47))
  5052. createWall(CFrame.new(54.7160225, 57.205925, -322.164795, 0.190833777, -3.74184447e-06, 0.981622398, -4.20325563e-07, 1, 3.8936123e-06, -0.981622398, -1.15563375e-06, 0.190833792), Vector3.new(25, 1.49979782, 47))
  5053. createWall(CFrame.new(55.0022812, 55.580925, -323.637238, 0.190833777, -3.74184447e-06, 0.981622398, -4.20325563e-07, 1, 3.8936123e-06, -0.981622398, -1.15563375e-06, 0.190833792), Vector3.new(28, 2.24979782, 47))
  5054. createWall(CFrame.new(127.154045, 57.9558754, -280.683319, 0.615653574, 2.27373675e-13, 0.788017035, 1.13686838e-13, 1, 7.10542736e-14, -0.788017035, -2.27373675e-13, 0.615653574), Vector3.new(9, 3.99979782, 44))
  5055. createWall(CFrame.new(129.044098, 56.8308754, -282.696472, 0.615653574, 2.27373675e-13, 0.788017035, 1.13686838e-13, 1, 7.10542736e-14, -0.788017035, -2.27373675e-13, 0.615653574), Vector3.new(20, 4.24979782, 50.5))
  5056. createWall(CFrame.new(130.540146, 55.4558754, -285.017426, 0.615653574, 2.27373675e-13, 0.788017035, 1.13686838e-13, 1, 7.10542736e-14, -0.788017035, -2.27373675e-13, 0.615653574), Vector3.new(20, 4.49979782, 44))
  5057. createWall(CFrame.new(132.079285, 54.8308754, -286.987457, 0.615653574, 2.27373675e-13, 0.788017035, 1.13686838e-13, 1, 7.10542736e-14, -0.788017035, -2.27373675e-13, 0.615653574), Vector3.new(25, 3.24979782, 44))
  5058. createWall(CFrame.new(-20.4398537, 57.3308754, -317.710022, 0.984812856, 4.45411665e-13, 0.17362076, 4.3284457e-13, 1, 1.10245187e-13, -0.17362076, 3.34200441e-14, 0.984812677), Vector3.new(35.5, 4.74979782, 7.25))
  5059. createWall(CFrame.new(-20.6999245, 56.9558754, -321.345093, 0.984812856, 4.45411665e-13, 0.17362076, 4.3284457e-13, 1, 1.10245187e-13, -0.17362076, 3.34200441e-14, 0.984812677), Vector3.new(53.75, 3.99979782, 20.5))
  5060. createWall(CFrame.new(-21.2862549, 55.5808754, -322.510986, 0.984812856, 4.45411665e-13, 0.17362076, 4.3284457e-13, 1, 1.10245187e-13, -0.17362076, 3.34200441e-14, 0.984812677), Vector3.new(35.5, 4.74979782, 23))
  5061. createWall(CFrame.new(-21.6769009, 55.0808754, -324.726807, 0.984812856, 4.45411665e-13, 0.17362076, 4.3284457e-13, 1, 1.10245187e-13, -0.17362076, 3.34200441e-14, 0.984812677), Vector3.new(35.5, 3.74979782, 27.5))
  5062. spawn(function()
  5063. while not workspace:FindFirstChild("playerPickupCannonballRing") do
  5064. wait()
  5065. end
  5066. workspace.playerPickupCannonballRing.Changed:Connect(function(prop)
  5067. if prop == "Transparency" then
  5068. objectiveExists = not objectiveExists
  5069. objectiveObject = workspace.playerPickupCannonballRing
  5070. end
  5071. end)
  5072. end)
  5073. if _G.destroy_map then
  5074. workspace.borders:Destroy()
  5075. workspace.borderFix:Destroy()
  5076. for i,v in pairs(workspace:GetChildren()) do
  5077. if v.ClassName == "Model" and v.Name ~= "corruptCannons" and v.Name ~= "playerFireCannon" then
  5078. if v ~= game.Players.LocalPlayer.Character and v.Name ~= regionPartName then
  5079. v:Destroy()
  5080. end
  5081. end
  5082. end
  5083. end
  5084. wait(2)
  5085. while not game:GetService("Workspace").dungeon.room3.enemyFolder:FindFirstChildOfClass("Model") do
  5086. wait(1)
  5087. end
  5088. -- get to bottom layer
  5089. forceObjectiveExists = true
  5090. thePart.CFrame = CFrame.new(58.451, 140.645, -221.236)
  5091. local _,_,_,root = getPlayer()
  5092. while true do
  5093. if root ~= nil then
  5094. if getMag(root.Position, thePart.Position) < 5 then
  5095. break
  5096. end
  5097. end
  5098. wait()
  5099. end
  5100. thePart.CFrame = CFrame.new(77.782, 140.645, -233.241)
  5101. while root.Position.Y > 135 do
  5102. wait()
  5103. end
  5104. forceObjectiveExists = false
  5105.  
  5106. while not game:GetService("Workspace").dungeon.room4.enemyFolder:FindFirstChild("The Kraken") do
  5107. wait(1)
  5108. end
  5109. while not game:GetService("Workspace").dungeon.room4.enemyFolder:FindFirstChild("The Kraken"):FindFirstChild("HumanoidRootPart") do
  5110. wait(1)
  5111. end
  5112. while game:GetService("Workspace").dungeon.room4.enemyFolder:FindFirstChild("The Kraken"):FindFirstChild("HumanoidRootPart").Position.Y < -20 do
  5113. forceObjectiveExists = true
  5114. thePart.CFrame = CFrame.new(100.95, 58.9558, -524.832)
  5115. wait()
  5116. end
  5117. forceObjectiveExists = false
  5118. game:GetService("Players").LocalPlayer.Character.LowerTorso.Root:Remove()
  5119. game:GetService("Players").LocalPlayer.Character.LowerTorso.Anchored = true
  5120. spawn(function()
  5121. while true do
  5122. local s = game:GetService("Workspace").dungeon.bossRoom.enemyFolder
  5123. if s:FindFirstChild("Sea Serpent") then
  5124. local g = s:FindFirstChild("Sea Serpent")
  5125. while g ~= nil and g.Parent ~= nil and g:FindFirstChild("Humanoid") and g.Humanoid.Health > 0 do
  5126. if game.Players.LocalPlayer.Character:FindFirstChild("HumanoidRootPart") and game.Players.LocalPlayer.Character:FindFirstChild("Humanoid") then
  5127. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = g.PrimaryPart.CFrame * CFrame.new(0,0,10)
  5128. game.Players.LocalPlayer.Character.Humanoid:ChangeState(11)
  5129. end
  5130. game:GetService("RunService").RenderStepped:wait()
  5131. end
  5132. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame * CFrame.new(0,220,0)
  5133. end
  5134. wait(1)
  5135. end
  5136. end)
  5137. end
  5138.  
  5139. function samuraiFix()
  5140. createWall(CFrame.new(-79.3490448, 17.7415733, -86.7040176, 0.7313537, 0, -0.681998372, 0, 1, 0, 0.681998372, 0, 0.7313537), Vector3.new(73.0999832, 120, 5))
  5141. createWall(CFrame.new(-121.829887, 46.2415581, -115.202858, 0.974370062, 0, -0.224951044, 0, 1, 0, 0.224951044, 0, 0.974370062), Vector3.new(34.9499969, 176.999969, 5))
  5142. createWall(CFrame.new(-144.170593, 49.5415764, -131.804932, 0.57357645, 0, -0.819152057, 0, 1, 0, 0.819152057, 0, 0.57357645), Vector3.new(34.9499969, 183.600006, 5))
  5143. createWall(CFrame.new(-148.874176, 40.8565865, -154.876312, 0.0174523834, 0, -0.99984771, 0, 1, 0, 0.99984771, 0, 0.0174523834), Vector3.new(34.9499969, 166.230026, 5))
  5144. createWall(CFrame.new(-145.585724, 36.8465843, -173.163925, -0.559192896, -4.88861964e-08, -0.829037547, -1.49460107e-08, 1, -4.88861964e-08, 0.829037547, -1.49460107e-08, -0.559192896), Vector3.new(34.9499969, 158.210022, 5))
  5145. createWall(CFrame.new(-128.299927, 38.8115654, -190.066727, -0.838670552, -7.33189083e-08, -0.544639051, -3.98089171e-08, 1, -7.33189083e-08, 0.544639051, -3.98089171e-08, -0.838670552), Vector3.new(34.9499969, 162.139984, 5))
  5146. createWall(CFrame.new(-114.954521, 38.4115791, -193.36969, -0.99862951, -8.73029649e-08, -0.0523359589, -8.28474214e-08, 1, -8.73029649e-08, 0.0523359589, -8.28474214e-08, -0.99862951), Vector3.new(34.9499969, 161.340012, 5))
  5147. createWall(CFrame.new(-94.6667786, 41.6165733, -187.850113, -0.906307757, -7.92319383e-08, 0.42261827, -1.24369237e-07, 1, -7.92319383e-08, -0.42261827, -1.24369237e-07, -0.906307757), Vector3.new(34.9499969, 167.75, 5))
  5148. createWall(CFrame.new(-76.6514664, 42.5215492, -173.739227, -0.484809577, -4.23833981e-08, 0.874619722, -1.63884465e-07, 1, -4.23833981e-08, -0.874619722, -1.63884465e-07, -0.484809577), Vector3.new(34.9499969, 169.559952, 5))
  5149. createWall(CFrame.new(-71.1062622, 38.1915855, -159.090225, 0.0174523834, 0, 0.99984771, 0, 1, 0, -0.99984771, 0, 0.0174523834), Vector3.new(34.9499969, 160.900024, 5))
  5150. createWall(CFrame.new(-70.8261185, 31.206562, -149.575394, 0.49999997, 0, 0.866025448, 0, 1, 0, -0.866025448, 0, 0.49999997), Vector3.new(34.9499969, 146.929977, 5))
  5151. createWall(CFrame.new(-53.192379, 17.7415733, -112.487228, -0.719339788, -6.28866843e-08, 0.694658399, -1.48151742e-07, 1, -6.28866843e-08, -0.694658399, -1.48151742e-07, -0.719339788), Vector3.new(71.1999741, 120, 5))
  5152. createWall(CFrame.new(-16.0917797, 17.7415733, -84.8617783, -0.927183867, -8.10569887e-08, 0.37460658, -1.20171919e-07, 1, -8.10569887e-08, -0.37460658, -1.20171919e-07, -0.927183867), Vector3.new(28.6499805, 120, 5))
  5153. createWall(CFrame.new(18.1154346, 17.7415733, -80.3057556, -1, -8.74227766e-08, 0, -8.74227766e-08, 1, -8.74227766e-08, 7.64274186e-15, -8.74227766e-08, -1), Vector3.new(44.1499825, 120, 5))
  5154. createWall(CFrame.new(44.4154396, 17.7415733, -77.3612747, -0.866025388, -7.57103464e-08, 0.5, -1.31134158e-07, 1, -7.57103464e-08, -0.5, -1.31134158e-07, -0.866025388), Vector3.new(44.1499825, 120, 5))
  5155. createWall(CFrame.new(86.6246567, 17.7415733, -47.5756416, -0.777145922, -6.79402561e-08, 0.629320383, -1.42439717e-07, 1, -6.79402561e-08, -0.629320383, -1.42439717e-07, -0.777145922), Vector3.new(82.649971, 120, 5))
  5156. createWall(CFrame.new(-52.7619934, 17.7415733, 44.2467651, -0.0174523834, -1.52573587e-09, 0.99984771, -1.74832238e-07, 1, -1.52573587e-09, -0.99984771, -1.74832238e-07, -0.0174523834), Vector3.new(210.749954, 120, 5))
  5157. createWall(CFrame.new(113.934662, 17.7415733, 5.35666466, -0.0174523834, -1.52573587e-09, 0.99984771, -1.74832238e-07, 1, -1.52573587e-09, -0.99984771, -1.74832238e-07, -0.0174523834), Vector3.new(68.5999527, 120, 5))
  5158. createWall(CFrame.new(105.848, 17.7415733, 100.737358, -0.0174523834, -1.52573587e-09, 0.99984771, -1.74832238e-07, 1, -1.52573587e-09, -0.99984771, -1.74832238e-07, -0.0174523834), Vector3.new(96.9499588, 120, 5))
  5159. createWall(CFrame.new(76.6631012, 75.4415894, 148.297241, -1, -8.74227766e-08, 0, -8.74227766e-08, 1, -8.74227766e-08, 7.64274186e-15, -8.74227766e-08, -1), Vector3.new(68.8998871, 129, 18.5))
  5160. createWall(CFrame.new(22.9380455, 76.1915817, 312.697144, -1, -8.74227766e-08, 0, -8.74227766e-08, 1, -8.74227766e-08, 7.64274186e-15, -8.74227766e-08, -1), Vector3.new(141.350006, 127.5, 10))
  5161. createWall(CFrame.new(101.938057, 75.9415817, 232.997162, -4.37113883e-08, 0, -1, 0, 1, 0, 1, 0, -4.37113883e-08), Vector3.new(162.44989, 128, 8.5))
  5162. createWall(CFrame.new(-132.212021, 79.9415817, 180.147202, -1, -8.74227766e-08, 0, -8.74227766e-08, 1, -8.74227766e-08, 7.64274186e-15, -8.74227766e-08, -1), Vector3.new(168.149887, 120, 72))
  5163. createWall(CFrame.new(-123.587051, 79.9415817, 287.997192, -1, -8.74227766e-08, 0, -8.74227766e-08, 1, -8.74227766e-08, 7.64274186e-15, -8.74227766e-08, -1), Vector3.new(150.899948, 120, 72.5))
  5164. createWall(CFrame.new(-229.801941, 79.9415817, 220.263245, -0.906307757, -7.92319383e-08, -0.42261827, -5.04763129e-08, 1, -7.92319383e-08, 0.42261827, -5.04763129e-08, -0.906307757), Vector3.new(55.5999222, 120, 5))
  5165. createWall(CFrame.new(-241.71637, 79.9415817, 221.566833, -0.342020154, -2.99003524e-08, -0.939692616, -5.27224131e-09, 1, -2.99003524e-08, 0.939692616, -5.27224131e-09, -0.342020154), Vector3.new(55.5999222, 120, 5))
  5166. createWall(CFrame.new(-276.772064, 79.9415817, 273.57489, -0.681998372, -5.96221881e-08, -0.7313537, -2.34858035e-08, 1, -5.96221881e-08, 0.7313537, -2.34858035e-08, -0.681998372), Vector3.new(73.2999039, 120, 5))
  5167. createWall(CFrame.new(-247.87471, 79.9415817, 294.94928, -0.7313537, -6.3936973e-08, -0.681998372, -2.78005885e-08, 1, -6.3936973e-08, 0.681998372, -2.78005885e-08, -0.7313537), Vector3.new(65.2999191, 120, 5))
  5168. createWall(CFrame.new(-217.981018, 79.9415817, 272.917114, -0.997564077, -8.72098198e-08, -0.0697564706, -8.13244725e-08, 1, -8.72098198e-08, 0.0697564706, -8.13244725e-08, -0.997564077), Vector3.new(17.0999241, 120, 5))
  5169. createWall(CFrame.new(-204.486954, 79.9415817, 264.958984, -0.484809577, -4.23833981e-08, -0.874619722, -1.09610951e-08, 1, -4.23833981e-08, 0.874619722, -1.09610951e-08, -0.484809577), Vector3.new(27.4999256, 120, 5))
  5170. createWall(CFrame.new(-307.982819, 79.9415817, 295.596252, 0.866025388, 0, -0.5, 0, 1, 0, 0.5, 0, 0.866025388), Vector3.new(20.2499027, 120, 5))
  5171. createWall(CFrame.new(-324.856873, 79.9415817, 291.09314, 0.999390841, 0, 0.0348994955, 0, 1, 0, -0.0348994955, 0, 0.999390841), Vector3.new(20.2499027, 120, 5))
  5172. createWall(CFrame.new(-334.888336, 79.9415817, 294.865021, 0.838670552, 0, 0.544639051, 0, 1, 0, -0.544639051, 0, 0.838670552), Vector3.new(25.0999069, 120, 5))
  5173. createWall(CFrame.new(-344.876831, 79.9415817, 303.412811, 0.544639051, 0, 0.838670552, 0, 1, 0, -0.838670552, 0, 0.544639051), Vector3.new(25.0999069, 120, 5))
  5174. createWall(CFrame.new(-353.138275, 79.9415817, 319.06076, 0.309016973, 0, 0.95105654, 0, 1, 0, -0.95105654, 0, 0.309016973), Vector3.new(25.0999069, 120, 5))
  5175. createWall(CFrame.new(-355.918182, 79.9415817, 338.616058, -0.156434491, -1.36759377e-08, 0.987688363, -1.73769237e-07, 1, -1.36759377e-08, -0.987688363, -1.73769237e-07, -0.156434491), Vector3.new(25.0999069, 120, 5))
  5176. createWall(CFrame.new(-338.64389, 79.9415817, 361.615967, -0.719339788, -6.28866843e-08, 0.694658399, -1.48151742e-07, 1, -6.28866843e-08, -0.694658399, -1.48151742e-07, -0.719339788), Vector3.new(50.5999031, 120, 5))
  5177. createWall(CFrame.new(-340.175018, 79.9415817, 406.1138, -0.642787635, -5.61942812e-08, -0.766044438, -2.04530437e-08, 1, -5.61942812e-08, 0.766044438, -2.04530437e-08, -0.642787635), Vector3.new(68.14991, 120, 5))
  5178. createWall(CFrame.new(-345.91333, 79.9415817, 462.58136, 0.42261824, 0, -0.906307817, 0, 1, 0, 0.906307817, 0, 0.42261824), Vector3.new(103.199928, 120, 5))
  5179. createWall(CFrame.new(-308.45636, 79.9415817, 507.855316, 0.987688363, 0, -0.156434476, 0, 1, 0, 0.156434476, 0, 0.987688363), Vector3.new(47.6499405, 120, 5))
  5180. createWall(CFrame.new(-276.312256, 79.9415817, 511.668976, 0.99984771, 0, 0.0174524058, 0, 1, 0, -0.0174524058, 0, 0.99984771), Vector3.new(47.6499405, 120, 5))
  5181. createWall(CFrame.new(-241.047165, 79.9415817, 538.805542, -0.453990519, -3.96891124e-08, 0.891006529, -1.65317033e-07, 1, -3.96891124e-08, -0.891006529, -1.65317033e-07, -0.453990519), Vector3.new(65.5499344, 120, 5))
  5182. createWall(CFrame.new(-220.261414, 79.9415817, 575.792419, -0.559192896, -4.88861964e-08, 0.829037547, -1.59899542e-07, 1, -4.88861964e-08, -0.829037547, -1.59899542e-07, -0.559192896), Vector3.new(47.3499336, 120, 5))
  5183. createWall(CFrame.new(-186.82869, 79.9415817, 601.801575, -0.882947564, -7.71897248e-08, 0.469471574, -1.28465288e-07, 1, -7.71897248e-08, -0.469471574, -1.28465288e-07, -0.882947564), Vector3.new(76.9499283, 120, 5))
  5184. createWall(CFrame.new(-273.247772, 79.9415817, 323.264557, -0.42261824, -3.69464601e-08, -0.906307817, -8.19083112e-09, 1, -3.69464601e-08, 0.906307817, -8.19083112e-09, -0.42261824), Vector3.new(17.9499207, 120, 5))
  5185. createWall(CFrame.new(-278.552307, 79.9415817, 339.3573, -0.207911655, -1.81762143e-08, -0.978147626, -1.91039362e-09, 1, -1.81762143e-08, 0.978147626, -1.91039362e-09, -0.207911655), Vector3.new(17.9499207, 120, 5))
  5186. createWall(CFrame.new(-283.670166, 79.9415817, 356.718292, -0.35836798, -3.13295239e-08, -0.933580399, -5.80658366e-09, 1, -3.13295239e-08, 0.933580399, -5.80658366e-09, -0.35836798), Vector3.new(20.6499119, 120, 5))
  5187. createWall(CFrame.new(-268.345642, 79.9415817, 364.530884, 0.999390841, 0, 0.0348994955, 0, 1, 0, -0.0348994955, 0, 0.999390841), Vector3.new(40.7998962, 120, 5))
  5188. createWall(CFrame.new(-232.930862, 79.9415817, 367.778046, 0.974370062, 0, -0.224951044, 0, 1, 0, 0.224951044, 0, 0.974370062), Vector3.new(40.7998962, 120, 5))
  5189. createWall(CFrame.new(-198.301727, 79.9415817, 406.548157, -0.438371152, -3.83236234e-08, 0.898794055, -1.65997847e-07, 1, -3.83236234e-08, -0.898794055, -1.65997847e-07, -0.438371152), Vector3.new(85.8499603, 120, 5))
  5190. createWall(CFrame.new(-191.77713, 79.9415817, 455.941559, -0.515038073, -4.50260593e-08, -0.857167304, -1.24868293e-08, 1, -4.50260593e-08, 0.857167304, -1.24868293e-08, -0.515038073), Vector3.new(42.049984, 120, 5))
  5191. createWall(CFrame.new(-208.300247, 79.9415817, 479.683472, -0.629320443, -5.50169403e-08, -0.777145922, -1.94825205e-08, 1, -5.50169403e-08, 0.777145922, -1.94825205e-08, -0.629320443), Vector3.new(42.049984, 120, 5))
  5192. createWall(CFrame.new(-209.384109, 79.9415817, 507.477234, 0.642787635, 0, -0.766044438, 0, 1, 0, 0.766044438, 0, 0.642787635), Vector3.new(36.9999733, 120, 5))
  5193. createWall(CFrame.new(-180.930634, 79.9415817, 525.294922, 0.974370062, 0, -0.224951044, 0, 1, 0, 0.224951044, 0, 0.974370062), Vector3.new(36.9999733, 120, 5))
  5194. createWall(CFrame.new(-145.599655, 79.9415817, 528.387268, 0.997564077, 0, 0.0697564706, 0, 1, 0, -0.0697564706, 0, 0.997564077), Vector3.new(36.9999733, 120, 5))
  5195. createWall(CFrame.new(-132.102982, 79.9415817, 531.453186, -0.0697565079, -6.09830764e-09, 0.997564077, -1.74632589e-07, 1, -6.09830764e-09, -0.997564077, -1.74632589e-07, -0.0697565079), Vector3.new(35.899971, 120, 17.3999958))
  5196. createWall(CFrame.new(-153.191727, 79.9415817, 603.870667, 0.49999997, 0, 0.866025448, 0, 1, 0, -0.866025448, 0, 0.49999997), Vector3.new(36.1999664, 120, 9.19999409))
  5197. createWall(CFrame.new(92.1630783, 79.9415817, 575.945129, 0.99984771, 0, -0.0174524058, 0, 1, 0, 0.0174524058, 0, 0.99984771), Vector3.new(129.549896, 120, 14.0500021))
  5198. createWall(CFrame.new(85.5814362, 79.9415817, 623.537842, 0.99984771, 0, -0.0174524058, 0, 1, 0, 0.0174524058, 0, 0.99984771), Vector3.new(118.049873, 120, 14.0500021))
  5199. createWall(CFrame.new(155.319351, 79.9415817, 644.592834, 0.438371152, 0, -0.898794055, 0, 1, 0, 0.898794055, 0, 0.438371152), Vector3.new(58.5498695, 120, 4.65000153))
  5200. createWall(CFrame.new(150.972641, 79.9415817, 733.93103, 0.275637388, 0, 0.96126169, 0, 1, 0, -0.96126169, 0, 0.275637388), Vector3.new(134.699875, 120, 4.65000153))
  5201. createWall(CFrame.new(113.599823, 79.9415817, 834.299438, 0.469471604, 0, 0.882947564, 0, 1, 0, -0.882947564, 0, 0.469471604), Vector3.new(82.6498489, 120, 4.65000153))
  5202. createWall(CFrame.new(83.7891617, 79.9415817, 886.715393, 0.544639051, 0, 0.838670552, 0, 1, 0, -0.838670552, 0, 0.544639051), Vector3.new(40.299839, 120, 4.65000153))
  5203. createWall(CFrame.new(57.0700951, 79.9415817, 912.924072, 0.857167304, 0, 0.515038073, 0, 1, 0, -0.515038073, 0, 0.857167304), Vector3.new(40.299839, 120, 4.65000153))
  5204. createWall(CFrame.new(-16.656601, 79.9415817, 934.313538, 0.981627166, 0, 0.190808997, 0, 1, 0, -0.190808997, 0, 0.981627166), Vector3.new(116.849838, 120, 4.65000153))
  5205. createWall(CFrame.new(-14.7186928, 79.9415817, 1032.85339, 0.981627166, 0, 0.190808997, 0, 1, 0, -0.190808997, 0, 0.981627166), Vector3.new(150.649872, 120, 4.65000153))
  5206. createWall(CFrame.new(100.627106, 79.9415817, 999.678406, 0.91354543, 0, 0.406736642, 0, 1, 0, -0.406736642, 0, 0.91354543), Vector3.new(96.7998657, 120, 4.65000153))
  5207. createWall(CFrame.new(-82.9455414, 79.9415817, 944.657593, 0.99984771, 0, -0.0174524058, 0, 1, 0, 0.0174524058, 0, 0.99984771), Vector3.new(37.8998451, 120, 4.65000153))
  5208. createWall(CFrame.new(-131.292542, 79.9415817, 922.620178, 0.798635542, 0, -0.601814985, 0, 1, 0, 0.601814985, 0, 0.798635542), Vector3.new(75.9498596, 120, 4.65000153))
  5209. createWall(CFrame.new(-232.84433, 79.9415817, 900.761597, 0.99862951, 0, -0.0523359589, 0, 1, 0, 0.0523359589, 0, 0.99862951), Vector3.new(160.549911, 120, 4.65000153))
  5210. createWall(CFrame.new(-99.3179703, 79.9415817, 1066.7688, 0.515038073, 0, 0.857167304, 0, 1, 0, -0.857167304, 0, 0.515038073), Vector3.new(47.8498611, 120, 4.65000153))
  5211. createWall(CFrame.new(191.109024, 79.9415817, 590.424316, 0.96126169, 0, -0.275637358, 0, 1, 0, 0.275637358, 0, 0.96126169), Vector3.new(129.549896, 120, 14.0500021))
  5212. createWall(CFrame.new(116.764015, 79.9415817, 982.981506, 0.587785304, 0, 0.809017003, 0, 1, 0, -0.809017003, 0, 0.587785304), Vector3.new(44.3998642, 120, 4.65000153))
  5213. createWall(CFrame.new(147.403961, 79.9415817, 956.020203, 0.866025388, 0, 0.5, 0, 1, 0, -0.5, 0, 0.866025388), Vector3.new(44.3998642, 120, 4.65000153))
  5214. createWall(CFrame.new(187.493103, 79.9415817, 912.867615, 0.669130564, 0, 0.74314487, 0, 1, 0, -0.74314487, 0, 0.669130564), Vector3.new(115.299873, 120, 4.65000153))
  5215. createWall(CFrame.new(199.873352, 79.9415817, 869.370178, -0.0348994955, -3.05101078e-09, 0.999390841, -1.74792291e-07, 1, -3.05101078e-09, -0.999390841, -1.74792291e-07, -0.0348994955), Vector3.new(120.999878, 120, 4.65000153))
  5216. createWall(CFrame.new(203.445938, 79.9415817, 792.87146, 0.309016973, 0, 0.95105654, 0, 1, 0, -0.95105654, 0, 0.309016973), Vector3.new(36.849865, 120, 4.65000153))
  5217. createWall(CFrame.new(207.590225, 79.9415817, 760.274048, 0.0348994955, 0, -0.999390841, 0, 1, 0, 0.999390841, 0, 0.0348994955), Vector3.new(52.099865, 120, 4.65000153))
  5218. createWall(CFrame.new(220.461777, 79.9415817, 663.820862, -0.258819073, -2.26266827e-08, -0.965925813, -2.97885805e-09, 1, -2.26266827e-08, 0.965925813, -2.97885805e-09, -0.258819073), Vector3.new(145.199936, 120, 14.2000027))
  5219. createWall(CFrame.new(-312.379059, 79.9415817, 901.517517, 0.642787635, 0, 0.766044438, 0, 1, 0, -0.766044438, 0, 0.642787635), Vector3.new(55.4000015, 120, 4.65000153))
  5220. createWall(CFrame.new(-325.956299, 79.9415817, 988.109619, -4.37113883e-08, 0, 1, 0, 1, 0, -1, 0, -4.37113883e-08), Vector3.new(173.950043, 120, 4.65000153))
  5221. createWall(CFrame.new(-198.956482, 79.9415817, 1094.80957, -1, -8.74227766e-08, 0, -8.74227766e-08, 1, -8.74227766e-08, 7.64274186e-15, -8.74227766e-08, -1), Vector3.new(188.15004, 120, 4.65000153))
  5222. createWall(CFrame.new(46.1631012, 77.6916199, 283.547241, -1, -8.74227766e-08, 0, -8.74227766e-08, 1, -8.74227766e-08, 7.64274186e-15, -8.74227766e-08, -1), Vector3.new(71.8998871, 17.5, 4))
  5223. createWall(CFrame.new(-153.191727, 79.9415817, 603.870667, 0.49999997, 0, 0.866025448, 0, 1, 0, -0.866025448, 0, 0.49999997), Vector3.new(36.1999664, 120, 9.19999409))
  5224. createWall(CFrame.new(-218.836899, 66.4415817, 262.047241, -1, -8.74227766e-08, 0, -8.74227766e-08, 1, -8.74227766e-08, 7.64274186e-15, -8.74227766e-08, -1), Vector3.new(84.8998871, 1, 108))
  5225. createWall(CFrame.new(-35.8530579, 63.9391098, 607.062622, -1.00000024, 6.68149738e-22, 0, -6.68149738e-22, 1, 0, 0, 0, -0.999999881), Vector3.new(207.399887, 1.5, 166))
  5226. createWall(CFrame.new(78.6687851, 17.7415791, 47.7285957, -0.0174523834, -1.52573587e-09, 0.99984771, -1.74832238e-07, 1, -1.52573587e-09, -0.99984771, -1.74832238e-07, -0.0174523834), Vector3.new(46.0999527, 120, 77))
  5227. createWall(CFrame.new(-14.8169785, 17.7415791, 49.3603935, -0.0174523834, -1.52573587e-09, 0.99984771, -1.74832238e-07, 1, -1.52573587e-09, -0.99984771, -1.74832238e-07, -0.0174523834), Vector3.new(46.0999527, 120, 78))
  5228. createWall(CFrame.new(32.8341637, 5.29244184, 34.5653267, -3.7252903e-09, 4.65661287e-10, 1, -0.244939968, 0.969538212, 1.25146471e-09, -0.969538152, -0.244939908, 3.7252903e-09), Vector3.new(51.5999527, 5, 20.5))
  5229. createWall(CFrame.new(25.6630993, 93.6915894, 151.797241, -1, -8.74227766e-08, 0, -8.74227766e-08, 1, -8.74227766e-08, 7.64274186e-15, -8.74227766e-08, -1), Vector3.new(135.899887, 92.5, 9.5))
  5230. createWall(CFrame.new(-21.0868988, 73.9415894, 149.297241, -1, -8.74227766e-08, 0, -8.74227766e-08, 1, -8.74227766e-08, 7.64274186e-15, -8.74227766e-08, -1), Vector3.new(69.3998871, 132, 14.5))
  5231. createWall(CFrame.new(-50.836895, 37.691597, 220.797241, -1, -8.74227766e-08, 0, -8.74227766e-08, 1, -8.74227766e-08, 7.64274186e-15, -8.74227766e-08, -1), Vector3.new(9.89988708, 59.5, 157.5))
  5232. createWall(CFrame.new(56.413105, 38.6916161, 283.547241, -1, -8.74227766e-08, 0, -8.74227766e-08, 1, -8.74227766e-08, 7.64274186e-15, -8.74227766e-08, -1), Vector3.new(92.3998871, 61.5, 4))
  5233. createWall(CFrame.new(-32.086895, 38.6916046, 283.547241, -1, -8.74227766e-08, 0, -8.74227766e-08, 1, -8.74227766e-08, 7.64274186e-15, -8.74227766e-08, -1), Vector3.new(28.3998871, 61.5, 4))
  5234. createWall(CFrame.new(30.4380493, 67.9415741, 211.697144, -1, -8.74227766e-08, 0, -8.74227766e-08, 1, -8.74227766e-08, 7.64274186e-15, -8.74227766e-08, -1), Vector3.new(156.350006, 4, 146))
  5235. createWall(CFrame.new(29.5450134, 2.84688377, 217.2388, 1, 0, 0, 0, 1, 0, 0, 0, 1), Vector3.new(165.91008, 22.4399872, 132.789948))
  5236. createWall(CFrame.new(87.6880493, 67.1915817, 224.947144, -1, -8.74227766e-08, 0, -8.74227766e-08, 1, -8.74227766e-08, 7.64274186e-15, -8.74227766e-08, -1), Vector3.new(24.8500061, 4.5, 172.5))
  5237. createWall(CFrame.new(48.4890289, 38.7647934, 298.738983, -0.707106829, -0.707106769, 4.37113883e-08, -0.707106829, 0.707106769, -4.37113847e-08, 0, -6.18172393e-08, -1), Vector3.new(81.3500061, 5.5, 26))
  5238. createWall(CFrame.new(-8.87301826, 14.249526, 296.988922, -1.00000012, -8.94069672e-08, 9.40053089e-15, -8.94069672e-08, 0.99999994, -8.74227695e-08, 1.77635684e-15, -8.74227766e-08, -1), Vector3.new(59.3500061, 0.5, 26.5))
  5239. createWall(CFrame.new(-28.1230221, 37.4995232, 296.988922, -1.00000012, -8.94069672e-08, 9.40053089e-15, -8.94069672e-08, 0.99999994, -8.74227695e-08, 1.77635684e-15, -8.74227766e-08, -1), Vector3.new(20.8500061, 47, 26.5))
  5240. createWall(CFrame.new(28.0450134, 2.59688377, 106.488808, 1, 0, 0, 0, 1, 0, 0, 0, 1), Vector3.new(158.91008, 21.9399872, 94.2899399))
  5241. createWall(CFrame.new(-124.586899, 67.1915894, 236.797241, -1, -8.74227766e-08, 0, -8.74227766e-08, 1, -8.74227766e-08, 7.64274186e-15, -8.74227766e-08, -1), Vector3.new(157.399887, 0.5, 57.5))
  5242. createWall(CFrame.new(-254.643875, 66.3116455, 432.286926, -0.912263155, 0, -0.409604788, -6.68149738e-22, 1, 0, 0.409604847, 0, -0.912263036), Vector3.new(207.399887, 2.5, 151))
  5243. createWall(CFrame.new(-125.181572, 64.4391098, 589.670898, -0.945519269, 2.00444967e-21, 0.325568169, -2.04085147e-21, 1, -2.17528256e-22, -0.325568289, 5.04870979e-29, -0.945518196), Vector3.new(17.3998871, 2.5, 166))
  5244. createWall(CFrame.new(-137.709702, 64.9391098, 585.357117, -0.945519269, 2.00444967e-21, 0.325568169, -2.04085147e-21, 1, -2.17528256e-22, -0.325568289, 5.04870979e-29, -0.945518196), Vector3.new(22.8998871, 3.5, 166))
  5245. createWall(CFrame.new(19.0190639, 64.4391098, 609.972961, -0.990270078, 5.86774583e-21, 0.139173076, -5.88725364e-21, 1, 5.91148532e-22, -0.139173225, 8.70114437e-22, -0.990266919), Vector3.new(23.8998871, 2.5, 111.5))
  5246. createWall(CFrame.new(105.727264, 64.9391098, 804.053894, -0.990270078, 5.86774583e-21, 0.139173076, -5.88725364e-21, 1, 5.91148532e-22, -0.139173225, 8.70114437e-22, -0.990266919), Vector3.new(214.149902, 3.5, 514.25))
  5247. createWall(CFrame.new(-224.200012, 65.5, 1001.75006, -1.00000405, 1.1819003e-20, 2.98023224e-07, -1.1819003e-20, 1, 5.46135296e-22, 2.98023224e-07, -5.46135296e-22, -0.999997675), Vector3.new(181.399902, 4, 138.5))
  5248. createWall(CFrame.new(-146.199707, 66, 1001.75006, -1.00000405, 1.1819003e-20, 2.98023224e-07, -1.1819003e-20, 1, 5.46135296e-22, 2.98023224e-07, -5.46135296e-22, -0.999997675), Vector3.new(25.3999023, 5, 138.5))
  5249. createWall(CFrame.new(-174.199951, 66, 1047.75, -0.62932831, 3.54571487e-20, 0.777146101, -4.02626932e-20, 1, -7.34422647e-21, -0.777149975, -1.63841185e-21, -0.629315674), Vector3.new(25.3999023, 5, 138.5))
  5250. createWall(CFrame.new(-237.197769, 66, 1060.49756, 0.173636138, 1.16034402e-19, 0.984809875, -1.30376718e-19, 1, -9.48368712e-20, -0.984809875, -1.11929169e-19, 0.173636138), Vector3.new(25.3999023, 5, 138.5))
  5251. createWall(CFrame.new(-283.1716, 66, 1015.58191, 0.906302631, 1.16034402e-19, 0.422629356, -1.52466835e-19, 1, 5.24021665e-20, -0.422629356, -1.11929169e-19, 0.906302631), Vector3.new(25.3999023, 5, 138.5))
  5252. createWall(CFrame.new(-261.013458, 66, 946.482361, 0.77715373, 1.16034389e-19, -0.629310906, -1.97383098e-20, 1, 1.60007905e-19, 0.629310906, -1.11929182e-19, 0.77715373), Vector3.new(25.3999023, 5, 138.5))
  5253. createWall(CFrame.new(-210.805298, 66, 933.739136, -0.190796942, 1.16034389e-19, -0.981629729, 1.32012016e-19, 1, 9.25470866e-20, 0.981629729, -1.11929182e-19, -0.190796942), Vector3.new(25.3999023, 5, 138.5))
  5254. createWall(CFrame.new(-162.697159, 66, 955.924011, -0.707098544, 1.16034363e-19, -0.707116008, 1.61194651e-19, 1, 2.90485394e-21, 0.707116008, -1.11929195e-19, -0.707098544), Vector3.new(25.3999023, 5, 138.5))
  5255. createWall(CFrame.new(-160.222321, 66.5, 953.449097, -0.707098544, 1.16034363e-19, -0.707116008, 1.61194651e-19, 1, 2.90485394e-21, 0.707116008, -1.11929195e-19, -0.707098544), Vector3.new(25.3999023, 5, 138.5))
  5256. createWall(CFrame.new(-157.040375, 67, 950.26709, -0.707098544, 1.16034363e-19, -0.707116008, 1.61194651e-19, 1, 2.90485394e-21, 0.707116008, -1.11929195e-19, -0.707098544), Vector3.new(25.3999023, 5, 138.5))
  5257. createWall(CFrame.new(-155.272629, 67.5, 948.499329, -0.707098544, 1.16034363e-19, -0.707116008, 1.61194651e-19, 1, 2.90485394e-21, 0.707116008, -1.11929195e-19, -0.707098544), Vector3.new(25.3999023, 5, 138.5))
  5258. createWall(CFrame.new(-152.797791, 68, 946.024414, -0.707098544, 1.16034363e-19, -0.707116008, 1.61194651e-19, 1, 2.90485394e-21, 0.707116008, -1.11929195e-19, -0.707098544), Vector3.new(25.3999023, 5, 138.5))
  5259. createWall(CFrame.new(-150.676498, 68.5, 943.903076, -0.707098544, 1.16034363e-19, -0.707116008, 1.61194651e-19, 1, 2.90485394e-21, 0.707116008, -1.11929195e-19, -0.707098544), Vector3.new(25.3999023, 5, 138.5))
  5260. createWall(CFrame.new(-144.199692, 66.5, 1001.75006, -1.00000405, 1.1819003e-20, 2.98023224e-07, -1.1819003e-20, 1, 5.46135296e-22, 2.98023224e-07, -5.46135296e-22, -0.999997675), Vector3.new(25.3999023, 5, 138.5))
  5261. createWall(CFrame.new(-141.199677, 67, 1001.75006, -1.00000405, 1.1819003e-20, 2.98023224e-07, -1.1819003e-20, 1, 5.46135296e-22, 2.98023224e-07, -5.46135296e-22, -0.999997675), Vector3.new(25.3999023, 5, 138.5))
  5262. createWall(CFrame.new(-140.199661, 67.5, 1001.75006, -1.00000405, 1.1819003e-20, 2.98023224e-07, -1.1819003e-20, 1, 5.46135296e-22, 2.98023224e-07, -5.46135296e-22, -0.999997675), Vector3.new(25.3999023, 5, 138.5))
  5263. createWall(CFrame.new(-139.199661, 68, 1001.75006, -1.00000405, 1.1819003e-20, 2.98023224e-07, -1.1819003e-20, 1, 5.46135296e-22, 2.98023224e-07, -5.46135296e-22, -0.999997675), Vector3.new(25.3999023, 5, 138.5))
  5264. createWall(CFrame.new(-116.44957, 68.5, 1001.75006, -1.00000405, 1.1819003e-20, 2.98023224e-07, -1.1819003e-20, 1, 5.46135296e-22, 2.98023224e-07, -5.46135296e-22, -0.999997675), Vector3.new(67.8999023, 5, 138.5))
  5265. createWall(CFrame.new(-112.699554, 68, 1001.75006, -1.00000405, 1.1819003e-20, 2.98023224e-07, -1.1819003e-20, 1, 5.46135296e-22, 2.98023224e-07, -5.46135296e-22, -0.999997675), Vector3.new(75.3999023, 4, 138.5))
  5266. createWall(CFrame.new(-107.699532, 67.5, 1001.75006, -1.00000405, 1.1819003e-20, 2.98023224e-07, -1.1819003e-20, 1, 5.46135296e-22, 2.98023224e-07, -5.46135296e-22, -0.999997675), Vector3.new(85.3999023, 3, 138.5))
  5267. createWall(CFrame.new(-103.949516, 67, 1001.75006, -1.00000405, 1.1819003e-20, 2.98023224e-07, -1.1819003e-20, 1, 5.46135296e-22, 2.98023224e-07, -5.46135296e-22, -0.999997675), Vector3.new(92.8999023, 2, 138.5))
  5268. createWall(CFrame.new(-100.199501, 66.75, 1001.75006, -1.00000405, 1.1819003e-20, 2.98023224e-07, -1.1819003e-20, 1, 5.46135296e-22, 2.98023224e-07, -5.46135296e-22, -0.999997675), Vector3.new(100.399902, 1.5, 138.5))
  5269. createWall(CFrame.new(-173.570618, 66.5, 1048.5271, -0.62932831, 3.54571487e-20, 0.777146101, -4.02626932e-20, 1, -7.34422647e-21, -0.777149975, -1.63841185e-21, -0.629315674), Vector3.new(25.3999023, 5, 138.5))
  5270. createWall(CFrame.new(-172.626633, 67, 1049.69287, -0.62932831, 3.54571487e-20, 0.777146101, -4.02626932e-20, 1, -7.34422647e-21, -0.777149975, -1.63841185e-21, -0.629315674), Vector3.new(25.3999023, 5, 138.5))
  5271. createWall(CFrame.new(-171.367981, 67.5, 1051.24719, -0.62932831, 3.54571487e-20, 0.777146101, -4.02626932e-20, 1, -7.34422647e-21, -0.777149975, -1.63841185e-21, -0.629315674), Vector3.new(25.3999023, 5, 138.5))
  5272. createWall(CFrame.new(-168.536011, 68, 1054.74438, -0.62932831, 3.54571487e-20, 0.777146101, -4.02626932e-20, 1, -7.34422647e-21, -0.777149975, -1.63841185e-21, -0.629315674), Vector3.new(25.3999023, 5, 138.5))
  5273. createWall(CFrame.new(-166.962692, 68.5, 1056.68726, -0.62932831, 3.54571487e-20, 0.777146101, -4.02626932e-20, 1, -7.34422647e-21, -0.777149975, -1.63841185e-21, -0.629315674), Vector3.new(25.3999023, 5, 138.5))
  5274. createWall(CFrame.new(-166.018707, 69, 1057.85303, -0.62932831, 3.54571487e-20, 0.777146101, -4.02626932e-20, 1, -7.34422647e-21, -0.777149975, -1.63841185e-21, -0.629315674), Vector3.new(25.3999023, 5, 138.5))
  5275. createWall(CFrame.new(-238.239594, 66.5, 1066.40637, 0.173636138, 1.16034402e-19, 0.984809875, -1.30376718e-19, 1, -9.48368712e-20, -0.984809875, -1.11929169e-19, 0.173636138), Vector3.new(25.3999023, 5, 138.5))
  5276. createWall(CFrame.new(-238.673691, 67, 1068.86841, 0.173636138, 1.16034402e-19, 0.984809875, -1.30376718e-19, 1, -9.48368712e-20, -0.984809875, -1.11929169e-19, 0.173636138), Vector3.new(25.3999023, 5, 138.5))
  5277. createWall(CFrame.new(-239.020966, 67.5, 1070.83801, 0.173636138, 1.16034402e-19, 0.984809875, -1.30376718e-19, 1, -9.48368712e-20, -0.984809875, -1.11929169e-19, 0.173636138), Vector3.new(25.3999023, 5, 138.5))
  5278. createWall(CFrame.new(-239.54187, 68, 1073.79248, 0.173636138, 1.16034402e-19, 0.984809875, -1.30376718e-19, 1, -9.48368712e-20, -0.984809875, -1.11929169e-19, 0.173636138), Vector3.new(25.3999023, 5, 138.5))
  5279. createWall(CFrame.new(-240.062775, 68.5, 1076.74695, 0.173636138, 1.16034402e-19, 0.984809875, -1.30376718e-19, 1, -9.48368712e-20, -0.984809875, -1.11929169e-19, 0.173636138), Vector3.new(25.3999023, 5, 138.5))
  5280. createWall(CFrame.new(-286.343658, 66.5, 1017.0611, 0.906302631, 1.16034402e-19, 0.422629356, -1.52466835e-19, 1, 5.24021665e-20, -0.422629356, -1.11929169e-19, 0.906302631), Vector3.new(25.3999023, 5, 138.5))
  5281. createWall(CFrame.new(-289.515717, 67, 1018.54028, 0.906302631, 1.16034402e-19, 0.422629356, -1.52466835e-19, 1, 5.24021665e-20, -0.422629356, -1.11929169e-19, 0.906302631), Vector3.new(25.3999023, 5, 138.5))
  5282. createWall(CFrame.new(-291.781464, 67.5, 1019.59686, 0.906302631, 1.16034402e-19, 0.422629356, -1.52466835e-19, 1, 5.24021665e-20, -0.422629356, -1.11929169e-19, 0.906302631), Vector3.new(25.3999023, 5, 138.5))
  5283. createWall(CFrame.new(-294.500366, 68, 1020.86475, 0.906302631, 1.16034402e-19, 0.422629356, -1.52466835e-19, 1, 5.24021665e-20, -0.422629356, -1.11929169e-19, 0.906302631), Vector3.new(25.3999023, 5, 138.5))
  5284. createWall(CFrame.new(-298.12558, 68.5, 1022.55524, 0.906302631, 1.16034402e-19, 0.422629356, -1.52466835e-19, 1, 5.24021665e-20, -0.422629356, -1.11929169e-19, 0.906302631), Vector3.new(25.3999023, 5, 138.5))
  5285. createWall(CFrame.new(-262.179199, 66.5, 945.538391, 0.77715373, 1.16034389e-19, -0.629310906, -1.97383098e-20, 1, 1.60007905e-19, 0.629310906, -1.11929182e-19, 0.77715373), Vector3.new(25.3999023, 5, 138.5))
  5286. createWall(CFrame.new(-263.34494, 67, 944.594421, 0.77715373, 1.16034389e-19, -0.629310906, -1.97383098e-20, 1, 1.60007905e-19, 0.629310906, -1.11929182e-19, 0.77715373), Vector3.new(25.3999023, 5, 138.5))
  5287. createWall(CFrame.new(-264.899261, 67.5, 943.335815, 0.77715373, 1.16034389e-19, -0.629310906, -1.97383098e-20, 1, 1.60007905e-19, 0.629310906, -1.11929182e-19, 0.77715373), Vector3.new(25.3999023, 5, 138.5))
  5288. createWall(CFrame.new(-266.065002, 68, 942.391846, 0.77715373, 1.16034389e-19, -0.629310906, -1.97383098e-20, 1, 1.60007905e-19, 0.629310906, -1.11929182e-19, 0.77715373), Vector3.new(25.3999023, 5, 138.5))
  5289. createWall(CFrame.new(-266.842163, 68.5, 941.762512, 0.77715373, 1.16034389e-19, -0.629310906, -1.97383098e-20, 1, 1.60007905e-19, 0.629310906, -1.11929182e-19, 0.77715373), Vector3.new(25.3999023, 5, 138.5))
  5290. createWall(CFrame.new(-210.137512, 66.5, 930.303406, -0.190796942, 1.16034389e-19, -0.981629729, 1.32012016e-19, 1, 9.25470866e-20, 0.981629729, -1.11929182e-19, -0.190796942), Vector3.new(25.3999023, 5, 138.5))
  5291. createWall(CFrame.new(-209.660522, 67, 927.849304, -0.190796942, 1.16034389e-19, -0.981629729, 1.32012016e-19, 1, 9.25470866e-20, 0.981629729, -1.11929182e-19, -0.190796942), Vector3.new(25.3999023, 5, 138.5))
  5292. createWall(CFrame.new(-208.992737, 67.5, 924.413635, -0.190796942, 1.16034389e-19, -0.981629729, 1.32012016e-19, 1, 9.25470866e-20, 0.981629729, -1.11929182e-19, -0.190796942), Vector3.new(25.3999023, 5, 138.5))
  5293. createWall(CFrame.new(-208.706543, 68, 922.941162, -0.190796942, 1.16034389e-19, -0.981629729, 1.32012016e-19, 1, 9.25470866e-20, 0.981629729, -1.11929182e-19, -0.190796942), Vector3.new(25.3999023, 5, 138.5))
  5294. createWall(CFrame.new(-208.420349, 68.5, 921.468689, -0.190796942, 1.16034389e-19, -0.981629729, 1.32012016e-19, 1, 9.25470866e-20, 0.981629729, -1.11929182e-19, -0.190796942), Vector3.new(25.3999023, 5, 138.5))
  5295. createWall(CFrame.new(42.9820786, 0.3806144, 36.3547974, -0.000348969304, 0, 0.99999994, 0, 1, 0, -0.99999994, 0, -0.000348969304), Vector3.new(49.7200928, 29.8699951, 3.82001257))
  5296. createWall(CFrame.new(21.461998, -1.51294553, 36.6358871, -0.000348969304, 0, 0.99999994, 0, 1, 0, -0.99999994, 0, -0.000348969304), Vector3.new(48.7200928, 36.8699951, 3.82001257))
  5297. createWall(CFrame.new(28.1880493, 67.1915741, 230.697144, -1, -8.74227766e-08, 0, -8.74227766e-08, 1, -8.74227766e-08, 7.64274186e-15, -8.74227766e-08, -1), Vector3.new(160.850006, 2.5, 61))
  5298. createWall(CFrame.new(29.4380493, 67.6915741, 234.197144, -1, -8.74227766e-08, 0, -8.74227766e-08, 1, -8.74227766e-08, 7.64274186e-15, -8.74227766e-08, -1), Vector3.new(158.350006, 3.5, 61))
  5299. createWall(CFrame.new(28.6880493, 67.4415741, 230.697144, -1, -8.74227766e-08, 0, -8.74227766e-08, 1, -8.74227766e-08, 7.64274186e-15, -8.74227766e-08, -1), Vector3.new(159.850006, 3, 62))
  5300. createWall(CFrame.new(27.4380493, 66.9415741, 234.947144, -1, -8.74227766e-08, 0, -8.74227766e-08, 1, -8.74227766e-08, 7.64274186e-15, -8.74227766e-08, -1), Vector3.new(162.350006, 2, 48.5))
  5301. createWall(CFrame.new(56.7784882, 64.9391098, 983.48761, -0.990270078, 5.86774583e-21, 0.139173076, -5.88725364e-21, 1, 5.91148532e-22, -0.139173225, 8.70114437e-22, -0.990266919), Vector3.new(261.149902, 3.5, 145.25))
  5302. wait(.1)
  5303. if _G.destroy_map then
  5304. for i,v in pairs(workspace:GetChildren()) do
  5305. if v.ClassName == "Model" or v.ClassName == "Part" or v.ClassName == "UnionOperation" or v.ClassName == "WedgePart" then
  5306. if v ~= game.Players.LocalPlayer.Character and v.Name ~= regionPartName then
  5307. v:Destroy()
  5308. end
  5309. end
  5310. end
  5311.  
  5312. game:GetService("Workspace").fence:Destroy()
  5313. game:GetService("Workspace").borders:Destroy()
  5314. end
  5315. workspace:WaitForChild("eliteSwordsman")
  5316. local s = game:GetService("Workspace").eliteSwordsman
  5317. s.ChildAdded:Connect(function(instance) -- all future folders, if mob spawned, give hitbox
  5318. if instance.ClassName == "Model" and instance.Name == "Ultimate Swordsman" then
  5319. instance:WaitForChild("HumanoidRootPart")
  5320. --cs:AddTag(instance, "Enemy")
  5321. addHitBox(instance, 30, "square")
  5322. end
  5323. end)
  5324.  
  5325. while not game:GetService("Workspace").dungeon.room4.enemyFolder:FindFirstChild("Sanada Yukimura") do
  5326. wait(1)
  5327. end
  5328. while not game:GetService("Workspace").dungeon.room4.enemyFolder:FindFirstChild("Sanada Yukimura"):FindFirstChild("HumanoidRootPart") do
  5329. wait(1)
  5330. end
  5331. -- cant path to second boss, paths to second boss area until hes in position
  5332. forceObjectiveExists = true
  5333. thePart.CFrame = CFrame.new(88.5511551, 72.7995224, 276.368042)
  5334. local _,_,_,root = getPlayer()
  5335. while root.Position.Y < 69.999526977539 do
  5336. wait()
  5337. end
  5338. forceObjectiveExists = false
  5339.  
  5340. end
  5341. function underworldFix()
  5342. createWall(CFrame.new(487, 65.1197205, 416.394165, 1, 0, 0, 0, 0.89100647, 0.4539904, 0, -0.4539904, 0.89100647), Vector3.new(68, 1, 83.5))
  5343. createWall(CFrame.new(487, 61.8143387, 275.542908, 1, 0, 0, 0, 0.89100647, 0.4539904, 0, -0.4539904, 0.89100647), Vector3.new(68, 1, 17.5))
  5344. --[[
  5345. while not game:GetService("Workspace").dungeon.room8.enemyFolder:FindFirstChild("Kolvumar") do
  5346. wait(1)
  5347. end
  5348. while not game:GetService("Workspace").dungeon.room8.enemyFolder:FindFirstChild("Kolvumar"):FindFirstChild("HumanoidRootPart") do
  5349. wait(1)
  5350. end]]
  5351. end
  5352.  
  5353. function pirateFix()
  5354. createWall(CFrame.new(-68.2813721, 189.801392, 430.691193, 0.997564077, 0, -0.0697564706, 0, 1, 0, 0.0697564706, 0, 0.997564077), Vector3.new(115.020088, 173.349854, 90.7301254))
  5355. createWall(CFrame.new(-248.68956, 189.686432, 446.980225, 1, 0, 0, 0, 1, 0, 0, 0, 1), Vector3.new(145.240143, 173.119949, 132.979874))
  5356. createWall(CFrame.new(-156.12616, 190.301392, 468.405304, 0.997564077, 0, -0.0697564706, 0, 1, 0, 0.0697564706, 0, 0.997564077), Vector3.new(59.0200806, 174.349854, 3.23012543))
  5357. createWall(CFrame.new(-0.124966383, 263.126404, 237.607864, 0.948323667, 0, -0.317304641, 0, 1, 0, 0.317304641, 0, 0.948323667), Vector3.new(17.7299881, 319.999939, 105.929977))
  5358. createWall(CFrame.new(-13.9006824, 263.126404, 334.261169, 0.998134792, 0, 0.0610485412, 0, 1, 0, -0.0610485412, 0, 0.998134792), Vector3.new(16.7299881, 319.999939, 102.700035))
  5359. createWall(CFrame.new(12.5065136, 263.126404, 193.714981, 0.997564077, 0, 0.0697564706, 0, 1, 0, -0.0697564706, 0, 0.997564077), Vector3.new(10.2299871, 319.999939, 105.929977))
  5360. createWall(CFrame.new(-23.2540989, 263.126404, 130.036514, -0.0958457589, -8.37910274e-09, -0.995396197, -4.02479827e-10, 1, -8.37910274e-09, 0.995396197, -4.02479827e-10, -0.0958457589), Vector3.new(10.2299871, 319.999939, 108.449997))
  5361. createWall(CFrame.new(-182.51709, 263.126404, 105.839249, 0.113203242, 0, -0.993571877, 0, 1, 0, 0.993571877, 0, 0.113203242), Vector3.new(93.6899948, 319.999939, 94.2900009))
  5362. createWall(CFrame.new(-210.425171, 225.446411, 136.269073, 0.688354611, 0, -0.725374341, 0, 1, 0, 0.725374341, 0, 0.688354611), Vector3.new(37.7000008, 244.639954, 70.2799683))
  5363. createWall(CFrame.new(-240.888153, 225.446411, 204.484818, -1, -8.74227766e-08, 0, -8.74227766e-08, 1, -8.74227766e-08, 7.64274186e-15, -8.74227766e-08, -1), Vector3.new(37.7000008, 244.639954, 125.269974))
  5364. createWall(CFrame.new(-242.00853, 223.686432, 287.601959, -0.99984771, -8.7409461e-08, 0.0174524058, -8.89485108e-08, 1, -8.7409461e-08, -0.0174524058, -8.89485108e-08, -0.99984771), Vector3.new(84.8199768, 241.119949, 65.279953))
  5365. createWall(CFrame.new(-266.261414, 223.686432, 329.667603, -0.737277329, -6.44548308e-08, 0.675590158, -1.46484751e-07, 1, -6.44548308e-08, -0.675590158, -1.46484751e-07, -0.737277329), Vector3.new(84.2599869, 241.119949, 103.149963))
  5366. createWall(CFrame.new(-171.303024, 263.126404, 7.99746418, 0.999961913, 0, -0.00872653536, 0, 1, 0, 0.00872653536, 0, 0.999961913), Vector3.new(18.7299881, 319.999939, 135.039978))
  5367. createWall(CFrame.new(-186.983673, 308.136475, -85.8008804, 0.878817141, 0, 0.477158755, 0, 1, 0, -0.477158755, 0, 0.878817141), Vector3.new(15.7299871, 229.979904, 62.4799805))
  5368. createWall(CFrame.new(-228.494202, 263.126404, -183.719955, 0.999961913, 0, -0.00872653536, 0, 1, 0, 0.00872653536, 0, 0.999961913), Vector3.new(10.2299871, 319.999939, 135.039978))
  5369. createWall(CFrame.new(-216.488495, 308.136475, -116.623718, 0.507538378, 0, 0.861629128, 0, 1, 0, -0.861629128, 0, 0.507538378), Vector3.new(14.2299871, 229.979904, 31.0399818))
  5370. createWall(CFrame.new(-180.638794, 263.126404, -276.830627, 0.995396197, 0, 0.0958457515, 0, 1, 0, -0.0958457515, 0, 0.995396197), Vector3.new(113.549988, 319.999939, 97.3899994))
  5371. createWall(CFrame.new(-54.6073608, 263.126404, 74.6437073, 0.891006529, 0, -0.453990489, 0, 1, 0, 0.453990489, 0, 0.891006529), Vector3.new(14.7299871, 319.999939, 115.449997))
  5372. createWall(CFrame.new(-37.863369, 263.126404, -4.13345909, 0.999961913, 0, -0.00872653536, 0, 1, 0, 0.00872653536, 0, 0.999961913), Vector3.new(10.2299871, 319.999939, 108.449997))
  5373. createWall(CFrame.new(-31.8706627, 263.126404, -72.4572144, 0.945518553, 0, -0.32556814, 0, 1, 0, 0.32556814, 0, 0.945518553), Vector3.new(10.2299871, 319.999939, 35.8099937))
  5374. createWall(CFrame.new(-7.3540988, 263.126404, -107.615921, 0.713250458, 0, -0.700909257, 0, 1, 0, 0.700909257, 0, 0.713250458), Vector3.new(10.2299871, 319.999939, 58.8699951))
  5375. createWall(CFrame.new(5.32070923, 263.126404, -181.679382, 0.999961913, 0, -0.00872653536, 0, 1, 0, 0.00872653536, 0, 0.999961913), Vector3.new(10.2299871, 319.999939, 135.039978))
  5376. createWall(CFrame.new(-23.2827835, 263.126404, -230.279099, 0.32556814, 0, 0.945518553, 0, 1, 0, -0.945518553, 0, 0.32556814), Vector3.new(29.2299881, 319.999939, 142.539978))
  5377. createWall(CFrame.new(-115.024994, 241.249969, -414.445007, 1, 0, 0, 0, 1, 0, 0, 0, 1), Vector3.new(190.049988, 2.49993896, 169.889999))
  5378. createWall(CFrame.new(-209.274994, 249.999969, -366.445007, 1, 0, 0, 0, 1, 0, 0, 0, 1), Vector3.new(3.54998779, 19.999939, 20.8899994))
  5379. createWall(CFrame.new(-109.024994, 252.035263, -308.551788, 1, 0, 0, 0, 0.906307757, 0.42261827, 0, -0.42261827, 0.906307757), Vector3.new(48.0499878, 1.99993896, 61.8899994))
  5380. createWall(CFrame.new(-109.024994, 268.374207, -263.68924, 1, 0, 0, 0, 0.974370062, 0.224951088, 0, -0.224951088, 0.974370062), Vector3.new(48.0499878, 2.49993896, 36.8899994))
  5381. createWall(CFrame.new(-109.024994, 270.498352, -240.767548, 1, 0, 0, 0, 0.9510566, -0.309016943, 0, 0.309016943, 0.9510566), Vector3.new(48.0499878, 2.49993896, 11.8899994))
  5382. createWall(CFrame.new(-114.774994, 255.249969, -85.0700073, 1, 0, 0, 0, 1, 0, 0, 0, 1), Vector3.new(232.549988, 30.499939, 309.140015))
  5383. createWall(CFrame.new(-53.2749939, 255.999969, -24.6950073, 1, 0, 0, 0, 1, 0, 0, 0, 1), Vector3.new(109.549988, 31.999939, 59.3900146))
  5384. createWall(CFrame.new(-28.5249939, 273.499969, 15.3049927, 1, 0, 0, 0, 1, 0, 0, 0, 1), Vector3.new(60.0499878, 66.999939, 139.390015))
  5385. createWall(CFrame.new(-80.7749939, 267.999969, 54.8049927, 1, 0, 0, 0, 1, 0, 0, 0, 1), Vector3.new(164.549988, 6.99993896, 23.3900146))
  5386. createWall(CFrame.new(-154.774994, 279.999969, 52.0549927, 1, 0, 0, 0, 1, 0, 0, 0, 1), Vector3.new(16.5499878, 30.999939, 28.8900146))
  5387. createWall(CFrame.new(-137.024994, 267.999969, 14.5549927, 1, 0, 0, 0, 1, 0, 0, 0, 1), Vector3.new(39.0499878, 6.99993896, 29.8900146))
  5388. createWall(CFrame.new(-167.024994, 267.749969, -113.406532, 0.866025388, 0, 0.5, 0, 1, 0, -0.5, 0, 0.866025388), Vector3.new(39.0499878, 6.49993896, 103.890015))
  5389. createWall(CFrame.new(-170.580597, 271.249969, -111.065025, 0.866025388, 0, 0.5, 0, 1, 0, -0.5, 0, 0.866025388), Vector3.new(24.5499878, 1.49993896, 92.3900146))
  5390. createWall(CFrame.new(-176.571625, 271.749969, -119.441788, 0.866025388, 0, 0.5, 0, 1, 0, -0.5, 0, 0.866025388), Vector3.new(15.5499878, 2.49993896, 63.8900146))
  5391. createWall(CFrame.new(-155.324982, 270.499908, -185.195007, 1, 0, 0, 0, 1, 0, 0, 0, 0.99999994), Vector3.new(35.5499878, 1.99993896, 36.3900146))
  5392. createWall(CFrame.new(-158.574982, 270.999908, -193.195007, 1, 0, 0, 0, 1, 0, 0, 0, 0.99999994), Vector3.new(21.0499878, 2.99993896, 16.3900146))
  5393. createWall(CFrame.new(-160.074982, 271.249908, -193.695007, 1, 0, 0, 0, 1, 0, 0, 0, 0.99999994), Vector3.new(10.0499878, 3.49993896, 7.39001465))
  5394. createWall(CFrame.new(-47.5749817, 270.499908, -162.195007, 1, 0, 0, 0, 1, 0, 0, 0, 0.99999994), Vector3.new(70.0499878, 1.99993896, 118.390015))
  5395. createWall(CFrame.new(-49.8249817, 270.999908, -181.695007, 1, 0, 0, 0, 1, 0, 0, 0, 0.99999994), Vector3.new(52.5499878, 2.99993896, 55.3900146))
  5396. createWall(CFrame.new(-141.574982, 287.499908, -233.195007, 1, 0, 0, 0, 1, 0, 0, 0, 0.99999994), Vector3.new(55.0499878, 35.999939, 15.3900146))
  5397. createWall(CFrame.new(-7.88667679, 275.376404, -116.717194, 0.999961913, 0, -0.0087265335, 0, 1, 0, 0.00872653536, 0, 0.999961793), Vector3.new(15.0499878, 22.499939, 30.8900146))
  5398. createWall(CFrame.new(-216.351822, 277.376404, -126.646851, 0.999961913, 0, -0.00872653257, 0, 1, 0, 0.0087265363, 0, 0.999961674), Vector3.new(15.0499878, 16.499939, 19.8900146))
  5399. createWall(CFrame.new(-220.909836, 275.376404, -219.818344, 0.995396256, 0, 0.0958457068, 0, 1, 0, -0.0958457515, 0, 0.99539578), Vector3.new(16.5499878, 13.499939, 8.39001465))
  5400. createWall(CFrame.new(-103.524994, 251.527222, 104.294586, 1, 0, 0, 0, 0.906307757, -0.42261827, 0, 0.42261827, 0.906307757), Vector3.new(99.0499878, 5.99993896, 78.8900146))
  5401. createWall(CFrame.new(-108.024994, 236.249969, 298.054993, 1, 0, 0, 0, 0.99999994, 0, 0, 0, 0.99999994), Vector3.new(245.049988, 4.49993896, 338.890015))
  5402. createWall(CFrame.new(-115.274994, 236.749969, 332.554993, 1, 0, 0, 0, 0.99999994, 0, 0, 0, 0.99999994), Vector3.new(39.5499878, 5.49993896, 40.8900146))
  5403. createWall(CFrame.new(-114.524994, 237.249969, 331.554993, 1, 0, 0, 0, 0.99999994, 0, 0, 0, 0.99999994), Vector3.new(24.0499878, 6.49993896, 21.8900146))
  5404. createWall(CFrame.new(-201.774994, 236.749969, 305.804993, 1, 0, 0, 0, 0.99999994, 0, 0, 0, 0.99999994), Vector3.new(59.5499878, 5.49993896, 149.390015))
  5405. createWall(CFrame.new(-206.274994, 259.249969, 305.054993, 1, 0, 0, 0, 0.99999994, 0, 0, 0, 0.99999994), Vector3.new(50.5499878, 50.499939, 148.890015))
  5406. createWall(CFrame.new(-195.774994, 236.749969, 253.054993, 1, 0, 0, 0, 0.99999994, 0, 0, 0, 0.99999994), Vector3.new(71.5499878, 5.49993896, 36.8900146))
  5407. createWall(CFrame.new(-201.024994, 237.249969, 251.054993, 1, 0, 0, 0, 0.99999994, 0, 0, 0, 0.99999994), Vector3.new(61.0499878, 6.49993896, 24.8900146))
  5408. createWall(CFrame.new(-60.7749939, 236.749969, 330.554993, 1, 0, 0, 0, 0.99999994, 0, 0, 0, 0.99999994), Vector3.new(47.5499878, 5.49993896, 44.8900146))
  5409. createWall(CFrame.new(-61.5249939, 237.249969, 331.554993, 1, 0, 0, 0, 0.99999994, 0, 0, 0, 0.99999994), Vector3.new(20.0499878, 6.49993896, 17.8900146))
  5410. createWall(CFrame.new(-29.0249939, 236.749969, 293.554993, 1, 0, 0, 0, 0.99999994, 0, 0, 0, 0.99999994), Vector3.new(30.0499878, 5.49993896, 32.8900146))
  5411. createWall(CFrame.new(-26.0249939, 237.249969, 293.804993, 1, 0, 0, 0, 0.99999994, 0, 0, 0, 0.99999994), Vector3.new(11.0499878, 6.49993896, 23.3900146))
  5412. createWall(CFrame.new(-16.2749939, 236.749969, 210.804993, 1, 0, 0, 0, 0.99999994, 0, 0, 0, 0.99999994), Vector3.new(35.5499878, 5.49993896, 34.3900146))
  5413. createWall(CFrame.new(-69.3916397, 236.499969, 184.50386, 0.96126169, 0, 0.275637299, 0, 0.999999821, 0, -0.275637329, 0, 0.961261511), Vector3.new(84.0499878, 4.99993896, 38.8900146))
  5414. createWall(CFrame.new(-66.1986313, 236.749969, 183.848358, 0.96126169, 0, 0.275637299, 0, 0.999999821, 0, -0.275637329, 0, 0.961261511), Vector3.new(57.5499878, 5.49993896, 30.3900146))
  5415. createWall(CFrame.new(-62.4224892, 236.999969, 182.505493, 0.96126169, 0, 0.275637299, 0, 0.999999821, 0, -0.275637329, 0, 0.961261511), Vector3.new(49.5499878, 5.99993896, 24.8900146))
  5416. createWall(CFrame.new(-63.9332924, 237.249969, 182.678635, 0.96126169, 0, 0.275637299, 0, 0.999999821, 0, -0.275637329, 0, 0.961261511), Vector3.new(29.5499878, 6.49993896, 19.3900146))
  5417. createWall(CFrame.new(-62.1821709, 237.499969, 182.436569, 0.96126169, 0, 0.275637299, 0, 0.999999821, 0, -0.275637329, 0, 0.961261511), Vector3.new(19.0499878, 6.99993896, 13.8900146))
  5418. createWall(CFrame.new(-103.524994, 238.727341, 132.97348, 1, 0, 0, 0, 0.965925813, -0.258819044, 0, 0.258819044, 0.965925813), Vector3.new(99.0499878, 9.49993896, 32.3900146))
  5419. createWall(CFrame.new(-130.324982, 238.999908, 150.914978, 1, 0, 0, 0, 0.999999881, -1.49011612e-08, 0, 0, 0.999999821), Vector3.new(45.5499878, 0.999940872, 19.3900146))
  5420. createWall(CFrame.new(-131.824982, 239.499908, 147.914978, 1, 0, 0, 0, 0.999999881, -1.49011612e-08, 0, 0, 0.999999821), Vector3.new(34.5499878, 1.99994087, 13.3900146))
  5421. createWall(CFrame.new(-134.824982, 239.749908, 145.914978, 1, 0, 0, 0, 0.999999881, -1.49011612e-08, 0, 0, 0.999999821), Vector3.new(22.5499878, 2.49994087, 9.39001465))
  5422. createWall(CFrame.new(-2.22501421, 269.749908, 145.414978, 0.999999881, 0, 2.98023224e-08, 0, 0.999999583, 0, 2.98023224e-08, 0, 0.999999583), Vector3.new(18.5499878, 62.499939, 21.3900146))
  5423. createWall(CFrame.new(-216.172623, 238.749939, 167.096695, 0.788009822, 0, -0.615660012, 0, 0.999997318, 0, 0.615660667, 0, 0.788008869), Vector3.new(18.5499878, 0.499946952, 55.3900146))
  5424. createWall(CFrame.new(-217.157623, 238.999939, 166.327118, 0.788009822, 0, -0.615660012, 0, 0.999997318, 0, 0.615660667, 0, 0.788008869), Vector3.new(16.0499878, 0.999946952, 55.3900146))
  5425. createWall(CFrame.new(-217.748642, 239.249939, 165.865372, 0.788009822, 0, -0.615660012, 0, 0.999997318, 0, 0.615660667, 0, 0.788008869), Vector3.new(14.5499878, 1.49994695, 55.3900146))
  5426. createWall(CFrame.new(-205.281525, 241.749939, 149.908188, 0.788009822, 0, -0.615660012, 0, 0.999997318, 0, 0.615660667, 0, 0.788008869), Vector3.new(14.5499878, 6.49994707, 14.8900146))
  5427. createWall(CFrame.new(-176.024994, 236.499969, 425.554993, 1, 0, 0, 0, 0.99999994, 0, 0, 0, 0.99999994), Vector3.new(26.0499878, 4.99993896, 46.8900146))
  5428. createWall(CFrame.new(-177.524994, 236.749969, 425.054993, 1, 0, 0, 0, 0.99999994, 0, 0, 0, 0.99999994), Vector3.new(23.0499878, 5.49993896, 43.8900146))
  5429. createWall(CFrame.new(-178.774994, 237.249969, 425.804993, 1, 0, 0, 0, 0.99999994, 0, 0, 0, 0.99999994), Vector3.new(20.5499878, 6.49993896, 38.3900146))
  5430. createWall(CFrame.new(-180.774994, 237.499969, 429.054993, 1, 0, 0, 0, 0.99999994, 0, 0, 0, 0.99999994), Vector3.new(16.5499878, 6.99993896, 24.8900146))
  5431. createWall(CFrame.new(-181.774994, 237.999969, 430.304993, 1, 0, 0, 0, 0.99999994, 0, 0, 0, 0.99999994), Vector3.new(14.5499878, 7.99993896, 18.3900146))
  5432. createWall(CFrame.new(-124.774994, 236.499969, 415.804993, 1, 0, 0, 0, 0.99999994, 0, 0, 0, 0.99999994), Vector3.new(15.5499878, 4.99993896, 38.3900146))
  5433. createWall(CFrame.new(-123.524994, 236.749969, 416.554993, 1, 0, 0, 0, 0.99999994, 0, 0, 0, 0.99999994), Vector3.new(13.0499878, 5.49993896, 25.8900146))
  5434. createWall(CFrame.new(-121.774994, 236.999969, 416.304993, 1, 0, 0, 0, 0.99999994, 0, 0, 0, 0.99999994), Vector3.new(9.54998779, 5.99993896, 19.3900146))
  5435. createWall(CFrame.new(-89.5749817, 280.749908, -237.695007, 1, 0, 0, 0, 1, 0, 0, 0, 0.99999994), Vector3.new(7.04998779, 22.499939, 6.39001465))
  5436. createWall(CFrame.new(-50.7568512, 263.126404, -284.197937, 1, 0, 0, 0, 1, 0, 0, 0, 1), Vector3.new(82.5499878, 319.999939, 92.3899994))
  5437. createWall(CFrame.new(-84.7568512, 263.126404, -250.447937, 1, 0, 0, 0, 1, 0, 0, 0, 1), Vector3.new(21.5499878, 319.999939, 24.8899994))
  5438. createWall(CFrame.new(-20.2568512, 263.126404, -418.197937, 1, 0, 0, 0, 1, 0, 0, 0, 1), Vector3.new(4.54998779, 319.999939, 181.389999))
  5439. createWall(CFrame.new(-212.506851, 263.126404, -418.197937, 1, 0, 0, 0, 1, 0, 0, 0, 1), Vector3.new(13.0499878, 319.999939, 181.389999))
  5440. createWall(CFrame.new(-168.256851, 263.126404, -328.947937, 1, 0, 0, 0, 1, 0, 0, 0, 1), Vector3.new(79.5499878, 319.999939, 2.88999939))
  5441. createWall(CFrame.new(-163.006851, 263.126404, -572.947937, 1, 0, 0, 0, 1, 0, 0, 0, 1), Vector3.new(90.0499878, 319.999939, 150.889999))
  5442. createWall(CFrame.new(-53.5068512, 263.126404, -534.947937, 1, 0, 0, 0, 1, 0, 0, 0, 1), Vector3.new(71.0499878, 319.999939, 74.8899994))
  5443. createWall(CFrame.new(-75.8494415, 263.126404, -590.692261, -0.258819044, 0, -0.965925753, 0, 1, 0, 0.965925753, 0, -0.258819044), Vector3.new(50.5499878, 319.999939, 10.3899994))
  5444. createWall(CFrame.new(-47.9917145, 263.126404, -617.715088, -0.898792207, 0, -0.43836987, 0, 1, 0, 0.43836987, 0, -0.898792207), Vector3.new(50.5499878, 319.999939, 10.3899994))
  5445. createWall(CFrame.new(-5.61179876, 263.126404, -643.846008, -0.798630357, 0, -0.601810753, 0, 1, 0, 0.601810753, 0, -0.798630357), Vector3.new(50.5499878, 319.999939, 10.3899994))
  5446. createWall(CFrame.new(21.596756, 263.126404, -678.58075, -0.390731424, 0, -0.920504749, 0, 1, 0, 0.920504749, 0, -0.390731424), Vector3.new(48.5499878, 319.999939, 12.3899994))
  5447. createWall(CFrame.new(32.232254, 263.126404, -711.717529, -0.224951372, 0, -0.974370062, 0, 1, 0, 0.974370062, 0, -0.224951372), Vector3.new(33.5499878, 319.999939, 17.8899994))
  5448. createWall(CFrame.new(-91.2977295, 250.376404, -663.801025, 0.882947803, 0, 0.469471604, 0, 1, 0, -0.469471604, 0, 0.882947803), Vector3.new(121.049988, 76.499939, 17.8899994))
  5449. createWall(CFrame.new(-35.862896, 250.376404, -706.077393, 0.374607325, 0, 0.927185595, 0, 1, 0, -0.927185595, 0, 0.374607325), Vector3.new(38.5499878, 76.499939, 17.8899994))
  5450. createWall(CFrame.new(-36.112896, 250.376404, -724.327393, 1, 0, 0, 0, 1, 0, 0, 0, 1), Vector3.new(24.0499878, 76.499939, 7.38999939))
  5451. createWall(CFrame.new(46.887104, 250.376404, -749.077393, 1, 0, 0, 0, 1, 0, 0, 0, 1), Vector3.new(5.04998779, 76.499939, 56.8899994))
  5452. createWall(CFrame.new(35.387104, 250.376404, -795.827393, 1, 0, 0, 0, 1, 0, 0, 0, 1), Vector3.new(28.0499878, 76.499939, 47.3899994))
  5453. createWall(CFrame.new(-37.862896, 250.376404, -787.827393, 1, 0, 0, 0, 1, 0, 0, 0, 1), Vector3.new(27.5499878, 76.499939, 38.3899994))
  5454. createWall(CFrame.new(-48.362896, 250.376404, -748.077393, 1, 0, 0, 0, 1, 0, 0, 0, 1), Vector3.new(6.54998779, 76.499939, 42.8899994))
  5455. createWall(CFrame.new(-38.4214478, 250.376404, -825.885254, 0.882947505, 0, 0.469471455, 0, 1, 0, -0.469471455, 0, 0.882947505), Vector3.new(6.04998779, 76.499939, 47.8899994))
  5456. createWall(CFrame.new(1.74190998, 250.376404, -838.746277, 0.882947505, 0, 0.469471455, 0, 1, 0, -0.469471455, 0, 0.882947505), Vector3.new(14.0499878, 76.499939, 120.889999))
  5457. createWall(CFrame.new(-78.6714478, 250.376404, -824.135254, 1, 0, 0, 0, 1, 0, 0, 0, 1), Vector3.new(58.5499878, 76.499939, 44.3899994))
  5458. createWall(CFrame.new(-180.171448, 250.376404, -824.135254, 1, 0, 0, 0, 1, 0, 0, 0, 1), Vector3.new(120.549988, 76.499939, 44.3899994))
  5459. createWall(CFrame.new(-187.421448, 250.376404, -892.635254, 1, 0, 0, 0, 1, 0, 0, 0, 1), Vector3.new(95.0499878, 76.499939, 13.3899994))
  5460. createWall(CFrame.new(-114.421448, 250.376404, -892.635254, 1, 0, 0, 0, 1, 0, 0, 0, 1), Vector3.new(25.0499878, 76.499939, 13.3899994))
  5461. createWall(CFrame.new(-58.4214478, 250.376404, -892.635254, 1, 0, 0, 0, 1, 0, 0, 0, 1), Vector3.new(55.0499878, 76.499939, 13.3899994))
  5462. createWall(CFrame.new(-32.5747032, 250.376404, -881.752502, 0.866025448, 0, -0.5, 0, 1, 0, 0.5, 0, 0.866025448), Vector3.new(48.5499878, 76.499939, 13.3899994))
  5463. createWall(CFrame.new(-123.171448, 250.376404, -901.135254, 1, 0, 0, 0, 1, 0, 0, 0, 1), Vector3.new(80.5499878, 76.499939, 0.38999939))
  5464. createWall(CFrame.new(-140.421448, 250.376404, -897.885254, 1, 0, 0, 0, 1, 0, 0, 0, 1), Vector3.new(46.0499878, 76.499939, 6.88999939))
  5465. createWall(CFrame.new(-116.171448, 250.376404, -828.635254, 1, 0, 0, 0, 1, 0, 0, 0, 1), Vector3.new(28.5499878, 76.499939, 10.3899994))
  5466. createWall(CFrame.new(-530.105103, 279.979858, -1092.07043, 0.999390841, 0, -0.0348994955, 0, 1, 0, 0.0348994955, 0, 0.999390841), Vector3.new(66.3700256, 165.859863, 74.1800003))
  5467. createWall(CFrame.new(-434.260559, 279.979858, -1090.26013, 0.999390841, 0, -0.0348994955, 0, 1, 0, 0.0348994955, 0, 0.999390841), Vector3.new(66.3700256, 165.859863, 75.3499756))
  5468. createWall(CFrame.new(-623.851563, 279.979858, -1429.71814, -0.719339788, -6.28866843e-08, 0.694658399, -1.48151742e-07, 1, -6.28866843e-08, -0.694658399, -1.48151742e-07, -0.719339788), Vector3.new(159.419998, 165.859863, 17.4799919))
  5469. createWall(CFrame.new(-587.972534, 279.979858, -1466.33179, -0.719339788, -6.28866843e-08, 0.694658399, -1.48151742e-07, 1, -6.28866843e-08, -0.694658399, -1.48151742e-07, -0.719339788), Vector3.new(160.169998, 165.859863, 44.1299934))
  5470. createWall(CFrame.new(-510.793091, 279.979858, -1412.05334, -0.91354543, -7.98646766e-08, 0.406736642, -1.22980822e-07, 1, -7.98646766e-08, -0.406736642, -1.22980822e-07, -0.91354543), Vector3.new(149.439972, 165.859863, 22.9799919))
  5471. createWall(CFrame.new(-471.971405, 279.979858, -1355.68689, -0.0174523834, -1.52573587e-09, 0.99984771, -1.74832238e-07, 1, -1.52573587e-09, -0.99984771, -1.74832238e-07, -0.0174523834), Vector3.new(145.919983, 165.859863, 19.7599926))
  5472. createWall(CFrame.new(-585.297424, 279.979858, -1324.81335, -0.182235524, -1.59315352e-08, 0.98325491, -1.7338165e-07, 1, -1.59315352e-08, -0.98325491, -1.7338165e-07, -0.182235524), Vector3.new(128.960007, 165.859863, 42.9799919))
  5473. createWall(CFrame.new(-588.963806, 279.979858, -1300.72192, 0.999390841, 0, -0.0348994955, 0, 1, 0, 0.0348994955, 0, 0.999390841), Vector3.new(142.960007, 165.859863, 17.4799919))
  5474. createWall(CFrame.new(-703.672302, 279.979858, -1446.30786, -0.669130564, -5.84972533e-08, -0.74314487, -2.24549908e-08, 1, -5.84972533e-08, 0.74314487, -2.24549908e-08, -0.669130564), Vector3.new(69.8000183, 165.859863, 17.4799919))
  5475. createWall(CFrame.new(-756.852478, 279.979858, -1402.3075, -0.870355666, -7.60889094e-08, -0.492423564, -4.4373742e-08, 1, -7.60889094e-08, 0.492423564, -4.4373742e-08, -0.870355666), Vector3.new(69.8000183, 165.859863, 17.4799919))
  5476. createWall(CFrame.new(-797.608215, 279.979858, -1387.88354, -0.996917307, -8.71532819e-08, -0.0784590989, -8.0563666e-08, 1, -8.71532819e-08, 0.0784590989, -8.0563666e-08, -0.996917307), Vector3.new(55.3900223, 165.859863, 17.4799919))
  5477. createWall(CFrame.new(-820.038269, 279.979858, -1385.85034, -0.662620068, -5.79280872e-08, 0.748955727, -1.52898565e-07, 1, -5.79280872e-08, -0.748955727, -1.52898565e-07, -0.662620068), Vector3.new(82.0700302, 165.859863, 17.4799919))
  5478. createWall(CFrame.new(-841.949463, 279.979858, -1427.98669, 0.078459084, 0, -0.996917307, 0, 1, 0, 0.996917307, 0, 0.078459084), Vector3.new(55.3900223, 165.859863, 17.4799919))
  5479. createWall(CFrame.new(-834.237122, 279.979858, -1469.92981, -0.42261824, -3.69464601e-08, -0.906307817, -8.19083112e-09, 1, -3.69464601e-08, 0.906307817, -8.19083112e-09, -0.42261824), Vector3.new(86.6100311, 165.859863, 17.4799919))
  5480. createWall(CFrame.new(-767.177551, 279.979858, -1564.18726, -0.656059027, -5.73545016e-08, -0.754709542, -2.14439737e-08, 1, -5.73545016e-08, 0.754709542, -2.14439737e-08, -0.656059027), Vector3.new(160.029999, 165.859863, 17.4799919))
  5481. createWall(CFrame.new(-720.77832, 279.979858, -1597.55005, -0.656059027, -5.73545016e-08, -0.754709542, -2.14439737e-08, 1, -5.73545016e-08, 0.754709542, -2.14439737e-08, -0.656059027), Vector3.new(57.8500061, 165.859863, 43.7400017))
  5482. createWall(CFrame.new(-650.672546, 279.979858, -1540.46497, -0.656059027, -5.73545016e-08, -0.754709542, -2.14439737e-08, 1, -5.73545016e-08, 0.754709542, -2.14439737e-08, -0.656059027), Vector3.new(57.8500061, 165.859863, 43.7400017))
  5483. createWall(CFrame.new(-686.894653, 279.979858, -1577.92639, -0.656059027, -5.73545016e-08, -0.754709542, -2.14439737e-08, 1, -5.73545016e-08, 0.754709542, -2.14439737e-08, -0.656059027), Vector3.new(57.8500061, 165.859863, 63.2200089))
  5484. createWall(CFrame.new(-773.282104, 285.979858, -1474.0929, -0.669130683, 0, -0.74314481, 0, 1, 0, 0.74314481, 0, -0.669130683), Vector3.new(214.029999, 2.85986328, 126.479996))
  5485. createWall(CFrame.new(-613.74707, 269.706024, -1446.57446, -0.694678783, 0.11874482, -0.709454238, -4.41642478e-05, 0.986274898, 0.165120974, 0.71931982, 0.114737399, -0.685142875), Vector3.new(22.5299988, 5.10986328, 165.479996))
  5486. createWall(CFrame.new(-527.871521, 279.979858, -1234.82935, 0.999390841, 0, -0.0348994955, 0, 1, 0, 0.0348994955, 0, 0.999390841), Vector3.new(60.8700256, 165.859863, 61.6799927))
  5487. createWall(CFrame.new(-558.849976, 279.979858, -1109.59131, 1, 0, 0, 0, 1, 0, 0, 0, 1), Vector3.new(1.87002563, 165.859863, 191.179993))
  5488. createWall(CFrame.new(-417.599976, 279.979858, -1110.34131, 1, 0, 0, 0, 1, 0, 0, 0, 1), Vector3.new(1.37002563, 165.859863, 189.679993))
  5489. createWall(CFrame.new(-431.140198, 279.979858, -1251.24927, 0.999390841, 0, -0.0348994955, 0, 1, 0, 0.0348994955, 0, 0.999390841), Vector3.new(71.3700256, 165.859863, 93.3499756))
  5490. createWall(CFrame.new(-494.599976, 243.729858, -1086.84131, 1, 0, 0, 0, 1, 0, 0, 0, 1), Vector3.new(161.370026, 29.3598633, 664.679993))
  5491. createWall(CFrame.new(-439.099976, 279.979858, -970.341309, 1, 0, 0, 0, 1, 0, 0, 0, 1), Vector3.new(50.3700256, 165.859863, 95.6799927))
  5492. createWall(CFrame.new(-536.349976, 279.979858, -973.341309, 1, 0, 0, 0, 1, 0, 0, 0, 1), Vector3.new(68.8700256, 165.859863, 89.6799927))
  5493. createWall(CFrame.new(-528.849976, 305.979858, -872.341309, 1, 0, 0, 0, 1, 0, 0, 0, 1), Vector3.new(83.8700256, 113.859863, 132.679993))
  5494. createWall(CFrame.new(-522.703003, 305.979858, -802.900574, 0.965925813, 0, 0.258819044, 0, 1, 0, -0.258819044, 0, 0.965925813), Vector3.new(83.8700256, 113.859863, 87.1799927))
  5495. createWall(CFrame.new(-510.382385, 305.979858, -783.183533, 0.848048031, 0, 0.529919267, 0, 1, 0, -0.529919267, 0, 0.848048031), Vector3.new(83.8700256, 113.859863, 133.679993))
  5496. createWall(CFrame.new(-498.169495, 305.979858, -768.628662, 0.766044259, 0, 0.642787516, 0, 1, 0, -0.642787516, 0, 0.766044259), Vector3.new(83.8700256, 113.859863, 171.679993))
  5497. createWall(CFrame.new(-483.661346, 305.979858, -758.842712, 0.559192538, 0, 0.82903707, 0, 1, 0, -0.82903707, 0, 0.559192538), Vector3.new(83.8700256, 113.859863, 206.679993))
  5498. createWall(CFrame.new(-364.621796, 305.979858, -708.448608, 0.0174524225, 0, 0.99984771, 0, 1, 0, -0.99984771, 0, 0.0174524225), Vector3.new(83.8700256, 113.859863, 116.679993))
  5499. createWall(CFrame.new(-340.879913, 305.979858, -765.881897, -0.453990519, 0, 0.891006529, 0, 1, 0, -0.891006529, 0, -0.453990519), Vector3.new(8.37002563, 113.859863, 168.179993))
  5500. createWall(CFrame.new(-329.829071, 295.979858, -781.740417, -0.766044497, 0, 0.642787576, 0, 1, 0, -0.642787576, 0, -0.766044497), Vector3.new(7.37002563, 133.859863, 194.179993))
  5501. createWall(CFrame.new(-474.099976, 244.229858, -797.341309, 1, 0, 0, 0, 1, 0, 0, 0, 1), Vector3.new(257.370026, 30.3598633, 85.6799927))
  5502. createWall(CFrame.new(-523.349976, 305.979858, -827.341309, 1, 0, 0, 0, 1, 0, 0, 0, 1), Vector3.new(94.8700256, 113.859863, 42.6799927))
  5503. createWall(CFrame.new(-475.599976, 244.729858, -791.841309, 1, 0, 0, 0, 1, 0, 0, 0, 1), Vector3.new(254.370026, 31.3598633, 74.6799927))
  5504. createWall(CFrame.new(-477.599976, 245.229858, -787.341309, 1, 0, 0, 0, 1, 0, 0, 0, 1), Vector3.new(250.370026, 32.3598633, 65.6799927))
  5505. createWall(CFrame.new(-478.599976, 245.479858, -784.341309, 1, 0, 0, 0, 1, 0, 0, 0, 1), Vector3.new(248.370026, 32.8598633, 59.6799927))
  5506. createWall(CFrame.new(-478.599976, 245.729858, -781.841309, 1, 0, 0, 0, 1, 0, 0, 0, 1), Vector3.new(248.370026, 33.3598633, 54.6799927))
  5507. createWall(CFrame.new(-439.849976, 272.229858, -883.341309, 1, 0, 0, 0, 1, 0, 0, 0, 1), Vector3.new(51.8700256, 86.3598633, 123.679993))
  5508. createWall(CFrame.new(-379.849976, 272.229858, -832.841309, 1, 0, 0, 0, 1, 0, 0, 0, 1), Vector3.new(68.8700256, 86.3598633, 19.6799927))
  5509. createWall(CFrame.new(-325.158051, 241.062012, -822.414978, 0.789027095, 0.334922045, 0.515037596, -0.390731275, 0.920504749, 4.84287739e-08, -0.474095762, -0.201241508, 0.857167423), Vector3.new(9.37002563, 14.8598633, 8.17999268))
  5510. createWall(CFrame.new(-345.652191, 245.233566, -781.809937, 0.850778162, 0.104462422, 0.515038013, -0.121869348, 0.992546141, 0, -0.511199117, -0.0627673566, 0.857167304), Vector3.new(31.3700256, 33.3598633, 54.6799927))
  5511. createWall(CFrame.new(-345.599976, 272.229858, -831.341309, 1, 0, 0, 0, 1, 0, 0, 0, 1), Vector3.new(0.370025635, 86.3598633, 22.6799927))
  5512. createWall(CFrame.new(-341.921783, 249.663269, -835.159546, 0.848048091, 0, 0.529919267, 0, 1, 0, -0.529919267, 0, 0.848048091), Vector3.new(29.3700256, 76.8598633, 32.1799927))
  5513. createWall(CFrame.new(-320.835754, 230.047226, -824.571289, 0.776302516, 0.0652871206, 0.626969218, -0.284233958, 0.92402339, 0.255714566, -0.562643945, -0.37671876, 0.735880792), Vector3.new(52.3700256, 31.3598633, 95.6799927))
  5514. createWall(CFrame.new(-289.109406, 220.88858, -848.419983, 0.778962135, 0.0109720025, 0.626974881, -0.219083488, 0.941601098, 0.255714387, -0.587554574, -0.336551666, 0.735875428), Vector3.new(50.8700256, 30.8598633, 95.6799927))
  5515. createWall(CFrame.new(-89.6850128, 249.173721, -513.710205, 1, 0, 0, 0, 0.994521797, 0.104528457, 0, -0.104528457, 0.994521797), Vector3.new(5.37002563, 16.8598633, 30.6799927))
  5516. createWall(CFrame.new(-510.848236, 279.979858, -1284.52026, 0.798635483, 0, 0.601814926, 0, 1, 0, -0.601814926, 0, 0.798635483), Vector3.new(12.8700256, 165.859863, 39.6799927))
  5517. createWall(CFrame.new(-510.486816, 279.979858, -1279.47107, 0.798635483, 0, 0.601814926, 0, 1, 0, -0.601814926, 0, 0.798635483), Vector3.new(7.37002563, 165.859863, 42.1799927))
  5518. createWall(CFrame.new(-512.099976, 273.589722, -1203.34131, 1, 0, 0, 0, 1, 0, 0, 0, 1), Vector3.new(15.3700256, 30.3598633, 9.67999268))
  5519. createWall(CFrame.new(-450.099976, 273.589722, -1203.34131, 1, 0, 0, 0, 1, 0, 0, 0, 1), Vector3.new(20.3700256, 30.3598633, 9.67999268))
  5520. createWall(CFrame.new(-294.008087, 223.338501, -850.775452, 1, 0, 0, 0, 1, 0, 0, 0, 1), Vector3.new(25.3700256, 23.8598633, 15.1799927))
  5521. createWall(CFrame.new(-328.758087, 223.338501, -860.025452, 1, 0, 0, 0, 1, 0, 0, 0, 1), Vector3.new(18.8700256, 23.8598633, 7.67999268))
  5522. createWall(CFrame.new(-33.4668579, 239.946518, -446.482941, 1, 0, 0, 0, 0.999999762, 0, 0, 0, 0.999999762), Vector3.new(21.8700256, 7.35986328, 26.1799927))
  5523. createWall(CFrame.new(-24.9668579, 249.946518, -446.232941, 1, 0, 0, 0, 0.999999762, 0, 0, 0, 0.999999762), Vector3.new(4.87002563, 27.3598633, 20.6799927))
  5524. createWall(CFrame.new(-327.824738, 237.437775, -801.812622, 0.762220681, 0.371759921, 0.529919147, -0.438371092, 0.898793995, 1.49011612e-08, -0.476288557, -0.232301384, 0.84804821), Vector3.new(27.8700256, 31.8598633, 64.6799927))
  5525. createWall(CFrame.new(-336.758087, 222.838501, -903.525452, 1, 0, 0, 0, 1, 0, 0, 0, 1), Vector3.new(159.870026, 22.8598633, 147.679993))
  5526. createWall(CFrame.new(-339.008087, 269.588501, -954.775452, 1, 0, 0, 0, 1, 0, 0, 0, 1), Vector3.new(164.370026, 116.359863, 45.1799927))
  5527. createWall(CFrame.new(-271.008087, 243.088501, -925.025452, 1, 0, 0, 0, 1, 0, 0, 0, 1), Vector3.new(28.3700256, 63.3598633, 104.679993))
  5528. createWall(CFrame.new(-399.008087, 223.338501, -934.775452, 1, 0, 0, 0, 1, 0, 0, 0, 1), Vector3.new(35.3700256, 23.8598633, 85.1799927))
  5529. createWall(CFrame.new(-165.758087, 222.838501, -867.025452, 1, 0, 0, 0, 1, 0, 0, 0, 1), Vector3.new(197.870026, 22.8598633, 69.6799927))
  5530. createWall(CFrame.new(-253.171448, 250.376404, -830.885254, 1, 0, 0, 0, 1, 0, 0, 0, 1), Vector3.new(38.5499878, 76.499939, 57.8899994))
  5531. createWall(CFrame.new(-253.171448, 250.376404, -883.635254, 1, 0, 0, 0, 1, 0, 0, 0, 1), Vector3.new(38.5499878, 76.499939, 21.3899994))
  5532. createWall(CFrame.new(-483.418579, 267.041748, -1068.15332, -0.999052703, -0.0155198928, 0.040654961, 5.86081296e-06, 0.934192657, 0.356768906, -0.04351658, 0.356431216, -0.933307588), Vector3.new(31.6913509, 2.7721417, 4.24422979))
  5533. createWall(CFrame.new(-483.981842, 260.92804, -1055.25232, -0.999047458, -0.0207527075, 0.0383878089, 9.14558768e-07, 0.879672229, 0.475580454, -0.0436382741, 0.475127459, -0.878834188), Vector3.new(31.6913509, 2.74081826, 18.896841))
  5534. createWall(CFrame.new(-483.538757, 266.034851, -1065.40332, -0.999046981, -0.0144734327, 0.0411781222, 2.83131376e-05, 0.943206012, 0.332208306, -0.0436476469, 0.331892908, -0.942306757), Vector3.new(31.6913509, 2.76432514, 4.3225441))
  5535. createWall(CFrame.new(-481.38623, 266.034943, -1114.70557, 0.999046981, 0.0144734401, -0.0411781222, 2.83066183e-05, 0.943206012, 0.332208335, 0.0436476506, -0.331892937, 0.942306757), Vector3.new(31.6913509, 2.76432514, 4.3225441))
  5536. createWall(CFrame.new(-480.943359, 260.928314, -1124.85657, 0.999047458, 0.0207526181, -0.0383878089, 9.90927219e-07, 0.879672289, 0.475580454, 0.0436382294, -0.475127459, 0.878834248), Vector3.new(31.6913509, 2.74081826, 18.896841))
  5537. createWall(CFrame.new(-482.463654, 268.856995, -1090.03271, 0.999048233, 0, -0.0436193869, 0, 1, 0, 0.0436193869, 0, 0.999048233), Vector3.new(31.6913509, 2.74081826, 23.9508228))
  5538. createWall(CFrame.new(-481.854034, 268.718964, -1104.005, 0.999045253, 0.00244113314, -0.0436193869, -7.33807683e-05, 0.99853003, 0.0542014502, 0.0436875783, -0.0541465022, 0.997576892), Vector3.new(31.6913509, 2.74081826, 4.3225441))
  5539. createWall(CFrame.new(-483.248901, 268.208527, -1072.04712, -0.999044776, -0.00906737149, 0.0427475348, 9.39015299e-05, 0.977787733, 0.209597498, -0.043698512, 0.209401295, -0.976852834), Vector3.new(31.6913509, 2.74081826, 4.3225441))
  5540. createWall(CFrame.new(-481.506134, 267.04184, -1111.95569, 0.999052703, 0.0155199626, -0.040654961, 5.79282641e-06, 0.934192657, 0.356768847, 0.0435166061, -0.356431156, 0.933307588), Vector3.new(31.6913509, 2.7721417, 4.24422979))
  5541. createWall(CFrame.new(-481.676361, 268.208527, -1108.06177, 0.999044776, 0.00906729046, -0.0427475348, 9.39778984e-05, 0.977787733, 0.209597453, 0.0436984971, -0.20940125, 0.976852894), Vector3.new(31.6913509, 2.74081826, 4.3225441))
  5542. createWall(CFrame.new(-483.071716, 268.719055, -1076.10388, -0.999045253, -0.00244113663, 0.0436193869, -7.33849593e-05, 0.99853003, 0.0542014316, -0.0436875783, 0.0541464835, -0.997576892), Vector3.new(31.6913509, 2.74081826, 4.3225441))
  5543. createWall(CFrame.new(-483.349976, 244.229858, -1089.84131, 1, 0, 0, 0, 1, 0, 0, 0, 1), Vector3.new(39.8700256, 30.3598633, 91.6799927))
  5544. createWall(CFrame.new(-367.75824, 249.663269, -845.841492, 0.848048091, 0, 0.529919267, 0, 1, 0, -0.529919267, 0, 0.848048091), Vector3.new(34.8700256, 76.8598633, 13.6799927))
  5545. createWall(CFrame.new(-43.2580872, 223.338501, -867.025452, 1, 0, 0, 0, 1, 0, 0, 0, 1), Vector3.new(50.8700256, 23.8598633, 69.6799927))
  5546. createWall(CFrame.new(-40.5080872, 223.838501, -867.025452, 1, 0, 0, 0, 1, 0, 0, 0, 1), Vector3.new(47.3700256, 24.8598633, 69.6799927))
  5547. createWall(CFrame.new(4.49191284, 224.838501, -762.025452, 1, 0, 0, 0, 1, 0, 0, 0, 1), Vector3.new(99.3700256, 26.8598633, 124.679993))
  5548. createWall(CFrame.new(-25.2580872, 224.338501, -852.025452, 1, 0, 0, 0, 1, 0, 0, 0, 1), Vector3.new(36.8700256, 25.8598633, 55.6799927))
  5549. createWall(CFrame.new(-37.7580872, 237.588501, -825.775452, 1, 0, 0, 0, 1, 0, 0, 0, 1), Vector3.new(11.8700256, 52.3598633, 22.1799927))
  5550. createWall(CFrame.new(10.7419128, 224.838501, -837.275452, 1, 0, 0, 0, 1, 0, 0, 0, 1), Vector3.new(86.8700256, 26.8598633, 50.1799927))
  5551. createWall(CFrame.new(4.49191284, 224.338501, -703.525452, 1, 0, 0, 0, 1, 0, 0, 0, 1), Vector3.new(99.3700256, 25.8598633, 15.6799927))
  5552. createWall(CFrame.new(4.49191284, 223.838501, -701.525452, 1, 0, 0, 0, 1, 0, 0, 0, 1), Vector3.new(99.3700256, 24.8598633, 19.6799927))
  5553. createWall(CFrame.new(8.24191284, 223.338501, -667.775452, 1, 0, 0, 0, 1, 0, 0, 0, 1), Vector3.new(91.8700256, 23.8598633, 87.1799927))
  5554. createWall(CFrame.new(-32.2580872, 223.088501, -637.275452, 1, 0, 0, 0, 1, 0, 0, 0, 1), Vector3.new(172.870026, 23.3598633, 148.179993))
  5555. createWall(CFrame.new(-115.024994, 237.18399, -535.179443, 1, 0, 0, 0, 0.994521797, 0.104528457, 0, -0.104528457, 0.994521797), Vector3.new(190.049988, 2.49993896, 75.8899994))
  5556. createWall(CFrame.new(-110.508087, 223.338501, -580.775452, 1, 0, 0, 0, 1, 0, 0, 0, 1), Vector3.new(16.3700256, 23.8598633, 35.1799927))
  5557. createWall(CFrame.new(14.4349861, 247.448364, -670.319519, 0.874619722, 0, -0.484809607, 0, 1, 0, 0.484809607, 0, 0.874619722), Vector3.new(16.8700256, 24.3598633, 64.1799927))
  5558. createWall(CFrame.new(-114.508087, 246.948364, -651.275452, 1, 0, 0, 0, 1, 0, 0, 0, 1), Vector3.new(13.3700256, 24.3598633, 42.1799927))
  5559. createWall(CFrame.new(-327.09436, 240.060562, -797.918823, 0.789027095, 0.334922045, 0.515037596, -0.390731275, 0.920504749, 4.84287739e-08, -0.474095762, -0.201241508, 0.857167423), Vector3.new(29.8700256, 28.8598633, 63.1799927))
  5560. createWall(CFrame.new(-664.139648, 282.215668, -1495.0968, -0.691134691, 0.299709588, -0.657652676, 0, 0.909961283, 0.414693236, 0.722725987, 0.286608875, -0.628905833), Vector3.new(25.5299988, 5.60986328, 12.4799957))
  5561. wait(.1)
  5562. game:GetService("Workspace").dungeon.room5["barrier"]:Destroy()
  5563. if _G.destroy_map then
  5564. --workspace.Terrain:Clear()
  5565. for i,v in pairs(workspace:GetChildren()) do
  5566. if v.ClassName == "Model" or v.ClassName == "Part" or v.ClassName == "UnionOperation" or v.ClassName == "WedgePart" then
  5567. if v ~= game.Players.LocalPlayer.Character and v.Name ~= regionPartName then
  5568. v:Destroy()
  5569. end
  5570. end
  5571. end
  5572. end
  5573.  
  5574. while not game:GetService("Workspace").dungeon.room5.enemyFolder:FindFirstChild("Spider Queen") do -- wait for spider boss to spawn
  5575. wait(1)
  5576. end
  5577. while not game:GetService("Workspace").dungeon.room5.enemyFolder:FindFirstChild("Spider Queen"):FindFirstChild("HumanoidRootPart") do
  5578. wait(1)
  5579. end
  5580. local objPart = createWall(CFrame.new(-198.633, 235.589, -866.15), Vector3.new(3.62, 2.86, 4.93))
  5581. objPart.CanCollide = false
  5582. objectiveExists = true
  5583. objectiveObject = objPart
  5584. while wait(1) do
  5585. local _,_,_,root = getPlayer()
  5586. if getMag(root.Position, objPart.Position) < 5 then break end
  5587. end
  5588. objectiveExists = false
  5589. objectiveObject = nil
  5590. end
  5591.  
  5592. function kingFix()
  5593. createWall(CFrame.new(-265.670135, 39.9012566, 821.916565, 0.267238349, 0, 0.963630438, 0, 1, 0, -0.963630438, 0, 0.267238349), Vector3.new(205.490036, 121.409996, 83.2699738))
  5594. createWall(CFrame.new(-84.1567535, 39.9012566, 206.857864, -4.37113883e-08, 0, -1, 0, 1, 0, 1, 0, -4.37113883e-08), Vector3.new(7.70991707, 121.409996, 20.2999802))
  5595. createWall(CFrame.new(-87.2210388, 39.9012566, 185.695068, 1, 0, 0, 0, 1, 0, 0, 0, 1), Vector3.new(7.70991707, 121.409996, 38.0599823))
  5596. createWall(CFrame.new(30.827137, 50.6512566, 315.457825, -4.37113883e-08, 0, -1, 0, 1, 0, 1, 0, -4.37113883e-08), Vector3.new(224.909897, 99.909996, 40.819973))
  5597. createWall(CFrame.new(-201.965851, 39.9012566, 538.666504, 0.999657333, 0, 0.02617695, 0, 1, 0, -0.02617695, 0, 0.999657333), Vector3.new(182.820007, 121.409996, 128.269974))
  5598. createWall(CFrame.new(-241.969254, 39.9012566, 610.253235, -0.0261769947, -2.28846564e-09, 0.999657333, -1.74815597e-07, 1, -2.28846564e-09, -0.999657333, -1.74815597e-07, -0.0261769947), Vector3.new(251.470016, 121.409996, 81.7699738))
  5599. createWall(CFrame.new(-13.5106697, 61.6240005, -82.0305099, 0.0261769947, 0, -0.999657333, 0, 1, 0, 0.999657333, 0, 0.0261769947), Vector3.new(60.3699608, 70.859993, 81.8800201))
  5600. createWall(CFrame.new(59.8843384, 39.9012566, 206.815186, 1, 0, 0, 0, 1, 0, 0, 0, 1), Vector3.new(29.4499016, 121.409996, 7.64001656))
  5601. createWall(CFrame.new(-52.9094086, 39.9012566, 315.457825, -4.37113883e-08, 0, -1, 0, 1, 0, 1, 0, -4.37113883e-08), Vector3.new(224.909897, 121.409996, 40.819973))
  5602. createWall(CFrame.new(74.1219025, 39.9012527, 575.307129, -0.999390841, -8.73695214e-08, -0.0348994955, -8.43717629e-08, 1, -8.73695214e-08, 0.0348994955, -8.43717629e-08, -0.999390841), Vector3.new(125.539993, 121.409996, 237.639999))
  5603. createWall(CFrame.new(37.6457291, 39.9012566, 151.17514, 1, 0, 0, 0, 1, 0, 0, 0, 1), Vector3.new(62.3399086, 121.409996, 43.2400017))
  5604. createWall(CFrame.new(0.196162999, 65.1762543, 441.391022, 0.0261769947, 0, -0.999657333, 0, 1, 0, 0.999657333, 0, 0.0261769947), Vector3.new(62.0499763, 70.859993, 81.8800201))
  5605. createWall(CFrame.new(-55.767437, 39.9012566, 12.0568619, -4.37113883e-08, 0, 1, 0, 1, 0, -1, 0, -4.37113883e-08), Vector3.new(242.48996, 121.409996, 43.2400017))
  5606. createWall(CFrame.new(31.8941364, 39.9012566, 16.1985588, 0.0174523834, 0, 0.99984771, 0, 1, 0, -0.99984771, 0, 0.0174523834), Vector3.new(234.210022, 121.409996, 43.2400017))
  5607. createWall(CFrame.new(-7.2978816, 63.2866745, 155.216705, 0.0261769947, 0, -0.999657333, 0, 1, 0, 0.999657333, 0, 0.0261769947), Vector3.new(62.0499763, 68.6600037, 81.8800201))
  5608. createWall(CFrame.new(66.2143402, 39.9012566, 170.095139, 1, 0, 0, 0, 1, 0, 0, 0, 1), Vector3.new(16.7899017, 121.409996, 81.0800095))
  5609. createWall(CFrame.new(-108.321632, 39.9012566, 444.232849, 0.0261769947, 0, -0.999657333, 0, 1, 0, 0.999657333, 0, 0.0261769947), Vector3.new(62.0499763, 121.409996, 155.169968))
  5610. createWall(CFrame.new(84.8040543, 39.9012566, 451.600067, 0.0348994955, 0, -0.999390841, 0, 1, 0, 0.999390841, 0, 0.0348994955), Vector3.new(62.0499763, 121.409996, 155.169968))
  5611. createWall(CFrame.new(97.8463821, 39.9012566, 665.138977, -0.0348994955, -3.05101078e-09, 0.999390841, -1.74792291e-07, 1, -3.05101078e-09, -0.999390841, -1.74792291e-07, -0.0348994955), Vector3.new(19.5399895, 121.409996, 56.4300117))
  5612. createWall(CFrame.new(46.9567528, 39.9012566, 674.57135, -0.366501212, -3.20405533e-08, 0.930417597, -1.68762469e-07, 1, -3.20405533e-08, -0.930417597, -1.68762469e-07, -0.366501212), Vector3.new(19.5399895, 121.409996, 56.4300117))
  5613. createWall(CFrame.new(-34.3111458, 39.9012566, 725.983276, -0.719339788, -6.28866843e-08, 0.694658399, -1.48151742e-07, 1, -6.28866843e-08, -0.694658399, -1.48151742e-07, -0.719339788), Vector3.new(42.0399895, 121.409996, 197.409988))
  5614. createWall(CFrame.new(-112.350136, 39.9012566, 837.091858, -0.965925813, -8.44439185e-08, 0.258819044, -1.10049456e-07, 1, -8.44439185e-08, -0.258819044, -1.10049456e-07, -0.965925813), Vector3.new(40.0399895, 121.409996, 103.629967))
  5615. createWall(CFrame.new(-139.625366, 39.9012566, 961.8349, -0.968147635, -8.46381525e-08, 0.250380009, -1.09311692e-07, 1, -8.46381525e-08, -0.250380009, -1.09311692e-07, -0.968147635), Vector3.new(47.8199997, 121.409996, 187.62999))
  5616. createWall(CFrame.new(-200.630081, 65.554451, 1018.6449, -2.18195708e-18, -8.74227837e-08, 1.00000024, -8.74227695e-08, 1, 8.74227837e-08, -1.00000024, -8.74227979e-08, 7.6405599e-15), Vector3.new(60.8199997, 121.409996, 125.489998))
  5617. createWall(CFrame.new(-230.756363, 39.9012566, 1027.81616, 1, 0, 0, 0, 1, 0, 0, 0, 1), Vector3.new(40.8199997, 121.409996, 136.48999))
  5618. createWall(CFrame.new(-253.298645, 39.9012566, 919.571655, 0.902585268, 0, 0.430511087, 0, 1, 0, -0.430511087, 0, 0.902585268), Vector3.new(43.3199997, 121.409996, 114.269997))
  5619. createWall(CFrame.new(-59.9060516, 39.9012566, 151.17514, 1, 0, 0, 0, 1, 0, 0, 0, 1), Vector3.new(62.3399086, 121.409996, 43.2400017))
  5620. createWall(CFrame.new(37.8478165, 16.8362617, -190.005951, -4.37113883e-08, 0, 1, 0, 1, 0, -1, 0, -4.37113883e-08), Vector3.new(16.16996, 75.2800064, 17.949995))
  5621. createWall(CFrame.new(43.4540367, 16.8362617, -158.997726, -0.819152057, -7.1612547e-08, 0.57357645, -1.37566417e-07, 1, -7.1612547e-08, -0.57357645, -1.37566417e-07, -0.819152057), Vector3.new(28.7199612, 75.2800064, 21.4999905))
  5622. createWall(CFrame.new(-78.8311462, 39.9012566, -291.1315, -4.37113883e-08, 0, 1, 0, 1, 0, -1, 0, -4.37113883e-08), Vector3.new(107.669968, 121.409996, 6.42999887))
  5623. createWall(CFrame.new(-114.162926, 16.8362617, -234.379257, -4.37113883e-08, 0, 1, 0, 1, 0, -1, 0, -4.37113883e-08), Vector3.new(2.349967, 75.2800064, 3.74999881))
  5624. createWall(CFrame.new(43.2896805, 16.8362617, -174.360001, -1, -8.74227766e-08, 0, -8.74227766e-08, 1, -8.74227766e-08, 7.64274186e-15, -8.74227766e-08, -1), Vector3.new(16.16996, 75.2800064, 17.949995))
  5625. createWall(CFrame.new(-11.822731, 61.6240005, -17.5732212, 0.0261769947, 0, -0.999657333, 0, 1, 0, 0.999657333, 0, 0.0261769947), Vector3.new(3.48996258, 70.859993, 81.8800201))
  5626. createWall(CFrame.new(-187.323776, 16.8362617, -240.981262, -4.37113883e-08, 0, 1, 0, 1, 0, -1, 0, -4.37113883e-08), Vector3.new(3.3399663, 75.2800064, 7.0199976))
  5627. createWall(CFrame.new(-71.4555283, -9.84874344, 8.86862564, 0.0261769947, 0, -0.999657333, 0, 1, 0, 0.999657333, 0, 0.0261769947), Vector3.new(930.549988, 24.909996, 401.669983))
  5628. createWall(CFrame.new(-141.047348, 39.9012566, -346.645721, -1, -8.74227766e-08, 0, -8.74227766e-08, 1, -8.74227766e-08, 7.64274186e-15, -8.74227766e-08, -1), Vector3.new(136.869934, 121.409996, 6.42999887))
  5629. createWall(CFrame.new(36.2830582, 16.8362617, -147.050018, -0.819152057, -7.1612547e-08, 0.57357645, -1.37566417e-07, 1, -7.1612547e-08, -0.57357645, -1.37566417e-07, -0.819152057), Vector3.new(9.30995846, 75.2800064, 31.1199837))
  5630. createWall(CFrame.new(-209.860611, 39.9012566, -292.526398, -4.37113883e-08, 0, 1, 0, 1, 0, -1, 0, -4.37113883e-08), Vector3.new(119.619957, 121.409996, 6.42999887))
  5631. createWall(CFrame.new(17.7576237, -9.09874344, -452.124695, 0.0261769947, 0, -0.999657333, 0, 1, 0, 0.999657333, 0, 0.0261769947), Vector3.new(28.5499878, 25.409996, 231.169983))
  5632. createWall(CFrame.new(-51.8212013, -8.75, -568.843323, 0.0261769947, 0, -0.999657333, 0, 1, 0, 0.999657333, 0, 0.0261769947), Vector3.new(216.549988, 26.409996, 364.169983))
  5633. createWall(CFrame.new(-261.46759, -21.155468, -615.121277, -4.37113883e-08, -0.406736642, -0.91354543, 0, 0.91354543, -0.406736642, 1, -1.77790227e-08, -3.99323383e-08), Vector3.new(87.0499878, 26.409996, 69.1699829))
  5634. createWall(CFrame.new(-250.886627, -11.7916269, -731.871277, -4.37113883e-08, 0, -1, 0, 1, 0, 1, 0, -4.37113883e-08), Vector3.new(146.550003, 46.909996, 39.6699829))
  5635. createWall(CFrame.new(-250.886627, -11.7916269, -513.371277, -4.37113883e-08, 0, -1, 0, 1, 0, 1, 0, -4.37113883e-08), Vector3.new(116.550003, 46.909996, 39.6699829))
  5636. createWall(CFrame.new(-413.386627, 24.458374, -464.371277, -4.37113883e-08, 0, -1, 0, 1, 0, 1, 0, -4.37113883e-08), Vector3.new(18.5500031, 119.409996, 364.669983))
  5637. createWall(CFrame.new(-414.136627, 24.458374, -779.121277, -4.37113883e-08, 0, -1, 0, 1, 0, 1, 0, -4.37113883e-08), Vector3.new(18.0499878, 119.409996, 366.169983))
  5638. createWall(CFrame.new(-464.386597, -19.291626, -617.371277, -4.37113883e-08, 0, -1, 0, 1, 0, 1, 0, -4.37113883e-08), Vector3.new(324.549988, 31.909996, 0.66998291))
  5639. createWall(CFrame.new(-366.386597, -22.791626, -617.371277, -4.37113883e-08, 0, -1, 0, 1, 0, 1, 0, -4.37113883e-08), Vector3.new(324.549988, 24.909996, 197.669983))
  5640. createWall(CFrame.new(-111.886597, 24.458374, -659.621277, -4.37113883e-08, 0, -1, 0, 1, 0, 1, 0, -4.37113883e-08), Vector3.new(25.0499878, 119.409996, 255.669983))
  5641. createWall(CFrame.new(-110.386597, 24.458374, -560.871277, -4.37113883e-08, 0, -1, 0, 1, 0, 1, 0, -4.37113883e-08), Vector3.new(50.5499878, 119.409996, 258.669983))
  5642. createWall(CFrame.new(79.3634033, 24.458374, -548.871277, -4.37113883e-08, 0, -1, 0, 1, 0, 1, 0, -4.37113883e-08), Vector3.new(164.549988, 119.409996, 63.1699829))
  5643. createWall(CFrame.new(56.8634033, 24.458374, -641.121277, -4.37113883e-08, 0, -1, 0, 1, 0, 1, 0, -4.37113883e-08), Vector3.new(22.0499878, 119.409996, 108.169983))
  5644. createWall(CFrame.new(11.1134005, 24.458374, -536.621277, -4.37113883e-08, 0, -1, 0, 1, 0, 1, 0, -4.37113883e-08), Vector3.new(136.049988, 119.409996, 16.6699829))
  5645. createWall(CFrame.new(-13.6366024, 24.458374, -469.621277, -4.37113883e-08, 0, -1, 0, 1, 0, 1, 0, -4.37113883e-08), Vector3.new(2.05000305, 119.409996, 66.1699829))
  5646. createWall(CFrame.new(-43.3866081, 24.458374, -390.371277, -4.37113883e-08, 0, -1, 0, 1, 0, 1, 0, -4.37113883e-08), Vector3.new(160.550003, 119.409996, 6.66998291))
  5647. createWall(CFrame.new(111.363388, 24.458374, -390.371277, -4.37113883e-08, 0, -1, 0, 1, 0, 1, 0, -4.37113883e-08), Vector3.new(160.550003, 119.409996, 6.16998291))
  5648. createWall(CFrame.new(77.6133881, 24.458374, -258.121277, -4.37113883e-08, 0, -1, 0, 1, 0, 1, 0, -4.37113883e-08), Vector3.new(128.050003, 119.409996, 73.6699829))
  5649. createWall(CFrame.new(-22.8866119, 24.458374, -280.621277, -4.37113883e-08, 0, -1, 0, 1, 0, 1, 0, -4.37113883e-08), Vector3.new(83.0500031, 119.409996, 90.6699829))
  5650. createWall(CFrame.new(-90.8866119, 24.458374, -216.621277, -4.37113883e-08, 0, -1, 0, 1, 0, 1, 0, -4.37113883e-08), Vector3.new(60.0500031, 119.409996, 49.6699829))
  5651. createWall(CFrame.new(-105.136612, 24.458374, -148.621277, -4.37113883e-08, 0, -1, 0, 1, 0, 1, 0, -4.37113883e-08), Vector3.new(25.0500031, 119.409996, 78.1699829))
  5652. createWall(CFrame.new(-177.886612, 24.458374, -184.871277, -4.37113883e-08, 0, -1, 0, 1, 0, 1, 0, -4.37113883e-08), Vector3.new(97.5500031, 119.409996, 73.6699829))
  5653. createWall(CFrame.new(-43.8866119, 24.458374, -79.8712769, -4.37113883e-08, 0, -1, 0, 1, 0, 1, 0, -4.37113883e-08), Vector3.new(126.550003, 119.409996, 47.6699829))
  5654. createWall(CFrame.new(21.6133881, 24.458374, -79.8712769, -4.37113883e-08, 0, -1, 0, 1, 0, 1, 0, -4.37113883e-08), Vector3.new(126.550003, 119.409996, 46.6699829))
  5655. createWall(CFrame.new(-595.011597, 29.583374, -617.371277, -4.37113883e-08, 0, -1, 0, 1, 0, 1, 0, -4.37113883e-08), Vector3.new(324.549988, 129.660004, 5.91998291))
  5656. createWall(CFrame.new(-528.511597, -4.16662598, -617.371277, -4.37113883e-08, 0, -1, 0, 1, 0, 1, 0, -4.37113883e-08), Vector3.new(324.549988, 1.15999603, 128.919983))
  5657. createWall(CFrame.new(-542.636597, 9.45837402, -619.371277, -4.37113883e-08, 0, -1, 0, 1, 0, 1, 0, -4.37113883e-08), Vector3.new(36.5499878, 25.909996, 41.6699829))
  5658. createWall(CFrame.new(-559.011597, 23.958374, -619.371277, -4.37113883e-08, 0, -1, 0, 1, 0, 1, 0, -4.37113883e-08), Vector3.new(36.5499878, 54.909996, 8.91998291))
  5659. createWall(CFrame.new(-580.636597, 44.083374, -566.496277, -4.37113883e-08, 0, -1, 0, 1, 0, 1, 0, -4.37113883e-08), Vector3.new(42.2999878, 95.159996, 42.1699829))
  5660. createWall(CFrame.new(-582.511597, 44.083374, -672.246277, -4.37113883e-08, 0, -1, 0, 1, 0, 1, 0, -4.37113883e-08), Vector3.new(41.2999878, 95.159996, 38.4199829))
  5661. createWall(CFrame.new(-12.2616129, 24.458374, -255.746277, -4.37113883e-08, 0, -1, 0, 1, 0, 1, 0, -4.37113883e-08), Vector3.new(132.800003, 119.409996, 34.9199829))
  5662. if _G.destroy_map then
  5663. for i,v in pairs(workspace:GetChildren()) do
  5664. if v.ClassName == "Model" or v.ClassName == "Part" or v.ClassName == "UnionOperation" or v.ClassName == "WedgePart" or v.ClassName == "MeshPart" then
  5665. if v ~= game.Players.LocalPlayer.Character and v.Name ~= regionPartName then
  5666. v:Destroy()
  5667. end
  5668. end
  5669. end
  5670. end
  5671. wait(5)
  5672. while not game:GetService("Workspace").dungeon.room3.enemyFolder:FindFirstChild("Beast Master") do
  5673. wait(1)
  5674. end
  5675. while not game:GetService("Workspace").dungeon.room3.enemyFolder:FindFirstChild("Beast Master"):FindFirstChild("HumanoidRootPart") do
  5676. wait(1)
  5677. end
  5678. -- cant path to second boss, paths to second boss area until hes in position
  5679. forceObjectiveExists = true
  5680. thePart.CFrame = CFrame.new(3.85899, 5.60531, 31.656)
  5681. local t = game:GetService("Workspace").dungeon.room3.enemyFolder:FindFirstChild("Beast Master")
  5682. while t.PrimaryPart.Position.Y > 35 do
  5683. wait()
  5684. end
  5685. forceObjectiveExists = false
  5686. end
  5687.  
  5688. function winterFix()
  5689. local dun = waitForExist(workspace, "dungeon")
  5690. workspace.Terrain:Clear()
  5691. createWall(CFrame.new(49.6182404, 44.75, 118.716324, 0.857167304, 0, -0.515038073, 0, 1, 0, 0.515038073, 0, 0.857167304), Vector3.new(82.5, 2.5, 32))
  5692. createWall(CFrame.new(65.4887466, 54.5, 107.836174, 0.857167304, 0, -0.515038073, 0, 1, 0, 0.515038073, 0, 0.857167304), Vector3.new(63.5, 22, 5))
  5693. createWall(CFrame.new(36.3633881, 54.5, 129.12648, 0.857167304, 0, -0.515038073, 0, 1, 0, 0.515038073, 0, 0.857167304), Vector3.new(92.5, 22, 1.5))
  5694. createWall(CFrame.new(53.4067535, 58.25, -19.6698608, -0.342020094, 0, -0.939692616, 0, 1, 0, 0.939692616, 0, -0.342020094), Vector3.new(64, 29.5, 2))
  5695. createWall(CFrame.new(6.28490734, 44.75, 78.9878387, 0.438371092, 0, -0.898794055, 0, 1, 0, 0.898794055, 0, 0.438371092), Vector3.new(54, 2.5, 46))
  5696. createWall(CFrame.new(26.3271828, 54.5, 64.7621689, 0.438371092, 0, -0.898794055, 0, 1, 0, 0.898794055, 0, 0.438371092), Vector3.new(62, 22, 5.5))
  5697. createWall(CFrame.new(-20.3219051, 54.5, 78.6136322, 0.438371092, 0, -0.898794055, 0, 1, 0, 0.898794055, 0, 0.438371092), Vector3.new(78, 22, 8.5))
  5698. createWall(CFrame.new(2.55875301, 44.75, 71.3480911, 0.438371092, 0, -0.898794055, 0, 1, 0, 0.898794055, 0, 0.438371092), Vector3.new(71, 2.5, 46))
  5699. createWall(CFrame.new(24.2970142, 44.75, -28.1365814, -0.342020094, 0, -0.939692616, 0, 1, 0, 0.939692616, 0, -0.342020094), Vector3.new(182, 2.5, 62.5))
  5700. createWall(CFrame.new(47.7676086, 42.7324867, -1175.33252, 2.97297333e-08, -2.07890483e-09, -1, 0.0697564632, 0.997564077, 3.26544807e-16, 0.997564077, -0.0697564632, 2.98023295e-08), Vector3.new(41.5, 15.5, 167))
  5701. createWall(CFrame.new(34.0146065, 58.25, 20.1416855, -0.798635483, 0, -0.601815045, 0, 1, 0, 0.601815045, 0, -0.798635483), Vector3.new(57, 29.5, 7))
  5702. createWall(CFrame.new(59.3021507, 58.25, -66.8049469, -0.0697563887, 0, -0.997563958, 0, 1, 0, 0.997563958, 0, -0.0697563887), Vector3.new(80.5, 29.5, 2))
  5703. createWall(CFrame.new(-9.12857437, 56, -32.0551186, -0.342020094, 0, -0.939692616, 0, 1, 0, 0.939692616, 0, -0.342020094), Vector3.new(173.5, 25, 7))
  5704. createWall(CFrame.new(72.586441, 57.25, -108.386299, -0.0348994732, 0, -0.999390781, 0, 1, 0, 0.999390781, 0, -0.0348994732), Vector3.new(8.5, 27.5, 25))
  5705. createWall(CFrame.new(32.1111145, 57.25, -109.799721, -0.0348994732, 0, -0.999390781, 0, 1, 0, 0.999390781, 0, -0.0348994732), Vector3.new(8.5, 27.5, 23))
  5706. createWall(CFrame.new(41.0176544, 44.75, -213.190704, 2.98023224e-08, 0, -0.999999881, 0, 1, 0, 0.999999881, 0, 2.98023224e-08), Vector3.new(215, 2.5, 91.5))
  5707. createWall(CFrame.new(3.76765871, 61.5, -213.940704, 2.98023224e-08, 0, -0.999999881, 0, 1, 0, 0.999999881, 0, 2.98023224e-08), Vector3.new(222.5, 36, 17))
  5708. createWall(CFrame.new(12.5176563, 61.5, -235.440704, 2.98023224e-08, 0, -0.999999881, 0, 1, 0, 0.999999881, 0, 2.98023224e-08), Vector3.new(52.5, 36, 34.5))
  5709. createWall(CFrame.new(11.7676601, 61.5, -132.190704, 2.98023224e-08, 0, -0.999999881, 0, 1, 0, 0.999999881, 0, 2.98023224e-08), Vector3.new(59, 36, 33))
  5710. createWall(CFrame.new(81.2676544, 62, -213.440704, 2.98023224e-08, 0, -0.999999881, 0, 1, 0, 0.999999881, 0, 2.98023224e-08), Vector3.new(215.5, 37, 11))
  5711. createWall(CFrame.new(74.2676544, 62, -228.690704, 2.98023224e-08, 0, -0.999999881, 0, 1, 0, 0.999999881, 0, 2.98023224e-08), Vector3.new(53, 37, 25))
  5712. createWall(CFrame.new(74.2676544, 62, -122.190712, 2.98023224e-08, 0, -0.999999881, 0, 1, 0, 0.999999881, 0, 2.98023224e-08), Vector3.new(21, 37, 25))
  5713. createWall(CFrame.new(15.2676544, 61.25, -322.940674, 2.98023224e-08, 0, -0.999999881, 0, 1, 0, 0.999999881, 0, 2.98023224e-08), Vector3.new(14.5, 35.5, 40))
  5714. createWall(CFrame.new(71.0176468, 61.25, -322.940674, 2.98023224e-08, 0, -0.999999881, 0, 1, 0, 0.999999881, 0, 2.98023224e-08), Vector3.new(14.5, 35.5, 37.5))
  5715. createWall(CFrame.new(51.7676086, 58, -1590.19067, 2.98023224e-08, 0, -0.999999881, 0, 1, 0, 0.999999881, 0, 2.98023224e-08), Vector3.new(60, 41, 172))
  5716. createWall(CFrame.new(-2.48238373, 58, -1368.94067, 2.98023224e-08, 0, -0.999999881, 0, 1, 0, 0.999999881, 0, 2.98023224e-08), Vector3.new(10.5, 41, 74.5))
  5717. createWall(CFrame.new(87.0176086, 58, -1368.94067, 2.98023224e-08, 0, -0.999999881, 0, 1, 0, 0.999999881, 0, 2.98023224e-08), Vector3.new(10.5, 41, 69.5))
  5718. createWall(CFrame.new(41.5176239, 45.25, -964.440674, 2.98023224e-08, 0, -0.999999881, 0, 1, 0, 0.999999881, 0, 2.98023224e-08), Vector3.new(6.5, 15.5, 141.5))
  5719. createWall(CFrame.new(113.517601, 58, -1261.19067, 2.98023224e-08, 0, -0.999999881, 0, 1, 0, 0.999999881, 0, 2.98023224e-08), Vector3.new(213, 41, 3.5))
  5720. createWall(CFrame.new(47.767601, 44.25, -1501.44067, 2.98023224e-08, 0, -0.999999881, 0, 1, 0, 0.999999881, 0, 2.98023224e-08), Vector3.new(266.5, 13.5, 167))
  5721. createWall(CFrame.new(84.6765747, 54.5, 139.489838, 0.857167304, 0, -0.515038073, 0, 1, 0, 0.515038073, 0, 0.857167304), Vector3.new(4, 22, 30.5))
  5722. createWall(CFrame.new(43.5176506, 42.4555817, -310.699219, 2.80050312e-08, 1.01929967e-08, -1, -0.342020154, 0.939692736, 2.50114324e-16, 0.939692736, 0.342020154, 2.98023295e-08), Vector3.new(19.5, 9.5, 71.5))
  5723. createWall(CFrame.new(44.2676468, 41.5, -394.940674, 2.98023224e-08, 0, -0.999999881, 0, 1, 0, 0.999999881, 0, 2.98023224e-08), Vector3.new(182.5, 8, 43))
  5724. createWall(CFrame.new(62.5176468, 58.25, -407.940674, 2.98023224e-08, 0, -0.999999881, 0, 1, 0, 0.999999881, 0, 2.98023224e-08), Vector3.new(182.5, 41.5, 6.5))
  5725. createWall(CFrame.new(16.2676506, 58.25, -407.690674, 2.98023224e-08, 0, -0.999999881, 0, 1, 0, 0.999999881, 0, 2.98023224e-08), Vector3.new(184, 41.5, 19))
  5726. createWall(CFrame.new(44.2676353, 44.4752426, -493.355347, 2.76322254e-08, 1.11641461e-08, -0.999999642, -0.37460652, 0.927183867, 0, 0.927183509, 0.37460655, 2.98023153e-08), Vector3.new(15, 8.5, 57))
  5727. createWall(CFrame.new(52.5176392, 43.75, -590.190674, 2.98023224e-08, 0, -0.999999881, 0, 1, 0, 0.999999881, 0, 2.98023224e-08), Vector3.new(183, 12.5, 94.5))
  5728. createWall(CFrame.new(58.5176392, 56, -545.190674, 2.98023224e-08, 0, -0.999999881, 0, 1, 0, 0.999999881, 0, 2.98023224e-08), Vector3.new(93, 37, 14.5))
  5729. createWall(CFrame.new(21.2676411, 56, -545.190674, 2.98023224e-08, 0, -0.999999881, 0, 1, 0, 0.999999881, 0, 2.98023224e-08), Vector3.new(93, 37, 24))
  5730. createWall(CFrame.new(10.517643, 55.75, -635.190674, 2.98023224e-08, 0, -0.999999881, 0, 1, 0, 0.999999881, 0, 2.98023224e-08), Vector3.new(93, 36.5, 10.5))
  5731. createWall(CFrame.new(96.0176392, 55.75, -635.190674, 2.98023224e-08, 0, -0.999999881, 0, 1, 0, 0.999999881, 0, 2.98023224e-08), Vector3.new(93, 36.5, 8.5))
  5732. createWall(CFrame.new(83.7071075, 55.75, -593.931519, 0.587785304, 0, -0.809017003, 0, 1, 0, 0.809017062, 0, 0.587785304), Vector3.new(18.5, 36.5, 34))
  5733. createWall(CFrame.new(44.2676506, 45.7468681, -322.680908, 2.98023224e-08, -3.63461795e-15, -1, 8.83349074e-08, 1, -1.00203257e-15, 1, -8.83349074e-08, 2.98023224e-08), Vector3.new(9, 9.5, 43))
  5734. createWall(CFrame.new(68.7676315, 46.7623405, -677.575806, 1.44484531e-08, -2.60657025e-08, -1, 0.874619722, 0.484809637, -1.75880865e-15, 0.484809637, -0.874619722, 2.98023259e-08), Vector3.new(9, 16, 107))
  5735. createWall(CFrame.new(50.2676353, 46, -716.690613, 2.98023259e-08, 0, -1, 0, 1, 0, 1, 0, 2.98023259e-08), Vector3.new(70, 17, 29))
  5736. createWall(CFrame.new(6.26764297, 58.5, -711.440674, 2.98023224e-08, 0, -0.999999881, 0, 1, 0, 0.999999881, 0, 2.98023224e-08), Vector3.new(71.5, 42, 74))
  5737. createWall(CFrame.new(89.2676392, 58.5, -711.440674, 2.98023224e-08, 0, -0.999999881, 0, 1, 0, 0.999999881, 0, 2.98023224e-08), Vector3.new(71.5, 42, 54))
  5738. createWall(CFrame.new(41.5176277, 46, -853.940674, 2.98023224e-08, 0, -0.999999881, 0, 1, 0, 0.999999881, 0, 2.98023224e-08), Vector3.new(215.5, 17, 141.5))
  5739. createWall(CFrame.new(-25.9823647, 59, -853.940674, 2.98023224e-08, 0, -0.999999881, 0, 1, 0, 0.999999881, 0, 2.98023224e-08), Vector3.new(215.5, 43, 6.5))
  5740. createWall(CFrame.new(118.517624, 59, -853.940674, 2.98023224e-08, 0, -0.999999881, 0, 1, 0, 0.999999881, 0, 2.98023224e-08), Vector3.new(215.5, 43, 23.5))
  5741. createWall(CFrame.new(111.267616, 59, -883.440796, 0.173648208, 0, -0.984807789, 0, 1, 0, 0.984807789, 0, 0.173648208), Vector3.new(154.5, 43, 38))
  5742. createWall(CFrame.new(-5.48237181, 57.75, -964.190674, 2.98023224e-08, 0, -0.999999881, 0, 1, 0, 0.999999881, 0, 2.98023224e-08), Vector3.new(28, 40.5, 47.5))
  5743. createWall(CFrame.new(100.517609, 57.75, -964.190674, 2.98023224e-08, 0, -0.999999881, 0, 1, 0, 0.999999881, 0, 2.98023224e-08), Vector3.new(28, 40.5, 70.5))
  5744. createWall(CFrame.new(39.0176201, 44.5, -1058.19067, 2.98023259e-08, 0, -1, 0, 1, 0, 1, 0, 2.98023259e-08), Vector3.new(196, 15, 144.5))
  5745. createWall(CFrame.new(3.799963, 56, -53.687912, -0.342020094, 0, -0.939692616, 0, 1, 0, 0.939692616, 0, -0.342020094), Vector3.new(40, 25, 16.5))
  5746. createWall(CFrame.new(-24.2323837, 58, -1261.19067, 2.98023224e-08, 0, -0.999999881, 0, 1, 0, 0.999999881, 0, 2.98023224e-08), Vector3.new(213, 41, 23))
  5747. createWall(CFrame.new(47.7676086, 44.25, -1262.69067, 2.98023224e-08, 0, -0.999999881, 0, 1, 0, 0.999999881, 0, 2.98023224e-08), Vector3.new(216, 13.5, 167))
  5748. createWall(CFrame.new(-33.7323837, 58, -1491.94067, 2.98023224e-08, 0, -0.999999881, 0, 1, 0, 0.999999881, 0, 2.98023224e-08), Vector3.new(256.5, 41, 12))
  5749. createWall(CFrame.new(120.767601, 58, -1491.94067, 2.98023224e-08, 0, -0.999999881, 0, 1, 0, 0.999999881, 0, 2.98023224e-08), Vector3.new(256.5, 41, 34))
  5750. createWall(CFrame.new(-0.232380569, 60.75, -1165.44067, 2.98023224e-08, 0, -0.999999881, 0, 1, 0, 0.999999881, 0, 2.98023224e-08), Vector3.new(21.5, 46.5, 71))
  5751. createWall(CFrame.new(85.5176086, 60.75, -1165.44067, 2.98023224e-08, 0, -0.999999881, 0, 1, 0, 0.999999881, 0, 2.98023224e-08), Vector3.new(21.5, 46.5, 66.5))
  5752. createWall(CFrame.new(136.517609, 60.75, -1068.69067, 2.98023224e-08, 0, -0.999999881, 0, 1, 0, 0.999999881, 0, 2.98023224e-08), Vector3.new(215, 46.5, 30.5))
  5753. createWall(CFrame.new(-36.9823761, 60.75, -1068.69067, 2.98023224e-08, 0, -0.999999881, 0, 1, 0, 0.999999881, 0, 2.98023224e-08), Vector3.new(215, 46.5, 20.5))
  5754. createWall(CFrame.new(44.2676506, 42.8013573, -333.105347, 2.81786487e-08, -9.70269021e-09, -1, 0.325568229, 0.945518553, -1.09093672e-15, 0.945518553, -0.325568229, 2.98023224e-08), Vector3.new(19.5, 9.5, 43))
  5755. createWall(CFrame.new(106.267624, 45.5, -1058.19067, 2.98023259e-08, 0, -1, 0, 1, 0, 1, 0, 2.98023259e-08), Vector3.new(196, 17, 33))
  5756. createWall(CFrame.new(39.0176239, 45.5, -987.940674, 2.98023259e-08, 0, -1, 0, 1, 0, 1, 0, 2.98023259e-08), Vector3.new(55.5, 17, 144.5))
  5757. createWall(CFrame.new(-19.482378, 45.5, -1058.94067, 2.98023259e-08, 0, -1, 0, 1, 0, 1, 0, 2.98023259e-08), Vector3.new(197.5, 17, 32.5))
  5758. createWall(CFrame.new(39.7676201, 45.5, -1145.44067, 2.98023259e-08, 0, -1, 0, 1, 0, 1, 0, 2.98023259e-08), Vector3.new(24.5, 17, 146))
  5759. createWall(CFrame.new(105.017624, 45, -1058.19067, 2.98023259e-08, 0, -1, 0, 1, 0, 1, 0, 2.98023259e-08), Vector3.new(196, 16, 35.5))
  5760. createWall(CFrame.new(39.0176239, 45, -988.940674, 2.98023259e-08, 0, -1, 0, 1, 0, 1, 0, 2.98023259e-08), Vector3.new(57.5, 16, 144.5))
  5761. createWall(CFrame.new(-18.482378, 45, -1058.94067, 2.98023259e-08, 0, -1, 0, 1, 0, 1, 0, 2.98023259e-08), Vector3.new(197.5, 16, 34.5))
  5762. createWall(CFrame.new(39.7676201, 45, -1143.69067, 2.98023259e-08, 0, -1, 0, 1, 0, 1, 0, 2.98023259e-08), Vector3.new(28, 16, 146))
  5763. createWall(CFrame.new(24.7676239, 46, -1016.19067, 2.98023259e-08, 0, -1, 0, 1, 0, 1, 0, 2.98023259e-08), Vector3.new(13, 18, 28))
  5764. createWall(CFrame.new(2.2676239, 45.5, -1031.94067, 2.98023259e-08, 0, -1, 0, 1, 0, 1, 0, 2.98023259e-08), Vector3.new(44.5, 17, 28))
  5765. createWall(CFrame.new(1.01762342, 46, -1041.44067, 2.98023259e-08, 0, -1, 0, 1, 0, 1, 0, 2.98023259e-08), Vector3.new(63.5, 18, 25.5))
  5766. createWall(CFrame.new(4.76762342, 50, -1050.69067, 2.98023259e-08, 0, -1, 0, 1, 0, 1, 0, 2.98023259e-08), Vector3.new(44, 26, 23))
  5767. createWall(CFrame.new(-1.98237896, 50, -1124.94067, 2.98023259e-08, 0, -1, 0, 1, 0, 1, 0, 2.98023259e-08), Vector3.new(28.5, 26, 19.5))
  5768. createWall(CFrame.new(13.267621, 50, -1130.19067, 2.98023259e-08, 0, -1, 0, 1, 0, 1, 0, 2.98023259e-08), Vector3.new(18, 26, 50))
  5769. createWall(CFrame.new(82.0176239, 50, -1130.19067, 2.98023259e-08, 0, -1, 0, 1, 0, 1, 0, 2.98023259e-08), Vector3.new(18, 26, 18.5))
  5770. createWall(CFrame.new(84.2676239, 50, -1124.44067, 2.98023259e-08, 0, -1, 0, 1, 0, 1, 0, 2.98023259e-08), Vector3.new(29.5, 26, 14))
  5771. createWall(CFrame.new(84.2676239, 50, -1028.19067, 2.98023259e-08, 0, -1, 0, 1, 0, 1, 0, 2.98023259e-08), Vector3.new(20, 26, 14))
  5772. createWall(CFrame.new(75.5176239, 50, -1018.94067, 2.98023259e-08, 0, -1, 0, 1, 0, 1, 0, 2.98023259e-08), Vector3.new(9.5, 26, 31.5))
  5773. createWall(CFrame.new(78.0176239, 45.25, -1024.19067, 2.98023259e-08, 0, -1, 0, 1, 0, 1, 0, 2.98023259e-08), Vector3.new(20, 16.5, 26.5))
  5774. createWall(CFrame.new(50.1426544, 61.5, -157.565704, 2.98023224e-08, 0, -0.999999881, 0, 1, 0, 0.999999881, 0, 2.98023224e-08), Vector3.new(19.75, 36, 15.25))
  5775. wait(.1)
  5776. if _G.destroy_map then
  5777. workspace.Terrain:Clear()
  5778. for i,v in pairs(workspace:GetChildren()) do
  5779. if v.ClassName == "Model" or v.ClassName == "Part" or v.ClassName == "UnionOperation" or v.ClassName == "WedgePart" then
  5780. if v ~= game.Players.LocalPlayer.Character and v.Name ~= regionPartName then
  5781. v:Destroy()
  5782. end
  5783. end
  5784. end
  5785. for i,room in pairs(workspace.dungeon:GetChildren()) do
  5786. for j, v in pairs(room:GetChildren()) do
  5787. if v.ClassName == "Model" or v.ClassName == "Part" or v.ClassName == "UnionOperation" or v.ClassName == "WedgePart" and not v:FindFirstChild("HumanoidRootPart") then
  5788. if v ~= game.Players.LocalPlayer.Character and v.Name ~= regionPartName then
  5789. v:Destroy()
  5790. end
  5791. end
  5792. end
  5793. end
  5794. end
  5795. while not game:GetService("Workspace").dungeon.bossRoom.enemyFolder:FindFirstChildOfClass("Model") do
  5796. wait(1)
  5797. end
  5798. while not game:GetService("Workspace").dungeon.bossRoom.enemyFolder:FindFirstChildOfClass("Model"):FindFirstChild("HumanoidRootPart") do
  5799. wait(1)
  5800. end
  5801. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = game:GetService("Workspace").dungeon.bossRoom.enemyFolder:FindFirstChildOfClass("Model"):FindFirstChild("HumanoidRootPart").CFrame * CFrame.new(0,0,5)
  5802. end
  5803.  
  5804. function desertFix()
  5805. local dun = waitForExist(workspace, "dungeon")
  5806. for i,v in pairs(dun:GetChildren()) do
  5807. for j, k in pairs(v:GetChildren()) do
  5808. if k.ClassName == "Part" then
  5809. if k.Name == "barrier" then
  5810. k:Destroy()
  5811. end
  5812. local n = k.Orientation.X
  5813. if n ~= math.floor(n) then
  5814. k:Destroy()
  5815. end
  5816. local n = k.Orientation.Y
  5817. if n ~= math.floor(n) then
  5818. k:Destroy()
  5819. end
  5820. local n = k.Orientation.Z
  5821. if n ~= math.floor(n) then
  5822. k:Destroy()
  5823. end
  5824. elseif k.ClassName == "Model" or k.ClassName == "UnionOperation" or k.ClassName == "WedgePart" then
  5825. k:Destroy()
  5826. end
  5827. end
  5828. end
  5829. end
  5830.  
  5831. function eggFix()
  5832. game.ReplicatedStorage.remotes.equipSet:FireServer(_G.eggClass)
  5833. local dun = waitForExist(workspace, "Map")
  5834. for i,v in pairs(dun.Parts.Terrain:GetChildren()) do
  5835. cs:AddTag(v, "RayWhitelist")
  5836. end
  5837. for i,v in pairs(dun.Parts.Misc:GetChildren()) do
  5838. cs:AddTag(v, "RayWhitelist")
  5839. end
  5840. for i,v in pairs(dun.Barriers:GetChildren()) do
  5841. cs:AddTag(v, "RayWhitelist")
  5842. end
  5843. for i,v in pairs(dun.Models:GetChildren()) do
  5844. cs:AddTag(v, "RayWhitelist")
  5845. end
  5846. dun.Props:Destroy()
  5847. wait(5)
  5848. while not game:GetService("Workspace").dungeon.bossRoom.enemyFolder:FindFirstChild("Egg Mech") do
  5849. wait(1)
  5850. end
  5851. while not game:GetService("Workspace").dungeon.bossRoom.enemyFolder:FindFirstChild("Egg Mech"):FindFirstChild("HumanoidRootPart") do
  5852. wait(1)
  5853. end
  5854. -- cant path to second boss, paths to second boss area until hes in position
  5855. forceObjectiveExists = true
  5856. local _,_,_,root = getPlayer()
  5857. thePart.CFrame = CFrame.new(570.516174, 124.525772, 5.6751118)
  5858. while root.Position.Y > 120 do
  5859. wait()
  5860. end
  5861. forceObjectiveExists = false
  5862. end
  5863.  
  5864. function fpsBoost()
  5865. if _G.fpsBoost then
  5866. local decalsyeeted = true -- Leaving this on makes games look shitty but the fps goes up by at least 20.
  5867. local g = game
  5868. local w = g.Workspace
  5869. local l = g.Lighting
  5870. local t = w.Terrain
  5871. sethiddenproperty(l,"Technology",2)
  5872. sethiddenproperty(t,"Decoration",false)
  5873. t.WaterWaveSize = 0
  5874. t.WaterWaveSpeed = 0
  5875. t.WaterReflectance = 0
  5876. t.WaterTransparency = 0
  5877. l.GlobalShadows = false
  5878. l.FogEnd = 9e9
  5879. l.Brightness = 0
  5880. settings().Rendering.QualityLevel = "Level01"
  5881. for i, v in pairs(g:GetDescendants()) do
  5882. if v:IsA("Part") or v:IsA("Union") or v:IsA("CornerWedgePart") or v:IsA("TrussPart") then
  5883. v.Material = "Plastic"
  5884. v.Reflectance = 0
  5885. elseif v:IsA("Decal") or v:IsA("Texture") and decalsyeeted then
  5886. v.Transparency = 1
  5887. elseif v:IsA("ParticleEmitter") or v:IsA("Trail") then
  5888. v.Lifetime = NumberRange.new(0)
  5889. elseif v:IsA("Explosion") then
  5890. v.BlastPressure = 1
  5891. v.BlastRadius = 1
  5892. elseif v:IsA("Fire") or v:IsA("SpotLight") or v:IsA("Smoke") or v:IsA("Sparkles") then
  5893. v.Enabled = false
  5894. elseif v:IsA("MeshPart") then
  5895. v.Material = "Plastic"
  5896. v.Reflectance = 0
  5897. v.TextureID = 10385902758728957
  5898. end
  5899. end
  5900. for i, e in pairs(l:GetChildren()) do
  5901. if e:IsA("BlurEffect") or e:IsA("SunRaysEffect") or e:IsA("ColorCorrectionEffect") or e:IsA("BloomEffect") or e:IsA("DepthOfFieldEffect") then
  5902. e.Enabled = false
  5903. end
  5904. end
  5905. end
  5906. end
  5907.  
  5908. updatecheck = function()
  5909. local places = {
  5910. [5281215714] = { ['version'] = 46, ['name'] = "Volcanic Chambers" },
  5911. [4628698373] = { ['version'] = 39, ['name'] = "Orbital Outpost" },
  5912. [4113459044] = { ['version'] = 68, ['name'] = "Steampunk Sewers" },
  5913. [3737465474] = { ['version'] = 80, ['name'] = "Ghastly Harbor" },
  5914. [3488584454] = { ['version'] = 93, ['name'] = "The Canals" },
  5915. [3277965370] = { ['version'] = 110, ['name'] = "Samurai Palace" },
  5916. [3119903031] = { ['version'] = 117, ['name'] = "The Underworld" },
  5917. [3041739550] = { ['version'] = 134, ['name'] = "King's Palace" },
  5918. [2988891534] = { ['version'] = 424, ['name'] = "Pirate Island" },
  5919. [2743806150] = { ['version'] = 352, ['name'] = "Winter Outpost" },
  5920. [2606294912] = { ['version'] = 473, ['name'] = "Desert Temple" },
  5921. [4865331948] = { ['version'] = 473, ['name'] = "Easter Event" },
  5922. [3220974599] = { ['version'] = 89, ['name'] = "Wave Defense" },
  5923. [4286254333] = { ['version'] = 74, ['name'] = "Boss Raid" },
  5924. [2414851778] = { ['version'] = 4360, ['name'] = "Lobby" },
  5925. [3220968688] = { ['version'] = 152, ['name'] = "Lobby2" },
  5926. }
  5927. if places[game.PlaceId] ~= nil and places[game.PlaceId]['version'] ~= game.PlaceVersion then
  5928. --failReport("Ban Prevention, DM MRob on discord", "PlaceId: "..tostring(game.PlaceId).." CurrentPlaceVersion: ".. tostring(places[game.PlaceId]['version']).." NewPlaceVersion: "..tostring(game.PlaceVersion) )
  5929. end
  5930. end
  5931. spawn(updatecheck)
  5932. if game.PlaceId == 6216785535 then
  5933. webhookLocals.dungeonName = "Oceanic"
  5934. spawn(oceanFix)
  5935. elseif game.PlaceId == 5281215714 then -- volcanic
  5936. webhookLocals.dungeonName = "Volcanic Chambers"
  5937. spawn(volcanicFix)
  5938. elseif game.PlaceId == 4628698373 then -- orbital
  5939. webhookLocals.dungeonName = "Orbital Outpost"
  5940. spawn(fixOrbital)
  5941. elseif game.PlaceId == 4113459044 then -- steam
  5942. webhookLocals.dungeonName = "Steampunk Sewers"
  5943. spawn(steamFix)
  5944. elseif game.PlaceId == 3737465474 then -- ghastly
  5945. webhookLocals.dungeonName = "Ghastly Harbor"
  5946. spawn(ghastlyFix)
  5947. elseif game.PlaceId == 3488584454 then -- canals
  5948. webhookLocals.dungeonName = "The Canals"
  5949. spawn(canalsFix)
  5950. elseif game.PlaceId == 3277965370 then -- samurai
  5951. webhookLocals.dungeonName = "Samurai Palace"
  5952. spawn(samuraiFix)
  5953. elseif game.PlaceId == 3119903031 then -- underworld
  5954. webhookLocals.dungeonName = "The Underworld"
  5955. spawn(underworldFix)
  5956. elseif game.PlaceId == 3041739550 then -- king
  5957. webhookLocals.dungeonName = "Kings Palace"
  5958. spawn(kingFix)
  5959. elseif game.PlaceId == 2988891534 then -- pirate
  5960. webhookLocals.dungeonName = "Pirate Island"
  5961. spawn(pirateFix)
  5962. elseif game.PlaceId == 2743806150 then -- winter
  5963. webhookLocals.dungeonName = "Winter Outpost"
  5964. spawn(winterFix)
  5965. elseif game.PlaceId == 2606294912 then -- desert
  5966. webhookLocals.dungeonName = "Desert Temple"
  5967. spawn(desertFix)
  5968. elseif game.PlaceId == 4286254333 then -- boss raid
  5969. webhookLocals.dungeonName = "Boss Raid"
  5970. normalDungeon = false
  5971. bossRaid = true
  5972. elseif workspace:FindFirstChild("currentWave") then -- wave defense
  5973. webhookLocals.dungeonName = "Wave Defense"
  5974. waveDefense = true
  5975. normalDungeon = false
  5976. elseif game.PlaceId == 4865331948 then -- easter egg event
  5977. waveDefense = false
  5978. normalDungeon = false
  5979. eggEvent = true
  5980. spawn(eggFix)
  5981. end
  5982. if normalDungeon or waveDefense or eggEvent then -- same remote for wave defense and noraml dungeon
  5983. game:GetService("ReplicatedStorage").remotes.changeStartValue:FireServer()
  5984. if game.PlaceId == 2606294912 then
  5985. wait(3)
  5986. end
  5987. elseif bossRaid then -- remote to start dungeon on boss raid
  5988. workspace:WaitForChild("tier")
  5989. game.ReplicatedStorage.remotes.readyUp:FireServer()
  5990. end
  5991. spawn(fpsBoost)
  5992.  
  5993. function deleteFirstBarrier()
  5994. if game:GetService("Workspace"):FindFirstChild("dungeon") then
  5995. if game:GetService("Workspace").dungeon.initialRoom:FindFirstChild("barrier") then
  5996. game:GetService("Workspace").dungeon.initialRoom.barrier:Destroy()
  5997. end
  5998. end
  5999. end
  6000.  
  6001. game.Players.LocalPlayer.Character.Humanoid.AutoRotate = false
  6002.  
  6003. if _G.hide_projectiles then
  6004. spawn(function()
  6005. if game.ReplicatedStorage:FindFirstChild("projectiles") then
  6006. game.ReplicatedStorage.projectiles:Destroy()
  6007. end
  6008. if game.Players.LocalPlayer.PlayerGui:FindFirstChild("abilityLocal") then
  6009. game.Players.LocalPlayer.PlayerGui.abilityLocal.Disabled = true
  6010. if game.Players.LocalPlayer.PlayerGui.abilityLocal:FindFirstChild("abilityLocal2") then
  6011. game.Players.LocalPlayer.PlayerGui.abilityLocal.abilityLocal2.Disabled = true
  6012. end
  6013. end
  6014. if game.Players.LocalPlayer.PlayerScripts:FindFirstChild("MapSpecificLocals") then
  6015. --game.Players.LocalPlayer.PlayerScripts.MapSpecificLocals.Disabled = true
  6016. end
  6017. end)
  6018. end
  6019.  
  6020. spawn(initHitBox)
  6021. spawn(rayCollectionService)
  6022. spawn(deleteFirstBarrier)
  6023.  
  6024. -- script end
  6025.  
  6026. else
  6027. --Debug("Authentication Check 2", "Fail")
  6028. failReport("Failed to Authenticate", "no info") -- failed to auth
  6029. end
  6030. else
  6031. --Debug("Authentication Check 1", "Fail")
  6032. failReport("Failed to Authenticate", "no info") -- failed to auth
  6033. end
Add Comment
Please, Sign In to add comment