Advertisement
aesnike

DQ auto AI

Oct 23rd, 2024 (edited)
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 324.83 KB | None | 0 0
  1.  
  2. _G.key = "IntrovertsABitch"
  3. _G.id = "IntrovertAlreadyExitScammedAfterAMonth?"
  4. -- AI Settings
  5. -- AI Behavioral Settings
  6. _G.abilityRange = 70 -- the target must be atleast 65 studs away before using abilities
  7. -- ABILITY RANGE MUST BE GREATER THAN BOSSRANGE AND MOBRANGE TO HIT ANYTHING
  8. _G.bossRange = 20 -- this is how far away the bot will try stay away from bosses
  9. _G.mobRange = 30 -- this is how far away the bot will try to stay away from mobs
  10. _G.ignoreAbilityRange = false
  11. _G.smallTeleports = true -- if true, player teleports to places, might want to lower walkspeed alittle or else you'll probably get kicked
  12. _G.teleportDuringBossOnly = true -- if true, only use smallTeleports when its time for a boss
  13. _G.doInstakill = true
  14. -- AI Visual Settings
  15. _G.showTarget = true -- this will highlight each target in a red box
  16. _G.showPath = true
  17. -- AI Performance
  18. _G.extremelyFast = true -- makes the ai think exponentially faster, but might lag for peopel
  19. -- Lobby Settings
  20. _G.maxWaitTimeInLobby = 0 -- this is how long itll randomly walk around for before going into a dungeon
  21. _G.collect_daily_reward = true
  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. -- Boss Raid Settings
  31. _G.boss_raid = true
  32. _G.auto_choose_raid_boss_tier = true
  33. _G.boss_raid_tier = 1
  34. -- Wave Defense Settings
  35. _G.wavedefense = false
  36. -- Easter Event Settings
  37. _G.easter_enable = false
  38. _G.eggClass = "Mage"
  39. -- Party Settings
  40. -- Hosting Settings
  41. _G.wait_for_friends = false
  42. _G.friends = {"Friend 1", "Friend 2"}
  43. -- Joining Settings
  44. _G.wait_for_friends_to_host = false
  45. _G.host_name = "Name of the host"
  46. -- Multi-Instance Settings
  47. _G.multi_roblox = false
  48. _G.host_name_key = {"roblox account 1 name"} -- this account creates parties
  49.  
  50. _G.name_key_list = {
  51. {"roblox account 2 name"},
  52. {"roblox account 3 name"},
  53. }
  54. -- Autosell Settings
  55. _G.autosell = true
  56. _G.testSell = false -- prints out what items would've been sold instead of selling the items
  57. _G.keep_items_level_requirement = 156 -- keeps items that level requirements are above this number
  58. _G.keep2spells = true -- sell spells extra spells if you have 2 already
  59. _G.keep_items_from_class = {
  60. ["physical"] = false,
  61. ["mage"] = false,
  62. } --[[ only keeps items that fall within the given class ]]
  63. _G.keeprarities = {
  64. ['legendary'] = true,
  65. ['epic'] = false,
  66. ['rare'] = false,
  67. ['uncommon'] = false,
  68. ['common'] = false,
  69. }
  70. _G.itemlist ={
  71. --Volcanic Chambers Armor
  72. ["Lava King's Warrior Helmet"] = {"rare","epic"},
  73. ["Lava King's Warrior Armor"] = {"rare","epic"},
  74. ["Lava King's Mage Helmet"] = {"rare","epic"},
  75. ["Lava King's Mage Armor"] = {"rare","epic"},
  76. ["Molten Forged Mage Helmet"] = {"epic"},
  77. ["Molten Forged Mage Armor"] = {"epic"},
  78. ["Molten Forged Warrior Helmet"] = {"epic"},
  79. ["Molten Forged Warrior Armor"] = {"epic"},
  80. -- Warrior Skills
  81. ["Twin Slash"] = {"epic"},
  82. ["Enhanced Inner Rage"] = {"legendary"},
  83. ["Lava Barrage"] = {"epic"},
  84. ["Blade Fall"] = {"epic"},
  85. -- Others
  86. }
  87. -- Auto Upgrade Settings
  88. _G.auto_stat_upgrade = false
  89. _G.stat = "physicalPower" -- "physicalPower", "stamina", "spellPower"
  90. _G.auto_equip_gear = false
  91. _G.equip_type = "physical" -- "physical", "spell"
  92. _G.auto_upgrade_equip = false
  93. _G.autoEquipSpell = false
  94. _G.spellType = "spell" -- "physical", "spell"
  95. -- ANTI LAG SETTINGS
  96. _G.wall_transparency = .5
  97. _G.optimize_mobs = false
  98. _G.destroy_map = true
  99. _G.del_armor= true
  100. _G.del_weapon = true
  101. _G.hide_projectiles = true
  102.  
  103. _G.loadSlow = false
  104. _G.fpsBoost = false
  105. -- UI Settings
  106. _G.edit_ui = true
  107. _G.UI_portait_image = 'rbxassetid://3357197641'
  108. _G.UI_health = "health"
  109. _G.UI_money = "money"
  110. _G.UI_name = "name"
  111. _G.UI_xp = "xp"
  112. _G.UI_lvl = "lvl"
  113. -- Discord Webhook
  114. _G.webhookEnabled = true
  115. _G.webhookLink =
  116. "https://discord.com/api/webhooks/730764419872718878/yOcIsPJLNkNvWtWoQLQsSD2xlcrEzbPwxBi33GtK3A1eH9IyCsLCXIFRSiNeqNE8AFOf"
  117. -- whitelist start
  118. while not game:IsLoaded() do
  119. wait(.1)
  120. end
  121. while not game.Players do
  122. wait(.1)
  123. end
  124. while not game.Players.LocalPlayer do
  125. wait(.1)
  126. end
  127.  
  128. -- script here
  129.  
  130.  
  131. -- script here
  132.  
  133. ▄████████
  134.  
  135. ▄█
  136.  
  137. █▄
  138.  
  139. ███
  140.  
  141. ███ ███
  142.  
  143. ███
  144.  
  145. ███
  146.  
  147. █▀
  148.  
  149. ███
  150.  
  151. ███
  152.  
  153. ███
  154.  
  155. ███
  156.  
  157. ▀███████████ ███
  158.  
  159. ███
  160.  
  161. ███ ███
  162.  
  163. ███
  164.  
  165. ███
  166.  
  167. ▄█
  168.  
  169. ███ ███ ▄█▄ ███
  170.  
  171. ▄████████▀
  172.  
  173. ▀███▀███▀
  174.  
  175. local stuffTransparency = 1
  176. local abilityRange = _G.abilityRange
  177. local mobRange = _G.mobRange
  178. local bossRange = _G.bossRange
  179. local extremelyFast = _G.extremelyFast
  180. local walkspeed = 30
  181. local insert = gamer[3]
  182. local remove = gamer[4]
  183. local bossRaid = false
  184. local normalDungeon = true
  185. local waveDefense = false
  186. local eggEvent = false
  187. if sDebug then
  188. stuffTransparency = .5
  189. end
  190. -- stops loops when dungeon progress changes
  191. local gameOver = false
  192. -- variable for hitbox
  193. local bossPresent = false
  194. -- follow path variables
  195. _G.auto_attack = true
  196. _G.smallTeleportVal = 15
  197. -- expiermental instakilltable
  198. local instakillTable = {
  199. ["Sand Peasant"] = true,
  200. ["Sand Giant"] = true,
  201. ["Frost Minion"] = true,
  202. ["Frost Wizard"] = true,
  203. ["Pirate Rifleman"] = true,
  204. ["Pirate Savage"] = true,
  205. ["Elementalist"] = true,
  206. ["King's Guard"] = true,
  207. ["Dark Mage"] = true,
  208. ["Demon Warrior"] = true,
  209. ["Samurai Swordsman"] = true,
  210. ["Bodyguard"] = true,
  211. ["Burly Enforcer"] = true,
  212. ["Raider"] = true,
  213. ["Harpoon Gunner"] = true,
  214. ["Cannon Crab"] = true,
  215. ["Spinner Bot"] = true,
  216. ["Fighter Bot"] = true,
  217. ["Cog Shooter"] = true,
  218. ["Hammer Bot"] = true,
  219. ["Hologram Assassin"] = true,
  220. ["Hologram Warrior"] = true,
  221. ["Chicken Mage"] = true,
  222. ["Chicken Brawler"] = true,
  223. }
  224. local VirtualUser=game:service'VirtualUser' -- afk
  225. game:service'Players'.LocalPlayer.Idled:connect(function()
  226. VirtualUser:CaptureController()
  227. VirtualUser:ClickButton2(Vector2.new())
  228. end)
  229.  
  230. local vu = game:GetService("VirtualUser") -- second afk script
  231. game:GetService("Players").LocalPlayer.Idled:connect(function()
  232. vu:Button2Down(Vector2.new(0,0),workspace.CurrentCamera.CFrame)
  233. wait(1)
  234. vu:Button2Up(Vector2.new(0,0),workspace.CurrentCamera.CFrame)
  235. end)
  236. function AIMovementInLobby()
  237. local clock = 0
  238. local doneMoving = false
  239. _G.ai_done = false
  240. local zombie = game.Players.LocalPlayer.Character
  241. local Zombiehumanoid = zombie.Humanoid
  242. spawn(function()
  243. local PathfindingService = game:GetService("PathfindingService")
  244. local randomWayPoints = {
  245. {
  246. Vector3.new(29.4448986, 10.6809521, 1005.28198),
  247. },
  248. {
  249. Vector3.new(120.158272, 5.05413818, 1005.26672),
  250. },
  251. {
  252. Vector3.new(145.121567, 4.79999876, 1028.203),
  253. },
  254. {
  255. Vector3.new(138.910416, 4.85120726, 1080.46936),
  256. },
  257. {
  258. Vector3.new(50.0033913, 5.40119982, 1025.59448),
  259. Vector3.new(12.7496023, 4.94986296, 1046.24768),
  260. },
  261. {
  262. Vector3.new(56.9857826, 5.10824966, 1066.79846),
  263. Vector3.new(40.124321, 5, 1055.27551),
  264. },
  265. {
  266. Vector3.new(28.1154366, 4.8208971, 1041.24829),
  267. },
  268. {
  269. Vector3.new(8.27422428, 4.80000019, 1034.32092),
  270. Vector3.new(-36.9196014, 4.80000019, 1022.45972),
  271. Vector3.new(-93.4016876, 5.84888077, 1107.07776),
  272. Vector3.new(-134.147461, 5.84888077, 1080.1228),
  273. },
  274. {
  275. Vector3.new(8.27422428, 4.80000019, 1034.32092),
  276. Vector3.new(-36.9196014, 4.80000019, 1022.45972),
  277. Vector3.new(-69.0564728, 5.87887812, 1101.21545),
  278. },
  279. {
  280. Vector3.new(8.27422428, 4.80000019, 1034.32092),
  281. Vector3.new(-36.9196014, 4.80000019, 1022.45972),
  282. Vector3.new(-57.2358208, 5.81887817, 1059.91345),
  283. },
  284. {
  285. Vector3.new(104.851845, 4.80013657, 1029.08655),
  286. Vector3.new(66.5649185, 11.1366758, 981.947205),
  287. Vector3.new(58.9183998, 15.5042267, 969.327759),
  288.  
  289. },
  290. {
  291.  
  292. Vector3.new(106.917046, 5.1029253, 1033.20129),
  293. Vector3.new(126.421371, 4.80742407, 1017.41754),
  294. Vector3.new(109.249374, 4.99999857, 998.975525),
  295.  
  296. },
  297. {
  298.  
  299. Vector3.new(37.6123543, 5.1142168, 1041.55664),
  300. Vector3.new(8.08811092, 11.3835154, 1087.04956),
  301. Vector3.new(3.8377471, 4.81672573, 1051.76331),
  302.  
  303. },
  304. {
  305.  
  306. Vector3.new(74.2765732, 4.79785824, 1034.74109),
  307. Vector3.new(59.2142448, 5, 1081.58557),
  308. Vector3.new(23.250845, 5.6657753, 1021.79108),
  309.  
  310. },
  311. {
  312.  
  313. Vector3.new(75.4334259, 5.07404947, 1048.54626),
  314. Vector3.new(59.5415268, 9.24949932, 1002.75214),
  315. Vector3.new(21.7118225, 26.9064331, 982.54895),
  316.  
  317. },
  318. {
  319.  
  320. Vector3.new(86.8510361, 4.95114946, 1012.60217),
  321. Vector3.new(78.8645248, 5.21786928, 1063.84338),
  322. Vector3.new(39.1454849, 5, 1062.37744),
  323.  
  324. },
  325. {
  326.  
  327. Vector3.new(85.5781631, 5.19999838, 1044.32336),
  328. Vector3.new(7.32494354, 4.79999876, 1031.84668),
  329. Vector3.new(-16.918314, 7.10381889, 999.609253),
  330.  
  331. },
  332. {
  333.  
  334. Vector3.new(85.5781631, 5.19999838, 1044.32336),
  335. Vector3.new(7.32494354, 4.79999876, 1031.84668),
  336. Vector3.new(-60.5333252, 4.90647602, 1025.54321),
  337.  
  338. },
  339. {
  340.  
  341. Vector3.new(85.5781631, 5.19999838, 1044.32336),
  342. Vector3.new(7.32494354, 4.79999876, 1031.84668),
  343. Vector3.new(-76.8479233, 4.87704134, 1009.79724),
  344.  
  345. },
  346. {
  347.  
  348. Vector3.new(116.443657, 5.34364605, 1031.54187),
  349. Vector3.new(136.55043, 4.80000019, 1068.89758),
  350. Vector3.new(96.5291367, 5.04907751, 1055.71301),
  351.  
  352. },
  353. {
  354.  
  355. Vector3.new(136.55043, 4.80000019, 1068.89758),
  356. Vector3.new(96.5291367, 5.04907751, 1055.71301),
  357. Vector3.new(116.443657, 5.34364605, 1031.54187),
  358.  
  359. },
  360. {
  361.  
  362. Vector3.new(84.3650131, 4.95895767, 1011.05023),
  363. Vector3.new(28.3323727, 5.77999735, 1021.42993),
  364. Vector3.new(32.4552689, 5, 1067.22888),
  365.  
  366. },
  367. }
  368. -- Variables for the zombie, its humanoid, and destination
  369.  
  370. for i,v in pairs(randomWayPoints[math.random(1,#randomWayPoints)]) do
  371. local path = PathfindingService:CreatePath()
  372. -- Compute the path
  373. path:ComputeAsync(zombie.HumanoidRootPart.Position, v)
  374. local waypoints = path:GetWaypoints()
  375. -- Get the path waypoints
  376. local wayPointParts = {}
  377. -- Loop through waypoints
  378. local number2 = 0
  379. for _, waypoint in pairs(waypoints) do
  380. if _G.ai_done then break end
  381. number2 = number2 + .5
  382. local part = Instance.new("Part")
  383. part.Shape = "Ball"
  384. part.Material = "Neon"
  385. local number = (math.sin(number2) + 1.5) /2
  386. part.Size = Vector3.new(number, number, number)
  387. part.Position = waypoint.Position
  388. part.Anchored = true
  389. part.CanCollide = false
  390. part.Parent = game.Workspace
  391. insert(wayPointParts, part)
  392. end
  393. for i, waypoint in pairs(waypoints) do
  394. if _G.ai_done then break end
  395. wayPointParts[i].BrickColor = BrickColor.new("Bright blue")
  396. Zombiehumanoid:MoveTo(waypoint.Position)
  397. Zombiehumanoid.MoveToFinished:Wait()
  398. wayPointParts[i].BrickColor = BrickColor.new("Fire Yellow")
  399. end
  400. end
  401. doneMoving = true
  402. end)
  403. while not(doneMoving or clock >_G.maxWaitTimeInLobby) do
  404. clock = clock+.1
  405. wait(.1)
  406. end
  407. _G.ai_done = true
  408. Zombiehumanoid:MoveTo(zombie.HumanoidRootPart.Position)
  409. end
  410. function autoupgrade()
  411. if
  412. _G.auto_stat_upgrade then
  413. if game.Players.LocalPlayer.skillPoints.Value > 0 then
  414. while game.Players.LocalPlayer.skillPoints.Value > 0 do
  415. game:GetService("ReplicatedStorage").remotes.spendSkillPoint:FireServer(_G.stat)
  416. wait()
  417. end
  418. end
  419. end
  420. end
  421. function getItemType(v, includeHealth)
  422. if v.health == nil then -- is a weapon
  423.  
  424. if v.spellPower < v.physicalDamage then
  425. return "physical"
  426. else
  427. return "mage"
  428. end
  429. else -- is an armor
  430. if v.spellPower > v.physicalPower then
  431. if includeHealth then
  432. if v.spellPower > v.health then
  433. return "mage"
  434. else
  435. return "guardian"
  436. end
  437. else
  438. return "mage"
  439. end
  440. else
  441. if includeHealth then
  442. if v.physicalPower > v.health then
  443. return "physical"
  444. else
  445. return "guardian"
  446. end
  447. else
  448. return "physical"
  449. end
  450. end
  451. end
  452. end
  453. function lobbyStrCheck(a, b)
  454. local la, lb = string.lower(a), string.lower(b)
  455. la = string.gsub(la, "'", "") -- remove ' from item name
  456. lb = string.gsub(lb, "'", "") -- remove ' from item name
  457. la = string.gsub(la, "s", "") -- remove s from item name
  458. lb = string.gsub(lb, "s", "") -- remove s from item name
  459. return la == lb
  460. end
  461. function checkSell(rare, name) -- vital function
  462. for itemName,rareTable in pairs(_G.itemlist) do
  463. if lobbyStrCheck(itemName, name) then
  464. for _, j in pairs(rareTable) do
  465. if rare == j then
  466. return false
  467. end
  468. end
  469. end
  470. end
  471. return not _G.keeprarities[rare]
  472. end
  473. local function sell() -- autosell script bring all together
  474. if _G.autosell then
  475. local tallyList = {}
  476. local itemType, gitems
  477. gitems = getPlayerInvy(game.Players.LocalPlayer)
  478. for itemFolderName,itemFolder in pairs(gitems) do
  479. gitems = getPlayerInvy(game.Players.LocalPlayer)
  480.  
  481. if itemFolderName == "weapons" or itemFolderName == "chests" or
  482. itemFolderName == "helmets" then
  483. for i, item in pairs(itemFolder) do
  484. itemType = getItemType(item, false)
  485. local itemTypeCheck = not _G.keep_items_from_class[itemType]
  486. if not item.equipped and (checkSell(item.rarity, item.name) and
  487. item.levelReq < _G.keep_items_level_requirement and itemTypeCheck) then
  488. if itemFolderName == "weapons" then
  489. if _G.testSell then
  490. print('MROBSWAG Selling: ', item.name)
  491. else
  492. game:GetService("ReplicatedStorage").remotes.sellItemEvent:FireServer({ ["ability"]
  493. = { }, ["helmet"]= { }, ["chest"]= { }, ["weapon"]= { (tonumber(string.sub(i,
  494. 8))) } })
  495. end
  496. elseif itemFolderName == "chests" then
  497. if _G.testSell then
  498. print('MROBSWAG Selling: ', item.name)
  499. else
  500. game:GetService("ReplicatedStorage").remotes.sellItemEvent:FireServer({ ["ability"]
  501. = { }, ["helmet"]= { }, ["chest"]= { (tonumber(string.sub(i, 7))) }, ["weapon"]=
  502. { } })
  503. end
  504. elseif itemFolderName == "helmets" then
  505. if _G.testSell then
  506. print('MROBSWAG Selling: ', item.name)
  507. else
  508. game:GetService("ReplicatedStorage").remotes.sellItemEvent:FireServer({ ["ability"]
  509. = { }, ["helmet"]= { (tonumber(string.sub(i, 8))) }, ["chest"]= { }, ["weapon"]=
  510. { } })
  511. end
  512. end
  513. end
  514. end
  515. end
  516. if itemFolderName == "abilities" then
  517. for i, item in pairs(gitems.abilities) do
  518. if tallyList[item.name] then
  519. tallyList[item.name] = tallyList[item.name] +1
  520. else
  521. tallyList[item.name] = 1
  522. end
  523. if not item.equipped.q and not item.equipped.e then
  524. if (checkSell(item.rarity, item.name) and item.levelReq <
  525. _G.keep_items_level_requirement) or (((tallyList[item.name] > 2) and
  526. _G.keep2spells)) then
  527. if _G.testSell then
  528. print('MROBSWAG Selling: ', item.name)
  529. else
  530. game:GetService("ReplicatedStorage").remotes.sellItemEvent:FireServer({ ["ability"]
  531. = {(tonumber(string.sub(i, 9))) }, ["helmet"]= { }, ["chest"]= { }, ["weapon"]= { }
  532. })
  533. end
  534. end
  535. end
  536.  
  537. end
  538. end
  539. end
  540. end
  541. end
  542. local function calculatePot(baseStat, maxUpgrade)
  543. local upgradeLevel = 1
  544. for i= 1, maxUpgrade do
  545. upgradeLevel = baseStat * .05
  546. if upgradeLevel >10 then
  547. upgradeLevel = 10
  548. end
  549. baseStat = baseStat + upgradeLevel
  550. end
  551. return math.floor(baseStat)
  552. end
  553. local function calcCost(totalUpg, currentUpgrade)
  554. local i = 0
  555. local r = 100
  556. for o = 1, totalUpg, 1 do
  557. local a = 0
  558. if (o > 1) then
  559. local s = 1.06 * r + 50
  560. if (220 < s - r) then
  561. a = r + 220
  562. else
  563. a = s
  564. end
  565. else
  566. a = r
  567. end
  568. if currentUpgrade < o then
  569. if o <= 466 then
  570. i = i + a
  571. else
  572. i = i + 100000
  573. a = 100000
  574. end
  575. end
  576. r = a
  577. end
  578. return i
  579. end
  580. function autoUpgradeEquip(equipType)
  581. if _G.auto_upgrade_equip then
  582. local gitems = getPlayerInvy(game.Players.LocalPlayer)
  583. if equipType == "chests" then
  584. for i,v in pairs(gitems.chests) do
  585. local upgradeAmount = v.maxUpgrades - v.currentUpgrade
  586. if v.equipped and upgradeAmount ~= 0 then
  587. if v.spellPower > v.physicalPower then
  588. game:GetService("ReplicatedStorage").remotes.upgradeItem:FireServer("chest",
  589. (tonumber(string.sub(i, 7))), "spell", upgradeAmount)
  590.  
  591. else
  592. game:GetService("ReplicatedStorage").remotes.upgradeItem:FireServer("chest",
  593. (tonumber(string.sub(i, 7))), "physical", upgradeAmount)
  594. end
  595. end
  596. end
  597. elseif equipType == "helmets" then
  598. for i,v in pairs(gitems.helmets) do
  599. local upgradeAmount = v.maxUpgrades - v.currentUpgrade
  600. if v.equipped and upgradeAmount ~= 0 then
  601. if v.spellPower > v.physicalPower then
  602. game:GetService("ReplicatedStorage").remotes.upgradeItem:FireServer("helmet",
  603. (tonumber(string.sub(i, 8))), "spell", upgradeAmount)
  604. else
  605. game:GetService("ReplicatedStorage").remotes.upgradeItem:FireServer("helmet",
  606. (tonumber(string.sub(i, 8))), "physical", upgradeAmount)
  607. end
  608. end
  609. end
  610. elseif equipType == "weapons" then
  611. for i,v in pairs(gitems.weapons) do
  612. local upgradeAmount = v.maxUpgrades - v.currentUpgrade
  613. if v.equipped and upgradeAmount ~= 0 then
  614. if v.spellPower > v.physicalDamage then
  615. game:GetService("ReplicatedStorage").remotes.upgradeItem:FireServer("weapon",
  616. (tonumber(string.sub(i, 8))), "spell", upgradeAmount)
  617. else
  618. game:GetService("ReplicatedStorage").remotes.upgradeItem:FireServer("weapon",
  619. (tonumber(string.sub(i, 8))), "physical", upgradeAmount)
  620. end
  621. end
  622. end
  623. end
  624. end
  625. end
  626.  
  627. it
  628.  
  629. local function _equipBestSpell(spellArray, typ)
  630. local bestVal, best, b = 0, nil
  631. for i,v in pairs(spellArray) do
  632. if v.name ~= "skip" then -- if i renamed a item to skip then dont compare
  633.  
  634. local d = v.description:lower()
  635. if d:find("spell") and typ == "spell" then -- if the description contains
  636. spell, then its probably a spellpower one
  637. if v.levelReq > bestVal then
  638. bestVal = v.levelReq
  639. best = i
  640. b = v.name
  641. end
  642. elseif d:find("physical") and typ == "physical" then -- if the
  643. description contains phyiscal, then its probably a phyiscal one
  644. if v.levelReq > bestVal then
  645. bestVal = v.levelReq
  646.  
  647. best = i
  648. b = v.name
  649. end
  650. end
  651. end
  652. end
  653. return best, b
  654. end
  655. local function equipBestSpell()
  656. if _G.autoEquipSpell then
  657. local gitems = getPlayerInvy(game.Players.LocalPlayer)
  658. local gabil = gitems.abilities
  659. local aBest, aName = _equipBestSpell(gabil, _G.spellType:lower()) -- finds
  660. ability with highest level
  661. for i,v in pairs(gitems.abilities) do -- remove one ability
  662. if v.name == aName then
  663. v.name = "skip"
  664. break
  665. end
  666. end
  667. local bBest, bName = _equipBestSpell(gabil, _G.spellType:lower()) -- finds
  668. another ability with highest level
  669. if aBest ~= nil and bBest ~= nil then
  670. print(bBest, aBest)
  671. game:GetService("ReplicatedStorage").remotes.equipItem:InvokeServer("ability",
  672. (tonumber(string.sub(aBest, 9))), "q") -- equips ability
  673. wait(1)
  674. game:GetService("ReplicatedStorage").remotes.equipItem:InvokeServer("ability",
  675. (tonumber(string.sub(bBest, 9))), "e") -- equips ability
  676. end
  677. end
  678. end
  679. local function autoEquipLvlGear()
  680. if _G.auto_equip_gear then
  681. print('autoEquip')
  682. local playerLevel = game.Players.LocalPlayer.leaderstats.Level.Value
  683. local gitems = getPlayerInvy(game.Players.LocalPlayer)
  684. local bestDamage = 0 -- CHESTS
  685. local bestEquip = nil
  686. if gitems.chests ~= nil then
  687. local gold = game.Players.LocalPlayer.leaderstats.Gold.Value
  688. for i,v in pairs(gitems.chests) do
  689. local upgradeAmount = v.maxUpgrades - v.currentUpgrade
  690. if _G.equip_type == "spell" and v.levelReq <= playerLevel and
  691. v.spellPower > v.physicalPower then
  692. local upgradeAmount = v.maxUpgrades - upgradeAmount
  693. local tempNum = calculatePot(v.spellPower, v.maxUpgrades, i)
  694. local canAfford = false
  695. if calcCost(v.maxUpgrades, v.currentUpgrade) < gold then
  696. canAfford = true
  697. end
  698. if (tempNum > bestDamage and canAfford) or (bestDamage <
  699. v.spellPower) then
  700. bestDamage = tempNum
  701. bestEquip = i
  702.  
  703. end
  704. end
  705. if _G.equip_type == "physical" and v.levelReq <= playerLevel and
  706. v.physicalPower > v.spellPower then
  707. local tempNum = calculatePot(v.physicalPower, upgradeAmount)
  708. local canAfford = false
  709. if calcCost(v.maxUpgrades, v.currentUpgrade) < gold then
  710. canAfford = true
  711. end
  712. if (tempNum > bestDamage and canAfford) or (bestDamage <
  713. v.physicalPower) then
  714. bestDamage = tempNum
  715. bestEquip = i
  716. end
  717. end
  718. end
  719. if not (bestEquip == nil) then
  720. game:GetService("ReplicatedStorage").remotes.equipItem:InvokeServer("chest",
  721. (tonumber(string.sub(bestEquip, 7))))
  722. end
  723. end
  724. wait(1)
  725. autoUpgradeEquip("helmets")
  726. wait(1)
  727. local bestDamage = 0 -- HELMETS
  728. local bestEquip = nil
  729. if gitems.helmets ~= nil then
  730. local gold = game.Players.LocalPlayer.leaderstats.Gold.Value
  731. for i,v in pairs(gitems.helmets) do
  732. local upgradeAmount = v.maxUpgrades - v.currentUpgrade
  733. if _G.equip_type == "spell" and v.levelReq <= playerLevel and
  734. v.spellPower > v.physicalPower then
  735. local tempNum = calculatePot(v.spellPower, upgradeAmount)
  736. local canAfford = false
  737. if calcCost(v.maxUpgrades, v.currentUpgrade) < gold then
  738. canAfford = true
  739. end
  740. if (tempNum > bestDamage and canAfford) or (bestDamage <
  741. v.spellPower) then
  742. bestDamage = tempNum
  743. bestEquip = i
  744. end
  745. end
  746. if _G.equip_type == "physical" and v.levelReq <= playerLevel and
  747. v.physicalPower > v.spellPower then
  748. local tempNum = calculatePot(v.physicalPower, upgradeAmount)
  749. local canAfford = false
  750. if calcCost(v.maxUpgrades, v.currentUpgrade) < gold then
  751. canAfford = true
  752. end
  753. if (tempNum > bestDamage and canAfford) or (bestDamage <
  754. v.physicalPower) then
  755. bestDamage = tempNum
  756. bestEquip = i
  757. end
  758. end
  759. end
  760. if not (bestEquip == nil) then
  761.  
  762. game:GetService("ReplicatedStorage").remotes.equipItem:InvokeServer("helmet",
  763. (tonumber(string.sub(bestEquip, 8))))
  764. end
  765. end
  766. wait(1)
  767. autoUpgradeEquip("chests")
  768. wait(1)
  769. local bestDamage = 0 -- WEAPONS
  770. local bestEquip = nil
  771. if gitems.weapons ~= nil then
  772. local gold = game.Players.LocalPlayer.leaderstats.Gold.Value
  773. for i,v in pairs(gitems.weapons) do
  774. local upgradeAmount = v.maxUpgrades - v.currentUpgrade
  775. if _G.equip_type == "spell" and v.levelReq <= playerLevel and
  776. v.spellPower > v.physicalDamage then
  777. local tempNum = calculatePot(v.spellPower, v.maxUpgrades)
  778. local canAfford = false
  779. if calcCost(v.maxUpgrades, upgradeAmount) < gold then
  780. canAfford = true
  781. end
  782. if (tempNum > bestDamage and canAfford) or (bestDamage <
  783. v.spellPower) then
  784. bestDamage = tempNum
  785. bestEquip = i
  786. end
  787. end
  788. if _G.equip_type == "physical" and v.levelReq <= playerLevel and
  789. v.physicalDamage > v.spellPower then
  790. local tempNum = calculatePot(v.physicalDamage, upgradeAmount)
  791. local canAfford = false
  792. if calcCost(v.maxUpgrades, v.currentUpgrade) < gold then
  793. canAfford = true
  794. end
  795. if (tempNum > bestDamage and canAfford) or (bestDamage <
  796. v.physicalDamage) then
  797. bestDamage = tempNum
  798. bestEquip = i
  799. end
  800. end
  801. end
  802. if not (bestEquip == nil) then
  803. game:GetService("ReplicatedStorage").remotes.equipItem:InvokeServer("weapon",
  804. (tonumber(string.sub(bestEquip, 8))))
  805. end
  806. end
  807. wait(1)
  808. autoUpgradeEquip("weapons")
  809. wait(1)
  810. end
  811. end
  812. local function autochoosedungeon()
  813. if _G.auto_choose_dungeon_and_difficulty then
  814. game.Players.LocalPlayer:WaitForChild("leaderstats")
  815. game.Players.LocalPlayer.leaderstats:WaitForChild("Level")
  816. lvl = game.Players.LocalPlayer.leaderstats.Level.Value
  817.  
  818. print(lvl)
  819. if lvl <= 5 then
  820. _G.dungeon = "Desert Temple"
  821. _G.difficulty = "Easy"
  822. elseif lvl <= 11 then
  823. _G.dungeon = "Desert Temple"
  824. _G.difficulty = "Medium"
  825. elseif lvl <= 19 then
  826. _G.dungeon = "Desert Temple"
  827. _G.difficulty = "Hard"
  828. elseif lvl <= 26 then
  829. _G.dungeon = "Desert Temple"
  830. _G.difficulty = "Insane"
  831. elseif lvl <= 32 then
  832. _G.dungeon = "Desert Temple"
  833. _G.difficulty = "Nightmare"
  834. elseif lvl <= 39 then
  835. _G.dungeon = "Winter Outpost"
  836. _G.difficulty = "Easy"
  837. elseif lvl <= 44 then
  838. _G.dungeon = "Winter Outpost"
  839. _G.difficulty = "Medium"
  840. elseif lvl <= 49 then
  841. _G.dungeon = "Winter Outpost"
  842. _G.difficulty = "Hard"
  843. elseif lvl <= 54 then
  844. _G.dungeon = "Winter Outpost"
  845. _G.difficulty = "Insane"
  846. elseif lvl <= 59 then
  847. _G.dungeon = "Winter Outpost"
  848. _G.difficulty = "Nightmare"
  849. elseif lvl <= 64 then
  850. _G.dungeon = "Pirate Island"
  851. _G.difficulty = "Insane"
  852. elseif lvl <= 69 then
  853. _G.dungeon = "Pirate Island"
  854. _G.difficulty = "Nightmare"
  855. elseif lvl <= 74 then
  856. _G.dungeon = "King's Castle"
  857. _G.difficulty = "Insane"
  858. elseif lvl <= 79 then
  859. _G.dungeon = "King's Castle"
  860. _G.difficulty = "Nightmare"
  861. elseif lvl <= 84 then
  862. _G.dungeon = "The Underworld"
  863. _G.difficulty = "Insane"
  864. elseif lvl <= 89 then
  865. _G.dungeon = "The Underworld"
  866. _G.difficulty = "Nightmare"
  867. elseif lvl <= 94 then
  868. _G.dungeon = "Samurai Palace"
  869. _G.difficulty = "Insane"
  870. elseif lvl <= 99 then
  871. _G.dungeon = "Samurai Palace"
  872. _G.difficulty = "Nightmare"
  873. elseif lvl <= 104 then
  874. _G.dungeon = "The Canals"
  875. _G.difficulty = "Insane"
  876. elseif lvl <= 109 then
  877.  
  878. _G.dungeon = "The Canals"
  879. _G.difficulty = "Nightmare"
  880. elseif lvl <= 114 then
  881. _G.dungeon = "Ghastly Harbor"
  882. _G.difficulty = "Insane"
  883. elseif lvl <= 119 then
  884. _G.dungeon = "Ghastly Harbor"
  885. _G.difficulty = "Nightmare"
  886. elseif lvl <= 124 then
  887. _G.dungeon = "Steampunk Sewers"
  888. _G.difficulty = "Insane"
  889. elseif lvl <= 139 then
  890. _G.dungeon = "Steampunk Sewers"
  891. _G.difficulty = "Nightmare"
  892. elseif lvl <= 145 then
  893. _G.dungeon = "Orbital Outpost"
  894. _G.difficulty = "Insane"
  895. elseif lvl <= 149 then
  896. _G.dungeon = "Orbital Outpost"
  897. _G.difficulty = "Nightmare"
  898. elseif lvl <= 154 then
  899. _G.dungeon = "Volcanic Chambers"
  900. _G.difficulty = "Insane"
  901. else
  902. _G.dungeon = "Volcanic Chambers"
  903. _G.difficulty = "Nightmare"
  904. end
  905. end
  906. end
  907. function autoChooseBossRaidTier()
  908. if _G.auto_choose_raid_boss_tier then
  909. local gitems = getPlayerInvy(game.Players.LocalPlayer)
  910. local largestKey = 0
  911. if gitems.keys ~= nil then
  912. if gitems.keys then
  913. for i, v in pairs(gitems.keys) do
  914. if tonumber(i) > largestKey and v then
  915. largestKey = tonumber(i)
  916. _G.boss_raid_tier = tonumber(i)
  917. end
  918. end
  919. end
  920. end
  921. end
  922. end
  923. local function del_armor_ui() -- deletes armor and ui
  924. spawn(function()
  925. pgui = game.Players.LocalPlayer.PlayerGui
  926. if game.CoreGui.RobloxGui:FindFirstChild("TopBarContainer") then
  927. game.CoreGui.RobloxGui.TopBarContainer:WaitForChild("NameHealthContainer")
  928. if
  929. game.CoreGui.RobloxGui.TopBarContainer.NameHealthContainer:FindFirstChild("Username
  930. ") then
  931. game.CoreGui.RobloxGui.TopBarContainer.NameHealthContainer.Username:Destroy()
  932. end
  933.  
  934. end
  935. while not
  936. game.Players.LocalPlayer.PlayerGui:FindFirstChild("playerStatus") do
  937. wait(.1)
  938. end
  939. pstat = pgui.playerStatus.Frame
  940. --pstat:Destroy()
  941. if _G.edit_ui then
  942. while not
  943. game.Players.LocalPlayer.PlayerGui:FindFirstChild("playerStatus") do
  944. wait(.1)
  945. end
  946. pstat = pgui.playerStatus.Frame
  947. while not pstat.portraitBorder:FindFirstChild("portrait") do
  948. wait(.1)
  949. end
  950. pstat.portraitBorder.portrait.Image = _G.UI_portait_image
  951. if pstat.moneyMain:FindFirstChild("updateMoney") then
  952. pstat.moneyMain.updateMoney:Destroy()
  953. end
  954. pstat.moneyMain.TextLabel.Text = _G.UI_money
  955. pstat.healthFrame.health.Text = _G.UI_health
  956. if pstat.healthFrame.health:FindFirstChild("label") then
  957. pstat.healthFrame.health.label:Destroy()
  958. pstat.healthFrame.healthUpdater:Destroy()
  959. end
  960. pstat.playerName.Text = _G.UI_name
  961. pstat.xpFrame.xp.Text = _G.UI_xp
  962. if pstat.xpFrame:FindFirstChild("xpUpdater") then
  963. pstat.xpFrame.xp.label:Destroy()
  964. pstat.xpFrame.xpUpdater:Destroy()
  965. end
  966. pstat.levelBorder.level.Text = _G.UI_lvl
  967. game.Players.LocalPlayer.PlayerGui:WaitForChild("abilities")
  968. end
  969. end)
  970. game.Players.LocalPlayer.Character:WaitForChild("playerNameplate", 5)
  971. if game.Players.LocalPlayer.Character:FindFirstChild("playerNameplate") then
  972. game.Players.LocalPlayer.Character["playerNameplate"]:Destroy()
  973. end
  974. while not game.Players.LocalPlayer.Character do
  975. wait()
  976. end
  977. while not
  978. game.Players.LocalPlayer.Character:FindFirstChildOfClass("Accessory") do
  979. wait()
  980. end
  981. wait()
  982. pchar = game.Players.LocalPlayer.Character
  983. for _, v in pairs(pchar:GetChildren()) do
  984. if v.ClassName == "Accessory" then
  985. if not v:FindFirstChild("swing") then
  986. if _G.del_weapon then
  987. v:Destroy()
  988. end
  989. else
  990.  
  991. if _G.del_armor then
  992. v:FindFirstChildOfClass("Model"):Destroy()
  993. end
  994. end
  995. end
  996. end
  997. end
  998. warn('place id check')
  999. if game.PlaceId == 2414851778 or game.PlaceId == 3220968688 then
  1000. warn('place id check done')
  1001. while not workspace:FindFirstChild(game.Players.LocalPlayer.Name) do
  1002. wait(.1)
  1003. local Event =
  1004. game:GetService("ReplicatedStorage").remotes.loadPlayerCharacter
  1005. Event:FireServer()
  1006. end
  1007. warn("pressed start")
  1008. spawn(function()
  1009. while not
  1010. workspace:FindFirstChild(game.Players.LocalPlayer.Name):FindFirstChild("Humanoid")
  1011. do
  1012. wait(.1)
  1013. end
  1014. spawn(function()
  1015. while not game.Lighting:FindFirstChild("Blur") do
  1016. wait(.1)
  1017. end
  1018. while not
  1019. game.Players.LocalPlayer.PlayerGui:FindFirstChild("introGui") do
  1020. wait(.1)
  1021. end
  1022. game.Players.LocalPlayer.PlayerGui:FindFirstChild("introGui"):Destroy()
  1023. local s = workspace.CurrentCamera
  1024. s.CameraType = Enum.CameraType.Track;
  1025. s.CameraSubject = game.Players.LocalPlayer.Character.Humanoid
  1026. game.Lighting.Blur:Destroy()
  1027. end)
  1028. spawn(function()
  1029. AIMovementInLobby()
  1030. end)
  1031. end)
  1032. warn("player loaded")
  1033. --[[
  1034. spawn(function()
  1035. del_armor_ui()
  1036. end)
  1037. warn("armor del")
  1038. ]]
  1039. if _G.collect_daily_reward then
  1040. while not
  1041. workspace:FindFirstChild(game.Players.LocalPlayer.Name):FindFirstChild("HumanoidRoo
  1042. tPart") do
  1043. wait(.1)
  1044. end
  1045. workspace.dailyRewardTouchPart.CFrame =
  1046. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame
  1047. wait(.1)
  1048.  
  1049. workspace.dailyRewardTouchPart.Size = Vector3.new(10,10,10)
  1050. workspace.dailyRewardTouchPart.CFrame =
  1051. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame * CFrame.new(0,1,0)
  1052. wait(.1)
  1053. spawn(function()
  1054. game.CoreGui:WaitForChild("PurchasePromptApp"):Destroy()
  1055. end)
  1056. end
  1057. warn("daily reward")
  1058. if _G.boss_raid and _G.auto_choose_raid_boss_tier then
  1059. local gitems = getPlayerInvy(game.Players.LocalPlayer)
  1060. if gitems.keys == nil then
  1061. _G.auto_choose_dungeon_and_difficulty = true
  1062. _G.boss_raid = false
  1063. _G.wavedefense = false
  1064. end
  1065. if gitems.keys["1"] ~= nil then
  1066. if gitems.keys["1"] == false then
  1067. _G.auto_choose_dungeon_and_difficulty = true
  1068. _G.boss_raid = false
  1069. _G.wavedefense = false
  1070. end
  1071. end
  1072. end
  1073. warn("key check")
  1074. autochoosedungeon()
  1075. warn("choose dungeon")
  1076. autoChooseBossRaidTier()
  1077. warn("choose boss raid tier")
  1078. equipBestSpell()
  1079. warn("auto spell swap")
  1080. autoEquipLvlGear()
  1081. warn("equip gear")
  1082. sell()
  1083. warn("sell done")
  1084. autoupgrade()
  1085. warn("auto upgrade done")
  1086. if _G.easter_enable then
  1087. _G.dungeon = "Egg Island"
  1088. _G.difficulty = "Nightmare"
  1089. _G.hardcore = false
  1090. end
  1091. print("JOINING DUNGEON")
  1092. while not _G.ai_done do -- movement AI
  1093. wait(.1)
  1094. end
  1095. if _G.auto_join_dungeon then
  1096. if _G.wait_for_friends_to_host then
  1097. if _G.boss_raid then
  1098. while not workspace.bossLobbies:FindFirstChild(_G.host_name) do
  1099. wait()
  1100. end
  1101. while wait(.1) do
  1102. game:GetService("ReplicatedStorage").remotes.playerJoinBossLobby:InvokeServer(works
  1103. pace.bossLobbies:FindFirstChild(_G.host_name))
  1104. end
  1105. else
  1106. while not workspace.games.inLobby:FindFirstChild(_G.host_name) do
  1107.  
  1108. wait()
  1109. end
  1110. while wait(.1) do
  1111. game:GetService("ReplicatedStorage").remotes.joinDungeon:InvokeServer(_G.host_name)
  1112. end
  1113. end
  1114. end
  1115. if _G.multi_roblox then
  1116. if game.Players.LocalPlayer.Name == _G.host_name_key[1] then -- what the
  1117. hosts does
  1118. if _G.boss_raid then
  1119. local Event =
  1120. game:GetService("ReplicatedStorage").remotes.createBossLobby
  1121. Event:InvokeServer(_G.boss_raid_tier, true, 0)
  1122. else
  1123. local Event =
  1124. game:GetService("ReplicatedStorage").remotes.createLobby
  1125. Event:InvokeServer(_G.dungeon, _G.difficulty, 0, _G.hardcore, true,
  1126. _G.wavedefense)
  1127. end
  1128. wait(.1)
  1129. if _G.boss_raid then
  1130. for i, v in pairs(_G.name_key_list) do -- whitelist everyone
  1131. game:GetService("ReplicatedStorage").remotes.addPlayerToBossWhitelist:FireServer(v[
  1132. 1])
  1133. end
  1134. else
  1135. for i, v in pairs(_G.name_key_list) do -- whitelist everyone
  1136. game:GetService("ReplicatedStorage").remotes.addPlayerToWhitelist:FireServer(v[1])
  1137. end
  1138. end
  1139. if _G.boss_raid then
  1140. while
  1141. (#(workspace.bossLobbies:FindFirstChild(game.Players.LocalPlayer.Name).players:GetC
  1142. hildren())) ~= (#_G.name_key_list + 1) do -- wait for lobby to be full
  1143. wait()
  1144. end
  1145. else
  1146. while
  1147. (#(workspace.games.inLobby:FindFirstChild(game.Players.LocalPlayer.Name):GetChildre
  1148. n()) - 1) ~= (#_G.name_key_list + 1) do -- wait for lobby to be full
  1149. wait()
  1150. end
  1151. end
  1152. if _G.boss_raid then
  1153. game:GetService("ReplicatedStorage").remotes.startBossRaid:FireServer()
  1154. else
  1155. game:GetService("ReplicatedStorage").remotes.startDungeon:FireServer()
  1156. end
  1157. else -- what the joiners do
  1158. if _G.boss_raid then
  1159. while not workspace.bossLobbies:FindFirstChild(_G.host_name_key[1])
  1160. do
  1161. wait()
  1162.  
  1163. end
  1164. while wait(.1) do
  1165. game:GetService("ReplicatedStorage").remotes.playerJoinBossLobby:InvokeServer(works
  1166. pace.bossLobbies:FindFirstChild(_G.host_name_key[1]))
  1167. end
  1168. else
  1169. while not workspace.games.inLobby:FindFirstChild(_G.host_name_key[1])
  1170. do
  1171. wait()
  1172. end
  1173. while wait(.1) do
  1174. game:GetService("ReplicatedStorage").remotes.joinDungeon:InvokeServer(_G.host_name_
  1175. key[1])
  1176. end
  1177. end
  1178. end
  1179. end
  1180. if _G.wait_for_friends then
  1181. if _G.boss_raid then
  1182. local Event =
  1183. game:GetService("ReplicatedStorage").remotes.createBossLobby
  1184. Event:InvokeServer(_G.boss_raid_tier, true, 0)
  1185. else
  1186. local Event = game:GetService("ReplicatedStorage").remotes.createLobby
  1187. Event:InvokeServer(_G.dungeon, _G.difficulty, 0, _G.hardcore, true,
  1188. _G.wavedefense)
  1189. end
  1190. wait(.1)
  1191. if _G.boss_raid then
  1192. for i, v in pairs(_G.friends) do -- whitelist everyone
  1193. game:GetService("ReplicatedStorage").remotes.addPlayerToBossWhitelist:FireServer(v)
  1194. end
  1195. else
  1196. for i, v in pairs(_G.friends) do -- whitelist everyone
  1197. game:GetService("ReplicatedStorage").remotes.addPlayerToWhitelist:FireServer(v)
  1198. end
  1199. end
  1200. wait(.1)
  1201. if _G.boss_raid then
  1202. while
  1203. (#(workspace.bossLobbies:FindFirstChild(game.Players.LocalPlayer.Name).players:GetC
  1204. hildren())) ~= (#_G.friends + 1) do -- wait for lobby to be full
  1205. wait()
  1206. end
  1207. else
  1208. while
  1209. (#(workspace.games.inLobby:FindFirstChild(game.Players.LocalPlayer.Name):GetChildre
  1210. n()) - 1) ~= (#_G.friends + 1) do -- wait for lobby to be full
  1211. wait()
  1212. end
  1213. end
  1214. if _G.boss_raid then
  1215. local Event =
  1216.  
  1217. game:GetService("ReplicatedStorage").remotes.startBossRaid
  1218. Event:FireServer()
  1219. else
  1220. local Event = game:GetService("ReplicatedStorage").remotes.startDungeon
  1221. Event:FireServer()
  1222. end
  1223. wait(20)
  1224. end
  1225. if _G.boss_raid then -- boss raid
  1226. print("make boss lobby")
  1227. local Event =
  1228. game:GetService("ReplicatedStorage").remotes.createBossLobby
  1229. Event:InvokeServer(_G.boss_raid_tier, true, 0)
  1230. wait(1)
  1231. local Event = game:GetService("ReplicatedStorage").remotes.startBossRaid
  1232. Event:FireServer()
  1233. wait(20)
  1234. elseif not _G.boss_raid then -- normal dungeons/wavedefense
  1235. local Event = game:GetService("ReplicatedStorage").remotes.createLobby
  1236. Event:InvokeServer(_G.dungeon, _G.difficulty, 0, _G.hardcore, true,
  1237. _G.wavedefense)
  1238. wait(1)
  1239. local Event = game:GetService("ReplicatedStorage").remotes.startDungeon
  1240. Event:FireServer()
  1241. wait(20)
  1242. end
  1243. else
  1244. while wait(.1) do
  1245. end
  1246. end
  1247. while wait(.1) do
  1248. end
  1249. end
  1250. while not game.Players.LocalPlayer do
  1251. wait(.1)
  1252. end
  1253. while not game.Players.LocalPlayer.Character do
  1254. wait(.1)
  1255. end
  1256. do
  1257.  
  1258. while not game.Players.LocalPlayer.Character:FindFirstChild("HumanoidRootPart")
  1259. wait(.1)
  1260. end
  1261. while not game.Players.LocalPlayer.Character:FindFirstChild("Humanoid") do
  1262. wait(.1)
  1263. end
  1264.  
  1265. while not workspace:FindFirstChild(game.Players.LocalPlayer.Name) do
  1266. wait(.1)
  1267. end
  1268. -- dungeon specific waits
  1269. while not workspace:FindFirstChild("dungeon") and not
  1270. workspace:FindFirstChild("tier") and not workspace:FindFirstChild("currentWave") do
  1271.  
  1272. wait(1)
  1273. end
  1274. while not game:GetService("Workspace"):FindFirstChild("dungeonProgress") and
  1275. not game:GetService("Workspace"):FindFirstChild("raidProgress") do
  1276. wait()
  1277. end
  1278. wait(.5)
  1279. local pathargs = {
  1280. ["AgentHeight"] = 5,
  1281. ["AgentRadius"] = 3,
  1282. ["AgentCanJump"] = false
  1283. }
  1284. local PathfindingService = gamer[2]
  1285. local cs = gamer[1]
  1286. local localPlayer = game.Players.LocalPlayer.Character
  1287. local path = PathfindingService:CreatePath(pathargs)
  1288. local waypoints = {}
  1289. local currentWaypointIndex = 0
  1290. local weaponCooldown = 1
  1291. local enemy
  1292. local ballArray = {}
  1293. function stringInTable(st, tb)
  1294. if tb[st] ~= nil then return true else return false end
  1295. for i,v in pairs(tb) do
  1296. if st == v then
  1297. return true
  1298. end
  1299. end
  1300. return false
  1301. end
  1302. local function createWall(cf, sz)
  1303. if _G.loadSlow then
  1304. game:GetService("RunService").RenderStepped:wait()
  1305. end
  1306. local part = Instance.new("Part")
  1307. cs:AddTag(part, "RayWhitelist")
  1308. part.Size = sz
  1309. part.CFrame = cf
  1310. part.Name = regionPartName
  1311. part.Anchored = true
  1312. part.Transparency = _G.wall_transparency--stuffTransparency
  1313. part.CanCollide = true
  1314. part.Parent = workspace
  1315. return part
  1316. end
  1317. local function antiTransChange(property)
  1318. report("ANTI SKID, TransChange", property)
  1319. end
  1320. local function antiChildChange(child)
  1321. if child.ClassName ~= "TouchTransmitter" then
  1322.  
  1323. report("ANTI SKID, ChildChange", child)
  1324. end
  1325. end
  1326. local function createPart(cframe, size, name, shape) -- this is the part we
  1327. walk to
  1328. local part = Instance.new("Part")
  1329. part.Shape = shape
  1330. cs:AddTag(part, "RayIgnore")
  1331. part.Material = "Neon"
  1332. if _G.showPath then
  1333. part.Transparency = .5
  1334. else
  1335. part.Transparency = stuffTransparency
  1336. end
  1337. part.Size = size
  1338. part.CFrame = cframe
  1339. part.Name = name
  1340. part.Anchored = true
  1341. part.CanCollide = false
  1342. part.Parent = workspace
  1343. part:GetPropertyChangedSignal("Transparency"):Connect(antiTransChange)
  1344. part.ChildAdded:Connect(antiChildChange)
  1345. return part
  1346. end
  1347. local function createHitBoxPart(size, cframe, obj)
  1348. local part = Instance.new("Part")
  1349. cs:AddTag(part, "RayIgnore")
  1350. part.Size = size
  1351. part.CFrame = cframe
  1352. part.Parent = obj
  1353. part.Name = "enemyRadius"
  1354. part.Anchored = false
  1355. part.CanCollide = false
  1356. part.Material = "SmoothPlastic"
  1357. part.Transparency = stuffTransparency
  1358. part:GetPropertyChangedSignal("Transparency"):Connect(antiTransChange)
  1359. part.ChildAdded:Connect(antiChildChange)
  1360. part.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  1361. local weld = Instance.new("WeldConstraint")
  1362. if obj.ClassName == "Model" then
  1363. weld.Part1 = obj.PrimaryPart
  1364. else
  1365. weld.Part1 = obj
  1366. end
  1367. weld.Part0 = part
  1368. weld.Parent = obj
  1369. return part
  1370. end
  1371. local function addHitBox(obj, size, shape)
  1372. local psize, cframe
  1373. if shape == nil then
  1374. local t = {
  1375. {size, size}, {0, size}, {-size, size},
  1376. {size, 0}, {-size, 0},
  1377. {size, -size}, {0, -size}, {-size, -size},
  1378.  
  1379. }
  1380. for i,v in pairs(t) do
  1381. psize = Vector3.new(1, 1, (size))
  1382. local pos1 = (obj.PrimaryPart.CFrame * CFrame.new(v[1],0,v[2])).Position
  1383. cframe = CFrame.new(pos1, obj.PrimaryPart.Position)
  1384. cframe = cframe * CFrame.new(0,0,(-size/2) + 2)
  1385. createHitBoxPart(psize, cframe, obj)
  1386. end
  1387. elseif shape =="square" then -- this is for when things shoot ball
  1388. projectiles
  1389. psize = Vector3.new(size, size, size)
  1390. cframe = CFrame.new(0,0,0)
  1391. if obj.ClassName == "Model" then
  1392. obj:WaitForChild("PrimaryPart", .5)
  1393. cframe = obj.PrimaryPart.CFrame
  1394. else
  1395. cframe = obj.CFrame
  1396. end
  1397. createHitBoxPart(psize, cframe, obj)
  1398. elseif shape == "rectangle" then
  1399. psize = Vector3.new(size, size, size) -- create square around projectile
  1400. cframe = CFrame.new(0,0,0)
  1401. if obj.ClassName == "Model" then
  1402. obj:WaitForChild("PrimaryPart", .5)
  1403. cframe = obj.PrimaryPart.CFrame
  1404. else
  1405. cframe = obj.CFrame
  1406. end
  1407. createHitBoxPart(psize, cframe, obj)
  1408. psize = Vector3.new(1, size, size*2)
  1409. cframe = CFrame.new(0,0,0)
  1410. if obj.ClassName == "Model" then -- add the pointy thing
  1411. obj:WaitForChild("PrimaryPart", .5)
  1412. cframe = obj.PrimaryPart.CFrame * CFrame.new(0, 0, (size - 5) * -1)
  1413. else
  1414. cframe = obj.CFrame * CFrame.new(0, 0, (size - 5) * -1)
  1415. end
  1416. createHitBoxPart(psize, cframe, obj)
  1417. elseif shape == "rectanglev2" then
  1418. psize = Vector3.new(size, size, size)
  1419. cframe = CFrame.new(0,0,0)
  1420. if obj.ClassName == "Model" then
  1421. obj:WaitForChild("PrimaryPart", .5)
  1422. cframe = obj.PrimaryPart.CFrame
  1423. else
  1424. cframe = obj.CFrame
  1425. end
  1426. createHitBoxPart(psize, cframe, obj)
  1427. psize = Vector3.new(size, size, size)
  1428. cframe = CFrame.new(0,0,0)
  1429. if obj.ClassName == "Model" then
  1430. obj:WaitForChild("PrimaryPart", .5)
  1431. cframe = (obj.PrimaryPart.CFrame * CFrame.new(0, 0, (size - 10) * -1)) *
  1432. CFrame.Angles(math.rad(45), 0,math.rad(90))
  1433. else
  1434. cframe = (obj.CFrame * CFrame.new(0, 0, (size - 10) * -1))*
  1435.  
  1436. CFrame.Angles(math.rad(45), 0,math.rad(90))
  1437. end
  1438. createHitBoxPart(psize, cframe, obj)
  1439. elseif shape == "rectanglev3" then
  1440. psize = Vector3.new(size, size, size)
  1441. cframe = CFrame.new(0,0,0)
  1442. if obj.ClassName == "Model" then
  1443. obj:WaitForChild("PrimaryPart", .5)
  1444. cframe = obj.PrimaryPart.CFrame
  1445. else
  1446. cframe = obj.CFrame
  1447. end
  1448. createHitBoxPart(psize, cframe, obj)
  1449. psize = Vector3.new(size -5 , size - 5, size - 5)
  1450. cframe = CFrame.new(0,0,0)
  1451. if obj.ClassName == "Model" then
  1452. obj:WaitForChild("PrimaryPart", .5)
  1453. cframe = (obj.PrimaryPart.CFrame * CFrame.new(0, 0, (size - 5) * -1)) *
  1454. CFrame.Angles(0, math.rad(45),0)
  1455. else
  1456. cframe = (obj.CFrame * CFrame.new(0, 0, (size - 5) * -1))*
  1457. CFrame.Angles(0, math.rad(45),0)
  1458. end
  1459. createHitBoxPart(psize, cframe, obj)
  1460. elseif shape == "rectangle-2" then -- rectnagle with no offset
  1461. psize = Vector3.new(size, size, size)
  1462. cframe = CFrame.new(0,0,0)
  1463. if obj.ClassName == "Model" then
  1464. obj:WaitForChild("PrimaryPart", .5)
  1465. cframe = obj.PrimaryPart.CFrame
  1466. cframe = cframe * CFrame.Angles(0, math.rad(45), 0)
  1467. else
  1468. cframe = obj.CFrame
  1469. cframe = cframe * CFrame.Angles(0, math.rad(45), 0)
  1470. end
  1471. createHitBoxPart(psize, cframe, obj)
  1472. end
  1473. end
  1474. local function cleanMobUp(t)
  1475. if _G.optimize_mobs then
  1476. for i,v in pairs(t:GetChildren()) do
  1477. if v.ClassName == "Model" then
  1478. v:Destroy()
  1479. end
  1480. end
  1481. if t:FindFirstChild("HumanoidRootPart") then
  1482. t.HumanoidRootPart.Transparency = 0
  1483. end
  1484. if t:FindFirstChild("Head") then
  1485. t.Head.Transparency = 0
  1486. end
  1487. end
  1488. end
  1489. local function _initHitBox(instance)
  1490. if instance.ClassName == "Model" then
  1491.  
  1492. while instance.PrimaryPart == nil do wait() end
  1493. while not instance:FindFirstChild(instance.PrimaryPart.Name) do wait() end
  1494. instance:WaitForChild("HumanoidRootPart")
  1495. instance:WaitForChild("enemyStyle", 1.5)
  1496. if not instance:FindFirstChild("enemyStyle") then print('no enemy style')
  1497. return end
  1498. local mobType = instance.enemyStyle.Value
  1499. if mobType == "mob" or mobType == "ranged" or mobType == "melee" or mobType
  1500. == "burly" then --f if mob
  1501. if eggEvent then -- egg event only has one tag on each mob
  1502. while (#cs:GetTags(instance) == 0) do
  1503. wait(.1)
  1504. end
  1505. else
  1506. while (#cs:GetTags(instance) < 2) do -- normally each mob has two
  1507. ScriptDebug("waiting for mob to add tag" )
  1508. wait(.1)
  1509. end
  1510. end
  1511. cs:AddTag(instance, "Enemy")
  1512. if _G.doInstakill then
  1513. if instance:FindFirstChild("Humanoid") and
  1514. instakillTable[instance.Name] then
  1515. instance.Humanoid.Health = 0
  1516. end
  1517. end
  1518. if mobType ~= "ranged" then
  1519. if game.PlaceId == 5281215714 then -- if volcanic mob
  1520. if instance.Name == "Explosive Lava Walker" or instance.Name ==
  1521. "Aggressive Lava Walker" then
  1522. addHitBox(instance, 8.5)
  1523. end
  1524. elseif game.PlaceId == 6216785535 then
  1525. if instance.Name == "Temple Guard" then
  1526. addHitBox(instance, 3)
  1527. end
  1528. else
  1529. addHitBox(instance, 7)
  1530. end
  1531. end
  1532. else -- if not mob then
  1533. if eggEvent then -- egg event has 0 tagso n boss
  1534. while #cs:GetTags(instance) ~= 0 do
  1535. wait()
  1536. end
  1537. else
  1538. while #cs:GetTags(instance) < 1 do
  1539. wait()
  1540. end
  1541. end
  1542. if _G.doInstakill then
  1543. if instance:FindFirstChild("Humanoid") and
  1544. instakillTable[instance.Name] then
  1545. instance.Humanoid.Health = 0
  1546. end
  1547. end
  1548. cs:AddTag(instance, "Enemy")
  1549. end
  1550. end
  1551.  
  1552. end
  1553. local function initHitBox()
  1554. if workspace:FindFirstChild("tier") or
  1555. workspace:FindFirstChild("currentWave") then -- boss raid or wave defense ( they
  1556. work the same )
  1557. workspace.enemies.ChildAdded:Connect(function(instance)
  1558. if instance.Name == "Stone Warrior" then -- instakill in mob folder
  1559. instance:WaitForChild("Humanoid")
  1560. addHitBox(instance, 5)
  1561. wait(1)
  1562. instance.Humanoid.Health = 0
  1563. else
  1564. _initHitBox(instance)
  1565. cleanMobUp(instance)
  1566. end
  1567. end)
  1568. else
  1569. for i,room in pairs(workspace.dungeon:GetChildren()) do -- normal dungeon
  1570. handler
  1571. if room:FindFirstChild("enemyFolder") then
  1572. local efold = room:FindFirstChild("enemyFolder")
  1573. if efold then
  1574. local e = efold:FindFirstChildOfClass("Model")
  1575. if e then
  1576. if e:FindFirstChild("Humanoid") then -- if folder already has mobs
  1577. then add hit box
  1578. wait(.5)
  1579. for i,instance in pairs(efold:GetChildren()) do
  1580. _initHitBox(instance)
  1581. cleanMobUp(instance)
  1582. end
  1583. end
  1584. end
  1585. efold.ChildAdded:Connect(function(instance) -- all future folders, if
  1586. mob spawned, give hitbox
  1587. _initHitBox(instance)
  1588. cleanMobUp(instance)
  1589. end)
  1590. end
  1591. end
  1592. end
  1593. end
  1594. end
  1595. local projNameList = {} -- important
  1596. local enemyProjNameList = {}
  1597. local function updateProjsList()
  1598. if game.ReplicatedStorage:FindFirstChild("projectiles") then
  1599. local n1 = game:GetService("ReplicatedStorage").projectiles:GetChildren()
  1600. local n2 =
  1601. game:GetService("ReplicatedStorage").enemyProjectiles:GetChildren()
  1602. for i,v in pairs(n1) do
  1603. projNameList[v.Name] = true
  1604. end
  1605. for i,v in pairs(n2) do
  1606. enemyProjNameList[v.Name] = true
  1607. end
  1608.  
  1609. enemyProjNameList["secondBossSlamHitbox"] = true
  1610. end
  1611. end
  1612. updateProjsList()
  1613. local function createBall(vector) -- balls that pathfinding places
  1614. local part = Instance.new("Part")
  1615. cs:AddTag(part, "RayIgnore")
  1616. part.Shape = "Ball"
  1617. part.Material = "Neon"
  1618. part.Size = Vector3.new(0.6, 0.6, 0.6)
  1619. part.Position = vector
  1620. part.Anchored = true
  1621. part.CanCollide = false
  1622. part.Name = regionPartName
  1623. part.Parent = game.Workspace
  1624. ballArray[#ballArray+1] = part
  1625. end
  1626. local thePart = createPart(CFrame.new(0,0,0), Vector3.new(3,3,3),
  1627. regionPartName, "Ball")
  1628. local selectionBox = Instance.new("SelectionBox")
  1629. local function getMag(vector1, vector2)
  1630. -- removes sqrt because time, reduces function complexity
  1631. local newV2 = Vector3.new(vector2.X, vector1.Y, vector2.Z)
  1632. --return (vector1 - newV2).magnitude
  1633. return (vector1 - vector2).magnitude
  1634. --return ((vector1.X - vector2.X)^2)+((vector1.Y - vector2.Y)^2)+((vector1.Z
  1635. - vector2.Z)^2)
  1636. end
  1637.  
  1638. do
  1639.  
  1640. local function getPlayer()
  1641. local play, chara, hum, root = nil, nil, nil, nil
  1642. while not game.Players.LocalPlayer do
  1643. wait()
  1644. end
  1645. if game.Players.LocalPlayer then
  1646. play = game.Players.LocalPlayer
  1647. while not game.Players.LocalPlayer.Character do
  1648. wait()
  1649. end
  1650. if game.Players.LocalPlayer.Character then
  1651. chara = game.Players.LocalPlayer.character
  1652. while not game.Players.LocalPlayer.Character:FindFirstChild("Humanoid")
  1653.  
  1654. wait()
  1655. end
  1656. if game.Players.LocalPlayer.Character:FindFirstChild("Humanoid") then
  1657. hum = game.Players.LocalPlayer.Character.Humanoid
  1658. end
  1659. while not
  1660. game.Players.LocalPlayer.Character:FindFirstChild("HumanoidRootPart") do
  1661. wait()
  1662. end
  1663. if game.Players.LocalPlayer.Character:FindFirstChild("HumanoidRootPart")
  1664. then
  1665. root = game.Players.LocalPlayer.Character.HumanoidRootPart
  1666.  
  1667. end
  1668. end
  1669. end
  1670. return play, chara, hum, root
  1671. end
  1672. -- discord webhook stuff
  1673. local webhookLocals = {
  1674. itemsEarned = {},
  1675. startingInventory = getPlayerInvy(game.Players.LocalPlayer),
  1676. dungeonName = nil,
  1677. timeLeft = nil,
  1678. endingInventory = nil,
  1679. colorTable = {
  1680. ['legendary'] = "16426522",
  1681. ['epic'] = "14031610",
  1682. ['rare'] = "39423",
  1683. ['uncommon'] = "2096896",
  1684. ['common'] = "15859184",
  1685. }
  1686. }
  1687. function Format(Int)
  1688. return string.format("%02i", Int)
  1689. end
  1690. local function convertToHMS(Seconds)
  1691. local Minutes = (Seconds - Seconds%60)/60
  1692. Seconds = Seconds - Minutes*60
  1693. return Format(Minutes)..":"..Format(Seconds)
  1694. end
  1695. local function sendWebhookItem()
  1696. (syn and syn.request or http_request) {
  1697. Url = _G.webhookLink;
  1698. Method = 'POST';
  1699. Headers = {
  1700. ['Content-Type'] = 'application/json';
  1701. };
  1702. Body = game:GetService'HttpService':JSONEncode( {
  1703. webhookLocals.itemsEarned } );
  1704. };
  1705. end
  1706.  
  1707. embeds =
  1708.  
  1709. local function capFirstLetter(word)
  1710. local done = ""
  1711. local firstLetter = word:sub(1,1) --get the 1st letter of the word
  1712. local theRest = word:sub(2) --grt everything except the first letter
  1713. return firstLetter:upper() .. theRest
  1714. end
  1715. local function getNewItems(firstTable, secondTable)
  1716. for i ,item in pairs (secondTable) do
  1717. if firstTable[i] then
  1718. else
  1719. local s = {}
  1720. s.description = "```\n"..capFirstLetter(item.name).."```"
  1721. s.color = webhookLocals.colorTable[item.rarity]
  1722.  
  1723. table.insert(webhookLocals.itemsEarned, s)
  1724. end
  1725. end
  1726. end
  1727. local function webHookOnEnd()
  1728. if _G.webhookEnabled then
  1729. webhookLocals.timeLeft = convertToHMS(workspace.timeLeft.Value)
  1730. webhookLocals.itemsEarned = {
  1731. {
  1732. color = '0';
  1733. author = {
  1734. name = 'MRobSwag Item Notifier';
  1735. };
  1736. fields = {
  1737. {
  1738. name = "Dungeon: ",
  1739. value = tostring(webhookLocals.dungeonName)
  1740. },
  1741. {
  1742. name = "Clear Time: ",
  1743. value = webhookLocals.timeLeft
  1744. },
  1745. };
  1746. },
  1747. };
  1748. wait(2)
  1749. print('doing webhook')
  1750. webhookLocals.endingInventory = getPlayerInvy(game.Players.LocalPlayer)
  1751. getNewItems(webhookLocals.startingInventory.weapons,
  1752. webhookLocals.endingInventory.weapons)
  1753. getNewItems(webhookLocals.startingInventory.abilities,
  1754. webhookLocals.endingInventory.abilities)
  1755. getNewItems(webhookLocals.startingInventory.chests,
  1756. webhookLocals.endingInventory.chests)
  1757. getNewItems(webhookLocals.startingInventory.helmets,
  1758. webhookLocals.endingInventory.helmets)
  1759. sendWebhookItem()
  1760. print('done webhook')
  1761. end
  1762. end
  1763. -- discord webhook stuff ending
  1764. if workspace:FindFirstChild("dungeonProgress") then
  1765. game:GetService("Workspace"):FindFirstChild("dungeonProgress").Changed:Connect(func
  1766. tion(NewValue)
  1767. if NewValue ~= "" and NewValue ~= "inProgress" and NewValue ~=
  1768. "playersNotReady" then
  1769. gameOver = true
  1770. if regionTable ~= nil then
  1771. for i,v in pairs(regionTable) do
  1772. for j, k in pairs(v) do
  1773. regionTable[i][j]['obj']:Destroy()
  1774. end
  1775. end
  1776. end
  1777.  
  1778. if readyPartTable ~= nil then
  1779. for i,v in pairs(readyPartTable) do
  1780. v:Destroy()
  1781. end
  1782. end
  1783. spawn(webHookOnEnd)
  1784. print('set timeout')
  1785. wait(.5)
  1786. game:GetService("ScriptContext"):SetTimeout(0)
  1787. end
  1788. end)
  1789. elseif workspace:FindFirstChild("raidPorgress") then
  1790. game:GetService("Workspace"):FindFirstChild("raidProgress").Changed:Connect(functio
  1791. n(NewValue)
  1792. if NewValue ~= "" and NewValue ~= "inProgress" and NewValue ~=
  1793. "playersNotReady" then
  1794. gameOver = true
  1795. if regionTable ~= nil then
  1796. for i,v in pairs(regionTable) do
  1797. for j, k in pairs(v) do
  1798. regionTable[i][j]['obj']:Destroy()
  1799. end
  1800. end
  1801. end
  1802. if readyPartTable ~= nil then
  1803. for i,v in pairs(readyPartTable) do
  1804. v:Destroy()
  1805. end
  1806. end
  1807. spawn(webHookOnEnd)
  1808. print('set timeout')
  1809. wait(.5)
  1810. game:GetService("ScriptContext"):SetTimeout(0)
  1811. end
  1812. end)
  1813. end
  1814. function SelectBoxChange(adornee)
  1815. selectionBox.Adornee = adornee
  1816. selectionBox.Color3 = Color3.new(1,0,0)
  1817. selectionBox.Parent = adornee
  1818. end
  1819. local function findCloseEnemy()
  1820. local bestMob = nil
  1821. local bestDist = math.huge
  1822. if #cs:GetTagged("Prio-Enemy") > 0 then
  1823. return cs:GetTagged("Prio-Enemy")[1]
  1824. end
  1825. while #cs:GetTagged("Enemy") < 1 do
  1826. -- script should enter a dodge mode
  1827. ScriptDebug("Waiting for enemies...")
  1828. if extremelyFast then
  1829. game:GetService("RunService").RenderStepped:wait()
  1830. else
  1831. wait()
  1832.  
  1833. end
  1834. end
  1835. while bestMob == nil do
  1836. local enemies = cs:GetTagged("Enemy")
  1837. local _, _, _, root = getPlayer()
  1838. for i, mob in pairs(enemies) do
  1839. if mob:FindFirstChild("HumanoidRootPart") and root ~= nil then
  1840. local dst = getMag(root.Position, mob.HumanoidRootPart.Position)
  1841. if dst < bestDist then
  1842. bestMob = mob
  1843. bestDist = dst
  1844. end
  1845. end
  1846. end
  1847. if bestMob ~= nil then break end
  1848. if extremelyFast then
  1849. game:GetService("RunService").RenderStepped:wait()
  1850. else
  1851. wait()
  1852. end
  1853. end
  1854. if _G.showTarget then
  1855. SelectBoxChange(bestMob.HumanoidRootPart)
  1856. end
  1857. --targetPart.CFrame = bestMob.HumanoidRootPart.CFrame * CFrame.new(0,5,0)
  1858. return bestMob
  1859. end
  1860. function charLookAt(chr,target) --assume chr is a character and target is a
  1861. brick to look towards
  1862. if chr.PrimaryPart then --just make sure the character's HRP has loaded
  1863. local chrPos=chr.PrimaryPart.Position --get the position of the HRP
  1864. local tPos=target.Position --get the position of the target
  1865. local
  1866. newCF=CFrame.new(Vector3.new(chrPos.x,chrPos.y,chrPos.z),Vector3.new(tPos.x,chrPos.
  1867. y,tPos.z)) --create our CFrame
  1868. chr:SetPrimaryPartCFrame(newCF) --set the HRP's CFrame to our result, thus
  1869. moving the character!
  1870. end
  1871. end
  1872. local function clearBalls()
  1873. for i, v in pairs(ballArray) do
  1874. v:Destroy()
  1875. end
  1876. ballArray = {}
  1877. end
  1878. local function followPath(position)
  1879. local root = game.Players.LocalPlayer.Character.HumanoidRootPart
  1880. local hum = game.Players.LocalPlayer.Character.Humanoid
  1881. path:ComputeAsync(root.Position, position)
  1882. waypoints = {}
  1883. if path.Status == Enum.PathStatus.Success then
  1884. waypoints = path:GetWaypoints()
  1885. if sDebug then
  1886. clearBalls()
  1887.  
  1888. for i, v in pairs(waypoints) do
  1889. createBall(v.Position)
  1890. end
  1891. end
  1892. currentWaypointIndex = 2
  1893. if waypoints[currentWaypointIndex] == Enum.PathWaypointAction.Jump then
  1894. hum.Jump = true
  1895. end
  1896. hum:MoveTo(waypoints[currentWaypointIndex].Position)
  1897. else
  1898. print('path not success')
  1899. if enemy then
  1900. hum:MoveTo(enemy.PrimaryPart.Position)
  1901. else
  1902. hum:MoveTo(root.Position)
  1903. end
  1904. end
  1905. end
  1906. local function onWaypointReached(reached)
  1907. local play, chara, hum, root = getPlayer()
  1908. if chara ~= nil and hum ~= nil and reached and currentWaypointIndex <
  1909. #waypoints then
  1910. currentWaypointIndex = currentWaypointIndex + 1
  1911. charLookAt(chara, enemy.HumanoidRootPart)
  1912. hum:MoveTo(waypoints[currentWaypointIndex].Position)
  1913. elseif chara ~= nil and hum ~= ni then
  1914. charLookAt(chara, enemy.HumanoidRootPart)
  1915. end
  1916. end
  1917. local function onPathBlocked(blockedWaypointIndex)
  1918. print('path blocked')
  1919. local play, chara, hum, root = getPlayer()
  1920. if chara ~= nil and enemy ~= nil then
  1921. charLookAt(chara, enemy.HumanoidRootPart)
  1922. end
  1923. if blockedWaypointIndex > currentWaypointIndex then
  1924. followPath(destination)
  1925. end
  1926. end
  1927. local function rayCollectionService()
  1928. local play, chara, hum, root = getPlayer()
  1929. if chara == nil then return end
  1930. cs:AddTag(chara, "RayIgnore")
  1931. cs:AddTag(workspace.Terrain, "RayWhitelist")
  1932. if workspace:FindFirstChild("tier") then -- boss raid
  1933. for i,v in pairs(game:GetService("Workspace").mapModel:GetChildren()) do
  1934. if v.ClassName == "Part" or v.ClassName == "UnionOperation" or
  1935. v.ClassName == "WedgePart" then
  1936. if v ~= chara and v.Name ~= regionPartName and v.Transparency < 1 and
  1937. v.Name ~= "enemyRadius" then
  1938. cs:AddTag(v, "RayWhitelist")
  1939. end
  1940. elseif v.ClassName == "Model" then
  1941. if v ~= chara then
  1942.  
  1943. cs:AddTag(v, "RayWhitelist")
  1944. end
  1945. end
  1946. end
  1947. elseif workspace:FindFirstChild("currentWave") then -- wave defense
  1948. for i,v in pairs(workspace:GetChildren()) do
  1949. if string.find(v.Name, "Arena") then
  1950. cs:AddTag(v, "RayWhitelist")
  1951. end
  1952. end
  1953. else -- normal dungeon
  1954. local dun = waitForExist(workspace, "dungeon")
  1955. for i,room in pairs(dun:GetChildren()) do
  1956. for j, v in pairs(room:GetChildren()) do
  1957. if v.ClassName == "Part" or v.ClassName == "UnionOperation" or
  1958. v.ClassName == "WedgePart" then
  1959. if v.Transparency < 1 then
  1960. cs:AddTag(v, "RayWhitelist")
  1961. end
  1962. elseif v.ClassName == "Model" then
  1963. cs:AddTag(v, "RayWhitelist")
  1964. end
  1965. end
  1966. end
  1967. for i,v in pairs(workspace:GetChildren()) do
  1968. if v.ClassName == "Part" or v.ClassName == "UnionOperation" or
  1969. v.ClassName == "WedgePart" then
  1970. if v ~= chara and v.Name ~= regionPartName and v.Transparency < 1 and
  1971. v.Name ~= "enemyRadius" then
  1972. cs:AddTag(v, "RayWhitelist")
  1973. end
  1974. elseif v.ClassName == "Model" then
  1975. if v ~= chara then
  1976. cs:AddTag(v, "RayWhitelist")
  1977. end
  1978. end
  1979. end
  1980. end
  1981. end
  1982. local function lookAt(target, eye)
  1983. local forwardVector = (target - eye).Unit
  1984. local upVector = Vector3.new(0, 1, 0)
  1985. -- Remember the right-hand rule
  1986. local rightVector = forwardVector:Cross(upVector)
  1987. local upVector2 = rightVector:Cross(forwardVector)
  1988. return CFrame.fromMatrix(eye, rightVector, upVector2)
  1989. end
  1990. function round(num)
  1991. return math.floor(num + 0.5)
  1992. end
  1993. function roundVector(vector)
  1994. return Vector3.new(round(vector.X), round(vector.Y), round(vector.Z))
  1995. end
  1996.  
  1997. local oldTargetPos = Vector3.new(0,0,0)
  1998. local targetPos = Vector3.new(1,0,0)
  1999. local function makePath(target, value)
  2000. if value == nil then value = false end
  2001. local play, chara, hum, root = getPlayer()
  2002. if target.ClassName == "Model" then
  2003. targetPos = roundVector(target.PrimaryPart.Position)
  2004. else
  2005. targetPos = roundVector(target.Position)
  2006. end
  2007. if hum ~= nil and root ~= nil then
  2008. oldTargetPos = targetPos
  2009. destination = targetPos
  2010. if value then
  2011. if enemy ~= nil then
  2012. charLookAt(chara, enemy.PrimaryPart)
  2013. end
  2014. spawn(clearBalls)
  2015. hum:MoveTo(targetPos)
  2016. else
  2017. followPath(targetPos)
  2018. end
  2019. end
  2020. end
  2021. function visualRay(long)
  2022. local p = Instance.new("Part")
  2023. cs:AddTag(p, "RayIgnore")
  2024. p.Size = Vector3.new(2,2,2)
  2025. p.Name = "Ray"
  2026. p.Anchored = true
  2027. p.Material = "Neon"
  2028. p.CanCollide = false
  2029. p.Parent = workspace
  2030. local Debris = game:GetService("Debris")
  2031. Debris:AddItem(p, long)
  2032. return p
  2033. end
  2034. function rayCast(sCF, eCF, ignoreName, whitelist)
  2035. local endGoal = eCF.p
  2036. local start = sCF.p
  2037. local Ray = Ray.new(start, (endGoal - start))
  2038. local list = cs:GetTagged(ignoreName)
  2039. local part, hitPosition
  2040. if whitelist then
  2041. part, hitPosition = workspace:FindPartOnRayWithWhitelist(Ray,list)
  2042. else
  2043. part, hitPosition = workspace:FindPartOnRayWithIgnoreList(Ray,list)
  2044. end
  2045. --if ignoreName == "directionWL" then
  2046. --[[ ray visualize
  2047. local p = visualRay(.005)
  2048. local distance = (start - hitPosition).Magnitude
  2049. p.Size = Vector3.new(0.3, 0.3, distance)
  2050. p.CFrame = lookAt(start, hitPosition)*CFrame.new(0, 0, -distance/2)
  2051. end]]
  2052. return hitPosition, part
  2053.  
  2054. end
  2055. -- false is blacklist, true is whitelist
  2056. local whiteListBlackList = {
  2057. ["laserBeam"] = true,
  2058. ["bossRiflePreCast"] = true,
  2059. ["bossRifleShot"] = true,
  2060. ["hitIndicatorIceAOE"] = true,
  2061. ["iceBeamIndicator"] = true,
  2062. ["projectile"] = true,
  2063. ["mageProjectileBall"] = true,
  2064. ["thirdBossSafeSpots"] = true,
  2065. ["secondBossOrb"] = true,
  2066. ["thirdBossOrbShot"] = true,
  2067. ["spikePrecast"] = true,
  2068. ["kolvumarTrail"] = true,
  2069. ["Kraken Tentacle"] = true,
  2070. ["secondBossRandomSquare"] = true,
  2071. ["initialMageBossEntry"] = false,
  2072. ["initialKingBossEntry"] = false,
  2073. ["initialHunterBossEntry"] = false,
  2074. ["thirdBossSafeSpot"] = false,
  2075. ["forceField"] = false,
  2076. ["safeSpotCircle"] = false,
  2077. ["secondBossSafeSpots"] = false,
  2078. }
  2079. local lastCheckList = {
  2080. ["glowPart"] = true,
  2081. ["outerPrecast"] = true,
  2082. ["beam"] = true,
  2083. ["Beam"] = true,
  2084. ["precast"] = true,
  2085. ["preCast"] = true,
  2086. ["HumanoidRootPart"] = true
  2087. }
  2088. local checkProjResult = nil
  2089. local checkProjResult1 = nil
  2090. local checkProjResult2 = nil
  2091. local projNameTemp = nil
  2092. local projNameParentTemp = nil
  2093. local function checkIfProjectile(obj)
  2094. projNameTemp = obj.Name
  2095. if projNameTemp == "enemyRadius" then
  2096. return true
  2097. end
  2098. if obj.Transparency == 1 then
  2099. return false
  2100. end
  2101. checkProjResult = whiteListBlackList[projNameTemp]
  2102. if checkProjResult ~= nil then
  2103. if checkProjResult then
  2104. return checkProjResult
  2105. end
  2106. end
  2107. projNameParentTemp = obj.Parent
  2108. checkProjResult1 = whiteListBlackList[obj.Parent.Name]
  2109.  
  2110. if checkProjResult1 ~= nil then
  2111. return checkProjResult1
  2112. end
  2113. if stringInTable(projNameTemp, projNameList) then
  2114. return false
  2115. end
  2116. checkProjResult2 = lastCheckList[projNameTemp]
  2117. if checkProjResult2 ~= nil and (obj.ClassName == "Part" ) and
  2118. projNameParentTemp ~= game.Players.LocalPlayer.Character and (checkProjResult2)
  2119. then --or obj.ClassName == "Union"
  2120. return true
  2121. else
  2122. return false
  2123. end
  2124. end
  2125. local regionPartSize = 4
  2126. local regionStartSize = 5--5
  2127. local regionPartDivisor = 1.4--1.5
  2128. local readyPartTable = {}
  2129. local randomNum = math.random(0,4)
  2130. local function createRegionPart()
  2131. if _G.loadSlow then
  2132. game:GetService("RunService").RenderStepped:wait()
  2133. end
  2134. local part = Instance.new("Part")
  2135. cs:AddTag(part, "RayIgnore")
  2136. part.Size = Vector3.new(regionPartSize, 50, regionPartSize)
  2137. part.CFrame = CFrame.new(0,100,0)
  2138. part.Name = regionPartName
  2139. part.Anchored = true
  2140. part.CanCollide = false
  2141. part.Material = "SmoothPlastic"
  2142. part.Transparency = stuffTransparency --.9
  2143. part:GetPropertyChangedSignal("Transparency"):Connect(antiTransChange)
  2144. part.ChildAdded:Connect(antiChildChange)
  2145. part.BrickColor = BrickColor.new("Black")
  2146. if randomNum == 0 then
  2147. if workspace:FindFirstChild("hardcore") then
  2148. part.Parent = workspace.hardcore
  2149. else
  2150. part.Parent = workspace.raidProgress
  2151. end
  2152. elseif randomNum== 1 then
  2153. part.Parent = workspace.timeLeft
  2154. elseif randomNum == 2 then
  2155. part.Parent = workspace.stats
  2156. elseif randomNum==3 then
  2157. if workspace:FindFirstChild("start") then
  2158. part.Parent = workspace.start
  2159. else
  2160. part.Parent = workspace.dungeonStarted
  2161. end
  2162. elseif randomNum == 4 then
  2163. part.Parent = workspace.Camera
  2164.  
  2165. end
  2166. local connection = part.Touched:Connect(function() end)
  2167. insert(readyPartTable, part)
  2168. return part
  2169. end
  2170. local function getTableSetup(size)
  2171. local t = {}
  2172. for j = 1, size do -- these loops actually make the table
  2173. for l = 1, size do
  2174. if t[j] == nil then -- if not obj, make obj
  2175. t[j] = {}
  2176. end
  2177. if t[j][l] == nil then -- if not obj, make obj
  2178. t[j][l] = {['obj'] = nil, ['safe'] = nil}
  2179. end
  2180. end
  2181. end
  2182. return t
  2183. end
  2184. local function createInitalRegionTable(size)
  2185. --441
  2186. for i= 1, 441 do
  2187. createRegionPart()
  2188. end
  2189. local root = game.Players.LocalPlayer.Character.HumanoidRootPart
  2190. local regionTable = getTableSetup(size)
  2191. local midPoint = (size/2) + .5 --get center cords
  2192. for i = 1, size do
  2193. for j = 1, size do
  2194. local part = remove(readyPartTable)
  2195. regionTable[i][j]['obj'] = part
  2196. regionTable[i][j]['safe'] = true
  2197. if i ~= midPoint or j ~= midPoint then
  2198. cs:AddTag(regionTable[i][j]['obj'], "directionWL")
  2199. end
  2200. end
  2201. end
  2202. return regionTable
  2203. end
  2204. local regionTable = createInitalRegionTable(regionStartSize)
  2205. local function GenerateSpiral(size)
  2206. --local _,_,_,root = getPlayer()
  2207. local size = #regionTable
  2208. local _,_,_,root = getPlayer()
  2209. if root ~= nil then
  2210. local x = 0
  2211. local y = 0
  2212. local d = 0
  2213. local c = 0
  2214. local s = 0
  2215. local tableIndex, part, parts
  2216. for k = 1, size - 1 do
  2217.  
  2218. for j = 0, (k < (size - 1) and 2 or 3) do
  2219. for i = 0, s do
  2220. local Vector = root.Position + Vector3.new(x, 0, y)
  2221. local Part = Instance.new("Part")
  2222. Part.Anchored = true
  2223. Part.CanCollide = false
  2224. Part.Position = Vector
  2225. Part.Size = Vector3.new(2, 2, 2)
  2226. Part.Parent = workspace
  2227. if d == 0 then
  2228. y = y + 5
  2229. elseif d == 1 then
  2230. x = x + 5
  2231. elseif d == 2 then
  2232. y = y - 5
  2233. elseif d == 3 then
  2234. x = x - 5
  2235. end
  2236. end
  2237. d = (d + 1) % 4
  2238. end
  2239. s = s + 1
  2240. end
  2241. end
  2242. end
  2243. local function updateRegionTable()
  2244. local _,_,_,root = getPlayer()
  2245. if root ~= nil then
  2246. local size = #regionTable
  2247. 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
  2248. because thats size of part being crreated, /2 to get how far back it muist go, *-1
  2249. to get negative #
  2250. local z = (((size - 1) * regionPartSize) / 2) * -1/regionPartDivisor
  2251. local tableIndex, part, parts
  2252. for i, v in pairs(regionTable) do
  2253. for j, k in pairs(v) do
  2254. tableIndex = k
  2255. part = tableIndex['obj']
  2256. if root ~= nil and part ~= nil then
  2257. part.CFrame = root.CFrame * CFrame.new(x,0,z)
  2258. --part.Position = (root.CFrame * CFrame.new(x,-1,z)).Position
  2259. parts = part:GetTouchingParts() -- local parts =
  2260. GetTouchingParts(part)
  2261. part.BrickColor = BrickColor.new("Black")
  2262. tableIndex['safe'] = true
  2263. for m, k in pairs(parts) do
  2264. if checkIfProjectile(k) then
  2265. part.BrickColor = BrickColor.new("Bright red")
  2266. tableIndex['safe'] = false
  2267. break
  2268. end
  2269. end
  2270. end
  2271. z = z + regionPartSize/regionPartDivisor
  2272. end
  2273.  
  2274. z = (((size - 1) * regionPartSize) / 2) * -1/regionPartDivisor
  2275. x = x + regionPartSize/regionPartDivisor
  2276. end
  2277. end
  2278. end
  2279. --[[
  2280.  
  2281. local function updateRegionTable()
  2282. local _,_,_,root = getPlayer()
  2283. if root ~= nil then
  2284. local size = #regionTable
  2285. 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
  2286. because thats size of part being crreated, /2 to get how far back it muist go, *-1
  2287. to get negative #
  2288. local z = (((size - 1) * regionPartSize) / 2) * -1/regionPartDivisor
  2289. local tableIndex, part, parts
  2290. for i, v in pairs(regionTable) do
  2291. for j, k in pairs(v) do
  2292. tableIndex = k
  2293. part = tableIndex['obj']
  2294. if root ~= nil and part ~= nil then
  2295. part.CFrame = root.CFrame * CFrame.new(x,0,z)
  2296. --part.Position = (root.CFrame * CFrame.new(x,-1,z)).Position
  2297. parts = part:GetTouchingParts() -- local parts =
  2298. GetTouchingParts(part)
  2299. part.BrickColor = BrickColor.new("Black")
  2300. tableIndex['safe'] = true
  2301. for m, k in pairs(parts) do
  2302. if checkIfProjectile(k) then
  2303. part.BrickColor = BrickColor.new("Bright red")
  2304. tableIndex['safe'] = false
  2305. break
  2306. end
  2307. end
  2308. end
  2309. z = z + regionPartSize/regionPartDivisor
  2310. end
  2311. z = (((size - 1) * regionPartSize) / 2) * -1/regionPartDivisor
  2312. x = x + regionPartSize/regionPartDivisor
  2313. end
  2314. end
  2315. end
  2316. ]]
  2317. local function increaseRegionTable()
  2318. local p, new
  2319. for i,col in pairs(regionTable) do
  2320. if #readyPartTable == 0 then
  2321. createRegionPart()
  2322. end
  2323. p = remove(readyPartTable)
  2324. new = {}
  2325. new['obj'] = p
  2326. insert(regionTable[i], 1, new)
  2327. if #readyPartTable == 0 then
  2328. createRegionPart()
  2329. end
  2330. p = remove(readyPartTable)
  2331.  
  2332. new = {}
  2333. new['obj'] = p
  2334. insert(regionTable[i], new)
  2335. end
  2336. local topColumn = {}
  2337. for i, row in pairs(regionTable[1]) do
  2338. if #readyPartTable == 0 then
  2339. createRegionPart()
  2340. end
  2341. p = remove(readyPartTable)
  2342. new = {}
  2343. new['obj'] = p
  2344. insert(topColumn, new)
  2345. end
  2346. local botColumn = {}
  2347. for i, row in pairs(regionTable[1]) do
  2348. if #readyPartTable == 0 then
  2349. createRegionPart()
  2350. end
  2351. p = remove(readyPartTable)
  2352. local new = {}
  2353. new['obj'] = p
  2354. insert(botColumn, new)
  2355. end
  2356. insert(regionTable, 1, topColumn)
  2357. insert(regionTable, botColumn)
  2358. end
  2359. local function decreaseRegionTable()
  2360. local tr
  2361. for i,col in pairs(regionTable) do
  2362. tr = remove(regionTable[i], #regionTable[i])
  2363. if tr ~= nil then
  2364. tr['obj'].CFrame = CFrame.new(0,0,0)
  2365. insert(readyPartTable, tr['obj'])
  2366. local tr = remove(regionTable[i], 1)
  2367. tr['obj'].CFrame = CFrame.new(0,0,0)
  2368. insert(readyPartTable, tr['obj'])
  2369. end
  2370. end
  2371. tr = remove(regionTable, #regionTable)
  2372. for i, v in pairs(tr) do
  2373. if v ~= nil then
  2374. v['obj'].CFrame = CFrame.new(0,0,0)
  2375. insert(readyPartTable, v['obj'])
  2376. end
  2377. end
  2378. tr = remove(regionTable, 1)
  2379. for i, v in pairs(tr) do
  2380. if v ~= nil then
  2381. v['obj'].CFrame = CFrame.new(0,0,0)
  2382. insert(readyPartTable, v['obj'])
  2383. end
  2384. end
  2385. end
  2386.  
  2387. local objectiveExists = false
  2388.  
  2389. local objectiveObject = nil
  2390. local forceObjectiveExists = false
  2391. function checkAroundPlayer(regionTable, s)
  2392. s = (s/2) + .5 --get center cords
  2393. for i = #regionTable - s, regionStartSize do
  2394. if not regionTable[i][i]['safe'] then return false end
  2395. end
  2396. return true
  2397. end
  2398. local function checkCenter(regionTable, s)
  2399. s = (s/2) + .5 --get center cords
  2400. return regionTable[s][s]['safe']
  2401. end
  2402. local function decide()
  2403. enemy = findCloseEnemy()
  2404. local num = mobRange
  2405. if enemy ~= nil and enemy.Name ~= "Azrallik's Heart" and enemy.Name ~=
  2406. "Dragon Orb" then
  2407. enemy:WaitForChild("enemyStyle")
  2408. local mobType = enemy.enemyStyle.Value
  2409. if mobType ~= "mob" and mobType ~= "ranged" and mobType ~= "melee" and
  2410. mobType ~= "burly" then -- if boss then
  2411. num = bossRange
  2412. bossPresent = true
  2413. else -- if mob
  2414. if bossPresent then -- if boss did exist but now didnt, that means boss
  2415. died
  2416. for i,v in pairs(workspace:GetChildren()) do
  2417. if enemyProjNameList[v.Name] then
  2418. v:Destroy()
  2419. end
  2420. end
  2421. end
  2422. bossPresent = false
  2423. end
  2424. end
  2425. --if enemy.Name == "Ancient Lava Mage" then num = 25 end
  2426. local _,_, hum,root = getPlayer()
  2427. if root ~= nil and enemy ~= nil then
  2428. local ePos = enemy.PrimaryPart.Position
  2429. local eNVec = Vector3.new(ePos.X, root.Position.Y, ePos.z)
  2430. local actualDist = getMag(eNVec, root.Position) (enemy.PrimaryPart.Size.Z/2)
  2431. updateRegionTable()
  2432. if forceObjectiveExists then
  2433. return 'chase_fobjective', nil
  2434. elseif not checkAroundPlayer(regionTable, #regionTable)
  2435. if not bossPresent and _G.teleportDuringBossOnly then
  2436. walkspeed = 30
  2437. else
  2438. walkspeed = 24
  2439. end
  2440. return 'dodge', nil
  2441. elseif objectiveExists and objectiveObject ~= nil then
  2442. walkspeed = 24
  2443. return 'chase_objective', nil
  2444.  
  2445. then
  2446.  
  2447. elseif actualDist < num - 5 then --elseif actualDist < num - 5 and
  2448. bossPresent then
  2449. walkspeed = 24
  2450. return "run", nil
  2451. elseif actualDist < num then
  2452. walkspeed = 24
  2453. return "strafe", nil
  2454. else
  2455. if bossPresent then
  2456. walkspeed = 24
  2457. else
  2458. walkspeed = 30
  2459. end
  2460. return "chase", nil
  2461. end
  2462. else
  2463. return "nothing"
  2464. end
  2465. end
  2466. if _G.doInstakill then
  2467. game:GetService("RunService").RenderStepped:connect(function()
  2468. if (sethiddenproperty) then
  2469. sethiddenproperty(game:GetService("Players").LocalPlayer,
  2470. 'SimulationRadius', math.huge)
  2471. end
  2472. end)
  2473. end
  2474. local _, p, height
  2475. local smalltpdebuff = true
  2476. local function mainLoop()
  2477. spawn(function()
  2478. local _,_,hum,root = getPlayer()
  2479. while not gameOver do
  2480. _,_,hum,root = getPlayer()
  2481. if root ~= nil and hum ~= nil and hum.Health > 0 then
  2482. spawn(function()
  2483. game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = walkspeed
  2484. end)
  2485. local thought, data = decide()
  2486. ScriptDebug("Thought: ".. thought .. ", Enemy: " .. enemy.Name)
  2487. if thought == "chase" then
  2488. _, p = rayCast(root.CFrame, enemy.PrimaryPart.CFrame,
  2489. "RayWhitelist", true)
  2490. if p == nil then -- if no walls between player and enemy then use
  2491. moveto instead of pathfinding it
  2492. makePath(enemy, true)
  2493. else
  2494. makePath(enemy)
  2495. end
  2496. elseif thought == "chase_objective" then
  2497. if objectiveObject ~= nil and objectiveObject.ClassName == "Model"
  2498. then
  2499. _, p = rayCast(root.CFrame * CFrame.new(0,0,0),
  2500. objectiveObject.PrimaryPart.CFrame * CFrame.new(0,4,0), "RayWhitelist", true)
  2501. elseif objectiveObject ~= nil then
  2502. _, p = rayCast(root.CFrame * CFrame.new(0,0,0),
  2503. objectiveObject.CFrame * CFrame.new(0,4,0), "RayWhitelist", true)
  2504. end
  2505.  
  2506. if p == nil then -- if no walls between player and objective then
  2507. use moveto instead of pathfinding it
  2508. makePath(objectiveObject, true)
  2509. else
  2510. makePath(objectiveObject)
  2511. end
  2512. elseif thought == "chase_fobjective" then
  2513. _, p = rayCast(root.CFrame, thePart.CFrame, "RayWhitelist", true)
  2514. if p == nil then -- if no walls between player and objective then
  2515. use moveto instead of pathfinding it
  2516. makePath(thePart, true)
  2517. else
  2518. makePath(thePart)
  2519. end
  2520. elseif thought == "strafe" then
  2521. local left, p = rayCast(root.CFrame, root.CFrame *
  2522. CFrame.new(1000,0,0), "RayWhitelist", true) -- left
  2523. local right = rayCast(root.CFrame, root.CFrame * CFrame.new(1000,0,0), "RayWhitelist", true)-- right
  2524. local leftDist = getMag(root.Position, left)
  2525. local rightDist = getMag(root.Position, right)
  2526. if math.abs(leftDist - rightDist) < 5 then
  2527. thePart.CFrame = root.CFrame
  2528. else
  2529. if rightDist < leftDist then
  2530. thePart.CFrame = root.CFrame * CFrame.new(5,0,0)
  2531. else
  2532. thePart.CFrame = root.CFrame * CFrame.new(-5,0,0)
  2533. end
  2534. end
  2535. makePath(thePart, true)
  2536. elseif thought == "run" then
  2537. _, p = rayCast(root.CFrame * CFrame.new(0,0,0), root.CFrame *
  2538. CFrame.new(0,0,25), "RayWhitelist", true)
  2539. if p == nil then -- if nothing is behind me, then run backwards
  2540. thePart.CFrame = root.CFrame * CFrame.new(0,0,25)
  2541. makePath(thePart, true)
  2542. else -- keep looking to the left and right till we find a point
  2543. with no part
  2544. local found = false
  2545. for i = 1, 20 do
  2546. if found then
  2547. break
  2548. end
  2549. for j = 1, 2 do
  2550. local studVal = i * 9
  2551. if j == 1 then
  2552. studVal = studVal * -1
  2553. end
  2554. _, p = rayCast(root.CFrame, root.CFrame *
  2555. CFrame.new(studVal,-2,25 - i), "RayWhitelist", true)
  2556. if p == nil then -- location found!
  2557. found = true
  2558. thePart.CFrame = root.CFrame * CFrame.new(studVal,-2,25 i)
  2559. break
  2560. end
  2561. end
  2562. end
  2563.  
  2564. 0 do
  2565.  
  2566. makePath(thePart, true)
  2567. end
  2568. elseif thought == "dodge" then
  2569. local cSafe = nil -- gets the nearest safe spot
  2570. local cSafeVal = math.huge
  2571. local temp, temp1
  2572. local inCenter = false
  2573. local s = (#regionTable/2) + .5 --get center cords
  2574. while cSafe == nil and root ~= nil and hum ~= nil and hum.Health >
  2575.  
  2576. if regionTable[s][s]['safe'] then inCenter = true cSafe =
  2577. regionTable[s][s]['obj'] break end -- if its 1, break cause it has to be best
  2578. for x,rowObj in pairs(regionTable) do
  2579. for y, colObj in pairs(rowObj) do
  2580. temp = regionTable[x][y]
  2581. temp1 = math.floor(getMag(root.Position,
  2582. temp['obj'].Position) + .5)
  2583. if temp['safe'] and temp1 < cSafeVal then
  2584. --print("Cur Val: ".. temp1 .. " Best Val: " .. cSafeVal)
  2585. _, p = rayCast(root.CFrame * CFrame.new(0,0,0),
  2586. CFrame.new(temp['obj'].Position, root.Position) * CFrame.new(0,0,regionPartSize/2),
  2587. "RayWhitelist", true)
  2588. if p == nil then
  2589. cSafe = temp['obj']
  2590. cSafeVal = temp1
  2591. else
  2592. temp['obj'].BrickColor = BrickColor.new("Bright yellow")
  2593. end
  2594. end
  2595. end
  2596. end
  2597. if cSafe ~= nil then -- if safe found break loop,
  2598. break
  2599. else -- if no safe found, increase scope and loop over everything
  2600. again
  2601. increaseRegionTable()
  2602. updateRegionTable()
  2603. if extremelyFast then
  2604. game:GetService("RunService").RenderStepped:wait()
  2605. else
  2606. wait()
  2607. end
  2608. end
  2609. end -- while loop done here, searching done
  2610. _,_,hum,root = getPlayer()
  2611. if cSafe ~= nil and root ~= nil and hum ~= nil then
  2612. if inCenter then
  2613. if objectiveExists then
  2614. if objectiveObject ~= nil and objectiveObject.ClassName ==
  2615. "Model" then
  2616. height =
  2617. Vector3.new(objectiveObject.PrimaryPart.Position.X, root.Position.Y,
  2618. objectiveObject.PrimaryPart.Position.Z)
  2619. elseif objectiveObject ~= nil then
  2620. height = Vector3.new(objectiveObject.Position.X,
  2621. root.Position.Y, objectiveObject.Position.Z)
  2622. end
  2623. else
  2624. height = Vector3.new(enemy.PrimaryPart.Position.X,
  2625.  
  2626. root.Position.Y, enemy.PrimaryPart.Position.Z)
  2627. end
  2628. _, p = rayCast(root.CFrame * CFrame.new(0,0,0),
  2629. CFrame.new(height), "directionWL", true)
  2630. if p ~= nil and p.BrickColor == BrickColor.new("Black") then
  2631. if objectiveExists then
  2632. thePart.CFrame = p.CFrame -- move thepart to the thing safe
  2633. thats towards objective
  2634. elseif getMag(enemy.PrimaryPart.Position, root.Position) >
  2635. bossRange + 5 then -- if the enemy isnt within ability range then set thepart to
  2636. the closet safe spot
  2637. --print('move closer')
  2638. thePart.CFrame = p.CFrame
  2639. else -- if everything is wrong then go to safe spot
  2640. --print('stay')
  2641. thePart.CFrame = root.CFrame
  2642. end
  2643. else -- safe spot towards objectives/enemy is not safe/ dont do
  2644. shit
  2645. --print('dont move')
  2646. thePart.CFrame = cSafe.CFrame
  2647. end
  2648. else
  2649. thePart.CFrame = cSafe.CFrame
  2650. end
  2651. cSafe.BrickColor = BrickColor.new("Lime green")
  2652. if inCenter then -- if incenter then just path to the part (since
  2653. it might be towards an enemy or objective
  2654. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame =
  2655. cSafe.CFrame
  2656. makePath(thePart, true)
  2657. else
  2658. if (cSafeVal < _G.smallTeleportVal) and _G.smallTeleports and
  2659. smalltpdebuff then -- if not incenter and the dodge is close, just TP to it -- > 9
  2660. if not _G.teleportDuringBossOnly or bossPresent then
  2661. smalltpdebuff = false
  2662. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame
  2663. = thePart.CFrame
  2664. makePath(thePart, true)
  2665. spawn(function()
  2666. wait(.1)
  2667. smalltpdebuff = true
  2668. end)
  2669. else -- if neither just play normal
  2670. makePath(thePart, true)
  2671. end
  2672. else -- if neither just play normal
  2673. makePath(thePart, true)
  2674. end
  2675. end
  2676. end
  2677. while #regionTable > regionStartSize do
  2678. decreaseRegionTable()
  2679. if extremelyFast then
  2680. game:GetService("RunService").RenderStepped:wait()
  2681. else
  2682. wait()
  2683. end
  2684. end
  2685.  
  2686. end
  2687. end
  2688. if extremelyFast then
  2689. game:GetService("RunService").RenderStepped:wait()
  2690. else
  2691. wait()
  2692. end
  2693. end
  2694. end)
  2695.  
  2696. end
  2697. --PSU_FAST_EXECUTION(function() mainLoop() end)
  2698. mainLoop()
  2699. local function useabilities()
  2700. while not game.Players.LocalPlayer:FindFirstChild("Backpack") do
  2701. wait()
  2702. end
  2703. while not gameOver do
  2704. if _G.ignoreAbilityRange then
  2705. game:GetService("RunService").RenderStepped:wait()
  2706. else
  2707. wait()
  2708. end
  2709. char = game.Players.LocalPlayer.Character
  2710. if enemy ~= nil and enemy.PrimaryPart ~= nil and char ~= nil and
  2711. char.PrimaryPart ~= nil then
  2712. if (getMag(enemy.PrimaryPart.Position, char.PrimaryPart.Position) (enemy.PrimaryPart.Size.Z/2) ) < abilityRange or _G.ignoreAbilityRange then -- 25,
  2713. 65 is the range in which we attack
  2714. for _, v in pairs(game.Players.LocalPlayer.Backpack:GetChildren()) do
  2715. if v:FindFirstChildOfClass("RemoteEvent") and v.cooldown.Value <= 0
  2716. then
  2717. v:FindFirstChildOfClass("RemoteEvent"):FireServer()
  2718. end
  2719. end
  2720. end
  2721. end
  2722. end
  2723. end
  2724. local function getswordstats()
  2725. player = game.Players.LocalPlayer.Character:GetChildren()
  2726. for _, v in pairs(player) do
  2727. if v.ClassName == "Accessory" then
  2728. if v:FindFirstChild("swing") then
  2729. if v:FindFirstChild("attackSpeed") then
  2730. return v.swing, v.attackSpeed.Value
  2731. end
  2732. end
  2733. end
  2734. end
  2735. end
  2736. if _G.auto_attack then
  2737. spawn(useabilities)
  2738. spawn(function()
  2739. while not gameOver do
  2740. sword, cooldown = getswordstats()
  2741. player = game.Players.LocalPlayer.Character
  2742. if enemy ~= nil and enemy.PrimaryPart ~= nil and player ~= nil and
  2743.  
  2744. player.PrimaryPart ~= nil then
  2745. if cooldown ~= nil and (getMag(enemy.PrimaryPart.Position,
  2746. player.PrimaryPart.Position) - (enemy.PrimaryPart.Size.Z/2) ) < 13 then
  2747. wait(cooldown/10)
  2748. sword:FireServer()
  2749. end
  2750. end
  2751. wait()
  2752. end
  2753. end)
  2754. end
  2755. local function steamPunkLast(instance) -- finds the four spots and returns the
  2756. best one
  2757. instance:WaitForChild("precast")
  2758. --wait(.5)
  2759. local steamTable = {
  2760. bestVal = math.huge,
  2761. bestObj = nil,
  2762. dist = nil,
  2763. newPoint = nil,
  2764. }
  2765. local _, _, _, root = getPlayer()
  2766. for i,v in pairs(instance:GetChildren()) do
  2767. if v.Name == "hitBox" then
  2768. steamTable.dist = getMag(root.Position, v.Position)
  2769. v.Transparency = .9
  2770. if steamTable.dist < steamTable.bestVal then
  2771. steamTable.bestVal = steamTable.dist
  2772. steamTable.bestObj = v
  2773. end
  2774. elseif v.Name == "cog" then
  2775. v:Destroy()
  2776. end
  2777. end
  2778. steamTable.bestObj.BrickColor = BrickColor.new("Lime Green")
  2779. local a = (steamTable.bestObj.CFrame * CFrame.new(0,0,
  2780. (steamTable.bestObj.Size.Z/-2) + 5)).Position
  2781. local b = (steamTable.bestObj.CFrame * CFrame.new(0,0,
  2782. (steamTable.bestObj.Size.Z/2) - 5)).Position
  2783. if getMag(enemy.PrimaryPart.Position, a) < getMag(enemy.PrimaryPart.Position,
  2784. b) then
  2785. return a
  2786. else
  2787. return b
  2788. end
  2789. end
  2790. -- secondBossGeyser
  2791. local function findClosestRockPile(i)
  2792. local a = workspace.secondBossRockPile2.Union
  2793. local b = workspace.secondBossRockPile1.Union
  2794. if (a.Position - i.PrimaryPart.Position).Magnitude < (b.Position i.PrimaryPart.Position).Magnitude then
  2795. return a
  2796. else
  2797. return b
  2798. end
  2799.  
  2800. end
  2801.  
  2802. local childAddedT = {
  2803. forceFieldCounter = 0,
  2804. gotRock = false,
  2805. gyzerTable = {},
  2806. gyzerLoopRunning = false,
  2807. }
  2808. local function createTentacleAttack(tentacle)
  2809. local r = game.Players.LocalPlayer.Character.HumanoidRootPart
  2810. local t = tentacle.PrimaryPart
  2811. local part = Instance.new("Part")
  2812. part.CFrame = CFrame.new(part.Position, r.Position)
  2813. part.CFrame = t.CFrame * CFrame.new(0,10,-60)
  2814. part.Size = Vector3.new(14,5,128)
  2815. part.Parent = workspace
  2816. part.CanCollide = false
  2817. part.Transparency = 1
  2818. part.Anchored = true
  2819. part.Name = "enemyRadius"
  2820. wait(3)
  2821. part:Destroy()
  2822. end
  2823. _G.IsDoingSlam = false
  2824. workspace.ChildAdded:Connect(function(instance)
  2825. if instance.Name == regionPartName then return end
  2826. --print(instance.Name)
  2827. if instance.Name == "firstBossMoveOrb" then -- ocean 1
  2828. addHitBox(instance, 27, "rectanglev3")
  2829. elseif instance.Name == "thirdBossOrbCircle" or instance.Name ==
  2830. "finalBossOrbShot" then -- ocean 3
  2831. addHitBox(instance, 30, "rectangle-2")
  2832. elseif instance.Name == "firstBossFollowOrb" then -- volcanic 1
  2833. addHitBox(instance, 25, "rectangle-2")
  2834. elseif instance.Name == "mageProjectileBall" then -- canals 1
  2835. addHitBox(instance, 10, "rectangle")
  2836. elseif instance.Name == "secondBossCrescent" then -- canals 2
  2837. addHitBox(instance, 12, "square")
  2838. elseif instance.Name == "secondBossOrb" then -- orbital 2
  2839. addHitBox(instance, 12, "rectanglev3")
  2840. elseif instance.Name == "secondBossStabProjectile" then -- bos raid,
  2841. ancient stone guardian
  2842. addHitBox(instance, 15, "rectangle-2")
  2843. elseif instance.Name == "gasBall" then -- egg event
  2844. addHitBox(instance, 10, "rectangle")
  2845. elseif instance.Name == "tornado" then -- boss raid, dragon
  2846. addHitBox(instance, 20, "square")
  2847. elseif instance.Name == "thirdBossOrbShot" then -- orbital 3
  2848. addHitBox(instance, 26, "rectanglev2")
  2849. elseif instance.Name == "Kraken Tentacle" then -- ghastly 1
  2850. local debuff = true
  2851. instance:WaitForChild("Humanoid")
  2852. while instance.Parent ~= nil and instance:FindFirstChild("Humanoid") and
  2853. instance.Humanoid.Health > 0 do
  2854. if #instance.Humanoid:GetPlayingAnimationTracks() == 2 and debuff then
  2855.  
  2856. debuff = false
  2857. createTentacleAttack(instance)
  2858. wait(3)
  2859. debuff = true
  2860. else
  2861. print('not attacking')
  2862. end
  2863. wait()
  2864. end
  2865. elseif instance.Name == "Kraken Tentacle" then -- ghastly 1
  2866. local debuff = true
  2867. instance:WaitForChild("Humanoid")
  2868. while instance.Parent ~= nil and instance:FindFirstChild("Humanoid") and
  2869. instance.Humanoid.Health > 0 do
  2870. if #instance.Humanoid:GetPlayingAnimationTracks() == 2 and debuff then
  2871. debuff = false
  2872. createTentacleAttack(instance)
  2873. wait(3)
  2874. debuff = true
  2875. else
  2876. print('not attacking')
  2877. end
  2878. wait()
  2879. end
  2880. elseif instance.Name == "overheadCannon" then -- ghastly 2
  2881. print('got cannon')
  2882. objectiveExists = true
  2883. objectiveObject = game:GetService("Workspace").playerFireCannon.ring
  2884. spawn(function()
  2885. while instance ~= nil and instance.Parent ~= nil do
  2886. wait()
  2887. end
  2888. if workspace.playerFireCannonHitMark.Transparency == 1 then
  2889. print('obj done')
  2890. objectiveObject = nil
  2891. objectiveExists = false
  2892. else
  2893. print('chara prob died, get new cannon')
  2894. objectiveObject = workspace.playerPickupCannonballRing
  2895. objectiveExists = true
  2896. end
  2897. -- used cannon shot
  2898. end)
  2899. elseif instance.Name == "secondBossGeyser" then -- volcanic 2
  2900. instance:WaitForChild("PrimaryPart")
  2901. spawn(function()
  2902. local gyzerPos = #childAddedT.gyzerTable+1
  2903. insert(childAddedT.gyzerTable, instance)
  2904. while instance ~= nil and instance.Parent ~= nil do
  2905. wait()
  2906. end
  2907. print('remove gyzzer instance')
  2908. remove(childAddedT.gyzerTable, gyzerPos)
  2909. end)
  2910. spawn(function()
  2911. if not childAddedT.gyzerLoopRunning then
  2912. -- gyzer has spawned
  2913. objectiveExists = true
  2914. childAddedT.gyzerLoopRunning = true
  2915.  
  2916. while workspace.secondBossRockPile2.Union.Transparency ~= 1 and
  2917. #childAddedT.gyzerTable ~= 0 do -- while gyzer active do
  2918. if childAddedT.gotRock then
  2919. objectiveObject =
  2920. childAddedT.gyzerTable[#childAddedT.gyzerTable]
  2921. else
  2922. objectiveObject =
  2923. findClosestRockPile(childAddedT.gyzerTable[#childAddedT.gyzerTable])
  2924. end
  2925. wait()
  2926. end
  2927. childAddedT.gyzerLoopRunning = false
  2928. if #childAddedT.gyzerTable == 0 or
  2929. workspace.secondBossRockPile2.Union.Transparency == 1 then
  2930. objectiveObject = nil
  2931. objectiveExists = false
  2932. end
  2933. end
  2934. end)
  2935. elseif instance.Name == "secondBossOverheadRock" then -- volcanic 2
  2936. -- player got the rock
  2937. childAddedT.gotRock = true
  2938. while workspace:FindFirstChild("secondBossOverheadRock") and
  2939. workspace.secondBossRockPile2.Union.Transparency ~= 1 do -- while rock exists wait
  2940. wait()
  2941. end
  2942. childAddedT.gotRock = false
  2943. elseif instance.Name == "thirdBossSafeSpots" then -- steampunk 3
  2944. forceObjectiveExists = true
  2945. local safe = steamPunkLast(instance)
  2946. thePart.CFrame = CFrame.new(safe)
  2947. while workspace:FindFirstChild(instance.Name) and
  2948. workspace[instance.Name]:FindFirstChild("precast") and
  2949. workspace[instance.Name]:FindFirstChild("precast").Transparency < 1 do
  2950. safe = steamPunkLast(instance)
  2951. thePart.CFrame = CFrame.new(safe)
  2952. wait()
  2953. end
  2954. forceObjectiveExists = false
  2955. elseif instance.Name == "thirdBossSpreadLine" then -- volcanic 3
  2956. instance:WaitForChild("precast")
  2957. local s = instance.precast:Clone()
  2958. s.Parent = workspace
  2959. s.Transparency = 1
  2960. s.Size = instance.precast.Size + Vector3.new(2,0,0)
  2961. s.Name = "enemyRadius"
  2962. wait(1.4)
  2963. s:Destroy()
  2964. instance.precast.Name = "precast"
  2965. elseif instance.Name == "firstBossLaserPrecast" then -- ocean 1
  2966. instance:WaitForChild("precast")
  2967. wait(.5)
  2968. if instance:FindFirstChild("precast") then
  2969. local s = instance.precast:Clone()
  2970. s.Parent = workspace
  2971. s.Transparency = 1
  2972. s.Size = instance.precast.Size
  2973. s.Name = "enemyRadius"
  2974. wait(1)
  2975.  
  2976. s:Destroy()
  2977. end
  2978. elseif instance.Name == "secondBossSlamHitbox" then -- ocean 2
  2979. local a = instance:WaitForChild("precast")
  2980. local hitBox = instance:WaitForChild("hitBox")
  2981. local _, vchar, hum, root = getPlayer()
  2982. if root then
  2983. if math.abs(root.Position.X - hitBox.Position.X) <= 12 and _G.ATslam
  2984. and not _G.IsDoingSlam then
  2985. _G.IsDoingSlam = true
  2986. root.CFrame = hitBox.CFrame * CFrame.new(0, 0, 9)
  2987. wait(1)
  2988. _G.IsDoingSlam = false
  2989. end
  2990. end
  2991. --[[
  2992. local sum = 0
  2993. sum = sum + a.Size.X + a.Size.Z + a.Size.Y
  2994. warn(sum)
  2995. if sum == 46.431163787842 then
  2996. forceObjectiveExists = true
  2997. thePart.CFrame = CFrame.new(-2653.086, 196.526, 2325.825)
  2998. wait(5)
  2999. forceObjectiveExists = false
  3000. end]]
  3001. elseif instance.Name == "preCast" then -- winter mob
  3002. instance:WaitForChild("preCast")
  3003. instance.preCast.Size = instance.preCast.Size + Vector3.new(0,0,3)
  3004. elseif instance.Name == "riflemanShot" then -- pirate mob
  3005. instance:WaitForChild("hitBox")
  3006. instance.hitBox.Size = instance.hitBox.Size + Vector3.new(0,0,3)
  3007. elseif instance.Name == "firstBossGatlingGunShot" then -- orbital 1
  3008. instance:WaitForChild("precast")
  3009. instance.precast.Size = instance.precast.Size + Vector3.new(1,0,0)
  3010. elseif instance.Name == "firstBossFlameShot" then -- orbital 1
  3011. instance:WaitForChild("precast")
  3012. instance.precast.Size = instance.precast.Size + Vector3.new(1,0,0)
  3013. elseif instance.Name == "chickenMage" then -- egg event
  3014. instance:WaitForChild("precast")
  3015. instance.precast.Size = instance.precast.Size + Vector3.new(0,0,3)
  3016. elseif instance.Name == "droneShot" then -- orbital mob
  3017. instance:WaitForChild("shot")
  3018. wait()
  3019. for i,c in pairs(instance:GetChildren()) do
  3020. if c.Name == "shot" then
  3021. c.precast.Size = c.precast.Size + Vector3.new(1.2,0,0)
  3022. end
  3023. end
  3024. elseif instance.Name == "poisonBomb" then -- egg event
  3025. instance:WaitForChild("eggPart")
  3026. instance:WaitForChild("fuse")
  3027. instance:WaitForChild("PrimaryPart")
  3028. instance:WaitForChild("Union")
  3029. instance.eggPart.Name = "enemyRadius"
  3030. instance.fuse.Name = "enemyRadius"
  3031. instance.PrimaryPart.Name = "enemyRadius"
  3032. instance.Union.Name = "enemyRadius"
  3033. elseif instance.Name == "rangeMobShot" then -- egg event
  3034.  
  3035. instance:WaitForChild("precast")
  3036. instance.precast.Size = instance.precast.Size + Vector3.new(1.5,0,3)
  3037. elseif instance.Name == "chickenMage" then -- egg event
  3038. instance:WaitForChild("precast")
  3039. instance.precast.Size = instance.precast.Size + Vector3.new(0,0,3)
  3040. elseif instance.Name == "npcMageShot" then -- kings castle mob
  3041. instance:WaitForChild("precast")
  3042. instance.precast.Size = instance.precast.Size + Vector3.new(0,0,3)
  3043. elseif instance.Name == "iceBeamIndicator" then -- winter boss
  3044. instance:WaitForChild("Part")
  3045. instance.Part.Size = instance.Part.Size + Vector3.new(0,3,3)
  3046. elseif instance.Name == "hitIndicatorIceAOE" then -- winter boss
  3047. instance:WaitForChild("Part")
  3048. instance.Part.Transparency = 0
  3049. elseif instance.Name == "thirdBossLifeStealBeams" then -- orbital 3
  3050. local thePart = createPart(enemy.PrimaryPart.CFrame * CFrame.new(0,0,75), Vector3.new(40,40,150), "enemyRadius", "Block")
  3051. wait(1.5)
  3052. thePart:Destroy()
  3053. elseif instance.Name == "silkBlast" then -- pirate 2
  3054. local s = instance:WaitForChild("precast"):Clone()
  3055. s.Size = instance.precast.Size + Vector3.new(3,5,3)
  3056. s.Name = "enemyRadius"
  3057. s.Transparency = 0
  3058. s.Parent = workspace
  3059. wait(5.5)
  3060. s:Destroy()
  3061. elseif instance.Name == "thirdBossSafeSpot" then -- volcanic 3
  3062. objectiveExists = true
  3063. while not instance:FindFirstChild("precast") do
  3064. wait()
  3065. end
  3066. objectiveObject = instance
  3067. while workspace:FindFirstChild(objectiveObject.Name) and
  3068. workspace:FindFirstChild(objectiveObject.Name):FindFirstChild("precast") and
  3069. workspace:FindFirstChild(objectiveObject.Name).precast.Transparency > 0 do
  3070. wait()
  3071. end
  3072. objectiveObject = nil
  3073. objectiveExists = false
  3074. elseif instance.Name == "safeSpotCircle" then -- canals 2?
  3075. objectiveExists = true
  3076. objectiveObject = instance
  3077. while instance ~= nil and workspace:FindFirstChild(instance.Name) and
  3078. workspace:FindFirstChild(instance.Name).Transparency > 0 do
  3079. wait()
  3080. end
  3081. objectiveObject = nil
  3082. objectiveExists = false
  3083. elseif instance.Name == "forceField" then -- canals 3
  3084. childAddedT.forceFieldCounter = childAddedT.forceFieldCounter + 1
  3085. objectiveExists = true
  3086. objectiveObject = instance
  3087. if childAddedT.forceFieldCounter == 2 then
  3088. childAddedT.forceFieldCounter = 0
  3089. objectiveExists = false
  3090. objectiveObject = nil
  3091.  
  3092. style
  3093.  
  3094. end
  3095. elseif instance.ClassName == "Model" then -- if a mob spawns in workspace
  3096. if instance.Name == "Kraken Tentacle" then return end -- has no enemy
  3097.  
  3098. instance:WaitForChild("HumanoidRootPart", 10)
  3099. if instance ~= nil and instance:FindFirstChild("HumanoidRootPart") and
  3100. instance ~= game.Players.LocalPlayer.Character then
  3101. if instance.Name == "Azrallik's Heart" or instance.Name == "Dragon Orb"
  3102. then
  3103. cs:AddTag(instance, "Prio-Enemy")
  3104. elseif instance.Name == "Blood Minion" or instance.Name == "Infected
  3105. Pirate" or instance.Name == "Ice Minion" or instance.Name == "Tracking Minion" or
  3106. instance.Name == "Stone Minion" or instance.Name == "Flame Minion" then -- insta
  3107. kill
  3108. instance:WaitForChild("Humanoid")
  3109. addHitBox(instance, 5, "square")
  3110. instance.Humanoid.Health = 0
  3111. wait(3)
  3112. instance:Destroy()
  3113. else
  3114. local isPlayer = false
  3115. for i,v in pairs(game.Players:GetChildren()) do
  3116. if instance.name == v.Name then
  3117. isPlayer = true
  3118. end
  3119. end
  3120. if not isPlayer then
  3121. cs:AddTag(instance, "Enemy")
  3122. addHitBox(instance, 7)
  3123. end
  3124. end
  3125. end
  3126. end
  3127. end)
  3128. Game:GetService("LogService").MessageOut:Connect(function(Message)
  3129. --[[=table.foreach(strings, function(i,v)
  3130. if Message == v then
  3131. game:GetService('TeleportService'):Teleport(2414851778)
  3132. end
  3133. end)]]
  3134. if string.find(Message,"Server Kick Message:") then
  3135. game:GetService('TeleportService'):Teleport(2414851778)
  3136. end
  3137. end)
  3138. spawn(del_armor_ui)
  3139. path.Blocked:Connect(onPathBlocked)
  3140. local Players = game:GetService("Players")
  3141. game.Players.LocalPlayer.Character.Humanoid.MoveToFinished:Connect(onWaypointReache
  3142. d)
  3143. local function onCharacterAdded(character)
  3144. local _, vchar, hum, root = getPlayer()
  3145. hum.MoveToFinished:Connect(onWaypointReached)
  3146. hum.WalkSpeed = walkspeed
  3147. hum.AutoRotate = false
  3148. spawn(del_armor_ui)
  3149. end
  3150.  
  3151. game.Players.LocalPlayer.CharacterAdded:Connect(onCharacterAdded)
  3152. function oceanFix()
  3153. createWall(CFrame.new(-2530.18213, 217.300583, 2292.73022, 0.978144467, 0,
  3154. 0.207926437, 0, 1, 0, -0.207926437, 0, 0.978144467), Vector3.new(19.569891,
  3155. 131.600006, 27.9050236))
  3156. createWall(CFrame.new(-783.23999, 69.9086685, 2350.23462, -1, 0, 0, 0, 1, 0,
  3157. 0, 0, -1), Vector3.new(372.139984, 128.209991, 15.29))
  3158. createWall(CFrame.new(-2038.21997, 198.318665, 2348.7041, 1, 0, 0, 0, 1, 0,
  3159. 0, 0, 1), Vector3.new(50.9199371, 138.75, 9.52999496))
  3160. createWall(CFrame.new(-2032.505, 198.318665, 2303.51416, 1, 0, 0, 0, 1, 0, 0,
  3161. 0, 1), Vector3.new(39.4899368, 138.75, 9.52999496))
  3162. createWall(CFrame.new(-1876.875, 54.728653, 2323.83374, 1, 0, 0, 0, 1, 0, 0,
  3163. 0, 1), Vector3.new(3.30993915, 161.48999, 138.289993))
  3164. createWall(CFrame.new(-1944.46509, 54.728653, 2256.06372, 0, 0, -1, 0, 1, 0,
  3165. 1, 0, 0), Vector3.new(3.30993915, 161.48999, 138.289993))
  3166. createWall(CFrame.new(-2013.51514, 54.728653, 2323.55371, -1, 0, 0, 0, 1, 0,
  3167. 0, 0, -1), Vector3.new(3.30993915, 161.48999, 138.289993))
  3168. createWall(CFrame.new(-1940.46277, 186.948654, 2392.69385, 0, 0, 1, 0, 1, 0,
  3169. -1, 0, 0), Vector3.new(3.30993915, 161.48999, 149.454834))
  3170. createWall(CFrame.new(-2018.40503, 198.318665, 2369.28418, 1, 0, 0, 0, 1, 0,
  3171. 0, 0, 1), Vector3.new(11.2899389, 138.75, 50.3699913))
  3172. createWall(CFrame.new(-2018.40503, 198.318665, 2276.61914, 1, 0, 0, 0, 1, 0,
  3173. 0, 0, 1), Vector3.new(11.2899389, 138.75, 63.3199921))
  3174. createWall(CFrame.new(-1936.995, 162.913666, 2251.38916, 0, 0, -1, 0, 1, 0,
  3175. 1, 0, 0), Vector3.new(11.2899389, 67.9399948, 155.979996))
  3176. createWall(CFrame.new(-1855.01501, 162.913666, 2254.21924, 0, 0, -1, 0, 1, 0,
  3177. 1, 0, 0), Vector3.new(11.2899389, 67.9399948, 44.0399971))
  3178. createWall(CFrame.new(-1835.495, 162.913666, 2321.28931, -1, 0, 0, 0, 1, 0,
  3179. 0, 0, -1), Vector3.new(11.2899389, 67.9399948, 129.720001))
  3180. createWall(CFrame.new(-1270.09351, 52.6868362, 2227.28467, -0.998307824, 0,
  3181. 0.058156427, 0, 1, 0, -0.058156427, 0, -0.998307824), Vector3.new(2.08999944,
  3182. 162.653656, 36.7399902))
  3183. createWall(CFrame.new(-1277.76965, 52.6868362, 2242.85889, 0.0161704421, 0,
  3184. 0.999869287, 0, 1, 0, -0.999869287, 0, 0.0161704421), Vector3.new(9.21999931,
  3185. 162.653656, 26.4699898))
  3186. createWall(CFrame.new(-1238.92224, 52.6868362, 2468.63843, -0.999989033, 0,
  3187. 0.00474769808, 0, 1, 0, -0.00474769808, 0, -0.999989033), Vector3.new(9.21999931,
  3188. 162.653656, 107.419983))
  3189. createWall(CFrame.new(-1241.41284, 52.6868362, 2419.99854, 0.0148379207, 0,
  3190. 0.999890029, 0, 1, 0, -0.999890029, 0, 0.0148379207), Vector3.new(10.3999996,
  3191. 162.653656, 28.6099815))
  3192. createWall(CFrame.new(-1261.41321, 52.6868362, 2393.58862, 0.891518176, 0,
  3193. 0.452984959, 0, 1, 0, -0.452984959, 0, 0.891518176), Vector3.new(9.21999931,
  3194. 162.653656, 65.5099792))
  3195. createWall(CFrame.new(-1284.52197, 52.6868362, 2302.46655, 0.990956247, 0,
  3196. 0.134185284, 0, 1, 0, -0.134185284, 0, 0.990956247), Vector3.new(9.21999931,
  3197. 162.653656, 129.029984))
  3198. createWall(CFrame.new(-1263.70508, 69.9086685, 2329.61914, 0, 0, -1, 0, 1, 0,
  3199. 1, 0, 0), Vector3.new(46.2999954, 128.209991, 13.9499998))
  3200. createWall(CFrame.new(-1265.06799, 52.6868362, 2238.36621, 0.993771136, 0,
  3201. 0.111440428, 0, 1, 0, -0.111440428, 0, 0.993771136), Vector3.new(1.61999965,
  3202. 162.653656, 139.828094))
  3203. createWall(CFrame.new(-1227.82751, 52.6868362, 2201.66064, 0.993771136, 0,
  3204. 0.111440428, 0, 1, 0, -0.111440428, 0, 0.993771136), Vector3.new(9.21999931,
  3205. 162.653656, 212.23999))
  3206. createWall(CFrame.new(-1292.28625, 52.6868362, 2105.9895, 0, 0, -1, 0, 1, 0,
  3207. 1, 0, 0), Vector3.new(9.21999931, 162.653656, 141.559982))
  3208.  
  3209. createWall(CFrame.new(-1364.03931, 52.6868362, 2176.00854, -1, 0, 0, 0, 1, 0,
  3210. 0, 0, -1), Vector3.new(9.21999931, 162.653656, 141.559982))
  3211. createWall(CFrame.new(-1348.71521, 52.6868362, 2243.71948, 0, 0, 1, 0, 1, -0,
  3212. -1, 0, 0), Vector3.new(9.21999931, 162.653656, 29.5399895))
  3213. createWall(CFrame.new(-1332.10864, 52.6868362, 2284.60376, 0.990956247, 0,
  3214. 0.134185284, 0, 1, 0, -0.134185284, 0, 0.990956247), Vector3.new(9.21999931,
  3215. 162.653656, 90.7599869))
  3216. 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,
  3217. 162.653656, 92.5399857))
  3218. createWall(CFrame.new(-1337.19312, 52.6868362, 2448.06567, 0.999832571, 0,
  3219. 0.0182995033, 0, 1, 0, -0.0182995033, 0, 0.999832571), Vector3.new(9.21999931,
  3220. 162.653656, 64.6399918))
  3221. createWall(CFrame.new(-1397.48499, 65.1518402, 2454.98486, 0, 0, -1, 0, 1, 0,
  3222. 1, 0, 0), Vector3.new(60.1099968, 137.723663, 7.00999975))
  3223. createWall(CFrame.new(-1413.17004, 65.1518402, 2428.40991, 0, 0, -1, 0, 1, 0,
  3224. 1, 0, 0), Vector3.new(6.95999908, 137.723663, 38.3799973))
  3225. createWall(CFrame.new(-1482.84009, 65.1518402, 2428.40991, 0, 0, -1, 0, 1, 0,
  3226. 1, 0, 0), Vector3.new(6.95999908, 137.723663, 21.1599998))
  3227. createWall(CFrame.new(-1491.44507, 65.1518402, 2475.6748, 0, 0, -1, 0, 1, 0,
  3228. 1, 0, 0), Vector3.new(101.489998, 137.723663, 3.94999886))
  3229. createWall(CFrame.new(-1443.73999, 65.1518402, 2525.38989, 0, 0, -1, 0, 1, 0,
  3230. 1, 0, 0), Vector3.new(9.71999931, 137.723663, 99.5199966))
  3231. createWall(CFrame.new(-1831.43005, 101.343674, 2414.46924, -1, 0, 0, 0, 1, 0,
  3232. 0, 0, -1), Vector3.new(10.3799305, 191.080002, 57.9199944))
  3233. 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,
  3234. 162.653656, 86.7799988))
  3235. createWall(CFrame.new(-1364.93335, 52.6868362, 2477.90015, 0.0592788458, -0,
  3236. -0.998241484, 0, 1, -0, 0.998241484, 0, 0.0592788458), Vector3.new(9.21999931,
  3237. 162.653656, 64.6399918))
  3238. createWall(CFrame.new(-1280.71997, 52.6868362, 2518.2002, 0, 0, -1, 0, 1, 0,
  3239. 1, 0, 0), Vector3.new(9.71999931, 162.653656, 86.7799988))
  3240. createWall(CFrame.new(-1835.495, 101.343674, 2365.10938, -1, 0, 0, 0, 1, 0,
  3241. 0, 0, -1), Vector3.new(11.2899389, 191.080002, 42.0799942))
  3242. createWall(CFrame.new(-1853.7251, 101.343674, 2437.48438, -1, 0, 0, 0, 1, 0,
  3243. 0, 0, -1), Vector3.new(54.9699287, 191.080002, 11.8899946))
  3244. 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,
  3245. 137.723663, 60.1899948))
  3246. createWall(CFrame.new(-1858.97498, 62.0486679, 2350.79932, -1, 0, 0, 0, 1, 0,
  3247. 0, 0, -1), Vector3.new(38.1499329, 112.48999, 13.4599934))
  3248. createWall(CFrame.new(-1853.11987, 101.343674, 2213.18994, 0, 0, -1, 0, 1, 0,
  3249. 1, 0, 0), Vector3.new(10.3799305, 191.080002, 57.9199944))
  3250. createWall(CFrame.new(-2055.80542, 101.343674, 2279.81958, 0, 0, 1, 0, 1, -0,
  3251. -1, 0, 0), Vector3.new(35.4999313, 191.080002, 11.8899946))
  3252. createWall(CFrame.new(-2058.75537, 101.343674, 2238.39453, 0, 0, 1, 0, 1, -0,
  3253. -1, 0, 0), Vector3.new(54.9699287, 191.080002, 11.8899946))
  3254. createWall(CFrame.new(-2031.19507, 101.343674, 2212.02441, -1, 0, 0, 0, 1, 0,
  3255. 0, 0, -1), Vector3.new(48.0899277, 191.080002, 11.8899946))
  3256. createWall(CFrame.new(-1830.10474, 101.343674, 2253.21997, 0, 0, -1, 0, 1, 0,
  3257. 1, 0, 0), Vector3.new(90.4399261, 191.080002, 11.8899946))
  3258. createWall(CFrame.new(-1944.03992, 101.343674, 2216.88501, -1, 0, 0, 0, 1, 0,
  3259. 0, 0, -1), Vector3.new(126.819931, 191.080002, 11.8899946))
  3260. createWall(CFrame.new(-2034.54504, 101.343674, 2439.59448, -1, 0, 0, 0, 1, 0,
  3261. 0, 0, -1), Vector3.new(54.9699287, 191.080002, 11.8899946))
  3262. createWall(CFrame.new(-2056.00513, 101.343674, 2367.26953, 0, 0, -1, 0, 1, 0,
  3263. 1, 0, 0), Vector3.new(42.0799294, 191.080002, 11.8899946))
  3264. createWall(CFrame.new(-2060.91504, 101.343674, 2409.96436, 0, 0, -1, 0, 1, 0,
  3265.  
  3266. 1, 0, 0), Vector3.new(48.0899277, 191.080002, 11.8899946))
  3267. createWall(CFrame.new(-2530.13501, 217.300583, 2359.55347, -0.978144407, 0,
  3268. 0.207926437, 0, 1, 0, -0.207926437, 0, -0.978144407), Vector3.new(19.569891,
  3269. 131.600006, 28.2675056))
  3270. createWall(CFrame.new(-2814.97021, 217.300583, 2295.89038, -0.978144407, 0,
  3271. 0.207926437, 0, 1, 0, -0.207926437, 0, -0.978144407), Vector3.new(19.569891,
  3272. 131.600006, 34.3708916))
  3273. createWall(CFrame.new(-2538.92798, 217.300583, 2385.58179, -0.913549781, 0,
  3274. 0.406727046, 0, 1, 0, -0.406727046, 0, -0.913549781), Vector3.new(19.569891,
  3275. 131.600006, 34.3708916))
  3276. createWall(CFrame.new(-2805.54321, 217.300583, 2266.87744, -0.913549781, 0,
  3277. 0.406727046, 0, 1, 0, -0.406727046, 0, -0.913549781), Vector3.new(19.569891,
  3278. 131.600006, 34.3708916))
  3279. createWall(CFrame.new(-2554.1814, 217.300583, 2412.00098, -0.808997631, 0,
  3280. 0.587812185, 0, 1, 0, -0.587812185, 0, -0.808997631), Vector3.new(19.569891,
  3281. 131.600006, 34.3708916))
  3282. createWall(CFrame.new(-2790.29028, 217.300583, 2240.4585, -0.808997631, 0,
  3283. 0.587812185, 0, 1, 0, -0.587812185, 0, -0.808997631), Vector3.new(19.569891,
  3284. 131.600006, 34.3708916))
  3285. createWall(CFrame.new(-2574.59448, 217.300583, 2434.67188, -0.66911006, 0,
  3286. 0.743163466, 0, 1, 0, -0.743163466, 0, -0.66911006), Vector3.new(19.569891,
  3287. 131.600006, 34.3708916))
  3288. createWall(CFrame.new(-2769.87793, 217.300583, 2217.78784, -0.66911006, 0,
  3289. 0.743163466, 0, 1, 0, -0.743163466, 0, -0.66911006), Vector3.new(19.569891,
  3290. 131.600006, 34.3708916))
  3291. createWall(CFrame.new(-2599.27612, 217.300583, 2452.60132, -0.499959469, 0,
  3292. 0.866048813, 0, 1, 0, -0.866048813, 0, -0.499959469), Vector3.new(19.569891,
  3293. 131.600006, 34.3708916))
  3294. createWall(CFrame.new(-2745.19702, 217.300583, 2199.85962, -0.499959469, 0,
  3295. 0.866048813, 0, 1, 0, -0.866048813, 0, -0.499959469), Vector3.new(19.569891,
  3296. 131.600006, 34.3708916))
  3297. createWall(CFrame.new(-2717.32861, 217.300583, 2187.45264, -0.309060812, 0,
  3298. 0.951042235, 0, 1, 0, -0.951042235, 0, -0.309060812), Vector3.new(19.569891,
  3299. 131.600006, 34.3708916))
  3300. createWall(CFrame.new(-2627.14502, 217.300583, 2465.00854, -0.309060812, 0,
  3301. 0.951042235, 0, 1, 0, -0.951042235, 0, -0.309060812), Vector3.new(19.569891,
  3302. 131.600006, 34.3708916))
  3303. createWall(CFrame.new(-2687.49023, 217.300583, 2181.1106, -0.104543328, 0,
  3304. 0.994520426, 0, 1, 0, -0.994520426, 0, -0.104543328), Vector3.new(19.569891,
  3305. 131.600006, 34.3708916))
  3306. createWall(CFrame.new(-2656.98462, 217.300583, 2471.35083, -0.104543328, 0,
  3307. 0.994520426, 0, 1, 0, -0.994520426, 0, -0.104543328), Vector3.new(19.569891,
  3308. 131.600006, 34.3708916))
  3309. createWall(CFrame.new(-2687.48999, 217.300583, 2471.35059, 0.10454309, 0,
  3310. 0.994520426, 0, 1, 0, -0.994520426, 0, 0.10454309), Vector3.new(19.569891,
  3311. 131.600006, 34.3708916))
  3312. createWall(CFrame.new(-2656.98462, 217.300583, 2181.11084, 0.10454309, 0,
  3313. 0.994520426, 0, 1, 0, -0.994520426, 0, 0.10454309), Vector3.new(19.569891,
  3314. 131.600006, 34.3708916))
  3315. createWall(CFrame.new(-2717.32886, 217.300583, 2465.00806, 0.309060872, 0,
  3316. 0.951042235, 0, 1, 0, -0.951042235, 0, 0.309060872), Vector3.new(19.569891,
  3317. 131.600006, 34.3708916))
  3318. createWall(CFrame.new(-2627.146, 217.300583, 2187.45313, 0.309060872, 0,
  3319. 0.951042235, 0, 1, 0, -0.951042235, 0, 0.309060872), Vector3.new(19.569891,
  3320. 131.600006, 34.3708916))
  3321. createWall(CFrame.new(-2745.19629, 217.300583, 2452.59839, 0.499959469, 0,
  3322. 0.866048813, 0, 1, 0, -0.866048813, 0, 0.499959469), Vector3.new(19.569891,
  3323. 131.600006, 34.3708916))
  3324. createWall(CFrame.new(-2599.27905, 217.300583, 2199.8623, 0.499959469, 0,
  3325.  
  3326. 0.866048813, 0, 1, 0, -0.866048813, 0, 0.499959469), Vector3.new(19.569891,
  3327. 131.600006, 34.3708916))
  3328. createWall(CFrame.new(-2769.875, 217.300583, 2434.66724, 0.669109941, 0,
  3329. 0.743163466, 0, 1, 0, -0.743163466, 0, 0.669109941), Vector3.new(19.569891,
  3330. 131.600006, 34.3708916))
  3331. createWall(CFrame.new(-2574.60059, 217.300583, 2217.79272, 0.669109941, 0,
  3332. 0.743163466, 0, 1, 0, -0.743163466, 0, 0.669109941), Vector3.new(19.569891,
  3333. 131.600006, 34.3708916))
  3334. createWall(CFrame.new(-2554.18921, 217.300583, 2240.4624, 0.808997452, 0,
  3335. 0.587812185, 0, 1, 0, -0.587812185, 0, 0.808997452), Vector3.new(19.569891,
  3336. 131.600006, 34.3708916))
  3337. createWall(CFrame.new(-2790.28687, 217.300583, 2411.99756, 0.808997452, 0,
  3338. 0.587812185, 0, 1, 0, -0.587812185, 0, 0.808997452), Vector3.new(19.569891,
  3339. 131.600006, 34.3708916))
  3340. createWall(CFrame.new(-2538.93652, 217.300583, 2266.88037, 0.913549721, 0,
  3341. 0.406727046, 0, 1, 0, -0.406727046, 0, 0.913549721), Vector3.new(19.569891,
  3342. 131.600006, 34.3708916))
  3343. createWall(CFrame.new(-2805.53906, 217.300583, 2385.57935, 0.913549721, 0,
  3344. 0.406727046, 0, 1, 0, -0.406727046, 0, 0.913549721), Vector3.new(19.569891,
  3345. 131.600006, 34.3708916))
  3346. createWall(CFrame.new(-2814.96558, 217.300583, 2356.56763, 0.978144467, 0,
  3347. 0.207926437, 0, 1, 0, -0.207926437, 0, 0.978144467), Vector3.new(19.569891,
  3348. 131.600006, 34.3708916))
  3349. createWall(CFrame.new(-1465.67212, 65.1518402, 2326.36108, 0.418038607, 0,
  3350. 0.908429265, 0, 1, 0, -0.908429265, 0, 0.418038607), Vector3.new(6.95999908,
  3351. 137.723663, 119.360001))
  3352. createWall(CFrame.new(-1945.50989, 101.343674, 2432.42505, -1, 0, 0, 0, 1, 0,
  3353. 0, 0, -1), Vector3.new(128.319931, 191.080002, 11.8899946))
  3354. createWall(CFrame.new(-2297.98022, 144.288208, 2350.95459, -1, 0, 0, 0, 1, 0,
  3355. 0, 0, -1), Vector3.new(476.47998, 282.413544, 13.9443436))
  3356. createWall(CFrame.new(-2818.1543, 217.300583, 2326.22998, 1, 0, 0, 0, 1, 0,
  3357. 0, 0, 1), Vector3.new(19.569891, 131.600006, 34.3708916))
  3358. createWall(CFrame.new(-1131.17993, 69.9086685, 2381.5293, -1, 0, 0, 0, 1, 0,
  3359. 0, 0, -1), Vector3.new(20.5199738, 128.209991, 74.9199982))
  3360. 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,
  3361. 137.723663, 81.0299988))
  3362. createWall(CFrame.new(-961.265015, 69.9086685, 2380.78955, -1, 0, 0, 0, 1, 0,
  3363. 0, 0, -1), Vector3.new(16.0899849, 128.209991, 76.3999939))
  3364. createWall(CFrame.new(-1189.79504, 69.9086685, 2350.74414, -1, 0, 0, 0, 1, 0,
  3365. 0, 0, -1), Vector3.new(137.75, 128.209991, 13.9499998))
  3366. createWall(CFrame.new(-1169.94495, 69.9086685, 2300.8855, 1, 0, 0, 0, 1, 0,
  3367. 0, 0, 1), Vector3.new(98.0499878, 128.209991, 13.9499998))
  3368. createWall(CFrame.new(-1680.02002, 101.343666, 2350.79932, -1, 0, 0, 0, 1, 0,
  3369. 0, 0, -1), Vector3.new(322.239929, 191.079987, 13.4599934))
  3370. createWall(CFrame.new(-1676.88501, 101.343666, 2301.47925, -1, 0, 0, 0, 1, 0,
  3371. 0, 0, -1), Vector3.new(328.509979, 191.079987, 13.4599934))
  3372. createWall(CFrame.new(-783.23999, 69.9086685, 2301.69507, 1, 0, 0, 0, 1, 0,
  3373. 0, 0, 1), Vector3.new(372.139984, 128.209991, 15.29))
  3374. createWall(CFrame.new(-961.265015, 69.9086685, 2271.14014, 1, 0, 0, 0, 1, 0,
  3375. 0, 0, 1), Vector3.new(16.0899849, 128.209991, 76.3999939))
  3376. createWall(CFrame.new(-1489.99719, 65.1518402, 2361.78638, 0.418038607, 0,
  3377. 0.908429265, 0, 1, 0, -0.908429265, 0, 0.418038607), Vector3.new(6.95999908,
  3378. 137.723663, 67.8799973))
  3379. createWall(CFrame.new(-1131.17993, 69.9086685, 2270.40039, 1, 0, 0, 0, 1, 0,
  3380. 0, 0, 1), Vector3.new(20.5199738, 128.209991, 74.9199982))
  3381. createWall(CFrame.new(-1047.32996, 69.9086685, 2241.58521, 1, 0, 0, 0, 1, 0,
  3382. 0, 0, 1), Vector3.new(188.219971, 128.209991, 17.2899971))
  3383. createWall(CFrame.new(-2294.77515, 144.288223, 2300.9751, 1, 0, 0, 0, 1, 0,
  3384.  
  3385. 0, 0, 1), Vector3.new(489.929993, 282.413544, 13.9443436))
  3386. createWall(CFrame.new(-1047.32996, 69.9086685, 2410.34448, -1, 0, 0, 0, 1, 0,
  3387. 0, 0, -1), Vector3.new(188.219971, 128.209991, 17.2899971))
  3388. createWall(CFrame.new(-2055.80542, 63.3636742, 2325.40967, 0, 0, 1, 0, 1, -0,
  3389. -1, 0, 0), Vector3.new(126.679932, 115.119995, 11.8899946))
  3390. createWall(CFrame.new(-605.989746, 69.9086685, 2325.82007, -1, 0, 0, 0, 1, 0,
  3391. 0, 0, -1), Vector3.new(17.639555, 128.209991, 64.1190643))
  3392. createWall(CFrame.new(-908.832153, 19.1552086, 2328.98291, -1, 0, 0, 0, 1, 0,
  3393. 0, 0, -1), Vector3.new(623.32428, 26.7030716, 180.023346))
  3394. createWall(CFrame.new(-1240.33691, 19.1552086, 2326.72632, -1, 0, 0, 0, 1, 0,
  3395. 0, 0, -1), Vector3.new(44.9513016, 26.7030716, 38.2773705))
  3396. createWall(CFrame.new(-1246.12073, 2.28969336, 2217.56665, -0.994147718, 0.0294061154, -0.103950247, 0.00436780788, 0.950511336, -0.310659111, 0.107941173,
  3397. -0.309295058, -0.944820225), Vector3.new(43.4626274, 0.818213403, 196.637329))
  3398. 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))
  3399. 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))
  3400. createWall(CFrame.new(-1279.44299, -28.572773, 2173.7793, -1.00000024, 0, 0,
  3401. 0, 1, -5.96046448e-08, 0, 5.96046448e-08, -1), Vector3.new(171.743622, 4.61810207,
  3402. 136.415924))
  3403. createWall(CFrame.new(-1312.07739, -23.9459343, 2329.72607, -0.99006927,
  3404. 0.0131960101, -0.13996321, 0.0200383328, 0.998665988, -0.0475906916, 0.139148533, 0.0499224477, -0.98901242), Vector3.new(93.4838867, 4.94735384, 208.818771))
  3405. 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,
  3406. -1.00000012), Vector3.new(93.4838867, 7.73166227, 87.2299957))
  3407. 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,
  3408. -1.00000012), Vector3.new(93.4838867, 8.40604877, 90.3334351))
  3409. 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,
  3410. -1.00000012), Vector3.new(93.4838867, 7.71262121, 96.9668121))
  3411. 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,
  3412. -1.00000012), Vector3.new(93.4838867, 7.21999979, 102.032936))
  3413. createWall(CFrame.new(-1357.41565, -10.7322168, 2529.74609, -0.974118412,
  3414. 0.215022326, -0.0697357282, 0.21412079, 0.976597607, 0.0202486329, 0.0724577755,
  3415. 0.00479363743, -0.99736017), Vector3.new(87.857872, 5.51671267, 107.359512))
  3416. createWall(CFrame.new(-1349.19824, 38.4995384, 2479.56812, -0.974118412,
  3417. 0.215022326, -0.0697357282, 0.21412079, 0.976597607, 0.0202486329, 0.0724577755,
  3418. 0.00479363743, -0.99736017), Vector3.new(85.6598358, 104.72879, 6.42000008))
  3419. createWall(CFrame.new(-1453.97693, 1.46386302, 2476.76196, -1.00000453,
  3420. 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,
  3421. 108.226189))
  3422. createWall(CFrame.new(-1454.32715, 1.63537717, 2476.76196, -1.00000453,
  3423. 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,
  3424. 108.226189))
  3425. createWall(CFrame.new(-1454.69763, 1.91353273, 2476.76196, -1.00000453,
  3426. 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,
  3427. 108.226189))
  3428. createWall(CFrame.new(-1443.73267, 10.8826275, 2394.87671, -0.977953851, 0.0425007194, 0.204492941, 0.00425821915, 0.974818051, 0.222961426, -0.208821028,
  3429. 0.218918473, -0.953138232), Vector3.new(36.4249535, 6.1712513, 130.547668))
  3430.  
  3431. createWall(CFrame.new(-1427.18213, 70.4603043, 2405.68164, -0.977953851, 0.0425007194, 0.204492941, 0.00425821915, 0.974818051, 0.222961426, -0.208821028,
  3432. 0.218918473, -0.953138232), Vector3.new(0.0500000007, 125.649826, 117.808311))
  3433. createWall(CFrame.new(-1487.76672, 20.8402691, 2338.7666, -0.893995583,
  3434. 0.14297086, 0.424654365, 0.145493388, 0.988999486, -0.0266750585, -0.423796773,
  3435. 0.0379370227, -0.90496242), Vector3.new(88.661377, 9.92626381, 41.2240219))
  3436. createWall(CFrame.new(-1700.78955, 29.0303326, 2325.34424, -1.00000012,
  3437. 2.97213205e-08, 1.88447302e-08, -2.97213205e-08, 0.999999821, -1.86264515e-09,
  3438. 1.88447302e-08, 1.86264515e-09, -0.999999881), Vector3.new(371.852844, 5.56997252,
  3439. 53.5832138))
  3440. createWall(CFrame.new(-1529.57568, 28.8269882, 2325.34424, -1.00000012,
  3441. 2.97213205e-08, 1.88447302e-08, -2.97213205e-08, 0.999999821, -1.86264515e-09,
  3442. 1.88447302e-08, 1.86264515e-09, -0.999999881), Vector3.new(31.7297535, 5.16327238,
  3443. 53.5832138))
  3444. createWall(CFrame.new(-1528.28796, 28.558382, 2325.34424, -1.00000012,
  3445. 2.97213205e-08, 1.88447302e-08, -2.97213205e-08, 0.999999821, -1.86264515e-09,
  3446. 1.88447302e-08, 1.86264515e-09, -0.999999881), Vector3.new(31.3896217, 4.62606096,
  3447. 53.5832138))
  3448. createWall(CFrame.new(-1527.79773, 28.3058643, 2325.34424, -1.00000012,
  3449. 2.97213205e-08, 1.88447302e-08, -2.97213205e-08, 0.999999821, -1.86264515e-09,
  3450. 1.88447302e-08, 1.86264515e-09, -0.999999881), Vector3.new(32.3699989, 4.12102604,
  3451. 53.5832138))
  3452. createWall(CFrame.new(-1527.37683, 28.102354, 2325.34424, -1.00000012,
  3453. 2.97213205e-08, 1.88447302e-08, -2.97213205e-08, 0.999999821, -1.86264515e-09,
  3454. 1.88447302e-08, 1.86264515e-09, -0.999999881), Vector3.new(33.211895, 3.71400523,
  3455. 53.5832138))
  3456. createWall(CFrame.new(-1526.84424, 27.9374313, 2325.34424, -1.00000012,
  3457. 2.97213205e-08, 1.88447302e-08, -2.97213205e-08, 0.999999821, -1.86264515e-09,
  3458. 1.88447302e-08, 1.86264515e-09, -0.999999881), Vector3.new(34.2771111, 3.38415861,
  3459. 53.5832138))
  3460. 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,
  3461. 49.6322327))
  3462. createWall(CFrame.new(-1858.3186, 46.4191093, 2232.7439, -1.00000048,
  3463. 1.18888238e-07, 7.53789209e-08, -1.18888238e-07, 0.999999285, 0, 7.53789209e-08, 0,
  3464. -0.999999404), Vector3.new(56.2976837, 5.61337185, 63.1329041))
  3465. createWall(CFrame.new(-1938.64209, 59.3698273, 2253.55371, -0.975066185,
  3466. 0.221918508, 1.4699873e-07, 0.221918583, 0.975063741, -3.34559616e-08, 1.50757813e07, -8.96166618e-15, -0.999998748), Vector3.new(141.891571, 6.28999996,
  3467. 63.1329041))
  3468. createWall(CFrame.new(-2031.08984, 76.6613846, 2259.55518, -1.00000191,
  3469. 4.61935997e-07, 3.01515627e-07, -4.61935997e-07, 0.999997079, 5.15942202e-14,
  3470. 3.01515627e-07, -5.15942202e-14, -0.999997497), Vector3.new(48.2068825, 3.13832617,
  3471. 97.6713715))
  3472. createWall(CFrame.new(-2037.69958, 90.5315781, 2323.69995, -1.00000381, 4.73108639e-06, -5.01252653e-05, 4.97483006e-06, 0.975067258, -0.221883357,
  3473. 5.15119791e-05, -0.221883178, -0.975068092), Vector3.new(48.2068825, 4.05999994,
  3474. 133.019562))
  3475. createWall(CFrame.new(-2035.52686, 103.249794, 2413.302, -1, 1.79664345e-14,
  3476. 1.13686838e-13, -1.79664345e-14, 1, -8.8817842e-16, 1.13686838e-13, 8.8817842e-16,
  3477. -1), Vector3.new(48.8988571, 8.13232899, 50.8320503))
  3478. 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,
  3479. 40.3282356))
  3480. createWall(CFrame.new(-1857.91382, 134.10907, 2348.59229, -0.99999994,
  3481. 3.59328656e-14, 2.27373662e-13, -3.5932869e-14, 1, -1.77635684e-15, 2.27373675e-13,
  3482. 1.77635684e-15, -1), Vector3.new(56.4390755, 4.47680473, 177.607712))
  3483.  
  3484. createWall(CFrame.new(-1873.65051, 136.331314, 2318.76172, -0.855346203,
  3485. 0.518056273, 7.74251973e-13, 0.518056035, 0.85534656, -4.77246931e-13, 9.09494539e13, 7.10542736e-15, -1), Vector3.new(6.69999218, 0.0500000007, 150.532593))
  3486. createWall(CFrame.new(-1946.55249, 137.231415, 2319.61206, -0.999999166,
  3487. 2.98023224e-08, 1.81898875e-12, -2.98023224e-08, 1, -1.42108547e-14, 1.81898875e12, 1.42108547e-14, -1), Vector3.new(137.636246, 3.40450764, 150.532593))
  3488. createWall(CFrame.new(-1945.93896, 137.022552, 2319.61206, -0.999999166,
  3489. 2.98023224e-08, 1.81898875e-12, -2.98023224e-08, 1, -1.42108547e-14, 1.81898875e12, 1.42108547e-14, -1), Vector3.new(138.863373, 2.98677969, 150.532593))
  3490. createWall(CFrame.new(-2190.23413, 136.711761, 2325.40161, -0.999999166,
  3491. 2.98023224e-08, 1.81898875e-12, -2.98023224e-08, 1, -1.42108547e-14, 1.81898875e12, 1.42108547e-14, -1), Vector3.new(366.358093, 2.36521196, 39.7483025))
  3492. createWall(CFrame.new(-2674.35205, 192.732971, 2320.76904, -1, 0, 0, 0, 1, 0,
  3493. 0, 0, -1), Vector3.new(279.199799, 6.58692169, 290.013947))
  3494. createWall(CFrame.new(-2672.68774, 192.732971, 2320.76904, -1, 0, 0, 0, 1, 0,
  3495. 0, 0, -1), Vector3.new(282.528381, 6.58692169, 290.013947))
  3496. createWall(CFrame.new(-2398.11328, 162.203232, 2325.17139, 0.970287263,
  3497. 0.241955817, 0, -0.241955817, 0.970287263, 0, 0, 0, 1.00000012),
  3498. Vector3.new(274.739532, 0.558954656, 51.0499992))
  3499. local t = waitForExist(workspace, "borders")
  3500. t:Destroy()
  3501. if _G.destroy_map then
  3502. workspace.Terrain:Clear()
  3503. for i,v in pairs(workspace:GetChildren()) do
  3504. if v.Name ~= "lastBossSafeZones" and v.Name ~="Terrain" and (v.ClassName
  3505. == "Model" or v:IsA("BasePart")) and v ~= game.Players.LocalPlayer.Character and
  3506. v.Name ~= regionPartName then
  3507. v:Destroy()
  3508. end
  3509. end
  3510. end
  3511. while true do
  3512. local s = game:GetService("Workspace").dungeon.room3.enemyFolder
  3513. if #s:GetChildren() == 41 then
  3514. forceObjectiveExists = true
  3515. thePart.CFrame = CFrame.new(-1240.337, 7.648, 2246.159)
  3516. while wait() do
  3517. local _,_,_,root = getPlayer()
  3518. if root then
  3519. if root.Position.Y < 21 then break end
  3520. end
  3521. end
  3522. forceObjectiveExists = false
  3523. break
  3524. end
  3525. wait(1)
  3526. end
  3527. while true do
  3528. local s = game:GetService("Workspace").dungeon.room5.enemyFolder
  3529. if #s:GetChildren() == 16 then
  3530. forceObjectiveExists = true
  3531. thePart.CFrame = CFrame.new(-1858.319, 46.419, 2232.744)
  3532. while wait() do
  3533. local _,_,_,root = getPlayer()
  3534. if root then
  3535. if root.Position.Y < 38 then break end
  3536. end
  3537. end
  3538. forceObjectiveExists = false
  3539.  
  3540. break
  3541. end
  3542. wait(1)
  3543. end
  3544. spawn(function()
  3545. while true do
  3546. local s = game:GetService("Workspace").dungeon.room6.enemyFolder
  3547. if s:FindFirstChild("Ancient Temple Protector") then
  3548. local g = s:FindFirstChild("Ancient Temple Protector")
  3549. local ts = game:GetService("TweenService")
  3550. g:WaitForChild("HumanoidRootPart")
  3551. while g ~= nil and g.Parent ~= nil and g:FindFirstChild("Humanoid")
  3552. and g.Humanoid.Health > 0 do
  3553. local s = g.Humanoid:GetPlayingAnimationTracks()
  3554. bossRange = 20
  3555. for i,v in pairs(s) do
  3556. if v.Animation.AnimationId == "rbxassetid://6106580202" then
  3557. _G.ATslam = true
  3558. else
  3559. _G.ATslam = false
  3560. end
  3561. end
  3562. wait()
  3563. end
  3564. forceObjectiveExists = false
  3565. bossRange = 40
  3566. break
  3567. end
  3568. wait(1)
  3569. end
  3570. end)
  3571. end
  3572. function volcanicFix()
  3573. 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,
  3574. -2.52398049e-08, -0.999982297), Vector3.new(148.029877, 17.849968, 161.050003))
  3575. createWall(CFrame.new(-1127.02625, -2.89132118, 699.554077, -0.981609523,
  3576. 0.190805554, -0.00593414763, 0.190808892, 0.981627166, -2.57277861e-08,
  3577. 0.0058251163, -0.00113231386, -0.999982119), Vector3.new(69.5298767, 18.849968,
  3578. 35.0500031))
  3579. createWall(CFrame.new(-793.540466, -8.58208942, 699.325134, -0.999981225, 4.8950298e-08, -0.00593414297, -5.41017471e-08, 0.999999881, -2.59606168e-08,
  3580. 0.00593414484, -2.53785402e-08, -0.999981582), Vector3.new(606.529907, 18.849968,
  3581. 38.5500031))
  3582. createWall(CFrame.new(-417.026733, -7.0820694, 700.590942, -0.999981225, 4.8950298e-08, -0.00593414297, -5.41017471e-08, 0.999999881, -2.59606168e-08,
  3583. 0.00593414484, -2.53785402e-08, -0.999981582), Vector3.new(157.529907, 18.849968,
  3584. 158.550003))
  3585. createWall(CFrame.new(-498.050507, 0.667925298, 696.821716, -0.999981225, 4.8950298e-08, -0.00593414297, -5.41017471e-08, 0.999999881, -2.59606168e-08,
  3586. 0.00593414484, -2.53785402e-08, -0.999981582), Vector3.new(5.52990723, 2.34996796,
  3587. 37.0500031))
  3588. createWall(CFrame.new(-498.800507, 0.417925298, 696.826172, -0.999981225, 4.8950298e-08, -0.00593414297, -5.41017471e-08, 0.999999881, -2.59606168e-08,
  3589. 0.00593414484, -2.53785402e-08, -0.999981582), Vector3.new(7.02990723, 1.84996796,
  3590. 37.0500031))
  3591. createWall(CFrame.new(135.459915, -8.58203983, 696.812256, -0.999981225, 4.8950298e-08, -0.00593414297, -5.41017471e-08, 0.999999881, -2.59606168e-08,
  3592. 0.00593414484, -2.53785402e-08, -0.999981582), Vector3.new(280.529907, 18.849968,
  3593.  
  3594. 44.5500031))
  3595. createWall(CFrame.new(273.457336, -8.0820322, 695.993347, -0.999981225, 4.8950298e-08, -0.00593414297, -5.41017471e-08, 0.999999881, -2.59606168e-08,
  3596. 0.00593414484, -2.53785402e-08, -0.999981582), Vector3.new(4.52990723, 19.849968,
  3597. 44.5500031))
  3598. createWall(CFrame.new(276.957275, -7.5820322, 695.972595, -0.999981225, 4.8950298e-08, -0.00593414297, -5.41017471e-08, 0.999999881, -2.59606168e-08,
  3599. 0.00593414484, -2.53785402e-08, -0.999981582), Vector3.new(9.52990723, 20.849968,
  3600. 44.5500031))
  3601. createWall(CFrame.new(289.707031, -6.58203173, 695.896912, -0.999981225, 4.8950298e-08, -0.00593414297, -5.41017471e-08, 0.999999881, -2.59606168e-08,
  3602. 0.00593414484, -2.53785402e-08, -0.999981582), Vector3.new(21.0299072, 22.849968,
  3603. 44.5500031))
  3604. createWall(CFrame.new(-12.0373135, -8.08204746, 697.687561, -0.999981225, 4.8950298e-08, -0.00593414297, -5.41017471e-08, 0.999999881, -2.59606168e-08,
  3605. 0.00593414484, -2.53785402e-08, -0.999981582), Vector3.new(44.5299072, 19.849968,
  3606. 44.5500031))
  3607. createWall(CFrame.new(-14.5372658, -7.58204746, 697.702393, -0.999981225, 4.8950298e-08, -0.00593414297, -5.41017471e-08, 0.999999881, -2.59606168e-08,
  3608. 0.00593414484, -2.53785402e-08, -0.999981582), Vector3.new(39.5299072, 20.849968,
  3609. 44.5500031))
  3610. createWall(CFrame.new(-16.5372276, -7.08204746, 697.714233, -0.999981225, 4.8950298e-08, -0.00593414297, -5.41017471e-08, 0.999999881, -2.59606168e-08,
  3611. 0.00593414484, -2.53785402e-08, -0.999981582), Vector3.new(35.5299072, 21.849968,
  3612. 44.5500031))
  3613. createWall(CFrame.new(-19.0371799, -6.58204746, 697.729065, -0.999981225, 4.8950298e-08, -0.00593414297, -5.41017471e-08, 0.999999881, -2.59606168e-08,
  3614. 0.00593414484, -2.53785402e-08, -0.999981582), Vector3.new(30.5299072, 22.849968,
  3615. 44.5500031))
  3616. createWall(CFrame.new(-24.2870808, -6.08204794, 697.760193, -0.999981225, 4.8950298e-08, -0.00593414297, -5.41017471e-08, 0.999999881, -2.59606168e-08,
  3617. 0.00593414484, -2.53785402e-08, -0.999981582), Vector3.new(20.0299072, 23.849968,
  3618. 44.5500031))
  3619. createWall(CFrame.new(-40.2867775, -5.83204842, 697.855164, -0.999981225, 4.8950298e-08, -0.00593414297, -5.41017471e-08, 0.999999881, -2.59606168e-08,
  3620. 0.00593414484, -2.53785402e-08, -0.999981582), Vector3.new(39.0299072, 24.349968,
  3621. 44.5500031))
  3622. createWall(CFrame.new(-44.036705, -6.58204842, 697.877441, -0.999981225, 4.8950298e-08, -0.00593414297, -5.41017471e-08, 0.999999881, -2.59606168e-08,
  3623. 0.00593414484, -2.53785402e-08, -0.999981582), Vector3.new(46.5299072, 22.849968,
  3624. 44.5500031))
  3625. createWall(CFrame.new(-48.0366287, -7.08204889, 697.901123, -0.999981225, 4.8950298e-08, -0.00593414297, -5.41017471e-08, 0.999999881, -2.59606168e-08,
  3626. 0.00593414484, -2.53785402e-08, -0.999981582), Vector3.new(54.5299072, 21.849968,
  3627. 44.5500031))
  3628. createWall(CFrame.new(-65.2863083, -7.33204985, 698.003479, -0.999981225, 4.8950298e-08, -0.00593414297, -5.41017471e-08, 0.999999881, -2.59606168e-08,
  3629. 0.00593414484, -2.53785402e-08, -0.999981582), Vector3.new(89.0299072, 21.349968,
  3630. 44.5500031))
  3631. createWall(CFrame.new(-80.536026, -7.58205032, 698.093994, -0.999981225, 4.8950298e-08, -0.00593414297, -5.41017471e-08, 0.999999881, -2.59606168e-08,
  3632. 0.00593414484, -2.53785402e-08, -0.999981582), Vector3.new(119.529907, 20.849968,
  3633. 44.5500031))
  3634. createWall(CFrame.new(-88.5358734, -8.08205032, 698.141479, -0.999981225, 4.8950298e-08, -0.00593414297, -5.41017471e-08, 0.999999881, -2.59606168e-08,
  3635. 0.00593414484, -2.53785402e-08, -0.999981582), Vector3.new(135.529907, 19.849968,
  3636. 44.5500031))
  3637. createWall(CFrame.new(-113.535408, -8.58205223, 698.289856, -0.999981225, 4.8950298e-08, -0.00593414297, -5.41017471e-08, 0.999999881, -2.59606168e-08,
  3638.  
  3639. 0.00593414484, -2.53785402e-08, -0.999981582), Vector3.new(185.529907, 18.849968,
  3640. 44.5500031))
  3641. createWall(CFrame.new(-215.033478, -8.08205795, 698.89209, -0.999981225, 4.8950298e-08, -0.00593414297, -5.41017471e-08, 0.999999881, -2.59606168e-08,
  3642. 0.00593414484, -2.53785402e-08, -0.999981582), Vector3.new(26.5299072, 19.849968,
  3643. 44.5500031))
  3644. createWall(CFrame.new(-243.282944, -7.83205986, 699.059753, -0.999981225, 4.8950298e-08, -0.00593414297, -5.41017471e-08, 0.999999881, -2.59606168e-08,
  3645. 0.00593414484, -2.53785402e-08, -0.999981582), Vector3.new(32.0299072, 20.349968,
  3646. 44.5500031))
  3647. createWall(CFrame.new(-270.78241, -7.33206129, 699.222961, -0.999981225, 4.8950298e-08, -0.00593414297, -5.41017471e-08, 0.999999881, -2.59606168e-08,
  3648. 0.00593414484, -2.53785402e-08, -0.999981582), Vector3.new(49.0299072, 21.349968,
  3649. 44.5500031))
  3650. createWall(CFrame.new(-309.781677, -7.0820632, 699.454407, -0.999981225, 4.8950298e-08, -0.00593414297, -5.41017471e-08, 0.999999881, -2.59606168e-08,
  3651. 0.00593414484, -2.53785402e-08, -0.999981582), Vector3.new(53.0299072, 21.849968,
  3652. 44.5500031))
  3653. createWall(CFrame.new(-313.281616, -6.5820632, 699.475159, -0.999981225, 4.8950298e-08, -0.00593414297, -5.41017471e-08, 0.999999881, -2.59606168e-08,
  3654. 0.00593414484, -2.53785402e-08, -0.999981582), Vector3.new(46.0299072, 22.849968,
  3655. 44.5500031))
  3656. createWall(CFrame.new(-314.781586, -6.3320632, 699.48407, -0.999981225, 4.8950298e-08, -0.00593414297, -5.41017471e-08, 0.999999881, -2.59606168e-08,
  3657. 0.00593414484, -2.53785402e-08, -0.999981582), Vector3.new(43.0299072, 23.349968,
  3658. 44.5500031))
  3659. createWall(CFrame.new(-317.031555, -5.8320632, 699.497437, -0.999981225, 4.8950298e-08, -0.00593414297, -5.41017471e-08, 0.999999881, -2.59606168e-08,
  3660. 0.00593414484, -2.53785402e-08, -0.999981582), Vector3.new(38.5299072, 24.349968,
  3661. 44.5500031))
  3662. createWall(CFrame.new(-319.531494, -5.5820632, 699.512268, -0.999981225, 4.8950298e-08, -0.00593414297, -5.41017471e-08, 0.999999881, -2.59606168e-08,
  3663. 0.00593414484, -2.53785402e-08, -0.999981582), Vector3.new(33.5299072, 24.849968,
  3664. 44.5500031))
  3665. createWall(CFrame.new(-320.531464, -6.0820632, 699.518188, -0.999981225, 4.8950298e-08, -0.00593414297, -5.41017471e-08, 0.999999881, -2.59606168e-08,
  3666. 0.00593414484, -2.53785402e-08, -0.999981582), Vector3.new(35.5299072, 23.849968,
  3667. 44.5500031))
  3668. createWall(CFrame.new(-323.031403, -6.5820632, 699.53302, -0.999981225, 4.8950298e-08, -0.00593414297, -5.41017471e-08, 0.999999881, -2.59606168e-08,
  3669. 0.00593414484, -2.53785402e-08, -0.999981582), Vector3.new(40.5299072, 22.849968,
  3670. 44.5500031))
  3671. createWall(CFrame.new(-326.776886, -6.5820632, 700.305298, -0.999981225, 4.8950298e-08, -0.00593414297, -5.41017471e-08, 0.999999881, -2.59606168e-08,
  3672. 0.00593414484, -2.53785402e-08, -0.999981582), Vector3.new(48.0299072, 22.849968,
  3673. 76.0500031))
  3674. createWall(CFrame.new(-330.281281, -7.0820632, 699.57605, -0.999981225, 4.8950298e-08, -0.00593414297, -5.41017471e-08, 0.999999881, -2.59606168e-08,
  3675. 0.00593414484, -2.53785402e-08, -0.999981582), Vector3.new(55.0299072, 21.849968,
  3676. 90.5500031))
  3677. createWall(CFrame.new(-2341.5, 9.19974613, 695.25, 1, 0, 0, 0, 1, 0, 0, 0,
  3678. 1), Vector3.new(197, 3, 194.5))
  3679. createWall(CFrame.new(-2244.75, 10.1997461, 695.25, 1, 0, 0, 0, 1, 0, 0, 0,
  3680. 1), Vector3.new(10.5, 1, 194.5))
  3681. createWall(CFrame.new(-46.5366592, -6.33204842, 697.892273, -0.999981225, 4.8950298e-08, -0.00593414297, -5.41017471e-08, 0.999999881, -2.59606168e-08,
  3682. 0.00593414484, -2.53785402e-08, -0.999981582), Vector3.new(34.5299072, 23.349968,
  3683. 44.5500031))
  3684. createWall(CFrame.new(278.207245, -7.0820322, 695.965149, -0.999981225, -
  3685.  
  3686. 4.8950298e-08, -0.00593414297, -5.41017471e-08, 0.999999881, -2.59606168e-08,
  3687. 0.00593414484, -2.53785402e-08, -0.999981582), Vector3.new(7.02990723, 21.849968,
  3688. 44.5500031))
  3689. createWall(CFrame.new(-2093.75, 9.94974613, 696.75, 1, 0, 0, 0, 1, 0, 0, 0,
  3690. 1), Vector3.new(692.5, 0.5, 37.5))
  3691. createWall(CFrame.new(-1725.44324, 10.6997461, 694.778015, 0.694658399, 0,
  3692. 0.719339788, 0, 1, 0, -0.719339788, 0, 0.694658399), Vector3.new(48, 2, 45))
  3693. 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))
  3694. createWall(CFrame.new(-1363.59412, 1.11156046, 708.326904, 0.820969999, 0.13917318, 0.553750992, 0.115379818, 0.990268767, 0.0778246224, -0.559193194, 0,
  3695. 0.829037607), Vector3.new(34, 4, 49))
  3696. 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))
  3697. 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))
  3698. createWall(CFrame.new(-1426.87244, -9.64694118, 727.73645, -0.0525785685, 0.117965765, -0.991624653, -0.00619550375, 0.993017733, -0.117802992, 0.998597682,
  3699. -5.02976873e-05, -0.0529423133), Vector3.new(43, 4, 49))
  3700. createWall(CFrame.new(-1542.79834, -24.1414528, 693.151733, 0.151433259, 0.117894612, -0.981410801, 0.0179410838, 0.993028104, -0.116522513, 0.988308668,
  3701. 3.75595118e-05, 0.152491033), Vector3.new(16.5, 4, 24.5))
  3702. createWall(CFrame.new(-1525.43823, -22.3317413, 680.852295, 0.711567044, 0.117893316, -0.692656934, 0.0844521746, 0.993026376, -0.0822597519, 0.697524667,
  3703. 3.69343543e-05, 0.716561079), Vector3.new(16.5, 3.5, 31))
  3704. 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))
  3705. 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))
  3706. 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))
  3707. 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))
  3708. createWall(CFrame.new(-1726.15015, 10.4497461, 694.790344, 0.694658399, 0,
  3709. 0.719339788, 0, 1, 0, -0.719339788, 0, 0.694658399), Vector3.new(49, 1.5, 46))
  3710. createWall(CFrame.new(-1727.22302, 10.1997461, 694.101868, 0.694658399, 0,
  3711. 0.719339788, 0, 1, 0, -0.719339788, 0, 0.694658399), Vector3.new(49.5, 1, 48.5))
  3712. createWall(CFrame.new(-1594.52539, -24.3682365, 695.275208, 1, 0, 0, 0, 1, 0,
  3713. 0, 0, 1), Vector3.new(88.5, 2.5, 96))
  3714. createWall(CFrame.new(-1677.15637, -15.417098, 623.046021, 0.984657705,
  3715. 0.0171872638, -0.173648149, -0.0174524058, 0.99984771, 0, 0.173621729,
  3716. 0.00303057837, 0.98480767), Vector3.new(80.5, 8, 85.5))
  3717. 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))
  3718. createWall(CFrame.new(-1635.84265, -139.839996, 622.938721, 0.178292945, 0,
  3719. 0.98397553, 0, 1, 0, -0.983975589, 0, 0.178293034), Vector3.new(14, 255,
  3720. 4.35629797))
  3721. createWall(CFrame.new(-1631.328, -140.839996, 623.947815, 0.2464917, 0,
  3722. 0.969143093, 0, 1, 0, -0.969143093, 0, 0.24649176), Vector3.new(14, 255,
  3723. 5.8792901))
  3724. createWall(CFrame.new(-1608.31348, -147.839996, 639.822876, 0.866703033, 0,
  3725. 0.498820961, 0, 1, 0, -0.498820961, 0, 0.866703033), Vector3.new(14, 255,
  3726.  
  3727. 5.13447332))
  3728. createWall(CFrame.new(-1606.00684, -148.839996, 644.197998, 0.899387717, 0,
  3729. 0.437147677, 0, 1, 0, -0.437147677, 0, 0.899387717), Vector3.new(14, 255,
  3730. 5.74125433))
  3731. createWall(CFrame.new(-1626.75098, -141.839996, 625.260925, 0.313491344, 0,
  3732. 0.949589133, 0, 1, 0, -0.949589133, 0, 0.313491404), Vector3.new(14, 255,
  3733. 4.62769413))
  3734. createWall(CFrame.new(-1623.35046, -142.839996, 626.612061, 0.426887631, 0,
  3735. 0.904302716, 0, 1, 0, -0.904302716, 0, 0.426887691), Vector3.new(14, 255,
  3736. 4.41635466))
  3737. createWall(CFrame.new(-1610.32239, -146.839996, 636.802979, 0.78356123, 0,
  3738. 0.621311903, 0, 1, 0, -0.621311784, 0, 0.783561289), Vector3.new(14, 255,
  3739. 4.21742392))
  3740. createWall(CFrame.new(-1619.98938, -143.839996, 628.473572, 0.532674611, 0,
  3741. 0.846318007, 0, 1, 0, -0.846318007, 0, 0.53267467), Vector3.new(14, 255,
  3742. 4.97442102))
  3743. createWall(CFrame.new(-1616.38782, -144.839996, 630.914368, 0.590408921, 0,
  3744. 0.807102084, 0, 1, 0, -0.807102084, 0, 0.59040904), Vector3.new(14, 255,
  3745. 4.71004725))
  3746. createWall(CFrame.new(-1613.16479, -145.839996, 633.713562, 0.701997042, 0,
  3747. 0.712177455, 0, 1, 0, -0.712177455, 0, 0.701997101), Vector3.new(14, 255,
  3748. 5.9066267))
  3749. createWall(CFrame.new(-1604.04761, -149.839996, 648.575867, 0.927696943, 0,
  3750. 0.373347104, 0, 1, 0, -0.373347104, 0, 0.927697003), Vector3.new(14, 255,
  3751. 4.8348875))
  3752. 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))
  3753. 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))
  3754. 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))
  3755. 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))
  3756. 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))
  3757. 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))
  3758. 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))
  3759. 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))
  3760. 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))
  3761. 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))
  3762. 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))
  3763. createWall(CFrame.new(-1747.48596, -126.560036, 637.008545, -0.930946112, -
  3764.  
  3765. 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))
  3766. 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))
  3767. 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))
  3768. 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))
  3769. 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))
  3770. 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))
  3771. 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))
  3772. 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))
  3773. 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))
  3774. 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))
  3775. 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))
  3776. createWall(CFrame.new(-1740.73279, 50.4497452, 720.327759, 0.694658399, 0,
  3777. 0.719339788, 0, 1, 0, -0.719339788, 0, 0.694658399), Vector3.new(8, 81.5, 31.5))
  3778. createWall(CFrame.new(-1994.25, 10.4497461, 709.5, 1, 0, 0, 0, 1, 0, 0, 0,
  3779. 1), Vector3.new(492.5, 0.5, 5))
  3780. createWall(CFrame.new(-1994.25, 10.4497461, 681.5, 1, 0, 0, 0, 1, 0, 0, 0,
  3781. 1), Vector3.new(492.5, 0.5, 4))
  3782. wait(.1)
  3783. local t = waitForExist(workspace, "borders")
  3784. for i,v in pairs(t:GetChildren()) do
  3785. cs:AddTag(v, "RayWhitelist")
  3786. v.Transparency = _G.wall_transparency
  3787. end
  3788. if _G.destroy_map then
  3789. workspace.map:Destroy()
  3790. else
  3791. for j, k in pairs(workspace.map:GetChildren()) do
  3792. if k:FindFirstChild("Meshes/Forgers Mark2_Circle.001") then
  3793. k:Destroy()
  3794. end
  3795. end
  3796. end
  3797. end
  3798. function fixOrbital()
  3799. createWall(CFrame.new(2.05055237, 6.13212585, 144.456467, 1, 0, 0, 0, 1, 0,
  3800. 0, 0, 1), Vector3.new(184, 1.5, 81))
  3801.  
  3802. createWall(CFrame.new(-27.9494476, 18.8821259, 183.206467, 1, 0, 0, 0, 1, 0,
  3803. 0, 0, 1), Vector3.new(130, 27, 3.5))
  3804. createWall(CFrame.new(65.8005524, 18.8821259, 182.206467, 1, 0, 0, 0, 1, 0,
  3805. 0, 0, 1), Vector3.new(60.5, 27, 5.5))
  3806. createWall(CFrame.new(80.5505524, 18.8821259, 176.206467, 1, 0, 0, 0, 1, 0,
  3807. 0, 0, 1), Vector3.new(31, 27, 17.5))
  3808. createWall(CFrame.new(91.5505524, 18.8821259, 162.206467, 1, 0, 0, 0, 1, 0,
  3809. 0, 0, 1), Vector3.new(9, 27, 45.5))
  3810. createWall(CFrame.new(71.8005524, 20.3821259, 101.206467, 1, 0, 0, 0, 1, 0,
  3811. 0, 0, 1), Vector3.new(72.5, 30, 3.5))
  3812. 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))
  3813. createWall(CFrame.new(122.800552, 8.88212585, 116.456467, 1, 0, 0, 0, 1, 0,
  3814. 0, 0, 1), Vector3.new(35.5, 7, 35))
  3815. createWall(CFrame.new(136.300552, 16.8821259, 132.706467, 1, 0, 0, 0, 1, 0,
  3816. 0, 0, 1), Vector3.new(60.5, 23, 10.5))
  3817. createWall(CFrame.new(123.300552, 16.8821259, 103.206467, 1, 0, 0, 0, 1, 0,
  3818. 0, 0, 1), Vector3.new(34.5, 23, 0.5))
  3819. 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))
  3820. createWall(CFrame.new(225.300552, 10.8821259, 83.7064667, 1, 0, 0, 0, 1, 0,
  3821. 0, 0, 1), Vector3.new(172.5, 11, 149.5))
  3822. createWall(CFrame.new(139.050552, 16.6321259, 84.4564667, 1, 0, 0, 0, 1, 0,
  3823. 0, 0, 1), Vector3.new(11, 22.5, 47))
  3824. 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))
  3825. 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))
  3826. 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))
  3827. 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))
  3828. 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))
  3829. 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,
  3830. 13.5))
  3831. createWall(CFrame.new(170.300552, 16.8821259, 128.706467, 1, 0, 0, 0, 1, 0,
  3832. 0, 0, 1), Vector3.new(9.5, 23, 18.5))
  3833. createWall(CFrame.new(174.550552, 16.8821259, 109.206467, 1, 0, 0, 0, 1, 0,
  3834. 0, 0, 1), Vector3.new(1, 23, 21.5))
  3835. 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))
  3836. 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))
  3837. 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))
  3838. 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))
  3839. 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))
  3840. 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))
  3841. 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))
  3842. 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,
  3843. 48.5))
  3844. createWall(CFrame.new(216.315201, 20.8821259, -32.4457855, 0.999991894, 0, -
  3845.  
  3846. 1.78813934e-07, 0, 1, 0, 1.78813934e-07, 0, 0.999991894), Vector3.new(21.5, 31,
  3847. 96.5))
  3848. 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,
  3849. 31, 96.5))
  3850. 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,
  3851. 31, 48))
  3852. createWall(CFrame.new(274.800537, 11.3821259, -97.7935333, 1, 0, 0, 0, 1, 0,
  3853. 0, 0, 1), Vector3.new(146.5, 12, 225.5))
  3854. createWall(CFrame.new(204.550537, 22.3821259, -144.543533, 1, 0, 0, 0, 1, 0,
  3855. 0, 0, 1), Vector3.new(6, 34, 132))
  3856. createWall(CFrame.new(346.550537, 22.3821259, -144.543533, 1, 0, 0, 0, 1, 0,
  3857. 0, 0, 1), Vector3.new(3, 34, 132))
  3858. createWall(CFrame.new(253.300537, 22.3821259, -206.043533, 1, 0, 0, 0, 1, 0,
  3859. 0, 0, 1), Vector3.new(103.5, 34, 5))
  3860. createWall(CFrame.new(334.550537, 22.3821259, -206.043533, 1, 0, 0, 0, 1, 0,
  3861. 0, 0, 1), Vector3.new(19, 34, 5))
  3862. createWall(CFrame.new(339.300537, 22.3821259, -242.043533, 1, 0, 0, 0, 1, 0,
  3863. 0, 0, 1), Vector3.new(9.5, 34, 77))
  3864. createWall(CFrame.new(260.300537, 22.3821259, -219.293533, 1, 0, 0, 0, 1, 0,
  3865. 0, 0, 1), Vector3.new(54.5, 34, 31.5))
  3866. createWall(CFrame.new(312.050537, 11.3821259, -110.543533, 1, 0, 0, 0, 1, 0,
  3867. 0, 0, 1), Vector3.new(72, 12, 251))
  3868. createWall(CFrame.new(314.800537, 22.3821259, -277.293518, 1, 0, 0, 0, 1, 0,
  3869. 0, 0, 1), Vector3.new(58.5, 34, 9.5))
  3870. createWall(CFrame.new(221.550537, 23.8821259, -421.543518, 1, 0, 0, 0, 1, 0,
  3871. 0, 0, 1), Vector3.new(14, 42, 8))
  3872. createWall(CFrame.new(221.300537, 23.8821259, -497.293518, 1, 0, 0, 0, 1, 0,
  3873. 0, 0, 1), Vector3.new(14.5, 42, 32.5))
  3874. createWall(CFrame.new(319.965942, 16.5022373, -230.817398, 0.950360954,
  3875. 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))
  3876. createWall(CFrame.new(289.800537, 9.63212585, -304.293518, 1, 0, 0, 0, 1, 0,
  3877. 0, 0, 1), Vector3.new(116.5, 8.5, 138.5))
  3878. createWall(CFrame.new(233.300537, 21.6321259, -252.543518, 1, 0, 0, 0, 1, 0,
  3879. 0, 0, 1), Vector3.new(3.5, 34.5, 35))
  3880. createWall(CFrame.new(234.925537, 22.1321259, -319.043518, 1, 0, 0, 0, 1, 0,
  3881. 0, 0, 1), Vector3.new(21.25, 33.5, 100))
  3882. createWall(CFrame.new(313.300537, 22.1321259, -304.043518, 1, 0, 0, 0, 1, 0,
  3883. 0, 0, 1), Vector3.new(37.5, 33.5, 57))
  3884. createWall(CFrame.new(352.550537, 22.1321259, -322.793518, 1, 0, 0, 0, 1, 0,
  3885. 0, 0, 1), Vector3.new(55, 33.5, 94.5))
  3886. createWall(CFrame.new(268.550537, 22.1321259, -366.043518, 1, 0, 0, 0, 1, 0,
  3887. 0, 0, 1), Vector3.new(66, 33.5, 6))
  3888. createWall(CFrame.new(302.300537, 9.63212585, -375.543518, 1, 0, 0, 0, 1, 0,
  3889. 0, 0, 1), Vector3.new(154.5, 8.5, 281))
  3890. createWall(CFrame.new(377.550537, 25.1321259, -440.043518, 1, 0, 0, 0, 1, 0,
  3891. 0, 0, 1), Vector3.new(4, 39.5, 147))
  3892. createWall(CFrame.new(302.800537, 25.1321259, -512.293518, 1, 0, 0, 0, 1, 0,
  3893. 0, 0, 1), Vector3.new(153.5, 39.5, 2.5))
  3894. createWall(CFrame.new(227.050537, 25.1321259, -492.793518, 1, 0, 0, 0, 1, 0,
  3895. 0, 0, 1), Vector3.new(10, 39.5, 41.5))
  3896. createWall(CFrame.new(227.300537, 25.1321259, -400.043518, 1, 0, 0, 0, 1, 0,
  3897. 0, 0, 1), Vector3.new(10.5, 39.5, 68))
  3898. createWall(CFrame.new(149.300537, 23.8821259, -501.293518, 1, 0, 0, 0, 1, 0,
  3899. 0, 0, 1), Vector3.new(158.5, 42, 24.5))
  3900. createWall(CFrame.new(72.3005371, 23.8821259, -414.543518, 1, 0, 0, 0, 1, 0,
  3901. 0, 0, 1), Vector3.new(4.5, 42, 16))
  3902.  
  3903. createWall(CFrame.new(165.300537, 23.3821259, -412.793518, 1, 0, 0, 0, 1, 0,
  3904. 0, 0, 1), Vector3.new(123.5, 41, 14.5))
  3905. createWall(CFrame.new(143.550537, 10.1321259, -427.793518, 1, 0, 0, 0, 1, 0,
  3906. 0, 0, 1), Vector3.new(178, 9.5, 176.5))
  3907. createWall(CFrame.new(170.300537, 23.8821259, -387.293518, 1, 0, 0, 0, 1, 0,
  3908. 0, 0, 1), Vector3.new(4.5, 42, 60.5))
  3909. createWall(CFrame.new(159.175537, 23.8821259, -335.043518, 1, 0, 0, 0, 1, 0,
  3910. 0, 0, 1), Vector3.new(25.25, 42, 59))
  3911. createWall(CFrame.new(92.8005371, 23.8821259, -360.793518, 1, 0, 0, 0, 1, 0,
  3912. 0, 0, 1), Vector3.new(47.5, 42, 7.5))
  3913. createWall(CFrame.new(69.8005371, 23.8821259, -424.543518, 1, 0, 0, 0, 1, 0,
  3914. 0, 0, 1), Vector3.new(1.5, 42, 135))
  3915. createWall(CFrame.new(84.3005371, 22.6321259, -303.543518, 1, 0, 0, 0, 1, 0,
  3916. 0, 0, 1), Vector3.new(133.5, 44.5, 6))
  3917. createWall(CFrame.new(67.0505371, 22.6321259, -351.293518, 1, 0, 0, 0, 1, 0,
  3918. 0, 0, 1), Vector3.new(54, 44.5, 26.5))
  3919. createWall(CFrame.new(89.0505371, 22.6321259, -344.543518, 1, 0, 0, 0, 1, 0,
  3920. 0, 0, 1), Vector3.new(17, 44.5, 25))
  3921. createWall(CFrame.new(122.300537, 10.8821259, -333.793518, 1, 0, 0, 0, 1, 0,
  3922. 0, 0, 1), Vector3.new(51.5, 11, 54.5))
  3923. 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))
  3924. createWall(CFrame.new(20.3005371, -3.61787415, -356.293518, 1, 0, 0, 0, 1, 0,
  3925. 0, 0, 1), Vector3.new(95.5, 11, 99.5))
  3926. createWall(CFrame.new(39.9685135, 6.63212585, -380.228729, 0.913545489, 0,
  3927. 0.406736732, 0, 1, 0, -0.406736732, 0, 0.913545489), Vector3.new(14.5, 31.5, 46.5))
  3928. createWall(CFrame.new(18.114563, 6.63212585, -403.113617, 0.0174522102, 0,
  3929. 0.999847889, 0, 1, 0, -0.999847889, 0, 0.0174522102), Vector3.new(14.5, 31.5, 91))
  3930. createWall(CFrame.new(-26.2788792, 6.63212585, -366.632813, 0.0174522102, 0,
  3931. 0.999847889, 0, 1, 0, -0.999847889, 0, 0.0174522102), Vector3.new(89, 31.5, 3.5))
  3932. createWall(CFrame.new(-36.5266075, 17.3821259, -309.552948, 0.0174522102, 0,
  3933. 0.999847889, 0, 1, 0, -0.999847889, 0, 0.0174522102), Vector3.new(26.5, 53, 57))
  3934. 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,
  3935. 15.5))
  3936. createWall(CFrame.new(19.5505371, 19.3427505, -291.517181, 1, 0, 0, 0,
  3937. 0.0174524486, 0.99984777, 0, -0.99984777, 0.0174524486), Vector3.new(5, 62, 50.5))
  3938. createWall(CFrame.new(-102.175552, 17.3821259, -272.943085, 0.0174522102, 0,
  3939. 0.999847889, 0, 1, 0, -0.999847889, 0, 0.0174522102), Vector3.new(102, 53, 90))
  3940. createWall(CFrame.new(4.05209827, 17.3821259, -242.084457, 0.0174522102, 0,
  3941. 0.999847889, 0, 1, 0, -0.999847889, 0, 0.0174522102), Vector3.new(40, 53, 74.5))
  3942. createWall(CFrame.new(38.5662766, 17.3821259, -170.971268, 0.0174522102, 0,
  3943. 0.999847889, 0, 1, 0, -0.999847889, 0, 0.0174522102), Vector3.new(181, 53, 3))
  3944. createWall(CFrame.new(-47.4959297, 17.3821259, -82.2097092, 0.0174522102, 0,
  3945. 0.999847889, 0, 1, 0, -0.999847889, 0, 0.0174522102), Vector3.new(0.499998093, 53,
  3946. 172))
  3947. createWall(CFrame.new(-130.682892, 17.3821259, -158.17308, 0.0174522102, 0,
  3948. 0.999847889, 0, 1, 0, -0.999847889, 0, 0.0174522102), Vector3.new(149.5, 53, 3))
  3949. createWall(CFrame.new(-40.7920074, 4.38212585, -194.109756, 0.0174522102, 0,
  3950. 0.999847889, 0, 1, 0, -0.999847889, 0, 0.0174522102), Vector3.new(224.5, 27,
  3951. 181.5))
  3952. createWall(CFrame.new(-25.6994476, 18.8821259, 117.706467, 1, 0, 0, 0, 1, 0,
  3953. 0, 0, 1), Vector3.new(125.5, 27, 36.5))
  3954. createWall(CFrame.new(-89.1994476, 18.8821259, 154.206467, 1, 0, 0, 0, 1, 0,
  3955. 0, 0, 1), Vector3.new(7.5, 27, 61.5))
  3956. createWall(CFrame.new(282.050537, 22.1321259, -316.793518, 1, 0, 0, 0, 1, 0,
  3957. 0, 0, 1), Vector3.new(28, 33.5, 5.5))
  3958. 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-
  3959.  
  3960. 15, -8.74227766e-08, 1), Vector3.new(8, 1, 45.5))
  3961. 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.35850217e15, -8.74227766e-08, 1), Vector3.new(7, 2, 43.5))
  3962. 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.35850217e15, -8.74227766e-08, 1), Vector3.new(6, 3, 41.5))
  3963. 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.35850217e15, -8.74227766e-08, 1), Vector3.new(31, 4, 77))
  3964. 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.35850217e15, -8.74227766e-08, 1), Vector3.new(32.5, 4, 77))
  3965. 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.35850217e15, -8.74227766e-08, 1), Vector3.new(33.5, 3, 77))
  3966. createWall(CFrame.new(-3.77072525, 17.3821259, -202.161972, -0.731354296, 0,
  3967. 0.681998551, 0, 1, 0, -0.681998551, 0, -0.731354296), Vector3.new(29.5, 53, 29.5))
  3968. createWall(CFrame.new(21.5335732, 17.3821259, -189.938141, -0.99026978, 0,
  3969. 0.13917309, 0, 1, 0, -0.13917309, 0, -0.99026978), Vector3.new(45, 53, 24.5))
  3970. createWall(CFrame.new(-11.1203985, 17.3821259, -219.985062, -0.190809608, 0,
  3971. 0.981628776, 0, 1, 0, -0.981628776, 0, -0.190809608), Vector3.new(29.5, 53, 29.5))
  3972. createWall(CFrame.new(21.5335732, 17.3821259, -189.938141, -0.99026978, 0,
  3973. 0.13917309, 0, 1, 0, -0.13917309, 0, -0.99026978), Vector3.new(45, 53, 24.5))
  3974. 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))
  3975. 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))
  3976. 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))
  3977. createWall(CFrame.new(241.550537, 22.1321259, -316.793518, 1, 0, 0, 0, 1, 0,
  3978. 0, 0, 1), Vector3.new(12, 33.5, 5.5))
  3979. 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))
  3980. 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))
  3981. 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))
  3982. 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))
  3983. 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))
  3984. 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))
  3985. createWall(CFrame.new(82.0505371, 23.8821259, -496.543518, 1, 0, 0, 0, 1, 0,
  3986. 0, 0, 1), Vector3.new(24, 42, 34))
  3987. createWall(CFrame.new(319.015594, 15.5022373, -231.12854, 0.950360954,
  3988. 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))
  3989. createWall(CFrame.new(318.065247, 14.5022373, -231.439682, 0.950360954,
  3990. 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))
  3991. createWall(CFrame.new(317.114899, 13.5022373, -231.750824, 0.950360954,
  3992.  
  3993. 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))
  3994. createWall(CFrame.new(241.800537, 22.1321259, -317.043518, 1, 0, 0, 0, 1, 0,
  3995. 0, 0, 1), Vector3.new(12.5, 33.5, 6))
  3996. createWall(CFrame.new(122.300537, 9.88212585, -334.293518, 1, 0, 0, 0, 1, 0,
  3997. 0, 0, 1), Vector3.new(51.5, 11.5, 55.5))
  3998. wait(.1)
  3999. if _G.destroy_map then
  4000. workspace.Terrain:Clear()
  4001. workspace.Map:Destroy()
  4002. end
  4003. end
  4004. function canalsFix()
  4005. createWall(CFrame.new(155.957275, 32.8910141, -46.5320663, 1, 0, 0, 0, 1, 0,
  4006. 0, 0, 1), Vector3.new(11.7300148, 87.4399948, 105.580002))
  4007. createWall(CFrame.new(-138.143799, 32.8910141, 163.496231, -4.37113883e-08,
  4008. 0, 1, 0, 1, 0, -1, 0, -4.37113883e-08), Vector3.new(97.5299759, 87.4399948,
  4009. 22.3999958))
  4010. createWall(CFrame.new(-34.8195114, 32.8910141, -67.9616165, -1, -8.74227766e08, 0, -8.74227766e-08, 1, -8.74227766e-08, 7.64274186e-15, -8.74227766e-08, -1),
  4011. Vector3.new(83.9499435, 87.4399948, 46.5899925))
  4012. createWall(CFrame.new(-103.979477, 32.8910141, -224.424011, -4.37113883e-08,
  4013. 0, -1, 0, 1, 0, 1, 0, -4.37113883e-08), Vector3.new(6.84993505, 87.4399948,
  4014. 235.629959))
  4015. createWall(CFrame.new(-186.825027, 62.1460152, 73.4007111, 1, 0, 0, 0, 1, 0,
  4016. 0, 0, 1), Vector3.new(84.4299774, 145.949997, 5.42000008))
  4017. 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))
  4018. createWall(CFrame.new(-55.4694901, 32.8910141, -157.089325, -1, -8.74227766e08, 0, -8.74227766e-08, 1, -8.74227766e-08, 7.64274186e-15, -8.74227766e-08, -1),
  4019. Vector3.new(6.84993505, 87.4399948, 138.609985))
  4020. createWall(CFrame.new(-145.703644, 32.8910141, 28.710371, -1, -8.74227766e08, 0, -8.74227766e-08, 1, -8.74227766e-08, 7.64274186e-15, -8.74227766e-08, -1),
  4021. Vector3.new(84.4299774, 87.4399948, 5.42000008))
  4022. createWall(CFrame.new(71.0828094, 32.8910141, 50.8468018, -4.37113883e-08, 0,
  4023. -1, 0, 1, 0, 1, 0, -4.37113883e-08), Vector3.new(49.6700058, 87.4399948,
  4024. 93.9099808))
  4025. 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,
  4026. 87.4399948, 58.2199783))
  4027. createWall(CFrame.new(225.497131, 36.9860115, -59.8648605, 1, 0, 0, 0, 1, 0,
  4028. 0, 0, 1), Vector3.new(150.809937, 95.6299896, 52.0899887))
  4029. 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))
  4030. 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))
  4031. createWall(CFrame.new(-145.703644, 62.2310066, 113.641754, -4.37113883e-08,
  4032. 0, 1, 0, 1, 0, -1, 0, -4.37113883e-08), Vector3.new(84.4299774, 146.11998,
  4033. 5.42000008))
  4034. 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))
  4035. createWall(CFrame.new(-123.277046, 32.8910141, 120.19175, -4.37113883e-08, 0,
  4036. 1, 0, 1, 0, -1, 0, -4.37113883e-08), Vector3.new(97.5299759, 87.4399948,
  4037. 15.5299997))
  4038.  
  4039. createWall(CFrame.new(397.023865, 36.9860115, -58.8248749, 1, 0, 0, 0, 1, 0,
  4040. 0, 0, 1), Vector3.new(150.809937, 95.6299896, 54.1699905))
  4041. createWall(CFrame.new(416.749054, 36.9860115, -96.7398682, 1, 0, 0, 0, 1, 0,
  4042. 0, 0, 1), Vector3.new(111.359848, 95.6299896, 117.999992))
  4043. createWall(CFrame.new(425.636475, 36.9860115, 1.16940498, 1, 0, 0, 0, 1, 0,
  4044. 0, 0, 1), Vector3.new(106.859848, 95.6299896, 82.909996))
  4045. createWall(CFrame.new(-121.666016, 32.8910141, 279.982574, -4.37113883e-08,
  4046. 0, 1, 0, 1, 0, -1, 0, -4.37113883e-08), Vector3.new(97.5299759, 87.4399948,
  4047. 11.550005))
  4048. createWall(CFrame.new(-98.9495239, 59.7010269, -44.2266006, -1, -8.74227766e08, 0, -8.74227766e-08, 1, -8.74227766e-08, 7.64274186e-15, -8.74227766e-08, -1),
  4049. Vector3.new(58.7299576, 33.8199959, 24.7199955))
  4050. createWall(CFrame.new(-98.8532333, 32.8910141, 51.1067657, -4.37113883e-08,
  4051. 0, -1, 0, 1, 0, 1, 0, -4.37113883e-08), Vector3.new(50.0699921, 87.4399948,
  4052. 41.260006))
  4053. createWall(CFrame.new(371.486694, 36.9860115, 44.0894165, 1, 0, 0, 0, 1, 0,
  4054. 0, 0, 1), Vector3.new(215.159775, 95.6299896, 16.9300041))
  4055. createWall(CFrame.new(189.412186, 36.9860115, 17.0006351, 1, 0, 0, 0, 1, 0,
  4056. 0, 0, 1), Vector3.new(16.339817, 95.6299896, 52.0800133))
  4057. createWall(CFrame.new(196.772171, 36.9860115, -85.2920761, 1, 0, 0, 0, 1, 0,
  4058. 0, 0, 1), Vector3.new(93.3599701, 95.6299896, 28.0600014))
  4059. createWall(CFrame.new(155.065796, 36.9860115, 67.287796, 1, 0, 0, 0, 1, 0, 0,
  4060. 0, 1), Vector3.new(20.3698311, 95.6299896, 17.1600227))
  4061. createWall(CFrame.new(124.959198, 36.9860115, 134.113754, 1, 0, 0, 0, 1, 0,
  4062. 0, 0, 1), Vector3.new(41.2598, 95.6299896, 74.7600098))
  4063. createWall(CFrame.new(-162.458191, 32.8910141, -68.6916199, -1, -8.74227766e08, 0, -8.74227766e-08, 1, -8.74227766e-08, 7.64274186e-15, -8.74227766e-08, -1),
  4064. Vector3.new(83.9499435, 87.4399948, 45.1299858))
  4065. createWall(CFrame.new(-111.588234, 32.8910141, 50.9817734, -4.37113883e-08,
  4066. 0, -1, 0, 1, 0, 1, 0, -4.37113883e-08), Vector3.new(49.939991, 87.4399948,
  4067. 15.7900009))
  4068. createWall(CFrame.new(-25.9021072, 32.8910141, 50.9817734, -4.37113883e-08,
  4069. 0, -1, 0, 1, 0, 1, 0, -4.37113883e-08), Vector3.new(49.939991, 87.4399948,
  4070. 114.280014))
  4071. createWall(CFrame.new(-223.311798, 32.8910141, -168.529022, 1, 0, 0, 0, 1, 0,
  4072. 0, 0, 1), Vector3.new(6.84993505, 87.4399948, 116.899963))
  4073. createWall(CFrame.new(-136.288849, 32.8910141, 301.444031, -4.37113883e-08,
  4074. 0, 1, 0, 1, 0, -1, 0, -4.37113883e-08), Vector3.new(32.1999626, 87.4399948,
  4075. 18.6900043))
  4076. 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))
  4077. createWall(CFrame.new(-170.796127, 32.8910141, 24.3202763, -4.37113883e-08,
  4078. 0, -1, 0, 1, 0, 1, 0, -4.37113883e-08), Vector3.new(84.4299774, 87.4399948,
  4079. 5.42000008))
  4080. createWall(CFrame.new(186.772171, 36.9860115, -167.385376, 1, 0, 0, 0, 1, 0,
  4081. 0, 0, 1), Vector3.new(113.35997, 95.6299896, 15.4500008))
  4082. createWall(CFrame.new(-132.073868, 32.8910141, 268.779114, -4.37113883e-08,
  4083. 0, 1, 0, 1, 0, -1, 0, -4.37113883e-08), Vector3.new(97.5299759, 87.4399948,
  4084. 10.260006))
  4085. 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))
  4086. createWall(CFrame.new(124.959198, 36.9860115, 71.5675964, 1, 0, 0, 0, 1, 0,
  4087. 0, 0, 1), Vector3.new(41.2598, 95.6299896, 17.1600227))
  4088. createWall(CFrame.new(117.913742, 77.9372025, 156.825684, 1, 0, 0, 0, 1, 0,
  4089. 0, 0, 1), Vector3.new(167.879807, 17.2299976, 14.8899794))
  4090. createWall(CFrame.new(-207.538849, 32.8910141, 296.944031, -4.37113883e-08,
  4091. 0, 1, 0, 1, 0, -1, 0, -4.37113883e-08), Vector3.new(41.1999626, 87.4399948,
  4092.  
  4093. 2.19000244))
  4094. createWall(CFrame.new(-187.778656, 27.8627968, 362.189514, -4.37113883e-08,
  4095. 0, 1, 0, 1, 0, -1, 0, -4.37113883e-08), Vector3.new(125.759773, 117.039948,
  4096. 42.3200684))
  4097. createWall(CFrame.new(-47.6979599, 48.4710083, 120.507584, 1, 0, 0, 0, 1, 0,
  4098. 0, 0, 1), Vector3.new(68.4998016, 72.6599579, 42.0500107))
  4099. createWall(CFrame.new(-330.275391, 43.1127968, 387.889862, 1, 0, 0, 0, 1, 0,
  4100. 0, 0, 1), Vector3.new(245.559784, 86.5399475, 41.8200684))
  4101. createWall(CFrame.new(267.329956, 44.1549873, 47.4600601, 1, 0, -4.37113883e08, 0, 1, 0, 4.37113883e-08, 0, 1), Vector3.new(83.4698105, 65.7099991,
  4102. 33.4500122))
  4103. 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))
  4104. createWall(CFrame.new(-463.079102, 43.6127968, 295.492493, -4.37113883e-08,
  4105. 0, 1, 0, 1, 0, -1, 0, -4.37113883e-08), Vector3.new(245.559784, 85.5399475,
  4106. 41.8200684))
  4107. createWall(CFrame.new(46.2713356, 50.5749092, -60.2988358, -4.37113883e-08,
  4108. 0, -1, 0, 1, 0, 1, 0, -4.37113883e-08), Vector3.new(102.98999, 76.6199799,
  4109. 150.919952))
  4110. createWall(CFrame.new(-51.3865967, 44.7459869, 279.715424, 1, 0, 0, 0, 1, 0,
  4111. 0, 0, 1), Vector3.new(140.999802, 54.1599617, 44.3200684))
  4112. createWall(CFrame.new(-304.962646, 44.8627968, 155.790512, -1, -8.74227766e08, 0, -8.74227766e-08, 1, -8.74227766e-08, 7.64274186e-15, -8.74227766e-08, -1),
  4113. Vector3.new(245.559784, 83.0399475, 41.8200684))
  4114. createWall(CFrame.new(-33.8865967, 44.7459869, 164.972504, 1, 0, 0, 0, 1, 0,
  4115. 0, 0, 1), Vector3.new(101.999802, 54.1599617, 52.3200684))
  4116. 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))
  4117. createWall(CFrame.new(13.9149284, 36.9860115, 136.112579, 1, 0, 0, 0, 1, 0,
  4118. 0, 0, 1), Vector3.new(57.2598, 95.6299896, 76.2600098))
  4119. createWall(CFrame.new(-219.415039, 70.8955231, 110.323151, 1, 0, 0, 0, 1, 0,
  4120. 0, 0, 1), Vector3.new(83.8099518, 122.169983, 13.8299999))
  4121. createWall(CFrame.new(-165.575058, 61.5059929, 108.555695, 1, 0, 0, 0, 1, 0,
  4122. 0, 0, 1), Vector3.new(41.9299812, 144.669952, 23.8700027))
  4123. 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))
  4124. createWall(CFrame.new(17.4978638, 32.8910141, 45.4267883, -4.37113883e-08, 0,
  4125. -1, 0, 1, 0, 1, 0, -4.37113883e-08), Vector3.new(38.8299904, 87.4399948,
  4126. 201.079956))
  4127. createWall(CFrame.new(-304.545441, 64.4899902, 21.4497986, -0.104528427,
  4128. 1.77635684e-15, 0.994521916, 0, 1, 0, -0.994521916, 1.42108547e-14, -0.104528427),
  4129. Vector3.new(190.769989, 98.3999939, 10.8299999))
  4130. createWall(CFrame.new(-112.038849, 4.6410141, 169.694031, -4.37113883e-08, 0,
  4131. 1, 0, 1, 0, -1, 0, -4.37113883e-08), Vector3.new(17.6999512, 30.9399948,
  4132. 41.1900024))
  4133. 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))
  4134. 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))
  4135. createWall(CFrame.new(-273.835968, 17.4611702, 40.0727425, 0, -8.74227695e08, 1, -8.74227837e-08, 1, 8.74227837e-08, -1, -8.74227837e-08, 0),
  4136. Vector3.new(230.769989, 4.8999939, 88.3300018))
  4137. createWall(CFrame.new(-251.195892, 7.01116419, 91.0399628, -1, -8.74227766e08, 0, -8.74227766e-08, 1, -8.74227766e-08, 7.64274186e-15, -8.74227766e-08, -1),
  4138.  
  4139. Vector3.new(47.0499802, 24, 33.1999054))
  4140. createWall(CFrame.new(-249.195892, 6.01116419, 91.5399628, -1, -8.74227766e08, 0, -8.74227766e-08, 1, -8.74227766e-08, 7.64274186e-15, -8.74227766e-08, -1),
  4141. Vector3.new(47.0499802, 24, 41.1999054))
  4142. createWall(CFrame.new(-247.195892, 5.01116419, 93.2899628, -1, -8.74227766e08, 0, -8.74227766e-08, 1, -8.74227766e-08, 7.64274186e-15, -8.74227766e-08, -1),
  4143. Vector3.new(47.0499802, 24, 45.6999054))
  4144. createWall(CFrame.new(-245.195892, 4.01116419, 89.2899628, -1, -8.74227766e08, 0, -8.74227766e-08, 1, -8.74227766e-08, 7.64274186e-15, -8.74227766e-08, -1),
  4145. Vector3.new(47.0499802, 24, 50.6999054))
  4146. createWall(CFrame.new(-243.195892, 3.01116443, 92.0399628, -1, -8.74227766e08, 0, -8.74227766e-08, 1, -8.74227766e-08, 7.64274186e-15, -8.74227766e-08, -1),
  4147. Vector3.new(47.0499802, 24, 46.1999054))
  4148. createWall(CFrame.new(-241.195892, 2.01116443, 92.2899628, -1, -8.74227766e08, 0, -8.74227766e-08, 1, -8.74227766e-08, 7.64274186e-15, -8.74227766e-08, -1),
  4149. Vector3.new(47.0499802, 24, 47.6999054))
  4150. createWall(CFrame.new(-239.195892, 1.01116467, 95.2899628, -1, -8.74227766e08, 0, -8.74227766e-08, 1, -8.74227766e-08, 7.64274186e-15, -8.74227766e-08, -1),
  4151. Vector3.new(47.0499802, 24, 45.6999054))
  4152. 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,
  4153. 7.36183101e-15), Vector3.new(33.769989, 0.899993896, 68.8300018))
  4154. createWall(CFrame.new(-38.9890747, 11.6300173, -100.624664, -1, -8.74227766e08, 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))
  4155. createWall(CFrame.new(-79.9495239, 44.2010269, -44.2266006, -1, -8.74227766e08, 0, -8.74227766e-08, 1, -8.74227766e-08, 7.64274186e-15, -8.74227766e-08, -1),
  4156. Vector3.new(20.7299576, 64.8199921, 24.7199955))
  4157. createWall(CFrame.new(-114.449524, 44.2010269, -44.2266006, -1, -8.74227766e08, 0, -8.74227766e-08, 1, -8.74227766e-08, 7.64274186e-15, -8.74227766e-08, -1),
  4158. Vector3.new(21.7299576, 64.8199921, 24.7199955))
  4159. createWall(CFrame.new(-146.699524, 44.2010269, -23.4766006, -1, -8.74227766e08, 0, -8.74227766e-08, 1, -8.74227766e-08, 7.64274186e-15, -8.74227766e-08, -1),
  4160. Vector3.new(56.2299576, 64.8199921, 66.2199936))
  4161. createWall(CFrame.new(-47.6995239, 44.2010345, -30.7266006, -1, -8.74227766e08, 0, -8.74227766e-08, 1, -8.74227766e-08, 7.64274186e-15, -8.74227766e-08, -1),
  4162. Vector3.new(41.22995, 64.8199921, 51.7199936))
  4163. createWall(CFrame.new(121.772171, 36.9860115, -141.885376, 1, 0, 0, 0, 1, 0,
  4164. 0, 0, 1), Vector3.new(21.3599701, 95.6299896, 66.4499969))
  4165. createWall(CFrame.new(305.272156, 36.9860115, -162.635376, 1, 0, 0, 0, 1, 0,
  4166. 0, 0, 1), Vector3.new(125.35997, 95.6299896, 24.9500008))
  4167. 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))
  4168. 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),
  4169. Vector3.new(5.33981705, 95.6299896, 14.0600052))
  4170. 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.98023224e08, 8.74588793e-15, -1.00000012), Vector3.new(4.33981705, 95.6299896, 69.0600052))
  4171. 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.98023224e08, 8.74588793e-15, -1.00000012), Vector3.new(40.839817, 95.6299896, 1.56000519))
  4172. createWall(CFrame.new(88.459198, 36.9860115, 166.613754, 1, 0, 0, 0, 1, 0, 0,
  4173. 0, 1), Vector3.new(114.259796, 95.6299896, 9.76000977))
  4174. createWall(CFrame.new(311.260925, 24.7869816, -58.2802277, -1, -8.74098589e08, -1.52582125e-09, -8.74224142e-08, 0.99984777, 0.0174522698, 3.52690052e-14,
  4175. 0.0174522698, -0.99984777), Vector3.new(23.3499451, 39.9399948, 24.6099854))
  4176. createWall(CFrame.new(17.1134033, 44.7459869, 243.465424, 1, 0, 0, 0, 1, 0,
  4177.  
  4178. 0, 0, 1), Vector3.new(3.99980164, 54.1599617, 116.820068))
  4179. createWall(CFrame.new(-166.538849, 32.8910141, 307.694031, -4.37113883e-08,
  4180. 0, 1, 0, 1, 0, -1, 0, -4.37113883e-08), Vector3.new(19.6999626, 87.4399948,
  4181. 79.1900024))
  4182. createWall(CFrame.new(-207.538849, 32.8910141, 217.694031, -4.37113883e-08,
  4183. 0, 1, 0, 1, 0, -1, 0, -4.37113883e-08), Vector3.new(82.6999664, 87.4399948,
  4184. 2.19000244))
  4185. createWall(CFrame.new(-427.212646, 47.3627853, 175.540512, -1, -8.74227766e08, 0, -8.74227766e-08, 1, -8.74227766e-08, 7.64274186e-15, -8.74227766e-08, -1),
  4186. Vector3.new(31.0597839, 78.0399475, 81.3200684))
  4187. createWall(CFrame.new(-176.288849, 32.8910141, 211.694031, -4.37113883e-08,
  4188. 0, 1, 0, 1, 0, -1, 0, -4.37113883e-08), Vector3.new(42.6999664, 87.4399948,
  4189. 59.6900024))
  4190. createWall(CFrame.new(75.8479004, 0.891014099, -2.7682178, -4.37113883e-08,
  4191. 0, -1, 0, 1, 0, 1, 0, -4.37113883e-08), Vector3.new(391.440002, 23.4399948,
  4192. 462.780029))
  4193. createWall(CFrame.new(-49.6365967, 18.9959869, 200.222504, 1, 0, 0, 0, 1, 0,
  4194. 0, 0, 1), Vector3.new(133.499802, 2.6599617, 121.820068))
  4195. createWall(CFrame.new(-290.788849, 0.641014099, 262.194031, -4.37113883e-08,
  4196. 0, 1, 0, 1, 0, -1, 0, -4.37113883e-08), Vector3.new(241.699966, 22.9399948,
  4197. 369.690002))
  4198. createWall(CFrame.new(-109.038849, 1.3910141, 264.194031, -4.37113883e-08, 0,
  4199. 1, 0, 1, 0, -1, 0, -4.37113883e-08), Vector3.new(237.699951, 24.4399948,
  4200. 35.1900024))
  4201. createWall(CFrame.new(239.912186, 36.9860115, -22.4993649, 1, 0, 0, 0, 1, 0,
  4202. 0, 0, 1), Vector3.new(117.339813, 95.6299896, 48.0800133))
  4203. createWall(CFrame.new(178.260925, 23.3800297, -162.874664, -1, -8.74227766e08, 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))
  4204. createWall(CFrame.new(307.760925, 23.380043, -136.374664, -1, -8.74227766e08, 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))
  4205. createWall(CFrame.new(-99.9021072, -12.9436626, 113.714745, -3.53632537e-08,
  4206. 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))
  4207. createWall(CFrame.new(42.959198, 36.9860115, 134.363754, 1, 0, 0, 0, 1, 0, 0,
  4208. 0, 1), Vector3.new(23.2597961, 95.6299896, 74.2600098))
  4209. createWall(CFrame.new(-121.288857, 0.756968558, 202.870163, -4.20180761e-08,
  4210. 1.20484973e-08, 1, 0.275637388, 0.961261809, 3.33066907e-15, -0.961261809,
  4211. 0.275637388, -4.37113918e-08), Vector3.new(59.1999512, 23.9399948, 10.6900024))
  4212. createWall(CFrame.new(310.510925, 23.1539402, -49.8755417, -1, -7.33189793e08, -4.76138418e-08, -8.7422741e-08, 0.838670671, 0.544638932, -1.30358269e-14,
  4213. 0.544638932, -0.838670671), Vector3.new(24.8499451, 39.9399948, 16.6099854))
  4214. createWall(CFrame.new(310.510925, 21.0615959, -71.9470215, -1, -7.78942706e08, 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))
  4215. createWall(CFrame.new(137.010925, 20.868412, -68.4826736, -1, -8.04731002e08, -3.41587914e-08, -8.74227695e-08, 0.920504868, 0.390731037, -5.14420645e-17,
  4216. 0.390731037, -0.920504868), Vector3.new(38.8499451, 4.43999481, 68.1099854))
  4217. createWall(CFrame.new(256.935089, 9.34212494, 30.1253357, -0.920504808, 0.390731215, 3.55271368e-15, -0.390731215, 0.920504808, -8.74227837e-08,
  4218. 3.41587985e-08, -8.04730931e-08, -1), Vector3.new(66.8499451, 24.4399948,
  4219. 66.1099854))
  4220. createWall(CFrame.new(337.760925, 22.6300564, 12.8753357, -1, -8.74227766e08, 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))
  4221. createWall(CFrame.new(337.010925, 22.1300583, 30.1253357, -1, -8.74227766e08, 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))
  4222.  
  4223. createWall(CFrame.new(329.510925, 21.1300583, 30.1253357, -1, -8.74227766e08, 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))
  4224. createWall(CFrame.new(-110.288849, 1.1410141, 231.444031, -4.37113883e-08, 0,
  4225. 1, 0, 1, 0, -1, 0, -4.37113883e-08), Vector3.new(51.1999512, 23.9399948,
  4226. 37.6900024))
  4227. createWall(CFrame.new(-112.038849, 0.891014099, 231.444031, -4.37113883e-08,
  4228. 0, 1, 0, 1, 0, -1, 0, -4.37113883e-08), Vector3.new(51.1999512, 23.4399948,
  4229. 41.1900024))
  4230. createWall(CFrame.new(-245.053238, 24.6439991, -76.1922913, 0.131052777,
  4231. 0.743242264, 0.656061411, -0.984807491, 0.173650265, -3.70293856e-06, -0.113928005,
  4232. -0.646093667, 0.754707873), Vector3.new(4.34993744, 13.9399948, 22.9200001))
  4233. createWall(CFrame.new(-219.118988, 16.1449757, -98.7366257, -0.342632473,
  4234. 0.672451258, 0.656058371, -0.891007841, -0.453988045, -5.27128577e-06, 0.297839075,
  4235. -0.58455497, 0.754710317), Vector3.new(4.34993744, 33.9399948, 22.9200001))
  4236. createWall(CFrame.new(-235.20369, 24.6545467, -84.7544098, -0.118063509,
  4237. 0.745420098, 0.656065226, -0.987691581, -0.156433806, -3.13296914e-06, 0.102626264,
  4238. -0.647989988, 0.754713774), Vector3.new(4.59993744, 13.9399948, 22.9200001))
  4239. createWall(CFrame.new(-254.772614, 20.8520355, -67.7679214, 0.335811794,
  4240. 0.688516259, 0.642787576, -0.898794055, 0.438371211, -1.86264515e-09, -0.281779528,
  4241. -0.577733696, 0.766044378), Vector3.new(3.09993744, 14.6899948, 22.9200001))
  4242. if _G.destroy_map then
  4243. workspace.Terrain:Clear()
  4244. for i,v in pairs(workspace:GetChildren()) do
  4245. if v.ClassName == "Model" or v.ClassName == "Part" or v.ClassName ==
  4246. "UnionOperation" or v.ClassName == "WedgePart" or v.Name == "MeshPart" then
  4247. if v ~= game.Players.LocalPlayer.Character and v.Name ~= regionPartName
  4248. and v.Name ~= "secondBossSafeSpots" and v.Name ~= "finalBossObjectSpawns" then
  4249. v:Destroy()
  4250. end
  4251. end
  4252. end
  4253. end
  4254. end
  4255. function steamFix()
  4256. createWall(CFrame.new(1598.42798, -10.4780731, -429.198364, 1, 0, 0, 0, 1, 0,
  4257. 0, 0, 1), Vector3.new(2.5, 59, 146.5))
  4258. createWall(CFrame.new(1487.67798, -10.4780731, -502.198364, 1, 0, 0, 0, 1, 0,
  4259. 0, 0, 1), Vector3.new(224, 59, 0.5))
  4260. createWall(CFrame.new(1488.92798, -10.4780731, -357.448364, 1, 0, 0, 0, 1, 0,
  4261. 0, 0, 1), Vector3.new(221.5, 59, 7))
  4262. createWall(CFrame.new(1388.92798, -40.2280731, -429.448364, 1, 0, 0, 0, 1, 0,
  4263. 0, 0, 1), Vector3.new(44.5, 29.5, 151))
  4264. createWall(CFrame.new(1431.1106, -53.0152588, -431.698364, 0.882947683,
  4265. 0.469471514, 0, -0.469471514, 0.882947683, 0, 0, 0, 1), Vector3.new(62.5, 29.5,
  4266. 31.5))
  4267. createWall(CFrame.new(1326.0979, -27.7056007, -431.698364, 0.965927362,
  4268. 0.258819342, 0, -0.258819342, 0.965927362, 0, 0, 0, 1), Vector3.new(155, 29.5,
  4269. 31.5))
  4270. createWall(CFrame.new(1316.12097, -7.95021439, -416.198364, 0.965927362,
  4271. 0.258819342, 0, -0.258819342, 0.965927362, 0, 0, 0, 1), Vector3.new(125.5, 62.5,
  4272. 0.5))
  4273. createWall(CFrame.new(1316.84546, -8.14432907, -447.948364, 0.965927362,
  4274. 0.258819342, 0, -0.258819342, 0.965927362, 0, 0, 0, 1), Vector3.new(127, 62.5, 3))
  4275. createWall(CFrame.new(1171.92798, -8.22807312, -429.448364, 1, 0, 0, 0, 1, 0,
  4276. 0, 0, 1), Vector3.new(165.5, 29.5, 151))
  4277. createWall(CFrame.new(1171.92798, 9.52192688, -481.448364, 1, 0, 0, 0, 1, 0,
  4278. 0, 0, 1), Vector3.new(165.5, 65, 47))
  4279.  
  4280. createWall(CFrame.new(1171.92798, 9.52192688, -397.198364, 1, 0, 0, 0, 1, 0,
  4281. 0, 0, 1), Vector3.new(165.5, 65, 10.5))
  4282. createWall(CFrame.new(1088.17798, 9.52192688, -408.698364, 1, 0, 0, 0, 1, 0,
  4283. 0, 0, 1), Vector3.new(5, 65, 33.5))
  4284. createWall(CFrame.new(1088.92798, 9.52192688, -447.698364, 1, 0, 0, 0, 1, 0,
  4285. 0, 0, 1), Vector3.new(3.5, 65, 22.5))
  4286. createWall(CFrame.new(1059.92798, -3.47807312, -429.698364, 1, 0, 0, 0, 1, 0,
  4287. 0, 0, 1), Vector3.new(61.5, 39, 58.5))
  4288. createWall(CFrame.new(1034.92798, -7.47807312, -429.698364, 1, 0, 0, 0, 1, 0,
  4289. 0, 0, 1), Vector3.new(111.5, 31, 94.5))
  4290. 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))
  4291. createWall(CFrame.new(978.677979, 0.27192688, -429.698364, 1, 0, 0, 0, 1, 0,
  4292. 0, 0, 1), Vector3.new(2, 14.5, 94.5))
  4293. createWall(CFrame.new(977.927979, 0.0219268799, -429.698364, 1, 0, 0, 0, 1,
  4294. 0, 0, 0, 1), Vector3.new(2.5, 14, 94.5))
  4295. createWall(CFrame.new(977.427979, -0.22807312, -429.698364, 1, 0, 0, 0, 1, 0,
  4296. 0, 0, 1), Vector3.new(3.5, 13.5, 94.5))
  4297. createWall(CFrame.new(960.427979, -13.4780731, -437.698364, 1, 0, 0, 0, 1, 0,
  4298. 0, 0, 1), Vector3.new(37.5, 39, 161.5))
  4299. createWall(CFrame.new(937.427979, -13.4780731, -481.198364, 1, 0, 0, 0, 1, 0,
  4300. 0, 0, 1), Vector3.new(83.5, 39, 74.5))
  4301. createWall(CFrame.new(937.427979, 8.27192688, -510.698364, 1, 0, 0, 0, 1, 0,
  4302. 0, 0, 1), Vector3.new(83.5, 82.5, 15.5))
  4303. createWall(CFrame.new(976.177979, 8.27192688, -489.198364, 1, 0, 0, 0, 1, 0,
  4304. 0, 0, 1), Vector3.new(9, 82.5, 56.5))
  4305. createWall(CFrame.new(975.927979, 8.27192688, -379.448364, 1, 0, 0, 0, 1, 0,
  4306. 0, 0, 1), Vector3.new(8.5, 82.5, 39))
  4307. createWall(CFrame.new(811.927979, -33.4780731, -435.948364, 1, 0, 0, 0, 1, 0,
  4308. 0, 0, 1), Vector3.new(334.5, 2, 165))
  4309. createWall(CFrame.new(947.677979, -27.1234665, -424.020416, 1, 0, 0, 0,
  4310. 0.777145922, -0.629320383, 0, 0.629320383, 0.777145922), Vector3.new(63, 27, 72.5))
  4311. createWall(CFrame.new(680.177979, -8.72807312, -364.198364, 1, 0, 0, 0, 1, 0,
  4312. 0, 0, 1), Vector3.new(71, 51.5, 32.5))
  4313. createWall(CFrame.new(679.927979, -9.72807312, -493.948364, 1, 0, 0, 0, 1, 0,
  4314. 0, 0, 1), Vector3.new(70.5, 49.5, 31))
  4315. createWall(CFrame.new(644.177979, -16.4780731, -461.448364, 1, 0, 0, 0, 1, 0,
  4316. 0, 0, 1), Vector3.new(4, 36, 35))
  4317. createWall(CFrame.new(644.177979, -16.4780731, -395.948364, 1, 0, 0, 0, 1, 0,
  4318. 0, 0, 1), Vector3.new(4, 36, 38))
  4319. createWall(CFrame.new(597.093445, -20.3076077, -428.198364, 0.965925813,
  4320. 0.258819044, 0, -0.258819044, 0.965925813, 0, 0, 0, 1), Vector3.new(129, 2, 35.5))
  4321. createWall(CFrame.new(398.177979, -18.7280731, -428.198364, 1, 0, 0, 0, 1, 0,
  4322. 0, 0, 1), Vector3.new(277, 31.5, 103.5))
  4323. createWall(CFrame.new(496.177979, 1.77192688, -377.948364, 1, 0, 0, 0, 1, 0,
  4324. 0, 0, 1), Vector3.new(81, 72.5, 3))
  4325. createWall(CFrame.new(496.177979, 1.77192688, -480.698364, 1, 0, 0, 0, 1, 0,
  4326. 0, 0, 1), Vector3.new(81, 72.5, 3.5))
  4327. createWall(CFrame.new(467.177979, 1.77192688, -459.948364, 1, 0, 0, 0, 1, 0,
  4328. 0, 0, 1), Vector3.new(5, 72.5, 45))
  4329. createWall(CFrame.new(467.177979, 1.77192688, -399.948364, 1, 0, 0, 0, 1, 0,
  4330. 0, 0, 1), Vector3.new(5, 72.5, 39))
  4331. createWall(CFrame.new(589.427979, 1.77192688, -397.448364, 1, 0, 0, 0, 1, 0,
  4332. 0, 0, 1), Vector3.new(111.5, 72.5, 34))
  4333. createWall(CFrame.new(589.427979, 1.77192688, -466.948364, 1, 0, 0, 0, 1, 0,
  4334. 0, 0, 1), Vector3.new(111.5, 72.5, 46))
  4335. createWall(CFrame.new(351.927979, -3.47807312, -464.948364, 1, 0, 0, 0, 1, 0,
  4336. 0, 0, 1), Vector3.new(221.5, 62, 30))
  4337. createWall(CFrame.new(260.677979, -18.4780731, -428.198364, 1, 0, 0, 0, 1, 0,
  4338.  
  4339. 0, 0, 1), Vector3.new(2, 32, 103.5))
  4340. createWall(CFrame.new(249.677979, -17.9780731, -428.198364, 1, 0, 0, 0, 1, 0,
  4341. 0, 0, 1), Vector3.new(21, 33, 103.5))
  4342. createWall(CFrame.new(249.677979, -7.97807312, -428.198364, 1, 0, 0, 0, 1, 0,
  4343. 0, 0, 1), Vector3.new(19, 15, 103.5))
  4344. createWall(CFrame.new(249.677979, -7.47807312, -438.698364, 1, 0, 0, 0, 1, 0,
  4345. 0, 0, 1), Vector3.new(16, 16, 82.5))
  4346. 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))
  4347. createWall(CFrame.new(115.927979, -27.2280731, -296.698364, 1, 0, 0, 0, 1, 0,
  4348. 0, 0, 1), Vector3.new(292.5, 38.5, 396.5))
  4349. createWall(CFrame.new(41.9279785, -22.7280731, -25.4483643, 1, 0, 0, 0, 1, 0,
  4350. 0, 0, 1), Vector3.new(56.5, 47.5, 147))
  4351. createWall(CFrame.new(69.1779785, 11.0219269, 10.3016357, 1, 0, 0, 0, 1, 0,
  4352. 0, 0, 1), Vector3.new(2, 54, 75.5))
  4353. createWall(CFrame.new(18.4279785, 11.0219269, 10.0516357, 1, 0, 0, 0, 1, 0,
  4354. 0, 0, 1), Vector3.new(0.5, 54, 76))
  4355. createWall(CFrame.new(44.1779785, 11.0219269, 43.3016357, 1, 0, 0, 0, 1, 0,
  4356. 0, 0, 1), Vector3.new(52, 54, 9.5))
  4357. createWall(CFrame.new(43.1779785, -8.81507015, -108.920464, 1, 0, 0, 0,
  4358. 0.906307936, 0.4226183, 0, -0.4226183, 0.906307936), Vector3.new(33, 9, 29))
  4359. createWall(CFrame.new(915.927979, -13.4780731, -419.948364, 1, 0, 0, 0, 1, 0,
  4360. 0, 0, 1), Vector3.new(1.5, 39, 50))
  4361. createWall(CFrame.new(1105.50012, 1.51558495, -430.948364, 0.838670552,
  4362. 0.544639051, 0, -0.544639051, 0.838670552, 0, 0, 0, 1), Vector3.new(40.5, 8.5, 12))
  4363. createWall(CFrame.new(1258.92798, 9.52192688, -475.698364, 1, 0, 0, 0, 1, 0,
  4364. 0, 0, 1), Vector3.new(13.5, 65, 58.5))
  4365. createWall(CFrame.new(1259.17798, 9.52192688, -409.448364, 1, 0, 0, 0, 1, 0,
  4366. 0, 0, 1), Vector3.new(14, 65, 14))
  4367. createWall(CFrame.new(1421.67798, -37.7280731, -416.198364, 1, 0, 0, 0, 1, 0,
  4368. 0, 0, 1), Vector3.new(31, 34.5, 0.5))
  4369. createWall(CFrame.new(1421.67798, -38.4780731, -447.698364, 1, 0, 0, 0, 1, 0,
  4370. 0, 0, 1), Vector3.new(31, 33, 0.5))
  4371. createWall(CFrame.new(942.427979, 25.0219269, -440.073364, 1, 0, 0, 0, 1, 0,
  4372. 0, 0, 1), Vector3.new(1.5, 39, 10.75))
  4373. createWall(CFrame.new(1370.17798, -24.7280731, -383.448364, 1, 0, 0, 0, 1, 0,
  4374. 0, 0, 1), Vector3.new(7, 60.5, 59))
  4375. createWall(CFrame.new(1371.92798, -24.7280731, -475.948364, 1, 0, 0, 0, 1, 0,
  4376. 0, 0, 1), Vector3.new(10.5, 60.5, 60))
  4377. createWall(CFrame.new(1059.42798, 3.02192688, -401.698364, 1, 0, 0, 0, 1, 0,
  4378. 0, 0, 1), Vector3.new(99.5, 52, 47.5))
  4379. createWall(CFrame.new(1059.17798, 3.02192688, -449.948364, 1, 0, 0, 0, 1, 0,
  4380. 0, 0, 1), Vector3.new(99, 52, 26))
  4381. wait(.1)
  4382. if _G.destroy_map then
  4383. local t = waitForExist(workspace, "borders")
  4384. for i,v in pairs(t:GetChildren()) do
  4385. cs:AddTag(v, "RayWhitelist")
  4386. end
  4387. workspace.Terrain:Clear()
  4388. for i,v in pairs(workspace:GetChildren()) do
  4389. if v.ClassName == "Model" or v.ClassName == "Part" or v.ClassName ==
  4390. "UnionOperation" or v.ClassName == "WedgePart" or v.Name == "MeshPart" then
  4391. if v ~= game.Players.LocalPlayer.Character and v.Name ~= regionPartName
  4392. then
  4393. v:Destroy()
  4394. end
  4395. end
  4396. end
  4397.  
  4398. end
  4399. end
  4400. function ghastlyFix()
  4401. _G.smallTeleportVal = 100
  4402. _G.smallTeleports = true
  4403. _G.teleportDuringBossOnly = false
  4404. createWall(CFrame.new(314.997986, 164.955307, 141.573303, 0.969875216, 0,
  4405. 0.243605107, 0, 1.00000072, 0, -0.243605226, 0, 0.96987462), Vector3.new(47.75,
  4406. 1.75, 32.25))
  4407. createWall(CFrame.new(330.773529, 164.955322, 178.724518, 0.847127557, 0,
  4408. 0.531389952, 0, 1.00000024, 0, -0.531390011, 0, 0.847127378), Vector3.new(35.25,
  4409. 1.75, 66.5))
  4410. createWall(CFrame.new(291.867157, 164.455322, 192.210632, 0.847127557, 0,
  4411. 0.531389952, 0, 1.00000024, 0, -0.531390011, 0, 0.847127378), Vector3.new(45.5,
  4412. 0.75, 28.5))
  4413. createWall(CFrame.new(314.526306, 166.267242, 122.420898, 0.999228716,
  4414. 0.0203912593, 0.0335599519, 8.98155777e-05, 0.853422642, -0.521219611, 0.0392691493, 0.520820618, 0.852762461), Vector3.new(31.25, 5.75, 11))
  4415. createWall(CFrame.new(309.891113, 205.179276, -100.146835, 0.995393157,
  4416. 1.86264515e-09, 0.0958794728, 0, 1.00000012, -2.98023224e-08, -0.0958794951, 0,
  4417. 0.995392919), Vector3.new(44, 6, 43.25))
  4418. createWall(CFrame.new(310.046906, 204.929276, -98.5293198, 0.995393157,
  4419. 1.86264515e-09, 0.0958794728, 0, 1.00000012, -2.98023224e-08, -0.0958794951, 0,
  4420. 0.995392919), Vector3.new(44, 5.5, 46.5))
  4421. createWall(CFrame.new(312.679291, 209.306335, -100.399132, 0.95375818,
  4422. 0.156644791, 0.256531715, 2.63154507e-05, 0.853422999, -0.521219373, -0.300576419,
  4423. 0.497123897, 0.813954473), Vector3.new(60.25, 2, 15))
  4424. createWall(CFrame.new(288.865051, 212.591721, -123.438225, 0.948331475,
  4425. 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))
  4426. createWall(CFrame.new(271.416656, 208.042877, -149.974716, 0.963662565, 0.133397385, 0.231429577, -2.28088975e-05, 0.866338432, 0.499457479, -0.267122626,
  4427. -0.481313825, 0.834854841), Vector3.new(44.25, 2.5, 18.75))
  4428. 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))
  4429. 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))
  4430. 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))
  4431. createWall(CFrame.new(302.612976, 218.403732, -206.136353, 0.914973915,
  4432. 3.57694532e-08, -0.403517187, -2.30164034e-07, 1.00000715, -6.10544703e-07,
  4433. 0.403514266, -6.51506639e-07, 0.914980114), Vector3.new(18, 41, 29.249836))
  4434. createWall(CFrame.new(326.326263, 224.250214, -238.250687, 0.697180986,
  4435. 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))
  4436. createWall(CFrame.new(273.453644, 206.549149, -171.125031, 0.999962032, 0,
  4437. 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))
  4438. 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))
  4439. createWall(CFrame.new(278.942017, 199.432602, -215.061096, 0.917066813,
  4440. 7.4505806e-08, -0.398734063, -2.79396772e-08, 1.00000048, -2.38418579e-07,
  4441. 0.398733914, -2.38418579e-07, 0.917067349), Vector3.new(39, 2.75, 44.25))
  4442. createWall(CFrame.new(289.955353, 198.776428, -221.000946, 0.771579385, -
  4443.  
  4444. 0.317793787, -0.551065564, 0.000133678317, 0.866355062, -0.499431521, 0.636133432,
  4445. 0.385276377, 0.668504), Vector3.new(52, 0.749944925, 32.75))
  4446. createWall(CFrame.new(310.594818, 206.462585, -252.894989, 0.675608575,
  4447. 6.66826963e-07, -0.737262726, -1.34110451e-07, 1.00000179, -1.01327896e-06,
  4448. 0.737261295, -8.04662704e-07, 0.675610304), Vector3.new(52, 1.24994493, 49))
  4449. 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))
  4450. 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))
  4451. createWall(CFrame.new(64.1473999, 141.698074, -201.493713, 0.999660909, 0.0130176228, 0.022584945, -2.62307003e-06, 0.86633873, 0.499459445, -0.0260674842,
  4452. -0.499291092, 0.866045833), Vector3.new(29.5, 1.24981689, 14.25))
  4453. 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))
  4454. 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))
  4455. 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,
  4456. 0.498491049), Vector3.new(49.75, 3.74981594, 60.25))
  4457. 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))
  4458. 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,
  4459. 19.6999855))
  4460. createWall(CFrame.new(181.243668, 158.680099, -172.372742, 0.942704737, 0.333585948, 0.0053159981, 0.333584517, 0.94271946, 0.00117557438, -0.00540364953,
  4461. 0.00066511496, 0.999985158), Vector3.new(27.6000061, 18.1999969, 19.6999855))
  4462. createWall(CFrame.new(131.853058, 145.830246, -172.094543, 0.976343989, 0.216156989, 0.0053403331, 0.216153711, 0.976358593, 0.00119193445, -0.00547172502,
  4463. -9.40531027e-06, 0.999985039), Vector3.new(25.4000072, 14.2999983, 19.6999855))
  4464. createWall(CFrame.new(318.447052, 163.461685, 37.7652664, 0.999982238,
  4465. 0.000530938152, 0.0059381309, 1.35496957e-05, 0.995821595, -0.0913198441, 0.00596180419, 0.0913182944, 0.995803893), Vector3.new(16.2999992, 19.3199978,
  4466. 41.7999878))
  4467. createWall(CFrame.new(318.052277, 174.400818, -28.883812, 0.999982417,
  4468. 0.00173310237, 0.00567422993, 2.61646928e-05, 0.955086589, -0.296326905, 0.00593294576, 0.296321839, 0.955069721), Vector3.new(16.2999992, 26.0899982,
  4469. 41.7999878))
  4470. 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,
  4471. 19.6999855))
  4472. createWall(CFrame.new(152.616531, 158.295456, -172.219894, 0.958893836, 0.283715218, 0.005320244, 0.283712894, 0.958908498, 0.00120666309, -0.0054439758,
  4473. 0.000352359959, 0.999985099), Vector3.new(170.769989, 20.6599998, 19.6999855))
  4474. createWall(CFrame.new(318.252289, 167.785767, 4.91963005, 0.999982595,
  4475. 0.00117594865, 0.00578253064, -2.67500873e-05, 0.980835259, -0.194838986, 0.00590083003, 0.194835439, 0.980818212), Vector3.new(16.2999992, 21.3699989,
  4476. 41.7999878))
  4477. 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,
  4478. 19.6999855))
  4479.  
  4480. 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,
  4481. 19.6999855))
  4482. createWall(CFrame.new(317.851074, 185.098953, -62.7725983, 0.999982536,
  4483. 0.00234849169, 0.00542167015, -1.89922284e-05, 0.918884039, -0.394527793, 0.00590843149, 0.394520819, 0.918868005), Vector3.new(16.2999992, 29.8699989,
  4484. 41.7999878))
  4485. createWall(CFrame.new(313.591675, 164.848785, 87.4919815, 0.999982238,
  4486. 1.23396703e-05, 0.00595618133, 1.23396703e-05, 0.999991417, -0.00414342992, 0.00595618133, 0.00414342992, 0.999973655), Vector3.new(26.6000271, 12.3999996,
  4487. 63.6499863))
  4488. createWall(CFrame.new(313.780762, 164.967224, 119.242188, 0.999982238,
  4489. 1.23396703e-05, 0.00595618133, 1.23396703e-05, 0.999991417, -0.00414342992, 0.00595618133, 0.00414342992, 0.999973655), Vector3.new(26.6000271, 12.8999996,
  4490. 1.64998627))
  4491. createWall(CFrame.new(360.600037, 217.278778, 183.034668, -0.66911006, 0,
  4492. 0.743163466, 0, 1, 0, -0.743163466, 0, -0.66911006), Vector3.new(77.5999832,
  4493. 140.259995, 5.57999849))
  4494. createWall(CFrame.new(329.736298, 201.704147, 121.851646, 0.990270376, 0,
  4495. 0.13915664, 0, 1, 0, -0.13915664, 0, 0.990270376), Vector3.new(8.30997372,
  4496. 92.3699722, 7.27999878))
  4497. 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,
  4498. 92.3699722, 49.2699966))
  4499. createWall(CFrame.new(336.604401, 225.51413, 1.04374969, 1, 0, 0, 0, 1, 0, 0,
  4500. 0, 1), Vector3.new(22.5599785, 139.98996, 158.379974))
  4501. createWall(CFrame.new(291.936859, 201.704147, 117.422958, 1, 0, 0, 0, 1, 0,
  4502. 0, 0, 1), Vector3.new(22.5599785, 92.3699722, 85.6899643))
  4503. 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,
  4504. 5.57999849))
  4505. createWall(CFrame.new(356.861755, 217.278778, 201.473495, 0.79861635, 0,
  4506. 0.601840496, 0, 1, 0, -0.601840496, 0, 0.79861635), Vector3.new(52.8799973,
  4507. 140.259995, 5.57999849))
  4508. 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,
  4509. 92.3699722, 5.57999849))
  4510. createWall(CFrame.new(299.712402, 225.474121, 0.448717952, 1, 0, 0, 0, 1, 0,
  4511. 0, 0, 1), Vector3.new(22.5599785, 139.909927, 154.210022))
  4512. createWall(CFrame.new(268.070129, 201.704147, 200.553894, 0.829036474, 0,
  4513. 0.559194624, 0, 1, 0, -0.559194624, 0, 0.829036474), Vector3.new(4.10997677,
  4514. 92.3699722, 43.399971))
  4515. createWall(CFrame.new(-3.77216744, 81.1528473, -397.064117, 0.987685978, 0,
  4516. 0.156449571, 0, 1, 0, -0.156449571, 0, 0.987685978), Vector3.new(26.0000801,
  4517. 131.969925, 144.389969))
  4518. createWall(CFrame.new(-417.882141, 71.6578674, -111.429916, 0.956294656, 0,
  4519. 0.292404652, 0, 1, 0, -0.292404652, 0, 0.956294656), Vector3.new(12.0600824,
  4520. 112.979919, 155.639954))
  4521. createWall(CFrame.new(89.2471313, 201.152954, -201.564957, 0, 0, -1, 0, 1, 0,
  4522. 1, 0, 0), Vector3.new(12.8600912, 155.529922, 27.2199631))
  4523. createWall(CFrame.new(-322.662384, 71.6578674, -175.193466, 0.970287263, 0,
  4524. 0.241955817, 0, 1, 0, -0.241955817, 0, 0.970287263), Vector3.new(52.1000938,
  4525. 112.979919, 26.0899544))
  4526. createWall(CFrame.new(-125.327179, 150.609619, 448.347321, 0, 1, 0, 1, 0, 0,
  4527. 0, 0, -1), Vector3.new(110.670059, 16.2098866, 21.2899628))
  4528. 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,
  4529. 77.2699661, 29.6099987))
  4530.  
  4531. createWall(CFrame.new(268.070129, 201.704147, 200.553894, 0.829036474, 0,
  4532. 0.559194624, 0, 1, 0, -0.559194624, 0, 0.829036474), Vector3.new(4.10997677,
  4533. 92.3699722, 43.399971))
  4534. createWall(CFrame.new(321.441681, 258.039154, -126.414459, -0.406715393, 0,
  4535. 0.913554907, 0, 1, 0, -0.913554907, 0, -0.406715393), Vector3.new(129.209961,
  4536. 9.13999081, 34.7499962))
  4537. 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,
  4538. 112.979919, 112.829971))
  4539. createWall(CFrame.new(280.31485, 201.704147, 174.340118, 0.829036474, 0,
  4540. 0.559194624, 0, 1, 0, -0.559194624, 0, 0.829036474), Vector3.new(53.7299843,
  4541. 92.3699722, 13.6299658))
  4542. createWall(CFrame.new(-42.6308556, 83.3778839, -423.266296, 0.987685978, 0,
  4543. 0.156449571, 0, 1, 0, -0.156449571, 0, 0.987685978), Vector3.new(55.3900757,
  4544. 136.419937, 3.29997849))
  4545. createWall(CFrame.new(253.593842, 201.152954, -198.05365, -0.999848366, 0,
  4546. 0.017436387, 0, 1, 0, -0.017436387, 0, -0.999848366), Vector3.new(7.96000004,
  4547. 155.529922, 9.87997532))
  4548. 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,
  4549. 14.2599249, 27.2500114))
  4550. createWall(CFrame.new(-56.7383423, 82.0228577, -388.675171, 0.987685978, 0,
  4551. 0.156449571, 0, 1, 0, -0.156449571, 0, 0.987685978), Vector3.new(16.700079,
  4552. 133.709915, 144.389969))
  4553. createWall(CFrame.new(-90.3630447, 71.6578674, -322.139832, 0.999847949, -0,
  4554. -0.017436387, 0, 1, -0, 0.017436387, 0, 0.999847949), Vector3.new(76.3400879,
  4555. 112.979919, 10.0999537))
  4556. createWall(CFrame.new(-269.883667, 71.6578674, -211.016266, 0.933587551, 0,
  4557. 0.358349502, 0, 1, 0, -0.358349502, 0, 0.933587551), Vector3.new(28.4701061,
  4558. 112.979919, 26.0899544))
  4559. createWall(CFrame.new(66.7276688, 201.152954, -145.322754, -1, 0, 0, 0, 1, 0,
  4560. 0, 0, -1), Vector3.new(65.3700638, 155.529922, 7.01998234))
  4561. 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,
  4562. 112.979919, 15.2799673))
  4563. createWall(CFrame.new(171.137604, 201.152954, -190.154861, -1, 0, 0, 0, 1, 0,
  4564. 0, 0, -1), Vector3.new(161.15007, 155.529922, 20.5299816))
  4565. createWall(CFrame.new(289.106201, 199.204453, -237.240112, -0.681973696, 0,
  4566. 0.731376648, 0, 1, 0, -0.731376648, 0, -0.681973696), Vector3.new(46.5600014,
  4567. 1.63998556, 20.0499992))
  4568. 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,
  4569. 94.6499176, 9.41996288))
  4570. 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,
  4571. 112.979919, 15.2799673))
  4572. createWall(CFrame.new(171.137604, 201.152954, -154.059052, -1, 0, 0, 0, 1, 0,
  4573. 0, 0, -1), Vector3.new(161.15007, 155.529922, 20.5299816))
  4574. 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,
  4575. 9.65992451, 31.1400127))
  4576. 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,
  4577. 155.529922, 9.41996288))
  4578. 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,
  4579. 133.59993, 141.20993))
  4580. createWall(CFrame.new(-151.983612, 71.6578674, -307.082306, 0.829036474, 0,
  4581. 0.559194624, 0, 1, 0, -0.559194624, 0, 0.829036474), Vector3.new(100.530083,
  4582.  
  4583. 112.979919, 10.0999537))
  4584. createWall(CFrame.new(-211.735306, 71.6578674, -241.287537, 0.469467044, 0,
  4585. 0.882950008, 0, 1, 0, -0.882950008, 0, 0.469467044), Vector3.new(89.0900803,
  4586. 112.979919, 10.0999537))
  4587. createWall(CFrame.new(10.404254, 71.6578674, -235.046997, 0.984812498, 0,
  4588. 0.173621148, 0, 1, 0, -0.173621148, 0, 0.984812498), Vector3.new(39.1400681,
  4589. 112.979919, 31.4799538))
  4590. createWall(CFrame.new(299.215668, 201.704147, 210.820496, 0.829036474, 0,
  4591. 0.559194624, 0, 1, 0, -0.559194624, 0, 0.829036474), Vector3.new(53.7299843,
  4592. 92.3699722, 13.6299658))
  4593. createWall(CFrame.new(302.519348, 248.124329, -170.130829, 0.0175017118, 0,
  4594. 0.999846935, 0, 1, 0, -0.999846935, 0, 0.0175017118), Vector3.new(53.5899887,
  4595. 22.2499924, 36.8600044))
  4596. createWall(CFrame.new(-72.5408325, 92.6578674, -226.426178, 0.999847949, 0,
  4597. 0.017436387, 0, 1, 0, -0.017436387, 0, 0.999847949), Vector3.new(130.620087,
  4598. 154.979904, 36.8499527))
  4599. 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,
  4600. 112.979919, 29.3599606))
  4601. createWall(CFrame.new(-239.524338, 71.6578674, -200.243027, 0.933587551, 0,
  4602. 0.358349502, 0, 1, 0, -0.358349502, 0, 0.933587551), Vector3.new(28.4701061,
  4603. 112.979919, 26.0899544))
  4604. createWall(CFrame.new(-286.944824, 71.6578674, -186.516891, 0.90629667, 0,
  4605. 0.422642082, 0, 1, 0, -0.422642082, 0, 0.90629667), Vector3.new(28.4701061,
  4606. 112.979919, 26.0899544))
  4607. createWall(CFrame.new(-390.022064, 71.6578674, -175.793915, 0.956294656, 0,
  4608. 0.292404652, 0, 1, 0, -0.292404652, 0, 0.956294656), Vector3.new(86.9200897,
  4609. 112.979919, 26.0899544))
  4610. 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,
  4611. 8.52998447, 9.06999397))
  4612. createWall(CFrame.new(27.5196838, 170.712921, -245.540726, 0.999847949, 0,
  4613. 0.017436387, 0, 1, 0, -0.017436387, 0, 0.999847949), Vector3.new(48.9500923,
  4614. 94.6499176, 9.41996288))
  4615. 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,
  4616. 8.52998447, 9.06999397))
  4617. createWall(CFrame.new(304.893066, 229.299469, -222.380829, -0.766061664, 0,
  4618. 0.642767608, 0, 1, 0, -0.642767608, 0, -0.766061664), Vector3.new(6.65000296,
  4619. 61.8299904, 10.8399925))
  4620. createWall(CFrame.new(39.5098419, 201.152954, -171.609802, 0, 0, -1, 0, 1, 0,
  4621. 1, 0, 0), Vector3.new(66.7700806, 155.529922, 28.3999786))
  4622. 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,
  4623. 133.389938, 184.459961))
  4624. createWall(CFrame.new(334.250702, 259.569092, -104.673012, -0.173624277, 0,
  4625. 0.984811902, 0, 1, 0, -0.984811902, 0, -0.173624277), Vector3.new(80.2499771,
  4626. 208.099976, 9.06999397))
  4627. 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,
  4628. 77.2699661, 45.7699966))
  4629. 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,
  4630. 155.529922, 50.1699715))
  4631. createWall(CFrame.new(259.305756, 201.152954, -219.461853, -0.906296611, 0,
  4632. 0.422642082, 0, 1, 0, -0.422642082, 0, -0.906296611), Vector3.new(7.96000004,
  4633. 155.529922, 52.3299637))
  4634. createWall(CFrame.new(285.489746, 202.64946, -249.168152, -0.681973696, 0,
  4635. 0.731376648, 0, 1, 0, -0.731376648, 0, -0.681973696), Vector3.new(68.9400024,
  4636.  
  4637. 8.52998447, 9.06999397))
  4638. createWall(CFrame.new(271.153839, 202.64946, -189.05751, -1, 0, 0, 0, 1, 0,
  4639. 0, 0, -1), Vector3.new(68.9400024, 8.52998447, 9.06999397))
  4640. createWall(CFrame.new(26.5978699, 178.708435, -202.503372, 0.469467044, 0,
  4641. 0.882950008, 0, 1, 0, -0.882950008, 0, 0.469467044), Vector3.new(87.330101,
  4642. 11.7599154, 70.6699524))
  4643. 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,
  4644. 134.059937, 141.20993))
  4645. createWall(CFrame.new(296.637207, 201.152954, -266.805756, -0.66911006, 0,
  4646. 0.743163466, 0, 1, 0, -0.743163466, 0, -0.66911006), Vector3.new(7.96000004,
  4647. 155.529922, 50.1699715))
  4648. 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,
  4649. 112.979919, 38.8199997))
  4650. createWall(CFrame.new(275.48941, 201.152954, -246.046173, -0.731384635, 0,
  4651. 0.681965172, 0, 1, 0, -0.681965172, 0, -0.731384635), Vector3.new(7.96000004,
  4652. 155.529922, 10.8099756))
  4653. 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,
  4654. 112.979919, 106.469978))
  4655. createWall(CFrame.new(8.56675243, 176.11792, -233.824677, 0.469467044, 0,
  4656. 0.882950008, 0, 1, 0, -0.882950008, 0, 0.469467044), Vector3.new(48.9500923,
  4657. 105.459915, 9.41996288))
  4658. 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,
  4659. 112.979919, 103.099976))
  4660. createWall(CFrame.new(336.604401, 238.509155, -76.2662277, 1, 0, 0, 0, 1, 0,
  4661. 0, 0, 1), Vector3.new(22.5599785, 165.97998, 3.75999427))
  4662. 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,
  4663. 112.979919, 6.27996731))
  4664. 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,
  4665. 134.029907, 184.459961))
  4666. 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,
  4667. 134.019928, 6.05993652))
  4668. createWall(CFrame.new(-353.975555, 71.6578674, -63.2335167, 0.956294656, 0,
  4669. 0.292404652, 0, 1, 0, -0.292404652, 0, 0.956294656), Vector3.new(86.1100769,
  4670. 112.979919, 26.0899544))
  4671. 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,
  4672. 77.2699661, 10.5299988))
  4673. 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,
  4674. 196.649918, 88.9599533))
  4675. 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,
  4676. 210.229919, 107.459976))
  4677. createWall(CFrame.new(3.59355736, 115.27285, 400.595734, 0.79861635, 0,
  4678. 0.601840496, 0, 1, 0, -0.601840496, 0, 0.79861635), Vector3.new(20.2200737,
  4679. 210.229919, 83.4799728))
  4680. 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,
  4681. 210.229919, 38.3299599))
  4682. createWall(CFrame.new(-217.117432, 108.482849, 331.702698, 0.788016856, 0,
  4683. 0.615653694, 0, 1, 0, -0.615653694, 0, 0.788016856), Vector3.new(7.17007732,
  4684. 196.649918, 65.809967))
  4685.  
  4686. 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,
  4687. 210.229919, 80.2799683))
  4688. 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,
  4689. 210.229919, 18.7399883))
  4690. 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,
  4691. 196.649918, 28.6599598))
  4692. 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,
  4693. 196.649918, 28.6599598))
  4694. 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,
  4695. 196.649918, 28.6599598))
  4696. createWall(CFrame.new(2.28053975, 191.96788, 412.527252, 0.965929627, 0,
  4697. 0.258804798, 0, 1, 0, -0.258804798, 0, 0.965929627), Vector3.new(46.6800728,
  4698. 51.1199303, 30.3899784))
  4699. createWall(CFrame.new(-11.8301239, 69.1528625, -32.3248634, -0.190845728, 0,
  4700. 0.981620014, 0, 1, 0, -0.981620014, 0, -0.190845728), Vector3.new(33.9601364,
  4701. 117.989929, 43.3399582))
  4702. 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,
  4703. 210.229919, 83.4799728))
  4704. 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,
  4705. 196.649918, 33.0399551))
  4706. createWall(CFrame.new(-159.152649, 108.482849, 380.508484, -0.719358206, 0,
  4707. 0.694639385, 0, 1, 0, -0.694639385, 0, -0.719358206), Vector3.new(7.17007732,
  4708. 196.649918, 28.6599598))
  4709. createWall(CFrame.new(-308.969879, 71.6578674, -94.8810577, 0.961249948, 0,
  4710. 0.275678426, 0, 1, 0, -0.275678426, 0, 0.961249948), Vector3.new(27.9000931,
  4711. 112.979919, 25.8499527))
  4712. createWall(CFrame.new(-196.633072, 71.6578674, 20.2068882, -0.29242146, 0,
  4713. 0.95628953, 0, 1, 0, -0.95628953, 0, -0.29242146), Vector3.new(3.35009265,
  4714. 112.979919, 193.439865))
  4715. createWall(CFrame.new(-64.1702118, 108.482849, 196.430222, 0.808997452, 0,
  4716. 0.587812185, 0, 1, 0, -0.587812185, 0, 0.808997452), Vector3.new(7.17007732,
  4717. 196.649918, 19.1599712))
  4718. createWall(CFrame.new(21.93013, 115.27285, 434.743622, 0.965929627, 0,
  4719. 0.258804798, 0, 1, 0, -0.258804798, 0, 0.965929627), Vector3.new(20.2200737,
  4720. 210.229919, 83.4799728))
  4721. createWall(CFrame.new(-33.0243149, 115.27285, 372.81546, 0.258864343, 0,
  4722. 0.965913713, 0, 1, 0, -0.965913713, 0, 0.258864343), Vector3.new(20.2200737,
  4723. 210.229919, 83.4799728))
  4724. createWall(CFrame.new(-153.190704, 115.27285, 421.939972, -0.913549781, 0,
  4725. 0.406727046, 0, 1, 0, -0.406727046, 0, -0.913549781), Vector3.new(20.2200737,
  4726. 210.229919, 83.4799728))
  4727. createWall(CFrame.new(-186.537735, 71.6578674, 55.9972839, -0.29242146, 0,
  4728. 0.95628953, 0, 1, 0, -0.95628953, 0, -0.29242146), Vector3.new(6.85009241,
  4729. 112.979919, 191.819916))
  4730. createWall(CFrame.new(-102.091415, 108.482849, 351.480042, -0.374604106, 0,
  4731. 0.92718488, 0, 1, 0, -0.92718488, 0, -0.374604106), Vector3.new(7.17007732,
  4732. 196.649918, 105.239922))
  4733. createWall(CFrame.new(-150.674164, 108.482849, 227.823898, 0.0175017118, 0,
  4734. 0.999846935, 0, 1, 0, -0.999846935, 0, 0.0175017118), Vector3.new(1.08007801,
  4735. 196.649918, 27.1100006))
  4736. createWall(CFrame.new(2.66658545, 112.507874, 74.4540482, 0.0697871447, 0,
  4737. 0.997561872, 0, 1, 0, -0.997561872, 0, 0.0697871447), Vector3.new(121.150146,
  4738.  
  4739. 204.699951, 38.2499657))
  4740. createWall(CFrame.new(-95.8713608, 108.482849, 212.595322, -0.642763734, 0,
  4741. 0.766064942, 0, 1, 0, -0.766064942, 0, -0.642763734), Vector3.new(2.72007704,
  4742. 196.649918, 74.0400085))
  4743. createWall(CFrame.new(3.05939007, 111.247864, 1.23464596, -0.342042685, 0,
  4744. 0.939684391, 0, 1, 0, -0.939684391, 0, -0.342042685), Vector3.new(106.420143,
  4745. 202.179932, 38.2499657))
  4746. createWall(CFrame.new(-296.766571, 71.6578674, -104.887527, 0.951068401, 0,
  4747. 0.308980465, 0, 1, 0, -0.308980465, 0, 0.951068401), Vector3.new(21.460104,
  4748. 112.979919, 5.02994967))
  4749. createWall(CFrame.new(-136.902573, 115.27285, 400.373932, -0.587748766, 0,
  4750. 0.809043527, 0, 1, 0, -0.809043527, 0, -0.587748766), Vector3.new(20.2200737,
  4751. 210.229919, 83.4799728))
  4752. createWall(CFrame.new(-126.523605, 71.6578674, -35.9618187, -0.515037298, 0,
  4753. 0.857167721, 0, 1, 0, -0.857167721, 0, -0.515037298), Vector3.new(69.3901215,
  4754. 112.979919, 10.0999537))
  4755. createWall(CFrame.new(-107.43457, 108.482849, 200.957001, -0.642763734, 0,
  4756. 0.766064942, 0, 1, 0, -0.766064942, 0, -0.642763734), Vector3.new(2.72007704,
  4757. 196.649918, 81.4400024))
  4758. 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,
  4759. 210.229919, 83.4799728))
  4760. createWall(CFrame.new(-84.8648453, 108.482849, 167.946167, 0.808997452, 0,
  4761. 0.587812185, 0, 1, 0, -0.587812185, 0, 0.808997452), Vector3.new(7.17007732,
  4762. 196.649918, 22.8599682))
  4763. createWall(CFrame.new(-28.1472721, 112.442856, -60.752491, -0.573599219, 0,
  4764. 0.81913656, 0, 1, 0, -0.81913656, 0, -0.573599219), Vector3.new(63.9601364,
  4765. 204.569916, 38.2499657))
  4766. createWall(CFrame.new(-75.1926804, 108.482849, 332.591461, -0.74314785, 0,
  4767. 0.669127226, 0, 1, 0, -0.669127226, 0, -0.74314785), Vector3.new(8.96007824,
  4768. 196.649918, 53.559948))
  4769. createWall(CFrame.new(-275.843719, 71.6578674, 63.9708595, -0.29242146, 0,
  4770. 0.95628953, 0, 1, 0, -0.95628953, 0, -0.29242146), Vector3.new(43.8200836,
  4771. 112.979919, 32.2699165))
  4772. 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,
  4773. 196.649918, 88.6899643))
  4774. createWall(CFrame.new(-188.159439, 108.482849, 236.08194, -0.342042685, 0,
  4775. 0.939684391, 0, 1, 0, -0.939684391, 0, -0.342042685), Vector3.new(7.17007732,
  4776. 196.649918, 65.809967))
  4777. createWall(CFrame.new(8.69923592, 108.482849, 164.62558, 0.0175017118, 0,
  4778. 0.999846935, 0, 1, 0, -0.999846935, 0, 0.0175017118), Vector3.new(105.130081,
  4779. 196.649918, 21.1499653))
  4780. createWall(CFrame.new(-217.38678, 71.6578674, -120.78791, 0.981621504, 0,
  4781. 0.190838262, 0, 1, 0, -0.190838262, 0, 0.981621504), Vector3.new(28.2900963,
  4782. 112.979919, 25.8499527))
  4783. createWall(CFrame.new(-177.051682, 71.6578674, -95.5953293, -0.731384635, 0,
  4784. 0.681965172, 0, 1, 0, -0.681965172, 0, -0.731384635), Vector3.new(92.0400925,
  4785. 112.979919, 10.0999537))
  4786. createWall(CFrame.new(-91.2905579, 98.7878723, -180.786469, -0.642763734, 0,
  4787. 0.766064942, 0, 1, 0, -0.766064942, 0, -0.642763734), Vector3.new(100.200134,
  4788. 167.239929, 34.0199585))
  4789. createWall(CFrame.new(-60.8750038, 104.102882, -118.505707, -0.970287442, 0,
  4790. 0.241955817, 0, 1, 0, -0.241955817, 0, -0.970287442), Vector3.new(14.3101358,
  4791. 177.869934, 52.2899513))
  4792. createWall(CFrame.new(-81.9202881, 115.27285, 376.216888, -0.190845728, 0,
  4793. 0.981620014, 0, 1, 0, -0.981620014, 0, -0.190845728), Vector3.new(20.2200737,
  4794. 210.229919, 83.4799728))
  4795. createWall(CFrame.new(14.3495579, 115.27285, 466.507202, 0.866007268, -0, -
  4796.  
  4797. 0.500031412, 0, 1, -0, 0.500031412, 0, 0.866007268), Vector3.new(20.2200737,
  4798. 210.229919, 83.4799728))
  4799. createWall(CFrame.new(16.8177929, 177.457901, 466.780548, 0.965929627, 0,
  4800. 0.258804798, 0, 1, 0, -0.258804798, 0, 0.965929627), Vector3.new(46.6800728,
  4801. 22.099926, 30.3899784))
  4802. createWall(CFrame.new(-236.081604, 71.6578674, -107.771599, 0.951068401, 0,
  4803. 0.308980465, 0, 1, 0, -0.308980465, 0, 0.951068401), Vector3.new(21.460104,
  4804. 112.979919, 5.02994967))
  4805. createWall(CFrame.new(-51.8448524, 113.727875, -79.1300812, -0.906296611, 0,
  4806. 0.422642082, 0, 1, 0, -0.422642082, 0, -0.906296611), Vector3.new(63.9601364,
  4807. 207.139954, 38.2499657))
  4808. 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,
  4809. 196.649918, 119.499962))
  4810. 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,
  4811. 210.229919, 20.9799595))
  4812. createWall(CFrame.new(-182.646271, 108.482849, 427.893585, -0.992540598, 0,
  4813. 0.121917672, 0, 1, 0, -0.121917672, 0, -0.992540598), Vector3.new(7.17007732,
  4814. 196.649918, 28.6599598))
  4815. createWall(CFrame.new(-212.57103, 108.482849, 383.047607, -0.890994906, 0,
  4816. 0.454013437, 0, 1, 0, -0.454013437, 0, -0.890994906), Vector3.new(7.17007732,
  4817. 196.649918, 65.809967))
  4818. 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,
  4819. 210.229919, 84.3099747))
  4820. 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,
  4821. 210.229919, 13.2199593))
  4822. createWall(CFrame.new(-175.036667, 108.482849, 402.054779, -0.890994906, 0,
  4823. 0.454013437, 0, 1, 0, -0.454013437, 0, -0.890994906), Vector3.new(7.17007732,
  4824. 196.649918, 28.6599598))
  4825. createWall(CFrame.new(-34.2681313, 108.482849, 220.731842, 0.601813793, 0,
  4826. 0.798636556, 0, 1, 0, -0.798636556, 0, 0.601813793), Vector3.new(7.17007732,
  4827. 196.649918, 65.809967))
  4828. createWall(CFrame.new(-267.718323, 71.6578674, -106.124031, 0.933587551, 0,
  4829. 0.358349502, 0, 1, 0, -0.358349502, 0, 0.933587551), Vector3.new(47.0600929,
  4830. 112.979919, 25.8499527))
  4831. createWall(CFrame.new(-79.1659088, 108.482849, 247.456345, 0.224959731, 0,
  4832. 0.974368095, 0, 1, 0, -0.974368095, 0, 0.224959731), Vector3.new(2.72007704,
  4833. 196.649918, 93.0200272))
  4834. createWall(CFrame.new(-24.5546627, 153.542862, 346.573395, 0.309060872, 0,
  4835. 0.951042235, 0, 1, 0, -0.951042235, 0, 0.309060872), Vector3.new(48.760067,
  4836. 106.5299, 82.7499619))
  4837. 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,
  4838. 210.229919, 107.459976))
  4839. 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,
  4840. 210.229919, 78.2199707))
  4841. createWall(CFrame.new(1.19643378, 108.482849, 210.773438, 0.601813793, 0,
  4842. 0.798636556, 0, 1, 0, -0.798636556, 0, 0.601813793), Vector3.new(55.8600845,
  4843. 196.649918, 21.1499653))
  4844. 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,
  4845. 196.649918, 65.809967))
  4846. createWall(CFrame.new(-93.2036362, 108.482849, 50.1853981, 0.984812498, 0,
  4847. 0.173621148, 0, 1, 0, -0.173621148, 0, 0.984812498), Vector3.new(7.17007732,
  4848. 196.649918, 49.9200096))
  4849.  
  4850. createWall(CFrame.new(-99.4887619, 26.6458683, 204.488251, -0.642771602, 0.172286958, 0.74643296, 3.49506736e-05, 0.974375129, 0.224929258, -0.766058028,
  4851. 0.144604191, -0.626294613), Vector3.new(17.6900787, 52.3899765, 81.5899811))
  4852. createWall(CFrame.new(-90.5216141, 92.6578674, -212.284851, 0.999847949, 0,
  4853. 0.017436387, 0, 1, 0, -0.017436387, 0, 0.999847949), Vector3.new(20.6700878,
  4854. 154.979904, 64.4999695))
  4855. createWall(CFrame.new(-69.007225, 150.609619, 414.444153, 0, 1, 0, 1, 0, 0,
  4856. 0, 0, -1), Vector3.new(110.670059, 54.7698822, 46.6099701))
  4857. createWall(CFrame.new(-17.0605316, 150.609619, 455.940033, 0, 1, 0, 1, 0, 0,
  4858. 0, 0, -1), Vector3.new(110.670059, 16.2098866, 21.2899628))
  4859. 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))
  4860. 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))
  4861. 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))
  4862. 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))
  4863. 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))
  4864. 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))
  4865. 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))
  4866. 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))
  4867. 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,
  4868. 1.94021311e-07, -0.156453878), Vector3.new(7.75, 19.2497978, 25.5))
  4869. 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,
  4870. 3.61038239e-14, -0.15644975), Vector3.new(8.25, 19.9997978, 14.25))
  4871. 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))
  4872. 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,
  4873. 3.19087291e-12, -0.559195638), Vector3.new(7.5, 19.9997978, 71))
  4874. 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,
  4875. 1.18996219e-11, -0.882953048), Vector3.new(7, 19.9997978, 79.75))
  4876. 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,
  4877. 6.43207146e-12, -0.358352125), Vector3.new(15, 19.9997978, 6.25))
  4878. 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,
  4879. 6.72716669e-18, -0.309060782), Vector3.new(28, 27.7497978, 11.5))
  4880. 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,
  4881. 2.63450672e-17, -0.731384754), Vector3.new(82.75, 27.7497978, 7.25))
  4882. createWall(CFrame.new(-119.565308, 67.7930069, -39.0402756, -0.515038013, -
  4883.  
  4884. 5.25450404e-17, 0.85716784, -7.00510723e-18, 1, -6.55098524e-17, -0.857169032,
  4885. 3.97445693e-17, -0.515037596), Vector3.new(72, 27.7497978, 9.5))
  4886. 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,
  4887. 3.65452431e-17, -0.173621505), Vector3.new(51.25, 27.7497978, 10))
  4888. 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,
  4889. 1.88664826e-17, 0.0348683298), Vector3.new(96, 25.2497978, 7))
  4890. 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))
  4891. 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))
  4892. 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,
  4893. 1.28333249e-23, -0.79863739), Vector3.new(43.75, 23.9997978, 4.75))
  4894. createWall(CFrame.new(-313.654449, 46.2073135, -131.273331, -0.275637358, 0,
  4895. 0.96126169, 0, 1, 0, -0.96126169, 0, -0.275637358), Vector3.new(110, 14.7497978,
  4896. 208))
  4897. createWall(CFrame.new(-165.12883, 54.2137146, 31.6172218, -0.294678897, 0,
  4898. 0.955596387, 0, 1, 0, -0.955596209, 0, -0.294678926), Vector3.new(40.5, 2.24979782,
  4899. 249.25))
  4900. createWall(CFrame.new(-73.2428131, 56.4560051, -257.687622, 1, 0, 0, 0, 1, 0,
  4901. 0, 0, 1), Vector3.new(290.25, 2.99979782, 126))
  4902. createWall(CFrame.new(-112.780289, 56.830883, -107.574318, 0.857371926, 0,
  4903. 0.514697373, 0, 1, 0, -0.514697313, 0, 0.857372046), Vector3.new(93, 2.24979782,
  4904. 263.25))
  4905. createWall(CFrame.new(-187.362808, 55.7058716, -134.105606, 0.95104146, 0,
  4906. 0.309061378, 0, 1, 0, -0.309060663, 0, 0.951044798), Vector3.new(31.5, 4.49979782,
  4907. 93.75))
  4908. createWall(CFrame.new(-34.3526993, 56.1579857, 102.725609, 0.984812677,
  4909. 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))
  4910. createWall(CFrame.new(-69.5363007, 58.0819054, 176.25325, 0.788472474,
  4911. 0.182033852, 0.587515831, -0.224951565, 0.974369884, -3.37541366e-07, -0.57245779,
  4912. -0.132162333, 0.809212744), Vector3.new(16, 3.24977589, 25.75))
  4913. createWall(CFrame.new(-97.6610107, 59.0887032, 8.19114017, 0.955596149,
  4914. 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))
  4915. createWall(CFrame.new(-97.7346802, 58.7137032, 7.95224094, 0.955596149,
  4916. 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))
  4917. createWall(CFrame.new(-97.6341782, 58.2137032, 7.00558901, 0.955596149,
  4918. 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))
  4919. createWall(CFrame.new(-113.563217, 56.2356071, 13.2257681, 0.89212507, 0.342453569, 0.294681668, 0.358367622, 0.933576107, -1.11758709e-07, -0.275106102,
  4920. 0.10560298, 0.955603957), Vector3.new(11, 1.24977589, 43.75))
  4921. createWall(CFrame.new(-223.621185, 51.8409386, -176.644882, 0.842409015, 0.48570472, 0.233319089, 0.499448329, 0.866343617, 0.000202953815, -0.202233106,
  4922. 0.116359845, 0.972400308), Vector3.new(20.75, 6.74979782, 89))
  4923. createWall(CFrame.new(-212.42215, 57.5808716, -169.559814, 0.951042056,
  4924. 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))
  4925. createWall(CFrame.new(-224.997284, 52.5610962, -177.975052, 0.811471164, 0.467886627, 0.350137621, 0.499437302, 0.866349936, 0.000212810439, -0.303441286,
  4926. 0.174699053, 0.936698556), Vector3.new(17.75, 6.74979782, 32))
  4927. createWall(CFrame.new(-210.638947, 57.2058716, -170.139297, 0.951042056,
  4928.  
  4929. 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))
  4930. createWall(CFrame.new(86.809967, 54.2058792, -434.137939, 0.188369185,
  4931. 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))
  4932. 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))
  4933. 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))
  4934. 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))
  4935. 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))
  4936. createWall(CFrame.new(127.154045, 57.9558754, -280.683319, 0.615653574,
  4937. 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))
  4938. createWall(CFrame.new(129.044098, 56.8308754, -282.696472, 0.615653574,
  4939. 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))
  4940. createWall(CFrame.new(130.540146, 55.4558754, -285.017426, 0.615653574,
  4941. 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))
  4942. createWall(CFrame.new(132.079285, 54.8308754, -286.987457, 0.615653574,
  4943. 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))
  4944. createWall(CFrame.new(-20.4398537, 57.3308754, -317.710022, 0.984812856,
  4945. 4.45411665e-13, 0.17362076, 4.3284457e-13, 1, 1.10245187e-13, -0.17362076,
  4946. 3.34200441e-14, 0.984812677), Vector3.new(35.5, 4.74979782, 7.25))
  4947. createWall(CFrame.new(-20.6999245, 56.9558754, -321.345093, 0.984812856,
  4948. 4.45411665e-13, 0.17362076, 4.3284457e-13, 1, 1.10245187e-13, -0.17362076,
  4949. 3.34200441e-14, 0.984812677), Vector3.new(53.75, 3.99979782, 20.5))
  4950. createWall(CFrame.new(-21.2862549, 55.5808754, -322.510986, 0.984812856,
  4951. 4.45411665e-13, 0.17362076, 4.3284457e-13, 1, 1.10245187e-13, -0.17362076,
  4952. 3.34200441e-14, 0.984812677), Vector3.new(35.5, 4.74979782, 23))
  4953. createWall(CFrame.new(-21.6769009, 55.0808754, -324.726807, 0.984812856,
  4954. 4.45411665e-13, 0.17362076, 4.3284457e-13, 1, 1.10245187e-13, -0.17362076,
  4955. 3.34200441e-14, 0.984812677), Vector3.new(35.5, 3.74979782, 27.5))
  4956. spawn(function()
  4957. while not workspace:FindFirstChild("playerPickupCannonballRing") do
  4958. wait()
  4959. end
  4960. workspace.playerPickupCannonballRing.Changed:Connect(function(prop)
  4961. if prop == "Transparency" then
  4962. objectiveExists = not objectiveExists
  4963. objectiveObject = workspace.playerPickupCannonballRing
  4964. end
  4965. end)
  4966. end)
  4967. if _G.destroy_map then
  4968. workspace.borders:Destroy()
  4969. workspace.borderFix:Destroy()
  4970. for i,v in pairs(workspace:GetChildren()) do
  4971. if v.ClassName == "Model" and v.Name ~= "corruptCannons" and v.Name ~=
  4972. "playerFireCannon" then
  4973. if v ~= game.Players.LocalPlayer.Character and v.Name ~= regionPartName
  4974.  
  4975. then
  4976.  
  4977. v:Destroy()
  4978. end
  4979. end
  4980. end
  4981. end
  4982. wait(2)
  4983. while not
  4984. game:GetService("Workspace").dungeon.room3.enemyFolder:FindFirstChildOfClass("Model
  4985. ") do
  4986. wait(1)
  4987. end
  4988. -- get to bottom layer
  4989. forceObjectiveExists = true
  4990. thePart.CFrame = CFrame.new(58.451, 140.645, -221.236)
  4991. local _,_,_,root = getPlayer()
  4992. while true do
  4993. if root ~= nil then
  4994. if getMag(root.Position, thePart.Position) < 5 then
  4995. break
  4996. end
  4997. end
  4998. wait()
  4999. end
  5000. thePart.CFrame = CFrame.new(77.782, 140.645, -233.241)
  5001. while root.Position.Y > 135 do
  5002. wait()
  5003. end
  5004. forceObjectiveExists = false
  5005. while not
  5006. game:GetService("Workspace").dungeon.room4.enemyFolder:FindFirstChild("The Kraken")
  5007. do
  5008. wait(1)
  5009. end
  5010. while not
  5011. game:GetService("Workspace").dungeon.room4.enemyFolder:FindFirstChild("The
  5012. Kraken"):FindFirstChild("HumanoidRootPart") do
  5013. wait(1)
  5014. end
  5015. while
  5016. game:GetService("Workspace").dungeon.room4.enemyFolder:FindFirstChild("The
  5017. Kraken"):FindFirstChild("HumanoidRootPart").Position.Y < -20 do
  5018. forceObjectiveExists = true
  5019. thePart.CFrame = CFrame.new(100.95, 58.9558, -524.832)
  5020. wait()
  5021. end
  5022. forceObjectiveExists = false
  5023. game:GetService("Players").LocalPlayer.Character.LowerTorso.Root:Remove()
  5024. game:GetService("Players").LocalPlayer.Character.LowerTorso.Anchored = true
  5025. spawn(function()
  5026. while true do
  5027. local s = game:GetService("Workspace").dungeon.bossRoom.enemyFolder
  5028. if s:FindFirstChild("Sea Serpent") then
  5029. local g = s:FindFirstChild("Sea Serpent")
  5030. while g ~= nil and g.Parent ~= nil and g:FindFirstChild("Humanoid")
  5031. and g.Humanoid.Health > 0 do
  5032. if
  5033. game.Players.LocalPlayer.Character:FindFirstChild("HumanoidRootPart") and
  5034.  
  5035. game.Players.LocalPlayer.Character:FindFirstChild("Humanoid") then
  5036. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame =
  5037. g.PrimaryPart.CFrame * CFrame.new(0,0,10)
  5038. game.Players.LocalPlayer.Character.Humanoid:ChangeState(11)
  5039. end
  5040. game:GetService("RunService").RenderStepped:wait()
  5041. end
  5042. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame =
  5043. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame * CFrame.new(0,220,0)
  5044. end
  5045. wait(1)
  5046. end
  5047. end)
  5048. end
  5049. function samuraiFix()
  5050. 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))
  5051. 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,
  5052. 176.999969, 5))
  5053. 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,
  5054. 183.600006, 5))
  5055. createWall(CFrame.new(-148.874176, 40.8565865, -154.876312, 0.0174523834, 0,
  5056. -0.99984771, 0, 1, 0, 0.99984771, 0, 0.0174523834), Vector3.new(34.9499969,
  5057. 166.230026, 5))
  5058. 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))
  5059. 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))
  5060. 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))
  5061. 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))
  5062. 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))
  5063. createWall(CFrame.new(-71.1062622, 38.1915855, -159.090225, 0.0174523834, 0,
  5064. 0.99984771, 0, 1, 0, -0.99984771, 0, 0.0174523834), Vector3.new(34.9499969,
  5065. 160.900024, 5))
  5066. createWall(CFrame.new(-70.8261185, 31.206562, -149.575394, 0.49999997, 0,
  5067. 0.866025448, 0, 1, 0, -0.866025448, 0, 0.49999997), Vector3.new(34.9499969,
  5068. 146.929977, 5))
  5069. 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))
  5070. 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))
  5071. createWall(CFrame.new(18.1154346, 17.7415733, -80.3057556, -1, -8.74227766e08, 0, -8.74227766e-08, 1, -8.74227766e-08, 7.64274186e-15, -8.74227766e-08, -1),
  5072. Vector3.new(44.1499825, 120, 5))
  5073. 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, -
  5074.  
  5075. 0.866025388), Vector3.new(44.1499825, 120, 5))
  5076. 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))
  5077. 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))
  5078. 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))
  5079. 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))
  5080. createWall(CFrame.new(76.6631012, 75.4415894, 148.297241, -1, -8.74227766e08, 0, -8.74227766e-08, 1, -8.74227766e-08, 7.64274186e-15, -8.74227766e-08, -1),
  5081. Vector3.new(68.8998871, 129, 18.5))
  5082. createWall(CFrame.new(22.9380455, 76.1915817, 312.697144, -1, -8.74227766e08, 0, -8.74227766e-08, 1, -8.74227766e-08, 7.64274186e-15, -8.74227766e-08, -1),
  5083. Vector3.new(141.350006, 127.5, 10))
  5084. createWall(CFrame.new(101.938057, 75.9415817, 232.997162, -4.37113883e-08, 0,
  5085. -1, 0, 1, 0, 1, 0, -4.37113883e-08), Vector3.new(162.44989, 128, 8.5))
  5086. createWall(CFrame.new(-132.212021, 79.9415817, 180.147202, -1, -8.74227766e08, 0, -8.74227766e-08, 1, -8.74227766e-08, 7.64274186e-15, -8.74227766e-08, -1),
  5087. Vector3.new(168.149887, 120, 72))
  5088. createWall(CFrame.new(-123.587051, 79.9415817, 287.997192, -1, -8.74227766e08, 0, -8.74227766e-08, 1, -8.74227766e-08, 7.64274186e-15, -8.74227766e-08, -1),
  5089. Vector3.new(150.899948, 120, 72.5))
  5090. 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))
  5091. 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))
  5092. 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))
  5093. 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))
  5094. 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))
  5095. 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))
  5096. 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))
  5097. createWall(CFrame.new(-324.856873, 79.9415817, 291.09314, 0.999390841, 0,
  5098. 0.0348994955, 0, 1, 0, -0.0348994955, 0, 0.999390841), Vector3.new(20.2499027, 120,
  5099. 5))
  5100. createWall(CFrame.new(-334.888336, 79.9415817, 294.865021, 0.838670552, 0,
  5101. 0.544639051, 0, 1, 0, -0.544639051, 0, 0.838670552), Vector3.new(25.0999069, 120,
  5102. 5))
  5103. createWall(CFrame.new(-344.876831, 79.9415817, 303.412811, 0.544639051, 0,
  5104. 0.838670552, 0, 1, 0, -0.838670552, 0, 0.544639051), Vector3.new(25.0999069, 120,
  5105. 5))
  5106. createWall(CFrame.new(-353.138275, 79.9415817, 319.06076, 0.309016973, 0,
  5107. 0.95105654, 0, 1, 0, -0.95105654, 0, 0.309016973), Vector3.new(25.0999069, 120, 5))
  5108. createWall(CFrame.new(-355.918182, 79.9415817, 338.616058, -0.156434491, -
  5109.  
  5110. 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))
  5111. 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))
  5112. 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))
  5113. 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))
  5114. 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,
  5115. 5))
  5116. createWall(CFrame.new(-276.312256, 79.9415817, 511.668976, 0.99984771, 0,
  5117. 0.0174524058, 0, 1, 0, -0.0174524058, 0, 0.99984771), Vector3.new(47.6499405, 120,
  5118. 5))
  5119. 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))
  5120. 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))
  5121. 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))
  5122. 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))
  5123. 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))
  5124. 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))
  5125. createWall(CFrame.new(-268.345642, 79.9415817, 364.530884, 0.999390841, 0,
  5126. 0.0348994955, 0, 1, 0, -0.0348994955, 0, 0.999390841), Vector3.new(40.7998962, 120,
  5127. 5))
  5128. 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,
  5129. 5))
  5130. 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))
  5131. 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))
  5132. 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))
  5133. 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,
  5134. 5))
  5135. 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,
  5136. 5))
  5137. createWall(CFrame.new(-145.599655, 79.9415817, 528.387268, 0.997564077, 0,
  5138. 0.0697564706, 0, 1, 0, -0.0697564706, 0, 0.997564077), Vector3.new(36.9999733, 120,
  5139. 5))
  5140. createWall(CFrame.new(-132.102982, 79.9415817, 531.453186, -0.0697565079, -
  5141.  
  5142. 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))
  5143. createWall(CFrame.new(-153.191727, 79.9415817, 603.870667, 0.49999997, 0,
  5144. 0.866025448, 0, 1, 0, -0.866025448, 0, 0.49999997), Vector3.new(36.1999664, 120,
  5145. 9.19999409))
  5146. 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,
  5147. 14.0500021))
  5148. 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,
  5149. 14.0500021))
  5150. 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,
  5151. 4.65000153))
  5152. createWall(CFrame.new(150.972641, 79.9415817, 733.93103, 0.275637388, 0,
  5153. 0.96126169, 0, 1, 0, -0.96126169, 0, 0.275637388), Vector3.new(134.699875, 120,
  5154. 4.65000153))
  5155. createWall(CFrame.new(113.599823, 79.9415817, 834.299438, 0.469471604, 0,
  5156. 0.882947564, 0, 1, 0, -0.882947564, 0, 0.469471604), Vector3.new(82.6498489, 120,
  5157. 4.65000153))
  5158. createWall(CFrame.new(83.7891617, 79.9415817, 886.715393, 0.544639051, 0,
  5159. 0.838670552, 0, 1, 0, -0.838670552, 0, 0.544639051), Vector3.new(40.299839, 120,
  5160. 4.65000153))
  5161. createWall(CFrame.new(57.0700951, 79.9415817, 912.924072, 0.857167304, 0,
  5162. 0.515038073, 0, 1, 0, -0.515038073, 0, 0.857167304), Vector3.new(40.299839, 120,
  5163. 4.65000153))
  5164. createWall(CFrame.new(-16.656601, 79.9415817, 934.313538, 0.981627166, 0,
  5165. 0.190808997, 0, 1, 0, -0.190808997, 0, 0.981627166), Vector3.new(116.849838, 120,
  5166. 4.65000153))
  5167. createWall(CFrame.new(-14.7186928, 79.9415817, 1032.85339, 0.981627166, 0,
  5168. 0.190808997, 0, 1, 0, -0.190808997, 0, 0.981627166), Vector3.new(150.649872, 120,
  5169. 4.65000153))
  5170. createWall(CFrame.new(100.627106, 79.9415817, 999.678406, 0.91354543, 0,
  5171. 0.406736642, 0, 1, 0, -0.406736642, 0, 0.91354543), Vector3.new(96.7998657, 120,
  5172. 4.65000153))
  5173. 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,
  5174. 4.65000153))
  5175. 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,
  5176. 4.65000153))
  5177. 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,
  5178. 4.65000153))
  5179. createWall(CFrame.new(-99.3179703, 79.9415817, 1066.7688, 0.515038073, 0,
  5180. 0.857167304, 0, 1, 0, -0.857167304, 0, 0.515038073), Vector3.new(47.8498611, 120,
  5181. 4.65000153))
  5182. 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,
  5183. 14.0500021))
  5184. createWall(CFrame.new(116.764015, 79.9415817, 982.981506, 0.587785304, 0,
  5185. 0.809017003, 0, 1, 0, -0.809017003, 0, 0.587785304), Vector3.new(44.3998642, 120,
  5186. 4.65000153))
  5187. createWall(CFrame.new(147.403961, 79.9415817, 956.020203, 0.866025388, 0,
  5188. 0.5, 0, 1, 0, -0.5, 0, 0.866025388), Vector3.new(44.3998642, 120, 4.65000153))
  5189. createWall(CFrame.new(187.493103, 79.9415817, 912.867615, 0.669130564, 0,
  5190. 0.74314487, 0, 1, 0, -0.74314487, 0, 0.669130564), Vector3.new(115.299873, 120,
  5191. 4.65000153))
  5192. createWall(CFrame.new(199.873352, 79.9415817, 869.370178, -0.0348994955, -
  5193.  
  5194. 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))
  5195. createWall(CFrame.new(203.445938, 79.9415817, 792.87146, 0.309016973, 0,
  5196. 0.95105654, 0, 1, 0, -0.95105654, 0, 0.309016973), Vector3.new(36.849865, 120,
  5197. 4.65000153))
  5198. 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,
  5199. 4.65000153))
  5200. 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))
  5201. createWall(CFrame.new(-312.379059, 79.9415817, 901.517517, 0.642787635, 0,
  5202. 0.766044438, 0, 1, 0, -0.766044438, 0, 0.642787635), Vector3.new(55.4000015, 120,
  5203. 4.65000153))
  5204. createWall(CFrame.new(-325.956299, 79.9415817, 988.109619, -4.37113883e-08,
  5205. 0, 1, 0, 1, 0, -1, 0, -4.37113883e-08), Vector3.new(173.950043, 120, 4.65000153))
  5206. createWall(CFrame.new(-198.956482, 79.9415817, 1094.80957, -1, -8.74227766e08, 0, -8.74227766e-08, 1, -8.74227766e-08, 7.64274186e-15, -8.74227766e-08, -1),
  5207. Vector3.new(188.15004, 120, 4.65000153))
  5208. createWall(CFrame.new(46.1631012, 77.6916199, 283.547241, -1, -8.74227766e08, 0, -8.74227766e-08, 1, -8.74227766e-08, 7.64274186e-15, -8.74227766e-08, -1),
  5209. Vector3.new(71.8998871, 17.5, 4))
  5210. createWall(CFrame.new(-153.191727, 79.9415817, 603.870667, 0.49999997, 0,
  5211. 0.866025448, 0, 1, 0, -0.866025448, 0, 0.49999997), Vector3.new(36.1999664, 120,
  5212. 9.19999409))
  5213. createWall(CFrame.new(-218.836899, 66.4415817, 262.047241, -1, -8.74227766e08, 0, -8.74227766e-08, 1, -8.74227766e-08, 7.64274186e-15, -8.74227766e-08, -1),
  5214. Vector3.new(84.8998871, 1, 108))
  5215. createWall(CFrame.new(-35.8530579, 63.9391098, 607.062622, -1.00000024,
  5216. 6.68149738e-22, 0, -6.68149738e-22, 1, 0, 0, 0, -0.999999881),
  5217. Vector3.new(207.399887, 1.5, 166))
  5218. 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))
  5219. 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))
  5220. createWall(CFrame.new(32.8341637, 5.29244184, 34.5653267, -3.7252903e-09,
  5221. 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))
  5222. createWall(CFrame.new(25.6630993, 93.6915894, 151.797241, -1, -8.74227766e08, 0, -8.74227766e-08, 1, -8.74227766e-08, 7.64274186e-15, -8.74227766e-08, -1),
  5223. Vector3.new(135.899887, 92.5, 9.5))
  5224. createWall(CFrame.new(-21.0868988, 73.9415894, 149.297241, -1, -8.74227766e08, 0, -8.74227766e-08, 1, -8.74227766e-08, 7.64274186e-15, -8.74227766e-08, -1),
  5225. Vector3.new(69.3998871, 132, 14.5))
  5226. createWall(CFrame.new(-50.836895, 37.691597, 220.797241, -1, -8.74227766e-08,
  5227. 0, -8.74227766e-08, 1, -8.74227766e-08, 7.64274186e-15, -8.74227766e-08, -1),
  5228. Vector3.new(9.89988708, 59.5, 157.5))
  5229. createWall(CFrame.new(56.413105, 38.6916161, 283.547241, -1, -8.74227766e-08,
  5230. 0, -8.74227766e-08, 1, -8.74227766e-08, 7.64274186e-15, -8.74227766e-08, -1),
  5231. Vector3.new(92.3998871, 61.5, 4))
  5232. createWall(CFrame.new(-32.086895, 38.6916046, 283.547241, -1, -8.74227766e08, 0, -8.74227766e-08, 1, -8.74227766e-08, 7.64274186e-15, -8.74227766e-08, -1),
  5233. Vector3.new(28.3998871, 61.5, 4))
  5234. createWall(CFrame.new(30.4380493, 67.9415741, 211.697144, -1, -8.74227766e08, 0, -8.74227766e-08, 1, -8.74227766e-08, 7.64274186e-15, -8.74227766e-08, -1),
  5235. Vector3.new(156.350006, 4, 146))
  5236. createWall(CFrame.new(29.5450134, 2.84688377, 217.2388, 1, 0, 0, 0, 1, 0, 0,
  5237.  
  5238. 0, 1), Vector3.new(165.91008, 22.4399872, 132.789948))
  5239. createWall(CFrame.new(87.6880493, 67.1915817, 224.947144, -1, -8.74227766e08, 0, -8.74227766e-08, 1, -8.74227766e-08, 7.64274186e-15, -8.74227766e-08, -1),
  5240. Vector3.new(24.8500061, 4.5, 172.5))
  5241. 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))
  5242. 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,
  5243. 1.77635684e-15, -8.74227766e-08, -1), Vector3.new(59.3500061, 0.5, 26.5))
  5244. 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,
  5245. 1.77635684e-15, -8.74227766e-08, -1), Vector3.new(20.8500061, 47, 26.5))
  5246. createWall(CFrame.new(28.0450134, 2.59688377, 106.488808, 1, 0, 0, 0, 1, 0,
  5247. 0, 0, 1), Vector3.new(158.91008, 21.9399872, 94.2899399))
  5248. createWall(CFrame.new(-124.586899, 67.1915894, 236.797241, -1, -8.74227766e08, 0, -8.74227766e-08, 1, -8.74227766e-08, 7.64274186e-15, -8.74227766e-08, -1),
  5249. Vector3.new(157.399887, 0.5, 57.5))
  5250. createWall(CFrame.new(-254.643875, 66.3116455, 432.286926, -0.912263155, 0, 0.409604788, -6.68149738e-22, 1, 0, 0.409604847, 0, -0.912263036),
  5251. Vector3.new(207.399887, 2.5, 151))
  5252. createWall(CFrame.new(-125.181572, 64.4391098, 589.670898, -0.945519269,
  5253. 2.00444967e-21, 0.325568169, -2.04085147e-21, 1, -2.17528256e-22, -0.325568289,
  5254. 5.04870979e-29, -0.945518196), Vector3.new(17.3998871, 2.5, 166))
  5255. createWall(CFrame.new(-137.709702, 64.9391098, 585.357117, -0.945519269,
  5256. 2.00444967e-21, 0.325568169, -2.04085147e-21, 1, -2.17528256e-22, -0.325568289,
  5257. 5.04870979e-29, -0.945518196), Vector3.new(22.8998871, 3.5, 166))
  5258. createWall(CFrame.new(19.0190639, 64.4391098, 609.972961, -0.990270078,
  5259. 5.86774583e-21, 0.139173076, -5.88725364e-21, 1, 5.91148532e-22, -0.139173225,
  5260. 8.70114437e-22, -0.990266919), Vector3.new(23.8998871, 2.5, 111.5))
  5261. createWall(CFrame.new(105.727264, 64.9391098, 804.053894, -0.990270078,
  5262. 5.86774583e-21, 0.139173076, -5.88725364e-21, 1, 5.91148532e-22, -0.139173225,
  5263. 8.70114437e-22, -0.990266919), Vector3.new(214.149902, 3.5, 514.25))
  5264. createWall(CFrame.new(-224.200012, 65.5, 1001.75006, -1.00000405, 1.1819003e20, 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))
  5265. createWall(CFrame.new(-146.199707, 66, 1001.75006, -1.00000405, 1.1819003e20, 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))
  5266. createWall(CFrame.new(-174.199951, 66, 1047.75, -0.62932831, 3.54571487e-20,
  5267. 0.777146101, -4.02626932e-20, 1, -7.34422647e-21, -0.777149975, -1.63841185e-21, 0.629315674), Vector3.new(25.3999023, 5, 138.5))
  5268. createWall(CFrame.new(-237.197769, 66, 1060.49756, 0.173636138, 1.16034402e19, 0.984809875, -1.30376718e-19, 1, -9.48368712e-20, -0.984809875, -1.11929169e19, 0.173636138), Vector3.new(25.3999023, 5, 138.5))
  5269. createWall(CFrame.new(-283.1716, 66, 1015.58191, 0.906302631, 1.16034402e-19,
  5270. 0.422629356, -1.52466835e-19, 1, 5.24021665e-20, -0.422629356, -1.11929169e-19,
  5271. 0.906302631), Vector3.new(25.3999023, 5, 138.5))
  5272. createWall(CFrame.new(-261.013458, 66, 946.482361, 0.77715373, 1.16034389e19, -0.629310906, -1.97383098e-20, 1, 1.60007905e-19, 0.629310906, -1.11929182e-19,
  5273. 0.77715373), Vector3.new(25.3999023, 5, 138.5))
  5274. createWall(CFrame.new(-210.805298, 66, 933.739136, -0.190796942, 1.16034389e19, -0.981629729, 1.32012016e-19, 1, 9.25470866e-20, 0.981629729, -1.11929182e-19,
  5275. -0.190796942), Vector3.new(25.3999023, 5, 138.5))
  5276. createWall(CFrame.new(-162.697159, 66, 955.924011, -0.707098544, 1.16034363e19, -0.707116008, 1.61194651e-19, 1, 2.90485394e-21, 0.707116008, -1.11929195e-19,
  5277. -0.707098544), Vector3.new(25.3999023, 5, 138.5))
  5278. createWall(CFrame.new(-160.222321, 66.5, 953.449097, -0.707098544,
  5279. 1.16034363e-19, -0.707116008, 1.61194651e-19, 1, 2.90485394e-21, 0.707116008, -
  5280.  
  5281. 1.11929195e-19, -0.707098544), Vector3.new(25.3999023, 5, 138.5))
  5282. createWall(CFrame.new(-157.040375, 67, 950.26709, -0.707098544, 1.16034363e19, -0.707116008, 1.61194651e-19, 1, 2.90485394e-21, 0.707116008, -1.11929195e-19,
  5283. -0.707098544), Vector3.new(25.3999023, 5, 138.5))
  5284. createWall(CFrame.new(-155.272629, 67.5, 948.499329, -0.707098544,
  5285. 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))
  5286. createWall(CFrame.new(-152.797791, 68, 946.024414, -0.707098544, 1.16034363e19, -0.707116008, 1.61194651e-19, 1, 2.90485394e-21, 0.707116008, -1.11929195e-19,
  5287. -0.707098544), Vector3.new(25.3999023, 5, 138.5))
  5288. createWall(CFrame.new(-150.676498, 68.5, 943.903076, -0.707098544,
  5289. 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))
  5290. createWall(CFrame.new(-144.199692, 66.5, 1001.75006, -1.00000405, 1.1819003e20, 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))
  5291. createWall(CFrame.new(-141.199677, 67, 1001.75006, -1.00000405, 1.1819003e20, 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))
  5292. createWall(CFrame.new(-140.199661, 67.5, 1001.75006, -1.00000405, 1.1819003e20, 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))
  5293. createWall(CFrame.new(-139.199661, 68, 1001.75006, -1.00000405, 1.1819003e20, 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))
  5294. createWall(CFrame.new(-116.44957, 68.5, 1001.75006, -1.00000405, 1.1819003e20, 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))
  5295. createWall(CFrame.new(-112.699554, 68, 1001.75006, -1.00000405, 1.1819003e20, 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))
  5296. createWall(CFrame.new(-107.699532, 67.5, 1001.75006, -1.00000405, 1.1819003e20, 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))
  5297. createWall(CFrame.new(-103.949516, 67, 1001.75006, -1.00000405, 1.1819003e20, 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))
  5298. createWall(CFrame.new(-100.199501, 66.75, 1001.75006, -1.00000405,
  5299. 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))
  5300. createWall(CFrame.new(-173.570618, 66.5, 1048.5271, -0.62932831, 3.54571487e20, 0.777146101, -4.02626932e-20, 1, -7.34422647e-21, -0.777149975, -1.63841185e21, -0.629315674), Vector3.new(25.3999023, 5, 138.5))
  5301. createWall(CFrame.new(-172.626633, 67, 1049.69287, -0.62932831, 3.54571487e20, 0.777146101, -4.02626932e-20, 1, -7.34422647e-21, -0.777149975, -1.63841185e21, -0.629315674), Vector3.new(25.3999023, 5, 138.5))
  5302. createWall(CFrame.new(-171.367981, 67.5, 1051.24719, -0.62932831,
  5303. 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))
  5304. createWall(CFrame.new(-168.536011, 68, 1054.74438, -0.62932831, 3.54571487e20, 0.777146101, -4.02626932e-20, 1, -7.34422647e-21, -0.777149975, -1.63841185e21, -0.629315674), Vector3.new(25.3999023, 5, 138.5))
  5305. createWall(CFrame.new(-166.962692, 68.5, 1056.68726, -0.62932831,
  5306. 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))
  5307. createWall(CFrame.new(-166.018707, 69, 1057.85303, -0.62932831, 3.54571487e20, 0.777146101, -4.02626932e-20, 1, -7.34422647e-21, -0.777149975, -1.63841185e21, -0.629315674), Vector3.new(25.3999023, 5, 138.5))
  5308. createWall(CFrame.new(-238.239594, 66.5, 1066.40637, 0.173636138,
  5309.  
  5310. 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))
  5311. createWall(CFrame.new(-238.673691, 67, 1068.86841, 0.173636138, 1.16034402e19, 0.984809875, -1.30376718e-19, 1, -9.48368712e-20, -0.984809875, -1.11929169e19, 0.173636138), Vector3.new(25.3999023, 5, 138.5))
  5312. createWall(CFrame.new(-239.020966, 67.5, 1070.83801, 0.173636138,
  5313. 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))
  5314. createWall(CFrame.new(-239.54187, 68, 1073.79248, 0.173636138, 1.16034402e19, 0.984809875, -1.30376718e-19, 1, -9.48368712e-20, -0.984809875, -1.11929169e19, 0.173636138), Vector3.new(25.3999023, 5, 138.5))
  5315. createWall(CFrame.new(-240.062775, 68.5, 1076.74695, 0.173636138,
  5316. 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))
  5317. createWall(CFrame.new(-286.343658, 66.5, 1017.0611, 0.906302631, 1.16034402e19, 0.422629356, -1.52466835e-19, 1, 5.24021665e-20, -0.422629356, -1.11929169e-19,
  5318. 0.906302631), Vector3.new(25.3999023, 5, 138.5))
  5319. createWall(CFrame.new(-289.515717, 67, 1018.54028, 0.906302631, 1.16034402e19, 0.422629356, -1.52466835e-19, 1, 5.24021665e-20, -0.422629356, -1.11929169e-19,
  5320. 0.906302631), Vector3.new(25.3999023, 5, 138.5))
  5321. createWall(CFrame.new(-291.781464, 67.5, 1019.59686, 0.906302631,
  5322. 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))
  5323. createWall(CFrame.new(-294.500366, 68, 1020.86475, 0.906302631, 1.16034402e19, 0.422629356, -1.52466835e-19, 1, 5.24021665e-20, -0.422629356, -1.11929169e-19,
  5324. 0.906302631), Vector3.new(25.3999023, 5, 138.5))
  5325. createWall(CFrame.new(-298.12558, 68.5, 1022.55524, 0.906302631, 1.16034402e19, 0.422629356, -1.52466835e-19, 1, 5.24021665e-20, -0.422629356, -1.11929169e-19,
  5326. 0.906302631), Vector3.new(25.3999023, 5, 138.5))
  5327. createWall(CFrame.new(-262.179199, 66.5, 945.538391, 0.77715373, 1.16034389e19, -0.629310906, -1.97383098e-20, 1, 1.60007905e-19, 0.629310906, -1.11929182e-19,
  5328. 0.77715373), Vector3.new(25.3999023, 5, 138.5))
  5329. createWall(CFrame.new(-263.34494, 67, 944.594421, 0.77715373, 1.16034389e-19,
  5330. -0.629310906, -1.97383098e-20, 1, 1.60007905e-19, 0.629310906, -1.11929182e-19,
  5331. 0.77715373), Vector3.new(25.3999023, 5, 138.5))
  5332. createWall(CFrame.new(-264.899261, 67.5, 943.335815, 0.77715373, 1.16034389e19, -0.629310906, -1.97383098e-20, 1, 1.60007905e-19, 0.629310906, -1.11929182e-19,
  5333. 0.77715373), Vector3.new(25.3999023, 5, 138.5))
  5334. createWall(CFrame.new(-266.065002, 68, 942.391846, 0.77715373, 1.16034389e19, -0.629310906, -1.97383098e-20, 1, 1.60007905e-19, 0.629310906, -1.11929182e-19,
  5335. 0.77715373), Vector3.new(25.3999023, 5, 138.5))
  5336. createWall(CFrame.new(-266.842163, 68.5, 941.762512, 0.77715373, 1.16034389e19, -0.629310906, -1.97383098e-20, 1, 1.60007905e-19, 0.629310906, -1.11929182e-19,
  5337. 0.77715373), Vector3.new(25.3999023, 5, 138.5))
  5338. createWall(CFrame.new(-210.137512, 66.5, 930.303406, -0.190796942,
  5339. 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))
  5340. createWall(CFrame.new(-209.660522, 67, 927.849304, -0.190796942, 1.16034389e19, -0.981629729, 1.32012016e-19, 1, 9.25470866e-20, 0.981629729, -1.11929182e-19,
  5341. -0.190796942), Vector3.new(25.3999023, 5, 138.5))
  5342. createWall(CFrame.new(-208.992737, 67.5, 924.413635, -0.190796942,
  5343. 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))
  5344. createWall(CFrame.new(-208.706543, 68, 922.941162, -0.190796942, 1.16034389e19, -0.981629729, 1.32012016e-19, 1, 9.25470866e-20, 0.981629729, -1.11929182e-19,
  5345. -0.190796942), Vector3.new(25.3999023, 5, 138.5))
  5346. createWall(CFrame.new(-208.420349, 68.5, 921.468689, -0.190796942,
  5347. 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))
  5348.  
  5349. createWall(CFrame.new(42.9820786, 0.3806144, 36.3547974, -0.000348969304, 0,
  5350. 0.99999994, 0, 1, 0, -0.99999994, 0, -0.000348969304), Vector3.new(49.7200928,
  5351. 29.8699951, 3.82001257))
  5352. createWall(CFrame.new(21.461998, -1.51294553, 36.6358871, -0.000348969304, 0,
  5353. 0.99999994, 0, 1, 0, -0.99999994, 0, -0.000348969304), Vector3.new(48.7200928,
  5354. 36.8699951, 3.82001257))
  5355. createWall(CFrame.new(28.1880493, 67.1915741, 230.697144, -1, -8.74227766e08, 0, -8.74227766e-08, 1, -8.74227766e-08, 7.64274186e-15, -8.74227766e-08, -1),
  5356. Vector3.new(160.850006, 2.5, 61))
  5357. createWall(CFrame.new(29.4380493, 67.6915741, 234.197144, -1, -8.74227766e08, 0, -8.74227766e-08, 1, -8.74227766e-08, 7.64274186e-15, -8.74227766e-08, -1),
  5358. Vector3.new(158.350006, 3.5, 61))
  5359. createWall(CFrame.new(28.6880493, 67.4415741, 230.697144, -1, -8.74227766e08, 0, -8.74227766e-08, 1, -8.74227766e-08, 7.64274186e-15, -8.74227766e-08, -1),
  5360. Vector3.new(159.850006, 3, 62))
  5361. createWall(CFrame.new(27.4380493, 66.9415741, 234.947144, -1, -8.74227766e08, 0, -8.74227766e-08, 1, -8.74227766e-08, 7.64274186e-15, -8.74227766e-08, -1),
  5362. Vector3.new(162.350006, 2, 48.5))
  5363. createWall(CFrame.new(56.7784882, 64.9391098, 983.48761, -0.990270078,
  5364. 5.86774583e-21, 0.139173076, -5.88725364e-21, 1, 5.91148532e-22, -0.139173225,
  5365. 8.70114437e-22, -0.990266919), Vector3.new(261.149902, 3.5, 145.25))
  5366. wait(.1)
  5367. if _G.destroy_map then
  5368. for i,v in pairs(workspace:GetChildren()) do
  5369. if v.ClassName == "Model" or v.ClassName == "Part" or v.ClassName ==
  5370. "UnionOperation" or v.ClassName == "WedgePart" then
  5371. if v ~= game.Players.LocalPlayer.Character and v.Name ~= regionPartName
  5372. then
  5373. v:Destroy()
  5374. end
  5375. end
  5376. end
  5377. game:GetService("Workspace").fence:Destroy()
  5378. game:GetService("Workspace").borders:Destroy()
  5379. end
  5380. workspace:WaitForChild("eliteSwordsman")
  5381. local s = game:GetService("Workspace").eliteSwordsman
  5382. s.ChildAdded:Connect(function(instance) -- all future folders, if mob
  5383. spawned, give hitbox
  5384. if instance.ClassName == "Model" and instance.Name == "Ultimate
  5385. Swordsman" then
  5386. instance:WaitForChild("HumanoidRootPart")
  5387. --cs:AddTag(instance, "Enemy")
  5388. addHitBox(instance, 30, "square")
  5389. end
  5390. end)
  5391. while not
  5392. game:GetService("Workspace").dungeon.room4.enemyFolder:FindFirstChild("Sanada
  5393. Yukimura") do
  5394. wait(1)
  5395. end
  5396. while not
  5397. game:GetService("Workspace").dungeon.room4.enemyFolder:FindFirstChild("Sanada
  5398. Yukimura"):FindFirstChild("HumanoidRootPart") do
  5399. wait(1)
  5400. end
  5401. -- cant path to second boss, paths to second boss area until hes in position
  5402.  
  5403. forceObjectiveExists = true
  5404. thePart.CFrame = CFrame.new(88.5511551, 72.7995224, 276.368042)
  5405. local _,_,_,root = getPlayer()
  5406. while root.Position.Y < 69.999526977539 do
  5407. wait()
  5408. end
  5409. forceObjectiveExists = false
  5410. end
  5411. function underworldFix()
  5412. createWall(CFrame.new(487, 65.1197205, 416.394165, 1, 0, 0, 0, 0.89100647,
  5413. 0.4539904, 0, -0.4539904, 0.89100647), Vector3.new(68, 1, 83.5))
  5414. createWall(CFrame.new(487, 61.8143387, 275.542908, 1, 0, 0, 0, 0.89100647,
  5415. 0.4539904, 0, -0.4539904, 0.89100647), Vector3.new(68, 1, 17.5))
  5416. --[[
  5417. while not
  5418. game:GetService("Workspace").dungeon.room8.enemyFolder:FindFirstChild("Kolvumar")
  5419. do
  5420. wait(1)
  5421. end
  5422. while not
  5423. game:GetService("Workspace").dungeon.room8.enemyFolder:FindFirstChild("Kolvumar"):F
  5424. indFirstChild("HumanoidRootPart") do
  5425. wait(1)
  5426. end]]
  5427. end
  5428. function pirateFix()
  5429. 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,
  5430. 173.349854, 90.7301254))
  5431. createWall(CFrame.new(-248.68956, 189.686432, 446.980225, 1, 0, 0, 0, 1, 0,
  5432. 0, 0, 1), Vector3.new(145.240143, 173.119949, 132.979874))
  5433. 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,
  5434. 174.349854, 3.23012543))
  5435. 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,
  5436. 319.999939, 105.929977))
  5437. createWall(CFrame.new(-13.9006824, 263.126404, 334.261169, 0.998134792, 0,
  5438. 0.0610485412, 0, 1, 0, -0.0610485412, 0, 0.998134792), Vector3.new(16.7299881,
  5439. 319.999939, 102.700035))
  5440. createWall(CFrame.new(12.5065136, 263.126404, 193.714981, 0.997564077, 0,
  5441. 0.0697564706, 0, 1, 0, -0.0697564706, 0, 0.997564077), Vector3.new(10.2299871,
  5442. 319.999939, 105.929977))
  5443. 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))
  5444. 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,
  5445. 319.999939, 94.2900009))
  5446. 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,
  5447. 244.639954, 70.2799683))
  5448. createWall(CFrame.new(-240.888153, 225.446411, 204.484818, -1, -8.74227766e08, 0, -8.74227766e-08, 1, -8.74227766e-08, 7.64274186e-15, -8.74227766e-08, -1),
  5449. Vector3.new(37.7000008, 244.639954, 125.269974))
  5450. 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, -
  5451.  
  5452. 8.89485108e-08, -0.99984771), Vector3.new(84.8199768, 241.119949, 65.279953))
  5453. 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))
  5454. 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,
  5455. 319.999939, 135.039978))
  5456. createWall(CFrame.new(-186.983673, 308.136475, -85.8008804, 0.878817141, 0,
  5457. 0.477158755, 0, 1, 0, -0.477158755, 0, 0.878817141), Vector3.new(15.7299871,
  5458. 229.979904, 62.4799805))
  5459. 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,
  5460. 319.999939, 135.039978))
  5461. createWall(CFrame.new(-216.488495, 308.136475, -116.623718, 0.507538378, 0,
  5462. 0.861629128, 0, 1, 0, -0.861629128, 0, 0.507538378), Vector3.new(14.2299871,
  5463. 229.979904, 31.0399818))
  5464. createWall(CFrame.new(-180.638794, 263.126404, -276.830627, 0.995396197, 0,
  5465. 0.0958457515, 0, 1, 0, -0.0958457515, 0, 0.995396197), Vector3.new(113.549988,
  5466. 319.999939, 97.3899994))
  5467. 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,
  5468. 319.999939, 115.449997))
  5469. 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,
  5470. 319.999939, 108.449997))
  5471. 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,
  5472. 319.999939, 35.8099937))
  5473. 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,
  5474. 319.999939, 58.8699951))
  5475. 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,
  5476. 319.999939, 135.039978))
  5477. createWall(CFrame.new(-23.2827835, 263.126404, -230.279099, 0.32556814, 0,
  5478. 0.945518553, 0, 1, 0, -0.945518553, 0, 0.32556814), Vector3.new(29.2299881,
  5479. 319.999939, 142.539978))
  5480. createWall(CFrame.new(-115.024994, 241.249969, -414.445007, 1, 0, 0, 0, 1, 0,
  5481. 0, 0, 1), Vector3.new(190.049988, 2.49993896, 169.889999))
  5482. createWall(CFrame.new(-209.274994, 249.999969, -366.445007, 1, 0, 0, 0, 1, 0,
  5483. 0, 0, 1), Vector3.new(3.54998779, 19.999939, 20.8899994))
  5484. createWall(CFrame.new(-109.024994, 252.035263, -308.551788, 1, 0, 0, 0,
  5485. 0.906307757, 0.42261827, 0, -0.42261827, 0.906307757), Vector3.new(48.0499878,
  5486. 1.99993896, 61.8899994))
  5487. createWall(CFrame.new(-109.024994, 268.374207, -263.68924, 1, 0, 0, 0,
  5488. 0.974370062, 0.224951088, 0, -0.224951088, 0.974370062), Vector3.new(48.0499878,
  5489. 2.49993896, 36.8899994))
  5490. createWall(CFrame.new(-109.024994, 270.498352, -240.767548, 1, 0, 0, 0,
  5491. 0.9510566, -0.309016943, 0, 0.309016943, 0.9510566), Vector3.new(48.0499878,
  5492. 2.49993896, 11.8899994))
  5493. createWall(CFrame.new(-114.774994, 255.249969, -85.0700073, 1, 0, 0, 0, 1, 0,
  5494. 0, 0, 1), Vector3.new(232.549988, 30.499939, 309.140015))
  5495. createWall(CFrame.new(-53.2749939, 255.999969, -24.6950073, 1, 0, 0, 0, 1, 0,
  5496. 0, 0, 1), Vector3.new(109.549988, 31.999939, 59.3900146))
  5497. createWall(CFrame.new(-28.5249939, 273.499969, 15.3049927, 1, 0, 0, 0, 1, 0,
  5498. 0, 0, 1), Vector3.new(60.0499878, 66.999939, 139.390015))
  5499. createWall(CFrame.new(-80.7749939, 267.999969, 54.8049927, 1, 0, 0, 0, 1, 0,
  5500. 0, 0, 1), Vector3.new(164.549988, 6.99993896, 23.3900146))
  5501. createWall(CFrame.new(-154.774994, 279.999969, 52.0549927, 1, 0, 0, 0, 1, 0,
  5502.  
  5503. 0, 0, 1), Vector3.new(16.5499878, 30.999939, 28.8900146))
  5504. createWall(CFrame.new(-137.024994, 267.999969, 14.5549927, 1, 0, 0, 0, 1, 0,
  5505. 0, 0, 1), Vector3.new(39.0499878, 6.99993896, 29.8900146))
  5506. createWall(CFrame.new(-167.024994, 267.749969, -113.406532, 0.866025388, 0,
  5507. 0.5, 0, 1, 0, -0.5, 0, 0.866025388), Vector3.new(39.0499878, 6.49993896,
  5508. 103.890015))
  5509. createWall(CFrame.new(-170.580597, 271.249969, -111.065025, 0.866025388, 0,
  5510. 0.5, 0, 1, 0, -0.5, 0, 0.866025388), Vector3.new(24.5499878, 1.49993896,
  5511. 92.3900146))
  5512. createWall(CFrame.new(-176.571625, 271.749969, -119.441788, 0.866025388, 0,
  5513. 0.5, 0, 1, 0, -0.5, 0, 0.866025388), Vector3.new(15.5499878, 2.49993896,
  5514. 63.8900146))
  5515. createWall(CFrame.new(-155.324982, 270.499908, -185.195007, 1, 0, 0, 0, 1, 0,
  5516. 0, 0, 0.99999994), Vector3.new(35.5499878, 1.99993896, 36.3900146))
  5517. createWall(CFrame.new(-158.574982, 270.999908, -193.195007, 1, 0, 0, 0, 1, 0,
  5518. 0, 0, 0.99999994), Vector3.new(21.0499878, 2.99993896, 16.3900146))
  5519. createWall(CFrame.new(-160.074982, 271.249908, -193.695007, 1, 0, 0, 0, 1, 0,
  5520. 0, 0, 0.99999994), Vector3.new(10.0499878, 3.49993896, 7.39001465))
  5521. createWall(CFrame.new(-47.5749817, 270.499908, -162.195007, 1, 0, 0, 0, 1, 0,
  5522. 0, 0, 0.99999994), Vector3.new(70.0499878, 1.99993896, 118.390015))
  5523. createWall(CFrame.new(-49.8249817, 270.999908, -181.695007, 1, 0, 0, 0, 1, 0,
  5524. 0, 0, 0.99999994), Vector3.new(52.5499878, 2.99993896, 55.3900146))
  5525. createWall(CFrame.new(-141.574982, 287.499908, -233.195007, 1, 0, 0, 0, 1, 0,
  5526. 0, 0, 0.99999994), Vector3.new(55.0499878, 35.999939, 15.3900146))
  5527. 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,
  5528. 22.499939, 30.8900146))
  5529. 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,
  5530. 16.499939, 19.8900146))
  5531. createWall(CFrame.new(-220.909836, 275.376404, -219.818344, 0.995396256, 0,
  5532. 0.0958457068, 0, 1, 0, -0.0958457515, 0, 0.99539578), Vector3.new(16.5499878,
  5533. 13.499939, 8.39001465))
  5534. createWall(CFrame.new(-103.524994, 251.527222, 104.294586, 1, 0, 0, 0,
  5535. 0.906307757, -0.42261827, 0, 0.42261827, 0.906307757), Vector3.new(99.0499878,
  5536. 5.99993896, 78.8900146))
  5537. createWall(CFrame.new(-108.024994, 236.249969, 298.054993, 1, 0, 0, 0,
  5538. 0.99999994, 0, 0, 0, 0.99999994), Vector3.new(245.049988, 4.49993896, 338.890015))
  5539. createWall(CFrame.new(-115.274994, 236.749969, 332.554993, 1, 0, 0, 0,
  5540. 0.99999994, 0, 0, 0, 0.99999994), Vector3.new(39.5499878, 5.49993896, 40.8900146))
  5541. createWall(CFrame.new(-114.524994, 237.249969, 331.554993, 1, 0, 0, 0,
  5542. 0.99999994, 0, 0, 0, 0.99999994), Vector3.new(24.0499878, 6.49993896, 21.8900146))
  5543. createWall(CFrame.new(-201.774994, 236.749969, 305.804993, 1, 0, 0, 0,
  5544. 0.99999994, 0, 0, 0, 0.99999994), Vector3.new(59.5499878, 5.49993896, 149.390015))
  5545. createWall(CFrame.new(-206.274994, 259.249969, 305.054993, 1, 0, 0, 0,
  5546. 0.99999994, 0, 0, 0, 0.99999994), Vector3.new(50.5499878, 50.499939, 148.890015))
  5547. createWall(CFrame.new(-195.774994, 236.749969, 253.054993, 1, 0, 0, 0,
  5548. 0.99999994, 0, 0, 0, 0.99999994), Vector3.new(71.5499878, 5.49993896, 36.8900146))
  5549. createWall(CFrame.new(-201.024994, 237.249969, 251.054993, 1, 0, 0, 0,
  5550. 0.99999994, 0, 0, 0, 0.99999994), Vector3.new(61.0499878, 6.49993896, 24.8900146))
  5551. createWall(CFrame.new(-60.7749939, 236.749969, 330.554993, 1, 0, 0, 0,
  5552. 0.99999994, 0, 0, 0, 0.99999994), Vector3.new(47.5499878, 5.49993896, 44.8900146))
  5553. createWall(CFrame.new(-61.5249939, 237.249969, 331.554993, 1, 0, 0, 0,
  5554. 0.99999994, 0, 0, 0, 0.99999994), Vector3.new(20.0499878, 6.49993896, 17.8900146))
  5555. createWall(CFrame.new(-29.0249939, 236.749969, 293.554993, 1, 0, 0, 0,
  5556. 0.99999994, 0, 0, 0, 0.99999994), Vector3.new(30.0499878, 5.49993896, 32.8900146))
  5557. createWall(CFrame.new(-26.0249939, 237.249969, 293.804993, 1, 0, 0, 0,
  5558. 0.99999994, 0, 0, 0, 0.99999994), Vector3.new(11.0499878, 6.49993896, 23.3900146))
  5559. createWall(CFrame.new(-16.2749939, 236.749969, 210.804993, 1, 0, 0, 0,
  5560.  
  5561. 0.99999994, 0, 0, 0, 0.99999994), Vector3.new(35.5499878, 5.49993896, 34.3900146))
  5562. createWall(CFrame.new(-69.3916397, 236.499969, 184.50386, 0.96126169, 0,
  5563. 0.275637299, 0, 0.999999821, 0, -0.275637329, 0, 0.961261511),
  5564. Vector3.new(84.0499878, 4.99993896, 38.8900146))
  5565. createWall(CFrame.new(-66.1986313, 236.749969, 183.848358, 0.96126169, 0,
  5566. 0.275637299, 0, 0.999999821, 0, -0.275637329, 0, 0.961261511),
  5567. Vector3.new(57.5499878, 5.49993896, 30.3900146))
  5568. createWall(CFrame.new(-62.4224892, 236.999969, 182.505493, 0.96126169, 0,
  5569. 0.275637299, 0, 0.999999821, 0, -0.275637329, 0, 0.961261511),
  5570. Vector3.new(49.5499878, 5.99993896, 24.8900146))
  5571. createWall(CFrame.new(-63.9332924, 237.249969, 182.678635, 0.96126169, 0,
  5572. 0.275637299, 0, 0.999999821, 0, -0.275637329, 0, 0.961261511),
  5573. Vector3.new(29.5499878, 6.49993896, 19.3900146))
  5574. createWall(CFrame.new(-62.1821709, 237.499969, 182.436569, 0.96126169, 0,
  5575. 0.275637299, 0, 0.999999821, 0, -0.275637329, 0, 0.961261511),
  5576. Vector3.new(19.0499878, 6.99993896, 13.8900146))
  5577. createWall(CFrame.new(-103.524994, 238.727341, 132.97348, 1, 0, 0, 0,
  5578. 0.965925813, -0.258819044, 0, 0.258819044, 0.965925813), Vector3.new(99.0499878,
  5579. 9.49993896, 32.3900146))
  5580. createWall(CFrame.new(-130.324982, 238.999908, 150.914978, 1, 0, 0, 0,
  5581. 0.999999881, -1.49011612e-08, 0, 0, 0.999999821), Vector3.new(45.5499878,
  5582. 0.999940872, 19.3900146))
  5583. createWall(CFrame.new(-131.824982, 239.499908, 147.914978, 1, 0, 0, 0,
  5584. 0.999999881, -1.49011612e-08, 0, 0, 0.999999821), Vector3.new(34.5499878,
  5585. 1.99994087, 13.3900146))
  5586. createWall(CFrame.new(-134.824982, 239.749908, 145.914978, 1, 0, 0, 0,
  5587. 0.999999881, -1.49011612e-08, 0, 0, 0.999999821), Vector3.new(22.5499878,
  5588. 2.49994087, 9.39001465))
  5589. createWall(CFrame.new(-2.22501421, 269.749908, 145.414978, 0.999999881, 0,
  5590. 2.98023224e-08, 0, 0.999999583, 0, 2.98023224e-08, 0, 0.999999583),
  5591. Vector3.new(18.5499878, 62.499939, 21.3900146))
  5592. createWall(CFrame.new(-216.172623, 238.749939, 167.096695, 0.788009822, 0, 0.615660012, 0, 0.999997318, 0, 0.615660667, 0, 0.788008869),
  5593. Vector3.new(18.5499878, 0.499946952, 55.3900146))
  5594. createWall(CFrame.new(-217.157623, 238.999939, 166.327118, 0.788009822, 0, 0.615660012, 0, 0.999997318, 0, 0.615660667, 0, 0.788008869),
  5595. Vector3.new(16.0499878, 0.999946952, 55.3900146))
  5596. createWall(CFrame.new(-217.748642, 239.249939, 165.865372, 0.788009822, 0, 0.615660012, 0, 0.999997318, 0, 0.615660667, 0, 0.788008869),
  5597. Vector3.new(14.5499878, 1.49994695, 55.3900146))
  5598. createWall(CFrame.new(-205.281525, 241.749939, 149.908188, 0.788009822, 0, 0.615660012, 0, 0.999997318, 0, 0.615660667, 0, 0.788008869),
  5599. Vector3.new(14.5499878, 6.49994707, 14.8900146))
  5600. createWall(CFrame.new(-176.024994, 236.499969, 425.554993, 1, 0, 0, 0,
  5601. 0.99999994, 0, 0, 0, 0.99999994), Vector3.new(26.0499878, 4.99993896, 46.8900146))
  5602. createWall(CFrame.new(-177.524994, 236.749969, 425.054993, 1, 0, 0, 0,
  5603. 0.99999994, 0, 0, 0, 0.99999994), Vector3.new(23.0499878, 5.49993896, 43.8900146))
  5604. createWall(CFrame.new(-178.774994, 237.249969, 425.804993, 1, 0, 0, 0,
  5605. 0.99999994, 0, 0, 0, 0.99999994), Vector3.new(20.5499878, 6.49993896, 38.3900146))
  5606. createWall(CFrame.new(-180.774994, 237.499969, 429.054993, 1, 0, 0, 0,
  5607. 0.99999994, 0, 0, 0, 0.99999994), Vector3.new(16.5499878, 6.99993896, 24.8900146))
  5608. createWall(CFrame.new(-181.774994, 237.999969, 430.304993, 1, 0, 0, 0,
  5609. 0.99999994, 0, 0, 0, 0.99999994), Vector3.new(14.5499878, 7.99993896, 18.3900146))
  5610. createWall(CFrame.new(-124.774994, 236.499969, 415.804993, 1, 0, 0, 0,
  5611. 0.99999994, 0, 0, 0, 0.99999994), Vector3.new(15.5499878, 4.99993896, 38.3900146))
  5612. createWall(CFrame.new(-123.524994, 236.749969, 416.554993, 1, 0, 0, 0,
  5613. 0.99999994, 0, 0, 0, 0.99999994), Vector3.new(13.0499878, 5.49993896, 25.8900146))
  5614. createWall(CFrame.new(-121.774994, 236.999969, 416.304993, 1, 0, 0, 0,
  5615. 0.99999994, 0, 0, 0, 0.99999994), Vector3.new(9.54998779, 5.99993896, 19.3900146))
  5616.  
  5617. createWall(CFrame.new(-89.5749817, 280.749908, -237.695007, 1, 0, 0, 0, 1, 0,
  5618. 0, 0, 0.99999994), Vector3.new(7.04998779, 22.499939, 6.39001465))
  5619. createWall(CFrame.new(-50.7568512, 263.126404, -284.197937, 1, 0, 0, 0, 1, 0,
  5620. 0, 0, 1), Vector3.new(82.5499878, 319.999939, 92.3899994))
  5621. createWall(CFrame.new(-84.7568512, 263.126404, -250.447937, 1, 0, 0, 0, 1, 0,
  5622. 0, 0, 1), Vector3.new(21.5499878, 319.999939, 24.8899994))
  5623. createWall(CFrame.new(-20.2568512, 263.126404, -418.197937, 1, 0, 0, 0, 1, 0,
  5624. 0, 0, 1), Vector3.new(4.54998779, 319.999939, 181.389999))
  5625. createWall(CFrame.new(-212.506851, 263.126404, -418.197937, 1, 0, 0, 0, 1, 0,
  5626. 0, 0, 1), Vector3.new(13.0499878, 319.999939, 181.389999))
  5627. createWall(CFrame.new(-168.256851, 263.126404, -328.947937, 1, 0, 0, 0, 1, 0,
  5628. 0, 0, 1), Vector3.new(79.5499878, 319.999939, 2.88999939))
  5629. createWall(CFrame.new(-163.006851, 263.126404, -572.947937, 1, 0, 0, 0, 1, 0,
  5630. 0, 0, 1), Vector3.new(90.0499878, 319.999939, 150.889999))
  5631. createWall(CFrame.new(-53.5068512, 263.126404, -534.947937, 1, 0, 0, 0, 1, 0,
  5632. 0, 0, 1), Vector3.new(71.0499878, 319.999939, 74.8899994))
  5633. createWall(CFrame.new(-75.8494415, 263.126404, -590.692261, -0.258819044, 0,
  5634. -0.965925753, 0, 1, 0, 0.965925753, 0, -0.258819044), Vector3.new(50.5499878,
  5635. 319.999939, 10.3899994))
  5636. createWall(CFrame.new(-47.9917145, 263.126404, -617.715088, -0.898792207, 0,
  5637. -0.43836987, 0, 1, 0, 0.43836987, 0, -0.898792207), Vector3.new(50.5499878,
  5638. 319.999939, 10.3899994))
  5639. createWall(CFrame.new(-5.61179876, 263.126404, -643.846008, -0.798630357, 0,
  5640. -0.601810753, 0, 1, 0, 0.601810753, 0, -0.798630357), Vector3.new(50.5499878,
  5641. 319.999939, 10.3899994))
  5642. 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,
  5643. 319.999939, 12.3899994))
  5644. 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,
  5645. 319.999939, 17.8899994))
  5646. createWall(CFrame.new(-91.2977295, 250.376404, -663.801025, 0.882947803, 0,
  5647. 0.469471604, 0, 1, 0, -0.469471604, 0, 0.882947803), Vector3.new(121.049988,
  5648. 76.499939, 17.8899994))
  5649. createWall(CFrame.new(-35.862896, 250.376404, -706.077393, 0.374607325, 0,
  5650. 0.927185595, 0, 1, 0, -0.927185595, 0, 0.374607325), Vector3.new(38.5499878,
  5651. 76.499939, 17.8899994))
  5652. createWall(CFrame.new(-36.112896, 250.376404, -724.327393, 1, 0, 0, 0, 1, 0,
  5653. 0, 0, 1), Vector3.new(24.0499878, 76.499939, 7.38999939))
  5654. createWall(CFrame.new(46.887104, 250.376404, -749.077393, 1, 0, 0, 0, 1, 0,
  5655. 0, 0, 1), Vector3.new(5.04998779, 76.499939, 56.8899994))
  5656. createWall(CFrame.new(35.387104, 250.376404, -795.827393, 1, 0, 0, 0, 1, 0,
  5657. 0, 0, 1), Vector3.new(28.0499878, 76.499939, 47.3899994))
  5658. createWall(CFrame.new(-37.862896, 250.376404, -787.827393, 1, 0, 0, 0, 1, 0,
  5659. 0, 0, 1), Vector3.new(27.5499878, 76.499939, 38.3899994))
  5660. createWall(CFrame.new(-48.362896, 250.376404, -748.077393, 1, 0, 0, 0, 1, 0,
  5661. 0, 0, 1), Vector3.new(6.54998779, 76.499939, 42.8899994))
  5662. createWall(CFrame.new(-38.4214478, 250.376404, -825.885254, 0.882947505, 0,
  5663. 0.469471455, 0, 1, 0, -0.469471455, 0, 0.882947505), Vector3.new(6.04998779,
  5664. 76.499939, 47.8899994))
  5665. createWall(CFrame.new(1.74190998, 250.376404, -838.746277, 0.882947505, 0,
  5666. 0.469471455, 0, 1, 0, -0.469471455, 0, 0.882947505), Vector3.new(14.0499878,
  5667. 76.499939, 120.889999))
  5668. createWall(CFrame.new(-78.6714478, 250.376404, -824.135254, 1, 0, 0, 0, 1, 0,
  5669. 0, 0, 1), Vector3.new(58.5499878, 76.499939, 44.3899994))
  5670. createWall(CFrame.new(-180.171448, 250.376404, -824.135254, 1, 0, 0, 0, 1, 0,
  5671. 0, 0, 1), Vector3.new(120.549988, 76.499939, 44.3899994))
  5672. createWall(CFrame.new(-187.421448, 250.376404, -892.635254, 1, 0, 0, 0, 1, 0,
  5673. 0, 0, 1), Vector3.new(95.0499878, 76.499939, 13.3899994))
  5674.  
  5675. createWall(CFrame.new(-114.421448, 250.376404, -892.635254, 1, 0, 0, 0, 1, 0,
  5676. 0, 0, 1), Vector3.new(25.0499878, 76.499939, 13.3899994))
  5677. createWall(CFrame.new(-58.4214478, 250.376404, -892.635254, 1, 0, 0, 0, 1, 0,
  5678. 0, 0, 1), Vector3.new(55.0499878, 76.499939, 13.3899994))
  5679. 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))
  5680. createWall(CFrame.new(-123.171448, 250.376404, -901.135254, 1, 0, 0, 0, 1, 0,
  5681. 0, 0, 1), Vector3.new(80.5499878, 76.499939, 0.38999939))
  5682. createWall(CFrame.new(-140.421448, 250.376404, -897.885254, 1, 0, 0, 0, 1, 0,
  5683. 0, 0, 1), Vector3.new(46.0499878, 76.499939, 6.88999939))
  5684. createWall(CFrame.new(-116.171448, 250.376404, -828.635254, 1, 0, 0, 0, 1, 0,
  5685. 0, 0, 1), Vector3.new(28.5499878, 76.499939, 10.3899994))
  5686. 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,
  5687. 165.859863, 74.1800003))
  5688. 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,
  5689. 165.859863, 75.3499756))
  5690. 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))
  5691. 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))
  5692. 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))
  5693. 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))
  5694. 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))
  5695. 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,
  5696. 165.859863, 17.4799919))
  5697. 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))
  5698. 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))
  5699. 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))
  5700. 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))
  5701. 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,
  5702. 165.859863, 17.4799919))
  5703. 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))
  5704. 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))
  5705. 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, -
  5706.  
  5707. 2.14439737e-08, -0.656059027), Vector3.new(57.8500061, 165.859863, 43.7400017))
  5708. 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))
  5709. 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))
  5710. 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,
  5711. 2.85986328, 126.479996))
  5712. createWall(CFrame.new(-613.74707, 269.706024, -1446.57446, -0.694678783,
  5713. 0.11874482, -0.709454238, -4.41642478e-05, 0.986274898, 0.165120974, 0.71931982,
  5714. 0.114737399, -0.685142875), Vector3.new(22.5299988, 5.10986328, 165.479996))
  5715. 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,
  5716. 165.859863, 61.6799927))
  5717. createWall(CFrame.new(-558.849976, 279.979858, -1109.59131, 1, 0, 0, 0, 1, 0,
  5718. 0, 0, 1), Vector3.new(1.87002563, 165.859863, 191.179993))
  5719. createWall(CFrame.new(-417.599976, 279.979858, -1110.34131, 1, 0, 0, 0, 1, 0,
  5720. 0, 0, 1), Vector3.new(1.37002563, 165.859863, 189.679993))
  5721. 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,
  5722. 165.859863, 93.3499756))
  5723. createWall(CFrame.new(-494.599976, 243.729858, -1086.84131, 1, 0, 0, 0, 1, 0,
  5724. 0, 0, 1), Vector3.new(161.370026, 29.3598633, 664.679993))
  5725. createWall(CFrame.new(-439.099976, 279.979858, -970.341309, 1, 0, 0, 0, 1, 0,
  5726. 0, 0, 1), Vector3.new(50.3700256, 165.859863, 95.6799927))
  5727. createWall(CFrame.new(-536.349976, 279.979858, -973.341309, 1, 0, 0, 0, 1, 0,
  5728. 0, 0, 1), Vector3.new(68.8700256, 165.859863, 89.6799927))
  5729. createWall(CFrame.new(-528.849976, 305.979858, -872.341309, 1, 0, 0, 0, 1, 0,
  5730. 0, 0, 1), Vector3.new(83.8700256, 113.859863, 132.679993))
  5731. createWall(CFrame.new(-522.703003, 305.979858, -802.900574, 0.965925813, 0,
  5732. 0.258819044, 0, 1, 0, -0.258819044, 0, 0.965925813), Vector3.new(83.8700256,
  5733. 113.859863, 87.1799927))
  5734. createWall(CFrame.new(-510.382385, 305.979858, -783.183533, 0.848048031, 0,
  5735. 0.529919267, 0, 1, 0, -0.529919267, 0, 0.848048031), Vector3.new(83.8700256,
  5736. 113.859863, 133.679993))
  5737. createWall(CFrame.new(-498.169495, 305.979858, -768.628662, 0.766044259, 0,
  5738. 0.642787516, 0, 1, 0, -0.642787516, 0, 0.766044259), Vector3.new(83.8700256,
  5739. 113.859863, 171.679993))
  5740. createWall(CFrame.new(-483.661346, 305.979858, -758.842712, 0.559192538, 0,
  5741. 0.82903707, 0, 1, 0, -0.82903707, 0, 0.559192538), Vector3.new(83.8700256,
  5742. 113.859863, 206.679993))
  5743. createWall(CFrame.new(-364.621796, 305.979858, -708.448608, 0.0174524225, 0,
  5744. 0.99984771, 0, 1, 0, -0.99984771, 0, 0.0174524225), Vector3.new(83.8700256,
  5745. 113.859863, 116.679993))
  5746. createWall(CFrame.new(-340.879913, 305.979858, -765.881897, -0.453990519, 0,
  5747. 0.891006529, 0, 1, 0, -0.891006529, 0, -0.453990519), Vector3.new(8.37002563,
  5748. 113.859863, 168.179993))
  5749. createWall(CFrame.new(-329.829071, 295.979858, -781.740417, -0.766044497, 0,
  5750. 0.642787576, 0, 1, 0, -0.642787576, 0, -0.766044497), Vector3.new(7.37002563,
  5751. 133.859863, 194.179993))
  5752. createWall(CFrame.new(-474.099976, 244.229858, -797.341309, 1, 0, 0, 0, 1, 0,
  5753. 0, 0, 1), Vector3.new(257.370026, 30.3598633, 85.6799927))
  5754. createWall(CFrame.new(-523.349976, 305.979858, -827.341309, 1, 0, 0, 0, 1, 0,
  5755. 0, 0, 1), Vector3.new(94.8700256, 113.859863, 42.6799927))
  5756. createWall(CFrame.new(-475.599976, 244.729858, -791.841309, 1, 0, 0, 0, 1, 0,
  5757. 0, 0, 1), Vector3.new(254.370026, 31.3598633, 74.6799927))
  5758. createWall(CFrame.new(-477.599976, 245.229858, -787.341309, 1, 0, 0, 0, 1, 0,
  5759.  
  5760. 0, 0, 1), Vector3.new(250.370026, 32.3598633, 65.6799927))
  5761. createWall(CFrame.new(-478.599976, 245.479858, -784.341309, 1, 0, 0, 0, 1, 0,
  5762. 0, 0, 1), Vector3.new(248.370026, 32.8598633, 59.6799927))
  5763. createWall(CFrame.new(-478.599976, 245.729858, -781.841309, 1, 0, 0, 0, 1, 0,
  5764. 0, 0, 1), Vector3.new(248.370026, 33.3598633, 54.6799927))
  5765. createWall(CFrame.new(-439.849976, 272.229858, -883.341309, 1, 0, 0, 0, 1, 0,
  5766. 0, 0, 1), Vector3.new(51.8700256, 86.3598633, 123.679993))
  5767. createWall(CFrame.new(-379.849976, 272.229858, -832.841309, 1, 0, 0, 0, 1, 0,
  5768. 0, 0, 1), Vector3.new(68.8700256, 86.3598633, 19.6799927))
  5769. createWall(CFrame.new(-325.158051, 241.062012, -822.414978, 0.789027095,
  5770. 0.334922045, 0.515037596, -0.390731275, 0.920504749, 4.84287739e-08, -0.474095762,
  5771. -0.201241508, 0.857167423), Vector3.new(9.37002563, 14.8598633, 8.17999268))
  5772. createWall(CFrame.new(-345.652191, 245.233566, -781.809937, 0.850778162,
  5773. 0.104462422, 0.515038013, -0.121869348, 0.992546141, 0, -0.511199117, 0.0627673566, 0.857167304), Vector3.new(31.3700256, 33.3598633, 54.6799927))
  5774. createWall(CFrame.new(-345.599976, 272.229858, -831.341309, 1, 0, 0, 0, 1, 0,
  5775. 0, 0, 1), Vector3.new(0.370025635, 86.3598633, 22.6799927))
  5776. createWall(CFrame.new(-341.921783, 249.663269, -835.159546, 0.848048091, 0,
  5777. 0.529919267, 0, 1, 0, -0.529919267, 0, 0.848048091), Vector3.new(29.3700256,
  5778. 76.8598633, 32.1799927))
  5779. createWall(CFrame.new(-320.835754, 230.047226, -824.571289, 0.776302516,
  5780. 0.0652871206, 0.626969218, -0.284233958, 0.92402339, 0.255714566, -0.562643945, 0.37671876, 0.735880792), Vector3.new(52.3700256, 31.3598633, 95.6799927))
  5781. createWall(CFrame.new(-289.109406, 220.88858, -848.419983, 0.778962135,
  5782. 0.0109720025, 0.626974881, -0.219083488, 0.941601098, 0.255714387, -0.587554574, 0.336551666, 0.735875428), Vector3.new(50.8700256, 30.8598633, 95.6799927))
  5783. createWall(CFrame.new(-89.6850128, 249.173721, -513.710205, 1, 0, 0, 0,
  5784. 0.994521797, 0.104528457, 0, -0.104528457, 0.994521797), Vector3.new(5.37002563,
  5785. 16.8598633, 30.6799927))
  5786. createWall(CFrame.new(-510.848236, 279.979858, -1284.52026, 0.798635483, 0,
  5787. 0.601814926, 0, 1, 0, -0.601814926, 0, 0.798635483), Vector3.new(12.8700256,
  5788. 165.859863, 39.6799927))
  5789. createWall(CFrame.new(-510.486816, 279.979858, -1279.47107, 0.798635483, 0,
  5790. 0.601814926, 0, 1, 0, -0.601814926, 0, 0.798635483), Vector3.new(7.37002563,
  5791. 165.859863, 42.1799927))
  5792. createWall(CFrame.new(-512.099976, 273.589722, -1203.34131, 1, 0, 0, 0, 1, 0,
  5793. 0, 0, 1), Vector3.new(15.3700256, 30.3598633, 9.67999268))
  5794. createWall(CFrame.new(-450.099976, 273.589722, -1203.34131, 1, 0, 0, 0, 1, 0,
  5795. 0, 0, 1), Vector3.new(20.3700256, 30.3598633, 9.67999268))
  5796. createWall(CFrame.new(-294.008087, 223.338501, -850.775452, 1, 0, 0, 0, 1, 0,
  5797. 0, 0, 1), Vector3.new(25.3700256, 23.8598633, 15.1799927))
  5798. createWall(CFrame.new(-328.758087, 223.338501, -860.025452, 1, 0, 0, 0, 1, 0,
  5799. 0, 0, 1), Vector3.new(18.8700256, 23.8598633, 7.67999268))
  5800. createWall(CFrame.new(-33.4668579, 239.946518, -446.482941, 1, 0, 0, 0,
  5801. 0.999999762, 0, 0, 0, 0.999999762), Vector3.new(21.8700256, 7.35986328,
  5802. 26.1799927))
  5803. createWall(CFrame.new(-24.9668579, 249.946518, -446.232941, 1, 0, 0, 0,
  5804. 0.999999762, 0, 0, 0, 0.999999762), Vector3.new(4.87002563, 27.3598633,
  5805. 20.6799927))
  5806. createWall(CFrame.new(-327.824738, 237.437775, -801.812622, 0.762220681,
  5807. 0.371759921, 0.529919147, -0.438371092, 0.898793995, 1.49011612e-08, -0.476288557,
  5808. -0.232301384, 0.84804821), Vector3.new(27.8700256, 31.8598633, 64.6799927))
  5809. createWall(CFrame.new(-336.758087, 222.838501, -903.525452, 1, 0, 0, 0, 1, 0,
  5810. 0, 0, 1), Vector3.new(159.870026, 22.8598633, 147.679993))
  5811. createWall(CFrame.new(-339.008087, 269.588501, -954.775452, 1, 0, 0, 0, 1, 0,
  5812. 0, 0, 1), Vector3.new(164.370026, 116.359863, 45.1799927))
  5813. createWall(CFrame.new(-271.008087, 243.088501, -925.025452, 1, 0, 0, 0, 1, 0,
  5814. 0, 0, 1), Vector3.new(28.3700256, 63.3598633, 104.679993))
  5815. createWall(CFrame.new(-399.008087, 223.338501, -934.775452, 1, 0, 0, 0, 1, 0,
  5816.  
  5817. 0, 0, 1), Vector3.new(35.3700256, 23.8598633, 85.1799927))
  5818. createWall(CFrame.new(-165.758087, 222.838501, -867.025452, 1, 0, 0, 0, 1, 0,
  5819. 0, 0, 1), Vector3.new(197.870026, 22.8598633, 69.6799927))
  5820. createWall(CFrame.new(-253.171448, 250.376404, -830.885254, 1, 0, 0, 0, 1, 0,
  5821. 0, 0, 1), Vector3.new(38.5499878, 76.499939, 57.8899994))
  5822. createWall(CFrame.new(-253.171448, 250.376404, -883.635254, 1, 0, 0, 0, 1, 0,
  5823. 0, 0, 1), Vector3.new(38.5499878, 76.499939, 21.3899994))
  5824. createWall(CFrame.new(-483.418579, 267.041748, -1068.15332, -0.999052703, 0.0155198928, 0.040654961, 5.86081296e-06, 0.934192657, 0.356768906, -0.04351658,
  5825. 0.356431216, -0.933307588), Vector3.new(31.6913509, 2.7721417, 4.24422979))
  5826. 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,
  5827. 18.896841))
  5828. 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,
  5829. 4.3225441))
  5830. createWall(CFrame.new(-481.38623, 266.034943, -1114.70557, 0.999046981,
  5831. 0.0144734401, -0.0411781222, 2.83066183e-05, 0.943206012, 0.332208335,
  5832. 0.0436476506, -0.331892937, 0.942306757), Vector3.new(31.6913509, 2.76432514,
  5833. 4.3225441))
  5834. createWall(CFrame.new(-480.943359, 260.928314, -1124.85657, 0.999047458,
  5835. 0.0207526181, -0.0383878089, 9.90927219e-07, 0.879672289, 0.475580454,
  5836. 0.0436382294, -0.475127459, 0.878834248), Vector3.new(31.6913509, 2.74081826,
  5837. 18.896841))
  5838. 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,
  5839. 2.74081826, 23.9508228))
  5840. createWall(CFrame.new(-481.854034, 268.718964, -1104.005, 0.999045253,
  5841. 0.00244113314, -0.0436193869, -7.33807683e-05, 0.99853003, 0.0542014502,
  5842. 0.0436875783, -0.0541465022, 0.997576892), Vector3.new(31.6913509, 2.74081826,
  5843. 4.3225441))
  5844. 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,
  5845. 4.3225441))
  5846. createWall(CFrame.new(-481.506134, 267.04184, -1111.95569, 0.999052703,
  5847. 0.0155199626, -0.040654961, 5.79282641e-06, 0.934192657, 0.356768847, 0.0435166061,
  5848. -0.356431156, 0.933307588), Vector3.new(31.6913509, 2.7721417, 4.24422979))
  5849. createWall(CFrame.new(-481.676361, 268.208527, -1108.06177, 0.999044776,
  5850. 0.00906729046, -0.0427475348, 9.39778984e-05, 0.977787733, 0.209597453,
  5851. 0.0436984971, -0.20940125, 0.976852894), Vector3.new(31.6913509, 2.74081826,
  5852. 4.3225441))
  5853. 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,
  5854. 4.3225441))
  5855. createWall(CFrame.new(-483.349976, 244.229858, -1089.84131, 1, 0, 0, 0, 1, 0,
  5856. 0, 0, 1), Vector3.new(39.8700256, 30.3598633, 91.6799927))
  5857. createWall(CFrame.new(-367.75824, 249.663269, -845.841492, 0.848048091, 0,
  5858. 0.529919267, 0, 1, 0, -0.529919267, 0, 0.848048091), Vector3.new(34.8700256,
  5859. 76.8598633, 13.6799927))
  5860. createWall(CFrame.new(-43.2580872, 223.338501, -867.025452, 1, 0, 0, 0, 1, 0,
  5861. 0, 0, 1), Vector3.new(50.8700256, 23.8598633, 69.6799927))
  5862. createWall(CFrame.new(-40.5080872, 223.838501, -867.025452, 1, 0, 0, 0, 1, 0,
  5863. 0, 0, 1), Vector3.new(47.3700256, 24.8598633, 69.6799927))
  5864. createWall(CFrame.new(4.49191284, 224.838501, -762.025452, 1, 0, 0, 0, 1, 0,
  5865. 0, 0, 1), Vector3.new(99.3700256, 26.8598633, 124.679993))
  5866.  
  5867. createWall(CFrame.new(-25.2580872, 224.338501, -852.025452, 1, 0, 0, 0, 1, 0,
  5868. 0, 0, 1), Vector3.new(36.8700256, 25.8598633, 55.6799927))
  5869. createWall(CFrame.new(-37.7580872, 237.588501, -825.775452, 1, 0, 0, 0, 1, 0,
  5870. 0, 0, 1), Vector3.new(11.8700256, 52.3598633, 22.1799927))
  5871. createWall(CFrame.new(10.7419128, 224.838501, -837.275452, 1, 0, 0, 0, 1, 0,
  5872. 0, 0, 1), Vector3.new(86.8700256, 26.8598633, 50.1799927))
  5873. createWall(CFrame.new(4.49191284, 224.338501, -703.525452, 1, 0, 0, 0, 1, 0,
  5874. 0, 0, 1), Vector3.new(99.3700256, 25.8598633, 15.6799927))
  5875. createWall(CFrame.new(4.49191284, 223.838501, -701.525452, 1, 0, 0, 0, 1, 0,
  5876. 0, 0, 1), Vector3.new(99.3700256, 24.8598633, 19.6799927))
  5877. createWall(CFrame.new(8.24191284, 223.338501, -667.775452, 1, 0, 0, 0, 1, 0,
  5878. 0, 0, 1), Vector3.new(91.8700256, 23.8598633, 87.1799927))
  5879. createWall(CFrame.new(-32.2580872, 223.088501, -637.275452, 1, 0, 0, 0, 1, 0,
  5880. 0, 0, 1), Vector3.new(172.870026, 23.3598633, 148.179993))
  5881. createWall(CFrame.new(-115.024994, 237.18399, -535.179443, 1, 0, 0, 0,
  5882. 0.994521797, 0.104528457, 0, -0.104528457, 0.994521797), Vector3.new(190.049988,
  5883. 2.49993896, 75.8899994))
  5884. createWall(CFrame.new(-110.508087, 223.338501, -580.775452, 1, 0, 0, 0, 1, 0,
  5885. 0, 0, 1), Vector3.new(16.3700256, 23.8598633, 35.1799927))
  5886. 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,
  5887. 24.3598633, 64.1799927))
  5888. createWall(CFrame.new(-114.508087, 246.948364, -651.275452, 1, 0, 0, 0, 1, 0,
  5889. 0, 0, 1), Vector3.new(13.3700256, 24.3598633, 42.1799927))
  5890. createWall(CFrame.new(-327.09436, 240.060562, -797.918823, 0.789027095,
  5891. 0.334922045, 0.515037596, -0.390731275, 0.920504749, 4.84287739e-08, -0.474095762,
  5892. -0.201241508, 0.857167423), Vector3.new(29.8700256, 28.8598633, 63.1799927))
  5893. createWall(CFrame.new(-664.139648, 282.215668, -1495.0968, -0.691134691,
  5894. 0.299709588, -0.657652676, 0, 0.909961283, 0.414693236, 0.722725987, 0.286608875, 0.628905833), Vector3.new(25.5299988, 5.60986328, 12.4799957))
  5895. wait(.1)
  5896. game:GetService("Workspace").dungeon.room5["barrier"]:Destroy()
  5897. if _G.destroy_map then
  5898. --workspace.Terrain:Clear()
  5899. for i,v in pairs(workspace:GetChildren()) do
  5900. if v.ClassName == "Model" or v.ClassName == "Part" or v.ClassName ==
  5901. "UnionOperation" or v.ClassName == "WedgePart" then
  5902. if v ~= game.Players.LocalPlayer.Character and v.Name ~= regionPartName
  5903. then
  5904. v:Destroy()
  5905. end
  5906. end
  5907. end
  5908. end
  5909. while not
  5910. game:GetService("Workspace").dungeon.room5.enemyFolder:FindFirstChild("Spider
  5911. Queen") do -- wait for spider boss to spawn
  5912. wait(1)
  5913. end
  5914. while not
  5915. game:GetService("Workspace").dungeon.room5.enemyFolder:FindFirstChild("Spider
  5916. Queen"):FindFirstChild("HumanoidRootPart") do
  5917. wait(1)
  5918. end
  5919. local objPart = createWall(CFrame.new(-198.633, 235.589, -866.15),
  5920. Vector3.new(3.62, 2.86, 4.93))
  5921. objPart.CanCollide = false
  5922. objectiveExists = true
  5923.  
  5924. objectiveObject = objPart
  5925. while wait(1) do
  5926. local _,_,_,root = getPlayer()
  5927. if getMag(root.Position, objPart.Position) < 5 then break end
  5928. end
  5929. objectiveExists = false
  5930. objectiveObject = nil
  5931. end
  5932. function kingFix()
  5933. createWall(CFrame.new(-265.670135, 39.9012566, 821.916565, 0.267238349, 0,
  5934. 0.963630438, 0, 1, 0, -0.963630438, 0, 0.267238349), Vector3.new(205.490036,
  5935. 121.409996, 83.2699738))
  5936. createWall(CFrame.new(-84.1567535, 39.9012566, 206.857864, -4.37113883e-08,
  5937. 0, -1, 0, 1, 0, 1, 0, -4.37113883e-08), Vector3.new(7.70991707, 121.409996,
  5938. 20.2999802))
  5939. createWall(CFrame.new(-87.2210388, 39.9012566, 185.695068, 1, 0, 0, 0, 1, 0,
  5940. 0, 0, 1), Vector3.new(7.70991707, 121.409996, 38.0599823))
  5941. createWall(CFrame.new(30.827137, 50.6512566, 315.457825, -4.37113883e-08, 0,
  5942. -1, 0, 1, 0, 1, 0, -4.37113883e-08), Vector3.new(224.909897, 99.909996, 40.819973))
  5943. createWall(CFrame.new(-201.965851, 39.9012566, 538.666504, 0.999657333, 0,
  5944. 0.02617695, 0, 1, 0, -0.02617695, 0, 0.999657333), Vector3.new(182.820007,
  5945. 121.409996, 128.269974))
  5946. 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))
  5947. createWall(CFrame.new(-13.5106697, 61.6240005, -82.0305099, 0.0261769947, 0,
  5948. -0.999657333, 0, 1, 0, 0.999657333, 0, 0.0261769947), Vector3.new(60.3699608,
  5949. 70.859993, 81.8800201))
  5950. createWall(CFrame.new(59.8843384, 39.9012566, 206.815186, 1, 0, 0, 0, 1, 0,
  5951. 0, 0, 1), Vector3.new(29.4499016, 121.409996, 7.64001656))
  5952. createWall(CFrame.new(-52.9094086, 39.9012566, 315.457825, -4.37113883e-08,
  5953. 0, -1, 0, 1, 0, 1, 0, -4.37113883e-08), Vector3.new(224.909897, 121.409996,
  5954. 40.819973))
  5955. 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))
  5956. createWall(CFrame.new(37.6457291, 39.9012566, 151.17514, 1, 0, 0, 0, 1, 0, 0,
  5957. 0, 1), Vector3.new(62.3399086, 121.409996, 43.2400017))
  5958. 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,
  5959. 70.859993, 81.8800201))
  5960. createWall(CFrame.new(-55.767437, 39.9012566, 12.0568619, -4.37113883e-08, 0,
  5961. 1, 0, 1, 0, -1, 0, -4.37113883e-08), Vector3.new(242.48996, 121.409996,
  5962. 43.2400017))
  5963. createWall(CFrame.new(31.8941364, 39.9012566, 16.1985588, 0.0174523834, 0,
  5964. 0.99984771, 0, 1, 0, -0.99984771, 0, 0.0174523834), Vector3.new(234.210022,
  5965. 121.409996, 43.2400017))
  5966. 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,
  5967. 68.6600037, 81.8800201))
  5968. createWall(CFrame.new(66.2143402, 39.9012566, 170.095139, 1, 0, 0, 0, 1, 0,
  5969. 0, 0, 1), Vector3.new(16.7899017, 121.409996, 81.0800095))
  5970. 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,
  5971. 121.409996, 155.169968))
  5972. 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,
  5973. 121.409996, 155.169968))
  5974.  
  5975. 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))
  5976. 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))
  5977. 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))
  5978. 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))
  5979. 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))
  5980. 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))
  5981. createWall(CFrame.new(-230.756363, 39.9012566, 1027.81616, 1, 0, 0, 0, 1, 0,
  5982. 0, 0, 1), Vector3.new(40.8199997, 121.409996, 136.48999))
  5983. createWall(CFrame.new(-253.298645, 39.9012566, 919.571655, 0.902585268, 0,
  5984. 0.430511087, 0, 1, 0, -0.430511087, 0, 0.902585268), Vector3.new(43.3199997,
  5985. 121.409996, 114.269997))
  5986. createWall(CFrame.new(-59.9060516, 39.9012566, 151.17514, 1, 0, 0, 0, 1, 0,
  5987. 0, 0, 1), Vector3.new(62.3399086, 121.409996, 43.2400017))
  5988. createWall(CFrame.new(37.8478165, 16.8362617, -190.005951, -4.37113883e-08,
  5989. 0, 1, 0, 1, 0, -1, 0, -4.37113883e-08), Vector3.new(16.16996, 75.2800064,
  5990. 17.949995))
  5991. 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))
  5992. createWall(CFrame.new(-78.8311462, 39.9012566, -291.1315, -4.37113883e-08, 0,
  5993. 1, 0, 1, 0, -1, 0, -4.37113883e-08), Vector3.new(107.669968, 121.409996,
  5994. 6.42999887))
  5995. createWall(CFrame.new(-114.162926, 16.8362617, -234.379257, -4.37113883e-08,
  5996. 0, 1, 0, 1, 0, -1, 0, -4.37113883e-08), Vector3.new(2.349967, 75.2800064,
  5997. 3.74999881))
  5998. createWall(CFrame.new(43.2896805, 16.8362617, -174.360001, -1, -8.74227766e08, 0, -8.74227766e-08, 1, -8.74227766e-08, 7.64274186e-15, -8.74227766e-08, -1),
  5999. Vector3.new(16.16996, 75.2800064, 17.949995))
  6000. 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,
  6001. 70.859993, 81.8800201))
  6002. createWall(CFrame.new(-187.323776, 16.8362617, -240.981262, -4.37113883e-08,
  6003. 0, 1, 0, 1, 0, -1, 0, -4.37113883e-08), Vector3.new(3.3399663, 75.2800064,
  6004. 7.0199976))
  6005. createWall(CFrame.new(-71.4555283, -9.84874344, 8.86862564, 0.0261769947, 0,
  6006. -0.999657333, 0, 1, 0, 0.999657333, 0, 0.0261769947), Vector3.new(930.549988,
  6007. 24.909996, 401.669983))
  6008. createWall(CFrame.new(-141.047348, 39.9012566, -346.645721, -1, -8.74227766e08, 0, -8.74227766e-08, 1, -8.74227766e-08, 7.64274186e-15, -8.74227766e-08, -1),
  6009. Vector3.new(136.869934, 121.409996, 6.42999887))
  6010. 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))
  6011. createWall(CFrame.new(-209.860611, 39.9012566, -292.526398, -4.37113883e-08,
  6012. 0, 1, 0, 1, 0, -1, 0, -4.37113883e-08), Vector3.new(119.619957, 121.409996,
  6013. 6.42999887))
  6014. createWall(CFrame.new(17.7576237, -9.09874344, -452.124695, 0.0261769947, 0,
  6015.  
  6016. -0.999657333, 0, 1, 0, 0.999657333, 0, 0.0261769947), Vector3.new(28.5499878,
  6017. 25.409996, 231.169983))
  6018. 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,
  6019. 26.409996, 364.169983))
  6020. 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))
  6021. createWall(CFrame.new(-250.886627, -11.7916269, -731.871277, -4.37113883e-08,
  6022. 0, -1, 0, 1, 0, 1, 0, -4.37113883e-08), Vector3.new(146.550003, 46.909996,
  6023. 39.6699829))
  6024. createWall(CFrame.new(-250.886627, -11.7916269, -513.371277, -4.37113883e-08,
  6025. 0, -1, 0, 1, 0, 1, 0, -4.37113883e-08), Vector3.new(116.550003, 46.909996,
  6026. 39.6699829))
  6027. createWall(CFrame.new(-413.386627, 24.458374, -464.371277, -4.37113883e-08,
  6028. 0, -1, 0, 1, 0, 1, 0, -4.37113883e-08), Vector3.new(18.5500031, 119.409996,
  6029. 364.669983))
  6030. createWall(CFrame.new(-414.136627, 24.458374, -779.121277, -4.37113883e-08,
  6031. 0, -1, 0, 1, 0, 1, 0, -4.37113883e-08), Vector3.new(18.0499878, 119.409996,
  6032. 366.169983))
  6033. createWall(CFrame.new(-464.386597, -19.291626, -617.371277, -4.37113883e-08,
  6034. 0, -1, 0, 1, 0, 1, 0, -4.37113883e-08), Vector3.new(324.549988, 31.909996,
  6035. 0.66998291))
  6036. createWall(CFrame.new(-366.386597, -22.791626, -617.371277, -4.37113883e-08,
  6037. 0, -1, 0, 1, 0, 1, 0, -4.37113883e-08), Vector3.new(324.549988, 24.909996,
  6038. 197.669983))
  6039. createWall(CFrame.new(-111.886597, 24.458374, -659.621277, -4.37113883e-08,
  6040. 0, -1, 0, 1, 0, 1, 0, -4.37113883e-08), Vector3.new(25.0499878, 119.409996,
  6041. 255.669983))
  6042. createWall(CFrame.new(-110.386597, 24.458374, -560.871277, -4.37113883e-08,
  6043. 0, -1, 0, 1, 0, 1, 0, -4.37113883e-08), Vector3.new(50.5499878, 119.409996,
  6044. 258.669983))
  6045. createWall(CFrame.new(79.3634033, 24.458374, -548.871277, -4.37113883e-08, 0,
  6046. -1, 0, 1, 0, 1, 0, -4.37113883e-08), Vector3.new(164.549988, 119.409996,
  6047. 63.1699829))
  6048. createWall(CFrame.new(56.8634033, 24.458374, -641.121277, -4.37113883e-08, 0,
  6049. -1, 0, 1, 0, 1, 0, -4.37113883e-08), Vector3.new(22.0499878, 119.409996,
  6050. 108.169983))
  6051. createWall(CFrame.new(11.1134005, 24.458374, -536.621277, -4.37113883e-08, 0,
  6052. -1, 0, 1, 0, 1, 0, -4.37113883e-08), Vector3.new(136.049988, 119.409996,
  6053. 16.6699829))
  6054. createWall(CFrame.new(-13.6366024, 24.458374, -469.621277, -4.37113883e-08,
  6055. 0, -1, 0, 1, 0, 1, 0, -4.37113883e-08), Vector3.new(2.05000305, 119.409996,
  6056. 66.1699829))
  6057. createWall(CFrame.new(-43.3866081, 24.458374, -390.371277, -4.37113883e-08,
  6058. 0, -1, 0, 1, 0, 1, 0, -4.37113883e-08), Vector3.new(160.550003, 119.409996,
  6059. 6.66998291))
  6060. createWall(CFrame.new(111.363388, 24.458374, -390.371277, -4.37113883e-08, 0,
  6061. -1, 0, 1, 0, 1, 0, -4.37113883e-08), Vector3.new(160.550003, 119.409996,
  6062. 6.16998291))
  6063. createWall(CFrame.new(77.6133881, 24.458374, -258.121277, -4.37113883e-08, 0,
  6064. -1, 0, 1, 0, 1, 0, -4.37113883e-08), Vector3.new(128.050003, 119.409996,
  6065. 73.6699829))
  6066. createWall(CFrame.new(-22.8866119, 24.458374, -280.621277, -4.37113883e-08,
  6067. 0, -1, 0, 1, 0, 1, 0, -4.37113883e-08), Vector3.new(83.0500031, 119.409996,
  6068. 90.6699829))
  6069. createWall(CFrame.new(-90.8866119, 24.458374, -216.621277, -4.37113883e-08,
  6070. 0, -1, 0, 1, 0, 1, 0, -4.37113883e-08), Vector3.new(60.0500031, 119.409996,
  6071. 49.6699829))
  6072.  
  6073. createWall(CFrame.new(-105.136612, 24.458374, -148.621277, -4.37113883e-08,
  6074. 0, -1, 0, 1, 0, 1, 0, -4.37113883e-08), Vector3.new(25.0500031, 119.409996,
  6075. 78.1699829))
  6076. createWall(CFrame.new(-177.886612, 24.458374, -184.871277, -4.37113883e-08,
  6077. 0, -1, 0, 1, 0, 1, 0, -4.37113883e-08), Vector3.new(97.5500031, 119.409996,
  6078. 73.6699829))
  6079. createWall(CFrame.new(-43.8866119, 24.458374, -79.8712769, -4.37113883e-08,
  6080. 0, -1, 0, 1, 0, 1, 0, -4.37113883e-08), Vector3.new(126.550003, 119.409996,
  6081. 47.6699829))
  6082. createWall(CFrame.new(21.6133881, 24.458374, -79.8712769, -4.37113883e-08, 0,
  6083. -1, 0, 1, 0, 1, 0, -4.37113883e-08), Vector3.new(126.550003, 119.409996,
  6084. 46.6699829))
  6085. createWall(CFrame.new(-595.011597, 29.583374, -617.371277, -4.37113883e-08,
  6086. 0, -1, 0, 1, 0, 1, 0, -4.37113883e-08), Vector3.new(324.549988, 129.660004,
  6087. 5.91998291))
  6088. createWall(CFrame.new(-528.511597, -4.16662598, -617.371277, -4.37113883e-08,
  6089. 0, -1, 0, 1, 0, 1, 0, -4.37113883e-08), Vector3.new(324.549988, 1.15999603,
  6090. 128.919983))
  6091. createWall(CFrame.new(-542.636597, 9.45837402, -619.371277, -4.37113883e-08,
  6092. 0, -1, 0, 1, 0, 1, 0, -4.37113883e-08), Vector3.new(36.5499878, 25.909996,
  6093. 41.6699829))
  6094. createWall(CFrame.new(-559.011597, 23.958374, -619.371277, -4.37113883e-08,
  6095. 0, -1, 0, 1, 0, 1, 0, -4.37113883e-08), Vector3.new(36.5499878, 54.909996,
  6096. 8.91998291))
  6097. createWall(CFrame.new(-580.636597, 44.083374, -566.496277, -4.37113883e-08,
  6098. 0, -1, 0, 1, 0, 1, 0, -4.37113883e-08), Vector3.new(42.2999878, 95.159996,
  6099. 42.1699829))
  6100. createWall(CFrame.new(-582.511597, 44.083374, -672.246277, -4.37113883e-08,
  6101. 0, -1, 0, 1, 0, 1, 0, -4.37113883e-08), Vector3.new(41.2999878, 95.159996,
  6102. 38.4199829))
  6103. createWall(CFrame.new(-12.2616129, 24.458374, -255.746277, -4.37113883e-08,
  6104. 0, -1, 0, 1, 0, 1, 0, -4.37113883e-08), Vector3.new(132.800003, 119.409996,
  6105. 34.9199829))
  6106. if _G.destroy_map then
  6107. for i,v in pairs(workspace:GetChildren()) do
  6108. if v.ClassName == "Model" or v.ClassName == "Part" or v.ClassName ==
  6109. "UnionOperation" or v.ClassName == "WedgePart" or v.ClassName == "MeshPart" then
  6110. if v ~= game.Players.LocalPlayer.Character and v.Name ~= regionPartName
  6111. then
  6112. v:Destroy()
  6113. end
  6114. end
  6115. end
  6116. end
  6117. wait(5)
  6118. while not
  6119. game:GetService("Workspace").dungeon.room3.enemyFolder:FindFirstChild("Beast
  6120. Master") do
  6121. wait(1)
  6122. end
  6123. while not
  6124. game:GetService("Workspace").dungeon.room3.enemyFolder:FindFirstChild("Beast
  6125. Master"):FindFirstChild("HumanoidRootPart") do
  6126. wait(1)
  6127. end
  6128. -- cant path to second boss, paths to second boss area until hes in position
  6129. forceObjectiveExists = true
  6130. thePart.CFrame = CFrame.new(3.85899, 5.60531, 31.656)
  6131. local t =
  6132.  
  6133. game:GetService("Workspace").dungeon.room3.enemyFolder:FindFirstChild("Beast
  6134. Master")
  6135. while t.PrimaryPart.Position.Y > 35 do
  6136. wait()
  6137. end
  6138. forceObjectiveExists = false
  6139. end
  6140. function winterFix()
  6141. local dun = waitForExist(workspace, "dungeon")
  6142. workspace.Terrain:Clear()
  6143. 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))
  6144. 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))
  6145. 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))
  6146. 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))
  6147. 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))
  6148. 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))
  6149. 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))
  6150. 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))
  6151. 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))
  6152. 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))
  6153. 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))
  6154. 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))
  6155. 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))
  6156. 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))
  6157. 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))
  6158. 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))
  6159. 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))
  6160. 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))
  6161. 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))
  6162. 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))
  6163. 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))
  6164. 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))
  6165. 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))
  6166. createWall(CFrame.new(71.0176468, 61.25, -322.940674, 2.98023224e-08, 0, -
  6167.  
  6168. 0.999999881, 0, 1, 0, 0.999999881, 0, 2.98023224e-08), Vector3.new(14.5, 35.5,
  6169. 37.5))
  6170. 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))
  6171. 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))
  6172. 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))
  6173. 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,
  6174. 141.5))
  6175. 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))
  6176. 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,
  6177. 167))
  6178. 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))
  6179. createWall(CFrame.new(43.5176506, 42.4555817, -310.699219, 2.80050312e-08,
  6180. 1.01929967e-08, -1, -0.342020154, 0.939692736, 2.50114324e-16, 0.939692736,
  6181. 0.342020154, 2.98023295e-08), Vector3.new(19.5, 9.5, 71.5))
  6182. 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))
  6183. 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,
  6184. 6.5))
  6185. 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))
  6186. createWall(CFrame.new(44.2676353, 44.4752426, -493.355347, 2.76322254e-08,
  6187. 1.11641461e-08, -0.999999642, -0.37460652, 0.927183867, 0, 0.927183509, 0.37460655,
  6188. 2.98023153e-08), Vector3.new(15, 8.5, 57))
  6189. 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,
  6190. 94.5))
  6191. 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))
  6192. 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))
  6193. 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))
  6194. 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))
  6195. 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))
  6196. 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,
  6197. 2.98023224e-08), Vector3.new(9, 9.5, 43))
  6198. 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))
  6199. createWall(CFrame.new(50.2676353, 46, -716.690613, 2.98023259e-08, 0, -1, 0,
  6200. 1, 0, 1, 0, 2.98023259e-08), Vector3.new(70, 17, 29))
  6201. 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))
  6202. 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))
  6203. 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,
  6204. 141.5))
  6205.  
  6206. 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))
  6207. 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,
  6208. 23.5))
  6209. 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))
  6210. 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))
  6211. 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))
  6212. createWall(CFrame.new(39.0176201, 44.5, -1058.19067, 2.98023259e-08, 0, -1,
  6213. 0, 1, 0, 1, 0, 2.98023259e-08), Vector3.new(196, 15, 144.5))
  6214. 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))
  6215. 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))
  6216. 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))
  6217. 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))
  6218. 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))
  6219. 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))
  6220. 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,
  6221. 66.5))
  6222. 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,
  6223. 30.5))
  6224. 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,
  6225. 20.5))
  6226. 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))
  6227. createWall(CFrame.new(106.267624, 45.5, -1058.19067, 2.98023259e-08, 0, -1,
  6228. 0, 1, 0, 1, 0, 2.98023259e-08), Vector3.new(196, 17, 33))
  6229. createWall(CFrame.new(39.0176239, 45.5, -987.940674, 2.98023259e-08, 0, -1,
  6230. 0, 1, 0, 1, 0, 2.98023259e-08), Vector3.new(55.5, 17, 144.5))
  6231. createWall(CFrame.new(-19.482378, 45.5, -1058.94067, 2.98023259e-08, 0, -1,
  6232. 0, 1, 0, 1, 0, 2.98023259e-08), Vector3.new(197.5, 17, 32.5))
  6233. createWall(CFrame.new(39.7676201, 45.5, -1145.44067, 2.98023259e-08, 0, -1,
  6234. 0, 1, 0, 1, 0, 2.98023259e-08), Vector3.new(24.5, 17, 146))
  6235. createWall(CFrame.new(105.017624, 45, -1058.19067, 2.98023259e-08, 0, -1, 0,
  6236. 1, 0, 1, 0, 2.98023259e-08), Vector3.new(196, 16, 35.5))
  6237. createWall(CFrame.new(39.0176239, 45, -988.940674, 2.98023259e-08, 0, -1, 0,
  6238. 1, 0, 1, 0, 2.98023259e-08), Vector3.new(57.5, 16, 144.5))
  6239. createWall(CFrame.new(-18.482378, 45, -1058.94067, 2.98023259e-08, 0, -1, 0,
  6240. 1, 0, 1, 0, 2.98023259e-08), Vector3.new(197.5, 16, 34.5))
  6241. createWall(CFrame.new(39.7676201, 45, -1143.69067, 2.98023259e-08, 0, -1, 0,
  6242. 1, 0, 1, 0, 2.98023259e-08), Vector3.new(28, 16, 146))
  6243. createWall(CFrame.new(24.7676239, 46, -1016.19067, 2.98023259e-08, 0, -1, 0,
  6244. 1, 0, 1, 0, 2.98023259e-08), Vector3.new(13, 18, 28))
  6245. createWall(CFrame.new(2.2676239, 45.5, -1031.94067, 2.98023259e-08, 0, -1, 0,
  6246. 1, 0, 1, 0, 2.98023259e-08), Vector3.new(44.5, 17, 28))
  6247. createWall(CFrame.new(1.01762342, 46, -1041.44067, 2.98023259e-08, 0, -1, 0,
  6248. 1, 0, 1, 0, 2.98023259e-08), Vector3.new(63.5, 18, 25.5))
  6249.  
  6250. createWall(CFrame.new(4.76762342, 50, -1050.69067, 2.98023259e-08, 0, -1, 0,
  6251. 1, 0, 1, 0, 2.98023259e-08), Vector3.new(44, 26, 23))
  6252. createWall(CFrame.new(-1.98237896, 50, -1124.94067, 2.98023259e-08, 0, -1, 0,
  6253. 1, 0, 1, 0, 2.98023259e-08), Vector3.new(28.5, 26, 19.5))
  6254. createWall(CFrame.new(13.267621, 50, -1130.19067, 2.98023259e-08, 0, -1, 0,
  6255. 1, 0, 1, 0, 2.98023259e-08), Vector3.new(18, 26, 50))
  6256. createWall(CFrame.new(82.0176239, 50, -1130.19067, 2.98023259e-08, 0, -1, 0,
  6257. 1, 0, 1, 0, 2.98023259e-08), Vector3.new(18, 26, 18.5))
  6258. createWall(CFrame.new(84.2676239, 50, -1124.44067, 2.98023259e-08, 0, -1, 0,
  6259. 1, 0, 1, 0, 2.98023259e-08), Vector3.new(29.5, 26, 14))
  6260. createWall(CFrame.new(84.2676239, 50, -1028.19067, 2.98023259e-08, 0, -1, 0,
  6261. 1, 0, 1, 0, 2.98023259e-08), Vector3.new(20, 26, 14))
  6262. createWall(CFrame.new(75.5176239, 50, -1018.94067, 2.98023259e-08, 0, -1, 0,
  6263. 1, 0, 1, 0, 2.98023259e-08), Vector3.new(9.5, 26, 31.5))
  6264. createWall(CFrame.new(78.0176239, 45.25, -1024.19067, 2.98023259e-08, 0, -1,
  6265. 0, 1, 0, 1, 0, 2.98023259e-08), Vector3.new(20, 16.5, 26.5))
  6266. 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,
  6267. 15.25))
  6268. wait(.1)
  6269. if _G.destroy_map then
  6270. workspace.Terrain:Clear()
  6271. for i,v in pairs(workspace:GetChildren()) do
  6272. if v.ClassName == "Model" or v.ClassName == "Part" or v.ClassName ==
  6273. "UnionOperation" or v.ClassName == "WedgePart" then
  6274. if v ~= game.Players.LocalPlayer.Character and v.Name ~= regionPartName
  6275. then
  6276. v:Destroy()
  6277. end
  6278. end
  6279. end
  6280. for i,room in pairs(workspace.dungeon:GetChildren()) do
  6281. for j, v in pairs(room:GetChildren()) do
  6282. if v.ClassName == "Model" or v.ClassName == "Part" or v.ClassName ==
  6283. "UnionOperation" or v.ClassName == "WedgePart" and not
  6284. v:FindFirstChild("HumanoidRootPart") then
  6285. if v ~= game.Players.LocalPlayer.Character and v.Name ~=
  6286. regionPartName then
  6287. v:Destroy()
  6288. end
  6289. end
  6290. end
  6291. end
  6292. end
  6293. while not
  6294. game:GetService("Workspace").dungeon.bossRoom.enemyFolder:FindFirstChildOfClass("Mo
  6295. del") do
  6296. wait(1)
  6297. end
  6298. while not
  6299. game:GetService("Workspace").dungeon.bossRoom.enemyFolder:FindFirstChildOfClass("Mo
  6300. del"):FindFirstChild("HumanoidRootPart") do
  6301. wait(1)
  6302. end
  6303. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame =
  6304. game:GetService("Workspace").dungeon.bossRoom.enemyFolder:FindFirstChildOfClass("Mo
  6305. del"):FindFirstChild("HumanoidRootPart").CFrame * CFrame.new(0,0,5)
  6306. end
  6307.  
  6308. function desertFix()
  6309. local dun = waitForExist(workspace, "dungeon")
  6310. for i,v in pairs(dun:GetChildren()) do
  6311. for j, k in pairs(v:GetChildren()) do
  6312. if k.ClassName == "Part" then
  6313. if k.Name == "barrier" then
  6314. k:Destroy()
  6315. end
  6316. local n = k.Orientation.X
  6317. if n ~= math.floor(n) then
  6318. k:Destroy()
  6319. end
  6320. local n = k.Orientation.Y
  6321. if n ~= math.floor(n) then
  6322. k:Destroy()
  6323. end
  6324. local n = k.Orientation.Z
  6325. if n ~= math.floor(n) then
  6326. k:Destroy()
  6327. end
  6328. elseif k.ClassName == "Model" or k.ClassName == "UnionOperation" or
  6329. k.ClassName == "WedgePart" then
  6330. k:Destroy()
  6331. end
  6332. end
  6333. end
  6334. end
  6335. function eggFix()
  6336. game.ReplicatedStorage.remotes.equipSet:FireServer(_G.eggClass)
  6337. local dun = waitForExist(workspace, "Map")
  6338. for i,v in pairs(dun.Parts.Terrain:GetChildren()) do
  6339. cs:AddTag(v, "RayWhitelist")
  6340. end
  6341. for i,v in pairs(dun.Parts.Misc:GetChildren()) do
  6342. cs:AddTag(v, "RayWhitelist")
  6343. end
  6344. for i,v in pairs(dun.Barriers:GetChildren()) do
  6345. cs:AddTag(v, "RayWhitelist")
  6346. end
  6347. for i,v in pairs(dun.Models:GetChildren()) do
  6348. cs:AddTag(v, "RayWhitelist")
  6349. end
  6350. dun.Props:Destroy()
  6351. wait(5)
  6352. while not
  6353. game:GetService("Workspace").dungeon.bossRoom.enemyFolder:FindFirstChild("Egg
  6354. Mech") do
  6355. wait(1)
  6356. end
  6357. while not
  6358. game:GetService("Workspace").dungeon.bossRoom.enemyFolder:FindFirstChild("Egg
  6359. Mech"):FindFirstChild("HumanoidRootPart") do
  6360. wait(1)
  6361. end
  6362. -- cant path to second boss, paths to second boss area until hes in position
  6363. forceObjectiveExists = true
  6364. local _,_,_,root = getPlayer()
  6365. thePart.CFrame = CFrame.new(570.516174, 124.525772, 5.6751118)
  6366.  
  6367. while root.Position.Y > 120 do
  6368. wait()
  6369. end
  6370. forceObjectiveExists = false
  6371. end
  6372. function fpsBoost()
  6373. if _G.fpsBoost then
  6374. local decalsyeeted = true -- Leaving this on makes games look shitty but
  6375. the fps goes up by at least 20.
  6376. local g = game
  6377. local w = g.Workspace
  6378. local l = g.Lighting
  6379. local t = w.Terrain
  6380. sethiddenproperty(l,"Technology",2)
  6381. sethiddenproperty(t,"Decoration",false)
  6382. t.WaterWaveSize = 0
  6383. t.WaterWaveSpeed = 0
  6384. t.WaterReflectance = 0
  6385. t.WaterTransparency = 0
  6386. l.GlobalShadows = false
  6387. l.FogEnd = 9e9
  6388. l.Brightness = 0
  6389. settings().Rendering.QualityLevel = "Level01"
  6390. for i, v in pairs(g:GetDescendants()) do
  6391. if v:IsA("Part") or v:IsA("Union") or v:IsA("CornerWedgePart") or
  6392. v:IsA("TrussPart") then
  6393. v.Material = "Plastic"
  6394. v.Reflectance = 0
  6395. elseif v:IsA("Decal") or v:IsA("Texture") and decalsyeeted then
  6396. v.Transparency = 1
  6397. elseif v:IsA("ParticleEmitter") or v:IsA("Trail") then
  6398. v.Lifetime = NumberRange.new(0)
  6399. elseif v:IsA("Explosion") then
  6400. v.BlastPressure = 1
  6401. v.BlastRadius = 1
  6402. elseif v:IsA("Fire") or v:IsA("SpotLight") or v:IsA("Smoke") or
  6403. v:IsA("Sparkles") then
  6404. v.Enabled = false
  6405. elseif v:IsA("MeshPart") then
  6406. v.Material = "Plastic"
  6407. v.Reflectance = 0
  6408. v.TextureID = 10385902758728957
  6409. end
  6410. end
  6411. for i, e in pairs(l:GetChildren()) do
  6412. if e:IsA("BlurEffect") or e:IsA("SunRaysEffect") or
  6413. e:IsA("ColorCorrectionEffect") or e:IsA("BloomEffect") or
  6414. e:IsA("DepthOfFieldEffect") then
  6415. e.Enabled = false
  6416. end
  6417. end
  6418. end
  6419. end
  6420. updatecheck = function()
  6421. local places = {
  6422. [5281215714] = { ['version'] = 46,
  6423. [4628698373] = { ['version'] = 39,
  6424.  
  6425. ['name'] = "Volcanic Chambers" },
  6426. ['name'] = "Orbital Outpost"
  6427. },
  6428.  
  6429. [4113459044] = { ['version'] = 68,
  6430. ['name'] = "Steampunk Sewers"
  6431. [3737465474] = { ['version'] = 80,
  6432. ['name'] = "Ghastly Harbor"
  6433. [3488584454] = { ['version'] = 93,
  6434. ['name'] = "The Canals"
  6435. [3277965370] = { ['version'] = 110, ['name'] = "Samurai Palace"
  6436. [3119903031] = { ['version'] = 117, ['name'] = "The Underworld"
  6437. [3041739550] = { ['version'] = 134, ['name'] = "King's Palace"
  6438. [2988891534] = { ['version'] = 424, ['name'] = "Pirate Island"
  6439. [2743806150] = { ['version'] = 352, ['name'] = "Winter Outpost"
  6440. [2606294912] = { ['version'] = 473, ['name'] = "Desert Temple"
  6441. [4865331948] = { ['version'] = 473, ['name'] = "Easter Event"
  6442. [3220974599] = { ['version'] = 89,
  6443. ['name'] = "Wave Defense"
  6444. [4286254333] = { ['version'] = 74,
  6445. ['name'] = "Boss Raid"
  6446. [2414851778] = { ['version'] = 4360, ['name'] = "Lobby"
  6447. [3220968688] = { ['version'] = 152, ['name'] = "Lobby2"
  6448.  
  6449. },
  6450. },
  6451. },
  6452. },
  6453. },
  6454. },
  6455. },
  6456. },
  6457. },
  6458. },
  6459. },
  6460. },
  6461. },
  6462. },
  6463.  
  6464. }
  6465. if places[game.PlaceId] ~= nil and places[game.PlaceId]['version'] ~=
  6466. game.PlaceVersion then
  6467. --failReport("Ban Prevention, DM MRob on discord", "PlaceId:
  6468. "..tostring(game.PlaceId).." CurrentPlaceVersion: ".. tostring(places[game.PlaceId]
  6469. ['version']).." NewPlaceVersion: "..tostring(game.PlaceVersion) )
  6470. end
  6471. end
  6472. spawn(updatecheck)
  6473. if game.PlaceId == 6216785535 then
  6474. webhookLocals.dungeonName = "Oceanic"
  6475. spawn(oceanFix)
  6476. elseif game.PlaceId == 5281215714 then -- volcanic
  6477. webhookLocals.dungeonName = "Volcanic Chambers"
  6478. spawn(volcanicFix)
  6479. elseif game.PlaceId == 4628698373 then -- orbital
  6480. webhookLocals.dungeonName = "Orbital Outpost"
  6481. spawn(fixOrbital)
  6482. elseif game.PlaceId == 4113459044 then -- steam
  6483. webhookLocals.dungeonName = "Steampunk Sewers"
  6484. spawn(steamFix)
  6485. elseif game.PlaceId == 3737465474 then -- ghastly
  6486. webhookLocals.dungeonName = "Ghastly Harbor"
  6487. spawn(ghastlyFix)
  6488. elseif game.PlaceId == 3488584454 then -- canals
  6489. webhookLocals.dungeonName = "The Canals"
  6490. spawn(canalsFix)
  6491. elseif game.PlaceId == 3277965370 then -- samurai
  6492. webhookLocals.dungeonName = "Samurai Palace"
  6493. spawn(samuraiFix)
  6494. elseif game.PlaceId == 3119903031 then -- underworld
  6495. webhookLocals.dungeonName = "The Underworld"
  6496. spawn(underworldFix)
  6497. elseif game.PlaceId == 3041739550 then -- king
  6498. webhookLocals.dungeonName = "Kings Palace"
  6499. spawn(kingFix)
  6500. elseif game.PlaceId == 2988891534 then -- pirate
  6501. webhookLocals.dungeonName = "Pirate Island"
  6502. spawn(pirateFix)
  6503. elseif game.PlaceId == 2743806150 then -- winter
  6504. webhookLocals.dungeonName = "Winter Outpost"
  6505. spawn(winterFix)
  6506. elseif game.PlaceId == 2606294912 then -- desert
  6507. webhookLocals.dungeonName = "Desert Temple"
  6508. spawn(desertFix)
  6509.  
  6510. elseif game.PlaceId == 4286254333 then -- boss raid
  6511. webhookLocals.dungeonName = "Boss Raid"
  6512. normalDungeon = false
  6513. bossRaid = true
  6514. elseif workspace:FindFirstChild("currentWave") then -- wave defense
  6515. webhookLocals.dungeonName = "Wave Defense"
  6516. waveDefense = true
  6517. normalDungeon = false
  6518. elseif game.PlaceId == 4865331948 then -- easter egg event
  6519. waveDefense = false
  6520. normalDungeon = false
  6521. eggEvent = true
  6522. spawn(eggFix)
  6523. end
  6524. if normalDungeon or waveDefense or eggEvent then -- same remote for wave
  6525. defense and noraml dungeon
  6526. game:GetService("ReplicatedStorage").remotes.changeStartValue:FireServer()
  6527. if game.PlaceId == 2606294912 then
  6528. wait(3)
  6529. end
  6530. elseif bossRaid then -- remote to start dungeon on boss raid
  6531. workspace:WaitForChild("tier")
  6532. game.ReplicatedStorage.remotes.readyUp:FireServer()
  6533. end
  6534. spawn(fpsBoost)
  6535. function deleteFirstBarrier()
  6536. if game:GetService("Workspace"):FindFirstChild("dungeon") then
  6537. if
  6538. game:GetService("Workspace").dungeon.initialRoom:FindFirstChild("barrier") then
  6539. game:GetService("Workspace").dungeon.initialRoom.barrier:Destroy()
  6540. end
  6541. end
  6542. end
  6543. game.Players.LocalPlayer.Character.Humanoid.AutoRotate = false
  6544. if _G.hide_projectiles then
  6545. spawn(function()
  6546. if game.ReplicatedStorage:FindFirstChild("projectiles") then
  6547. game.ReplicatedStorage.projectiles:Destroy()
  6548. end
  6549. if game.Players.LocalPlayer.PlayerGui:FindFirstChild("abilityLocal") then
  6550. game.Players.LocalPlayer.PlayerGui.abilityLocal.Disabled = true
  6551. if
  6552. game.Players.LocalPlayer.PlayerGui.abilityLocal:FindFirstChild("abilityLocal2")
  6553. then
  6554. game.Players.LocalPlayer.PlayerGui.abilityLocal.abilityLocal2.Disabled = true
  6555. end
  6556. end
  6557. if
  6558. game.Players.LocalPlayer.PlayerScripts:FindFirstChild("MapSpecificLocals") then
  6559. --game.Players.LocalPlayer.PlayerScripts.MapSpecificLocals.Disabled =
  6560. true
  6561. end
  6562. end)
  6563. end
  6564.  
  6565. spawn(initHitBox)
  6566. spawn(rayCollectionService)
  6567. spawn(deleteFirstBarrier)
  6568. -- script end
  6569. print("Script executed!")
  6570.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement