vabalata1

Untitled

Jun 15th, 2023
196
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 227.22 KB | None | 0 0
  1. --Beta updatefix
  2. local version = "v2.0.0b31"
  3. ---// Loading Section \\---
  4. repeat task.wait() until game:IsLoaded()
  5. if game.PlaceId == 8304191830 then
  6. repeat task.wait() until game.Workspace:FindFirstChild(game.Players.LocalPlayer.Name)
  7. repeat task.wait() until game.Players.LocalPlayer.PlayerGui:FindFirstChild("collection"):FindFirstChild("grid"):FindFirstChild("List"):FindFirstChild("Outer"):FindFirstChild("UnitFrames")
  8. else
  9. repeat task.wait() until game.Workspace:FindFirstChild(game.Players.LocalPlayer.Name)
  10. game:GetService("ReplicatedStorage").endpoints.client_to_server.vote_start:InvokeServer()
  11. repeat task.wait() until game:GetService("Workspace")["_waves_started"].Value == true
  12. end
  13. ------------------------------
  14. local a = 'V2_Anime_Adventures' -- Paste Name
  15. local b = game:GetService('Players').LocalPlayer.Name .. '_AnimeAdventures.json'
  16. Settings = {}
  17. function saveSettings()
  18. local HttpService = game:GetService('HttpService')
  19. if not isfolder(a) then
  20. makefolder(a)
  21. end
  22. writefile(a .. '/' .. b, HttpService:JSONEncode(Settings))
  23. Settings = ReadSetting()
  24. warn("Settings Saved!")
  25. end
  26. function ReadSetting()
  27. local s, e = pcall(function()
  28. local HttpService = game:GetService('HttpService')
  29. if not isfolder(a) then
  30. makefolder(a)
  31. end
  32. return HttpService:JSONDecode(readfile(a .. '/' .. b))
  33. end)
  34. if s then
  35. return e
  36. else
  37. saveSettings()
  38. return ReadSetting()
  39. end
  40. end
  41. Settings = ReadSetting()
  42. -- Start of Get Level Data of Map [Added by Craymel02]
  43. function GLD()
  44. local list = {}
  45. for i,v in pairs(game.Workspace._MAP_CONFIG:WaitForChild("GetLevelData"):InvokeServer()) do
  46. list[i] = v
  47. end
  48. return list
  49. end
  50.  
  51. if game.PlaceId ~= 8304191830 then
  52. GLD()
  53. end
  54. -- End of Get Level Data of Map
  55. ------------------------------
  56. local HttpService = game:GetService("HttpService")
  57. local Workspace = game:GetService("Workspace")
  58. local plr = game:GetService("Players").LocalPlayer
  59. local RunService = game:GetService("RunService")
  60. local mouse = game.Players.LocalPlayer:GetMouse()
  61. local UserInputService = game:GetService("UserInputService")
  62. ------------------------------
  63. ------------item drop result
  64. local v5 = require(game.ReplicatedStorage.src.Loader)
  65. local v19 = v5.load_client_service(script, "ItemInventoryServiceClient")
  66. function get_inventory_items_unique_items()
  67. return v19["session"]['inventory']['inventory_profile_data']['unique_items']
  68. end
  69. function get_inventory_items()
  70. return v19["session"]["inventory"]['inventory_profile_data']['normal_items']
  71. end
  72. function get_Units_Owner()
  73. return v19["session"]["collection"]["collection_profile_data"]['owned_units']
  74. end
  75. local Count_Portal_list = 0
  76. local Table_All_Items_Old_data = {}
  77. local Table_All_Items_New_data = {}
  78. for v2, v3 in pairs(game:GetService("ReplicatedStorage").src.Data.Items:GetDescendants()) do
  79. if v3:IsA("ModuleScript") then
  80. for v4, v5 in pairs(require(v3)) do
  81. Table_All_Items_Old_data[v4] = {}
  82. Table_All_Items_Old_data[v4]['Name'] = v5['name']
  83. Table_All_Items_Old_data[v4]['Count'] = 0
  84. Table_All_Items_New_data[v4] = {}
  85. Table_All_Items_New_data[v4]['Name'] = v5['name']
  86. Table_All_Items_New_data[v4]['Count'] = 0
  87. end
  88. end
  89. end
  90. local Data_Units_All_Games = require(game:GetService("ReplicatedStorage").src.Data.Units)
  91. for i,v in pairs(Data_Units_All_Games) do
  92. if v.rarity then
  93. Table_All_Items_Old_data[i] = {}
  94. Table_All_Items_Old_data[i]['Name'] = v['name']
  95. Table_All_Items_Old_data[i]['Count'] = 0
  96. Table_All_Items_Old_data[i]['Count Shiny'] = 0
  97. Table_All_Items_New_data[i] = {}
  98. Table_All_Items_New_data[i]['Name'] = v['name']
  99. Table_All_Items_New_data[i]['Count'] = 0
  100. Table_All_Items_New_data[i]['Count Shiny'] = 0
  101. end
  102. end
  103. for i,v in pairs(get_inventory_items()) do
  104. Table_All_Items_Old_data[i]['Count'] = v
  105. end
  106. for i,v in pairs(get_inventory_items_unique_items()) do
  107. if string.find(v['item_id'],"portal") or string.find(v['item_id'],"disc") then
  108. Count_Portal_list = Count_Portal_list + 1
  109. Table_All_Items_Old_data[v['item_id']]['Count'] = Table_All_Items_Old_data[v['item_id']]['Count'] + 1
  110. end
  111. end
  112. for i,v in pairs(get_Units_Owner()) do
  113. Table_All_Items_Old_data[v["unit_id"]]['Count'] = Table_All_Items_Old_data[v["unit_id"]]['Count'] + 1
  114. if v.shiny then
  115. Table_All_Items_Old_data[v["unit_id"]]['Count'] = Table_All_Items_Old_data[v["unit_id"]]['Count'] - 1
  116. Table_All_Items_Old_data[v["unit_id"]]['Count Shiny'] = Table_All_Items_Old_data[v["unit_id"]]['Count Shiny'] + 1
  117. end
  118. end
  119. ----------------Map & ID Map
  120. local function GetCurrentLevelId()
  121. if game.Workspace._MAP_CONFIG then
  122. return game:GetService("Workspace")._MAP_CONFIG.GetLevelData:InvokeServer()["id"]
  123. end
  124. end
  125. local function GetCurrentLevelName()
  126. if game.Workspace._MAP_CONFIG then
  127. return game:GetService("Workspace")._MAP_CONFIG.GetLevelData:InvokeServer()["name"]
  128. end
  129. end
  130. function comma_value(p1)
  131. local value = p1;
  132. while true do
  133. local value2, value3 = string.gsub(value, "^(-?%d+)(%d%d%d)", "%1,%2");
  134. value = value2;
  135. if value3 ~= 0 then else
  136. break;
  137. end;
  138. end;
  139. return value;
  140. end;
  141. ----------------endMap & ID Map
  142. getgenv().item = "-"
  143. plr.PlayerGui:FindFirstChild("HatchInfo"):FindFirstChild("holder"):FindFirstChild("info1"):FindFirstChild("UnitName").Text = getgenv().item
  144. function webhook()
  145. if Settings.WebhookEnabled then
  146. local url = Settings.WebhookUrl
  147. print("webhook?")
  148. if url == "" then
  149. warn("Webhook Url is empty!")
  150. return
  151. end
  152.  
  153. local Time = os.date('!*t', OSTime);
  154. local thumbnails_avatar = HttpService:JSONDecode(game:HttpGet("https://thumbnails.roblox.com/v1/users/avatar-headshot?userIds=" .. game:GetService("Players").LocalPlayer.UserId .. "&size=150x150&format=Png&isCircular=true", true))
  155. local exec = tostring(identifyexecutor())
  156. userlevel = plr.PlayerGui:FindFirstChild("spawn_units"):FindFirstChild("Lives"):FindFirstChild("Main"):FindFirstChild("Desc"):FindFirstChild("Level").Text
  157. totalgems = plr.PlayerGui:FindFirstChild("spawn_units"):FindFirstChild("Lives"):FindFirstChild("Frame"):FindFirstChild("Resource"):FindFirstChild("Gem"):FindFirstChild("Level").Text
  158.  
  159. ResultHolder = plr.PlayerGui:FindFirstChild("ResultsUI"):FindFirstChild("Holder")
  160. if game.PlaceId ~= 8304191830 then
  161. levelname = game:GetService("Workspace"):FindFirstChild("_MAP_CONFIG"):FindFirstChild("GetLevelData"):InvokeServer()["name"]
  162. result = ResultHolder.Title.Text else levelname, result = "nil","nil" end
  163. if result == "VICTORY" then result = "VICTORY" end
  164. if result == "DEFEAT" then result = "DEFEAT" end
  165.  
  166. _map = game:GetService("Workspace")["_BASES"].player.base["fake_unit"]:WaitForChild("HumanoidRootPart")
  167. GetLevelData = game.workspace._MAP_CONFIG:WaitForChild("GetLevelData"):InvokeServer()
  168. world = GetLevelData.world or GetLevelData.name
  169. mapname = game:GetService("Workspace")._MAP_CONFIG.GetLevelData:InvokeServer()["name"]
  170. cwaves = game:GetService("Players").LocalPlayer.PlayerGui.ResultsUI.Holder.Middle.WavesCompleted.Text
  171. ctime = game:GetService("Players").LocalPlayer.PlayerGui.ResultsUI.Holder.Middle.Timer.Text
  172. waves = cwaves:split(": ")
  173. if waves ~= nil and waves[2] == "999" then waves[2] = "Use [Auto Leave at Wave] or [Test Webhook]" end
  174. ttime = ctime:split(": ")
  175. if waves ~= nil and ttime[2] == "22:55" then ttime[2] = "Use [Auto Leave at Wave] or [Test Webhook]" end
  176. gold = ResultHolder:FindFirstChild("LevelRewards"):FindFirstChild("ScrollingFrame"):FindFirstChild("GoldReward"):FindFirstChild("Main"):FindFirstChild("Amount").Text
  177. if gold == "+99999" then gold = "+0" end
  178. gems = ResultHolder:FindFirstChild("LevelRewards"):FindFirstChild("ScrollingFrame"):FindFirstChild("GemReward"):FindFirstChild("Main"):FindFirstChild("Amount").Text
  179. if gems == "+99999" then gems = "+0" end
  180. xpx = ResultHolder:FindFirstChild("LevelRewards"):FindFirstChild("ScrollingFrame"):FindFirstChild("XPReward"):FindFirstChild("Main"):FindFirstChild("Amount").Text
  181. xp = xpx:split(" ")
  182. if xp[1] == "+99999" then xp[1] = "+0" end
  183. trophy = ResultHolder:FindFirstChild("LevelRewards"):FindFirstChild("ScrollingFrame"):FindFirstChild("TrophyReward"):FindFirstChild("Main"):FindFirstChild("Amount").Text
  184. if trophy == "+99999" then trophy = "+0" end
  185.  
  186. totaltime = ResultHolder:FindFirstChild("Middle"):FindFirstChild("Timer").Text
  187. totalwaves = ResultHolder:FindFirstChild("Middle"):FindFirstChild("WavesCompleted").Text
  188.  
  189. local TextDropLabel = ""
  190. local CountAmount = 1
  191. for i,v in pairs(get_inventory_items()) do
  192. Table_All_Items_New_data[i]['Count'] = v
  193. end
  194. for i,v in pairs(get_inventory_items_unique_items()) do
  195. if string.find(v['item_id'],"portal") or string.find(v['item_id'],"disc") then
  196. Table_All_Items_New_data[v['item_id']]['Count'] = Table_All_Items_New_data[v['item_id']]['Count'] + 1
  197. end
  198. end
  199. for i,v in pairs(get_Units_Owner()) do
  200. Table_All_Items_New_data[v["unit_id"]]['Count'] = Table_All_Items_New_data[v["unit_id"]]['Count'] + 1
  201. if v.shiny then
  202. Table_All_Items_New_data[v["unit_id"]]['Count'] = Table_All_Items_New_data[v["unit_id"]]['Count'] - 1
  203. Table_All_Items_New_data[v["unit_id"]]['Count Shiny'] = Table_All_Items_New_data[v["unit_id"]]['Count Shiny'] + 1
  204. end
  205. end
  206. for i,v in pairs(Table_All_Items_New_data) do
  207. if v['Count'] > 0 and (v['Count'] - Table_All_Items_Old_data[i]['Count']) > 0 then
  208. if v['Count Shiny'] and v['Count'] then
  209. if v['Count'] > 0 or v['Count Shiny'] > 0 then
  210. if v['Count'] > 0 and (v['Count'] - Table_All_Items_Old_data[i]['Count']) > 0 then
  211. TextDropLabel = TextDropLabel .. tostring(CountAmount) .. ". " .. tostring(v['Name']) .. " : x" .. tostring(v['Count'] - Table_All_Items_Old_data[i]['Count'])
  212. if v['Count Shiny'] > 0 and (v['Count Shiny'] - Table_All_Items_Old_data[i]['Count Shiny']) > 0 then
  213. TextDropLabel = TextDropLabel .. " | " .. tostring(v['Name']) .. " (Shiny) : x" .. tostring(v['Count Shiny'] - Table_All_Items_Old_data[i]['Count Shiny']) .. "\n"
  214. CountAmount = CountAmount + 1
  215. else
  216. TextDropLabel = TextDropLabel .. "\n"
  217. CountAmount = CountAmount + 1
  218. end
  219. end
  220. end
  221. end
  222. elseif v['Count Shiny'] and v['Count Shiny'] > 0 and (v['Count Shiny'] - Table_All_Items_Old_data[i]['Count Shiny']) > 0 then
  223. TextDropLabel = TextDropLabel .. tostring(CountAmount) .. ". " .. tostring(v['Name']) .. " (Shiny) : x" .. tostring(v['Count Shiny'] - Table_All_Items_Old_data[i]['Count Shiny']) .. "\n"
  224. CountAmount = CountAmount + 1
  225. end
  226. end
  227. for i,v in pairs(Table_All_Items_New_data) do
  228. if v['Count'] > 0 and (v['Count'] - Table_All_Items_Old_data[i]['Count']) > 0 then
  229. if v['Count Shiny'] and v['Count'] then
  230. elseif string.find(i,"portal") or string.find(i,"disc") then
  231. Count_Portal_list = Count_Portal_list + 1
  232. if string.gsub(i, "%D", "") == "" then
  233. TextDropLabel = TextDropLabel .. tostring(CountAmount) .. ". " .. tostring(v['Name']) .. " : x" .. tostring(v['Count'] - Table_All_Items_Old_data[i]['Count']) .. "\n"
  234. else
  235. TextDropLabel = TextDropLabel .. tostring(CountAmount) .. ". " .. tostring(v['Name']) .. " Tier " .. tostring(string.gsub(i, "%D", "")) .. " : x" .. tostring(v['Count'] - Table_All_Items_Old_data[i]['Count']) .. "\n"
  236. end
  237. CountAmount = CountAmount + 1
  238. else
  239. TextDropLabel = TextDropLabel .. tostring(CountAmount) .. ". " .. tostring(v['Name']) .. " : x" .. tostring(v['Count'] - Table_All_Items_Old_data[i]['Count']) .. "\n"
  240. CountAmount = CountAmount + 1
  241. end
  242. end
  243. end
  244. if TextDropLabel == "" then
  245. TextDropLabel = "Not Have Items Drops"
  246. end
  247.  
  248. local data = {
  249. ["content"] = "",
  250. ["username"] = "Anime Adventures | ArponAG V2",
  251. ["avatar_url"] = "https://tr.rbxcdn.com/fbdb712cfd54ebcdf11fff6bed7d9616/150/150/Image/Png",
  252. ["embeds"] = {
  253. {
  254. ["author"] = {
  255. ["name"] = "ArponAG V2 | Results โœ”๏ธ",
  256. ["icon_url"] = "https://cdn.discordapp.com/emojis/997123585476927558.webp?size=96&quality=lossless"
  257. },
  258. ["thumbnail"] = {
  259. ['url'] = thumbnails_avatar.data[1].imageUrl,
  260. },
  261. ["description"] = " Player Name : ๐Ÿฑ ||**"..game:GetService("Players").LocalPlayer.Name.."**|| ๐Ÿฑ\nExecutors : ๐ŸŽฎ "..exec.." ๐ŸŽฎ ",
  262. ["color"] = 110335,
  263. ["timestamp"] = string.format('%d-%d-%dT%02d:%02d:%02dZ', Time.year, Time.month, Time.day, Time.hour, Time.min, Time.sec),
  264. ["fields"] = {
  265. {
  266. ["name"] ="Current Level โœจ & Portals ๐ŸŒ€ & Gems ๐Ÿ’Ž & Gold ๐Ÿ’ฐ",
  267. ["value"] = "```ini\n"..tostring(game.Players.LocalPlayer.PlayerGui.spawn_units.Lives.Main.Desc.Level.Text).. " โœจ\nCurrent Portals : ".. tostring(Count_Portal_list) .." ๐ŸŒ€\nCurrent Gems : "..tostring(comma_value(game.Players.LocalPlayer._stats.gem_amount.Value)).. " ๐Ÿ’Ž\nCurrent Gold : " ..tostring(comma_value(game.Players.LocalPlayer._stats.gold_amount.Value)).. " ๐Ÿ’ฐ```",
  268. },
  269. {
  270. ["name"] ="Results :",
  271. ["value"] = " ```ini\nWorld : "..mapname.. " ๐ŸŒ\nMap : "..world.. " ๐Ÿ—บ๏ธ\nResults : "..result.. " โš”๏ธ\nWave End : " ..tostring(waves[2]).." ๐ŸŒŠ\nTime : " ..tostring(ttime[2]).." โŒ›```",
  272. ["inline"] = true
  273. },
  274. {
  275. ["name"] ="Rewards :",
  276. ["value"] = "```ini\n" ..comma_value(gold).." Gold ๐Ÿ’ฐ\n"..comma_value(gems).." Gems ๐Ÿ’Ž\n"..comma_value(xp[1]).." XP ๐Ÿงช\n"..trophy.." Trophy ๐Ÿ†```",
  277. },
  278. {
  279. ["name"] ="Items Drop :",
  280. ["value"] = "```ini\n" .. TextDropLabel .. "```",
  281. ["inline"] = false
  282. }
  283. }
  284. }
  285. }
  286. }
  287.  
  288.  
  289. local xd = game:GetService("HttpService"):JSONEncode(data)
  290.  
  291. local headers = {["content-type"] = "application/json"}
  292. request = http_request or request or HttpPost or syn.request or http.request
  293. local sex = {Url = url, Body = xd, Method = "POST", Headers = headers}
  294. warn("Sending webhook notification...")
  295. request(sex)
  296. end
  297. end
  298. function BabyWebhook()
  299. if Settings.BabyWebhookEnabled then
  300. local url = Settings.BabyWebhookUrl
  301. print("webhook baby?")
  302. if url == "" then
  303. warn("BabyWebhook Url is empty!")
  304. return
  305. end
  306.  
  307. local Time = os.date('!*t', OSTime);
  308. local thumbnails_avatar = HttpService:JSONDecode(game:HttpGet("https://thumbnails.roblox.com/v1/users/avatar-headshot?userIds=" .. game:GetService("Players").LocalPlayer.UserId .. "&size=150x150&format=Png&isCircular=true", true))
  309. local exec = tostring(identifyexecutor())
  310. --BTP lv.
  311. btplv = game:GetService("Players").LocalPlayer.PlayerGui.BattlePass.Main.Level.V.Text
  312. --next ammo level
  313. nextlvbtp = game:GetService("Players").LocalPlayer.PlayerGui.BattlePass.Main.FurthestRoom.V.Text
  314. --room
  315. rankroom = game:GetService("Players").LocalPlayer.PlayerGui.InfinityCastleRankingUI.Main.Main.Scroll.YourRanking.FurthestRoom.V.V.Text
  316. if rankroom == "10" then rankroom = "Inf Castle Load Not Yet" end
  317. --Rank title
  318. ranktitle = game:GetService("Players").LocalPlayer.PlayerGui.InfinityCastleRankingUI.Main.Main.Scroll.YourRanking.RankTitle.V.V.Text
  319. if ranktitle == "Grandmaster" then ranktitle = "Inf Castle Load Not Yet" end
  320. --rank %
  321. rankper = game:GetService("Players").LocalPlayer.PlayerGui.InfinityCastleRankingUI.Main.Main.Scroll.YourRanking.Ranking.V.V.Text
  322. if rankper == "10%" then rankper = "Inf Castle Load Not Yet" end
  323. --Current Rank
  324. crt = game:GetService("Players").LocalPlayer.PlayerGui.TournamentRankingUI.Leaderboard.Ranking.Wrapper.CurrentRank.Ranking.V.Text
  325. if crt == "10%" then crt = "Tournament Load Not Yet" end
  326. --Current Prize%
  327. cpp = game:GetService("Players").LocalPlayer.PlayerGui.TournamentRankingUI.Leaderboard.Ranking.Wrapper.CurrentPrize.V.Text
  328. if cpp == "10%" then cpp = "Tournament Load Not Yet" end
  329. --Current Prize
  330. cp = game:GetService("Players").LocalPlayer.PlayerGui.TournamentRankingUI.Leaderboard.Ranking.Wrapper.CurrentPrize.Prize.Text
  331. if cp == "0% ~ 49.99%" then cp = "Tournament Load Not Yet" end
  332. --Current Place#
  333. cpr = game:GetService("Players").LocalPlayer.PlayerGui.TournamentRankingUI.Leaderboard.Main.Wrapper.Container.YourRow.Place.Text
  334. if cpr == "#123456" then cpr = "Tournament Load Not Yet" end
  335. --Dmg or kill
  336. cdk = game:GetService("Players").LocalPlayer.PlayerGui.TournamentRankingUI.Leaderboard.Main.Wrapper.Container.YourRow.Amount.Text
  337. if cdk == "123456789000000" then cdk = "Tournament Load Not Yet" end
  338. --Bracket
  339. cubk = game:GetService("Players").LocalPlayer.PlayerGui.TournamentRankingUI.LevelSelect.InfoFrame.ScoreInfo.Bracket.V.Text
  340. if cubk == "N" then cubk = "Tournament Load Not Yet" end
  341. local data = {
  342. ["content"] = "",
  343. ["username"] = "Anime Adventures V2",
  344. ["avatar_url"] = "https://tr.rbxcdn.com/46f3a2a4f78c2a8f69e5e423f5b29ddc/150/150/Image/Png",
  345. ["embeds"] = {
  346. {
  347. ["author"] = {
  348. ["name"] = " Current BTP & Inf Castle & Tournament Results โœ”๏ธ",
  349. ["icon_url"] = "https://cdn.discordapp.com/emojis/997123585476927558.webp?size=96&quality=lossless"
  350. },
  351. ["thumbnail"] = {
  352. ['url'] = thumbnails_avatar.data[1].imageUrl,
  353. },
  354. ["description"] = " Player Name : ๐Ÿฑ ||**"..game:GetService("Players").LocalPlayer.Name.."**|| ๐Ÿฑ",
  355. ["color"] = 110335,
  356. ["timestamp"] = string.format('%d-%d-%dT%02d:%02d:%02dZ', Time.year, Time.month, Time.day, Time.hour, Time.min, Time.sec),
  357. ["fields"] = {
  358. {
  359. ["name"] ="Current Battle Pass Results ๐Ÿ”‹ ",
  360. ["value"] = "```ini\nCurrent BTP Lv. : "..btplv.." ๐Ÿ”‹\nNEED TO NEXT : "..nextlvbtp.. " ๐Ÿ”‹```",
  361. },
  362. {
  363. ["name"] ="Current Tournament Results ๐Ÿ†",
  364. ["value"] = "```ini\nYour Bracket: : "..cubk.." ๐Ÿ†\nCurrent Rank : ["..cpr.." - "..crt.."] ๐Ÿ†\nDMG or Kill : "..cdk.. " ๐Ÿ†\nCurrent Prize : "..cpp.. " ๐Ÿ†\nReward Prize : " ..cp.. " ๐Ÿ†```",
  365. },
  366. {
  367. ["name"] ="Current Infinity Castle Results ๐Ÿšช",
  368. ["value"] = "```ini\nCurrent Room : "..rankroom.." ๐Ÿšช\nCurrent Rank : "..ranktitle.. " ๐Ÿ“Š\nCurrent Percent : " ..rankper.. " ๐Ÿ…```",
  369. }
  370. }
  371. }
  372. }
  373. }
  374.  
  375.  
  376. local xd = game:GetService("HttpService"):JSONEncode(data)
  377.  
  378. local headers = {["content-type"] = "application/json"}
  379. request = http_request or request or HttpPost or syn.request or http.request
  380. local sex = {Url = url, Body = xd, Method = "POST", Headers = headers}
  381. warn("Sending infcastle webhook notification...")
  382. request(sex)
  383. end
  384. end
  385. function SnipeShopNew()
  386. if Settings.snipeWebhookEnabled then
  387. pcall(function()
  388. SpecialSummonSniperWebhook()
  389. StandardSummonSniperWebhook()
  390. ShopSniperWebhook()
  391. end)
  392. end
  393. end
  394. --special
  395. function SpecialSummonSniperWebhook()
  396. if Settings.snipeWebhookEnabled then
  397. local url = Settings.SnipeWebhookUrl
  398. print("webhook Special banner?")
  399. if url == "" then
  400. warn("SnipeWebhook Url is empty!")
  401. return
  402. end
  403.  
  404. local Time = os.date('!*t', OSTime);
  405. local thumbnails_avatar = HttpService:JSONDecode(game:HttpGet("https://thumbnails.roblox.com/v1/users/avatar-headshot?userIds=" .. game:GetService("Players").LocalPlayer.UserId .. "&size=150x150&format=Png&isCircular=true", true))
  406. local exec = tostring(identifyexecutor())
  407. special_banner = game:GetService("Players").LocalPlayer.PlayerGui.HatchGuiNew.BannerFrames.EventClover.Main
  408. units = {
  409. special_banner["Featured_One"],
  410. special_banner["Featured_Two"],
  411. special_banner["Featured_Three"]
  412. }
  413. unitNamesForJson = {
  414. special_banner["Featured_One"].name.Text,
  415. special_banner["Featured_Two"].name.Text,
  416. special_banner["Featured_Three"].name.Text
  417. }
  418. local data = {
  419. ["content"] = "",
  420. ["username"] = "Anime Adventures V2",
  421. ["avatar_url"] = "https://tr.rbxcdn.com/46f3a2a4f78c2a8f69e5e423f5b29ddc/150/150/Image/Png",
  422. ["embeds"] = {
  423. {
  424. ["author"] = {
  425. ["name"] = " Special Banner ",
  426. ["icon_url"] = "https://cdn.discordapp.com/emojis/997123585476927558.webp?size=96&quality=lossless"
  427. },
  428. ["thumbnail"] = {
  429. ['url'] = thumbnails_avatar.data[1].imageUrl,
  430. },
  431. ["description"] = " Player Name : ๐Ÿฑ ||**"..game:GetService("Players").LocalPlayer.Name.."**|| ๐Ÿฑ",
  432. ["color"] = 110335,
  433. ["timestamp"] = string.format('%d-%d-%dT%02d:%02d:%02dZ', Time.year, Time.month, Time.day, Time.hour, Time.min, Time.sec),
  434. ["fields"] = {
  435. {
  436. ["name"] = "```" .. units[1].name.Text .. "```",
  437. ["value"] = "```(" .. units[1].Rarity.Text .. ") [Featured]```",
  438. ["inline"] = true
  439. },
  440. {
  441. ["name"] = "```" .. units[2].name.Text .. "```",
  442. ["value"] = "```(" .. units[2].Rarity.Text .. ")```",
  443. ["inline"] = true
  444. },
  445. {
  446. ["name"] = "```" .. units[3].name.Text .. "```",
  447. ["value"] = "```(" .. units[3].Rarity.Text .. ")```",
  448. ["inline"] = true
  449. }
  450. }
  451. }
  452. }
  453. }
  454.  
  455.  
  456. local xd = game:GetService("HttpService"):JSONEncode(data)
  457.  
  458. local headers = {["content-type"] = "application/json"}
  459. request = http_request or request or HttpPost or syn.request or http.request
  460. local sex = {Url = url, Body = xd, Method = "POST", Headers = headers}
  461. warn("Sending special banner webhook notification...")
  462. request(sex)
  463. end
  464. end
  465. --Standar
  466. function StandardSummonSniperWebhook()
  467. if Settings.snipeWebhookEnabled then
  468. local url = Settings.SnipeWebhookUrl
  469. print("webhook Standard Banner?")
  470. if url == "" then
  471. warn("Webhook Url is empty!")
  472. return
  473. end
  474.  
  475. local Time = os.date('!*t', OSTime);
  476. local thumbnails_avatar = HttpService:JSONDecode(game:HttpGet("https://thumbnails.roblox.com/v1/users/avatar-headshot?userIds=" .. game:GetService("Players").LocalPlayer.UserId .. "&size=150x150&format=Png&isCircular=true", true))
  477. local exec = tostring(identifyexecutor())
  478. units = {
  479. game:GetService("Players").LocalPlayer.PlayerGui.HatchGuiNew.BannerFrames.Standard.Main.Scroll["1"].Main,
  480. game:GetService("Players").LocalPlayer.PlayerGui.HatchGuiNew.BannerFrames.Standard.Main.Scroll["2"].Main,
  481. game:GetService("Players").LocalPlayer.PlayerGui.HatchGuiNew.BannerFrames.Standard.Main.Scroll["3"].Main,
  482. game:GetService("Players").LocalPlayer.PlayerGui.HatchGuiNew.BannerFrames.Standard.Main.Scroll["4"].Main,
  483. game:GetService("Players").LocalPlayer.PlayerGui.HatchGuiNew.BannerFrames.Standard.Main.Scroll["5"].Main,
  484. game:GetService("Players").LocalPlayer.PlayerGui.HatchGuiNew.BannerFrames.Standard.Main.Scroll["6"].Main
  485. }
  486.  
  487. U1 = units[1].petimage.WorldModel:GetChildren()[1].Name
  488. U2 = units[2].petimage.WorldModel:GetChildren()[1].Name
  489. U3 = units[3].petimage.WorldModel:GetChildren()[1].Name
  490. U4 = units[4].petimage.WorldModel:GetChildren()[1].Name
  491. U5 = units[5].petimage.WorldModel:GetChildren()[1].Name
  492. U6 = units[6].petimage.WorldModel:GetChildren()[1].Name
  493.  
  494. local data = {
  495. ["content"] = "",
  496. ["username"] = "Anime Adventures V2",
  497. ["avatar_url"] = "https://tr.rbxcdn.com/46f3a2a4f78c2a8f69e5e423f5b29ddc/150/150/Image/Png",
  498. ["embeds"] = {
  499. {
  500. ["author"] = {
  501. ["name"] = " Standard Banner ",
  502. ["icon_url"] = "https://cdn.discordapp.com/emojis/997123585476927558.webp?size=96&quality=lossless"
  503. },
  504. ["thumbnail"] = {
  505. ['url'] = thumbnails_avatar.data[1].imageUrl,
  506. },
  507. ["description"] = " Player Name : ๐Ÿฑ ||**"..game:GetService("Players").LocalPlayer.Name.."**|| ๐Ÿฑ",
  508. ["color"] = 110335,
  509. ["timestamp"] = string.format('%d-%d-%dT%02d:%02d:%02dZ', Time.year, Time.month, Time.day, Time.hour, Time.min, Time.sec),
  510. ["fields"] = {
  511. }
  512. }
  513. }
  514. }
  515. for i, unit in pairs(units) do
  516. unit_stats = {
  517. ["name"] = "```" .. unit.petimage.WorldModel:GetChildren()[1].Name .."```",
  518. ["value"] = "```(" ..unit.Rarity.Text ..")```",
  519. ["inline"] = true
  520. }
  521. table.insert(data["embeds"][1]["fields"], unit_stats)
  522. end
  523.  
  524.  
  525. local xd = game:GetService("HttpService"):JSONEncode(data)
  526.  
  527. local headers = {["content-type"] = "application/json"}
  528. request = http_request or request or HttpPost or syn.request or http.request
  529. local sex = {Url = url, Body = xd, Method = "POST", Headers = headers}
  530. warn("Sending Standard banner webhook notification...")
  531. request(sex)
  532. end
  533. end
  534. --Bulma's Shop webhook
  535. function ShopSniperWebhook()
  536. if Settings.snipeWebhookEnabled then
  537. local url = Settings.SnipeWebhookUrl
  538. print("webhook Bulma's webhook?")
  539. if url == "" then
  540. warn("Webhook Url is empty!")
  541. return
  542. end
  543. print(game:GetService("ReplicatedStorage").src.client.Services.TravellingMerchantServiceClient)
  544. local Time = os.date('!*t', OSTime);
  545. local thumbnails_avatar = HttpService:JSONDecode(game:HttpGet("https://thumbnails.roblox.com/v1/users/avatar-headshot?userIds=" .. game:GetService("Players").LocalPlayer.UserId .. "&size=150x150&format=Png&isCircular=true", true))
  546. local exec = tostring(identifyexecutor())
  547. shop_items = require(game:GetService("ReplicatedStorage").src.client.Services["TravellingMerchantServiceClient"]).SELLING_ITEMS
  548. shop_item_ids = {}
  549.  
  550. print("exechere9")
  551. local data = {
  552. ["content"] = "",
  553. ["username"] = "Anime Adventures V2",
  554. ["avatar_url"] = "https://tr.rbxcdn.com/46f3a2a4f78c2a8f69e5e423f5b29ddc/150/150/Image/Png",
  555. ["embeds"] = {
  556. {
  557. ["author"] = {
  558. ["name"] = " Bulma's Shop ",
  559. ["icon_url"] = "https://cdn.discordapp.com/emojis/997123585476927558.webp?size=96&quality=lossless"
  560. },
  561. ["thumbnail"] = {
  562. ['url'] = thumbnails_avatar.data[1].imageUrl,
  563. },
  564. ["description"] = " Player Name : ๐Ÿฑ ||**"..game:GetService("Players").LocalPlayer.Name.."**|| ๐Ÿฑ",
  565. ["color"] = 110335,
  566. ["timestamp"] = string.format('%d-%d-%dT%02d:%02d:%02dZ', Time.year, Time.month, Time.day, Time.hour, Time.min, Time.sec),
  567. ["fields"] = {
  568. }
  569. }
  570. }
  571. }
  572.  
  573. print("exechere4")
  574.  
  575. for i, item in pairs(shop_items) do
  576. table.insert(shop_item_ids, item["id"])
  577. if item["gem_cost"] then
  578. table.insert(data["embeds"][1]["fields"], {
  579. ["name"] = "```" .. item["id"].."```",
  580. ["value"] = "```" .. item["gem_cost"] .. " ๐Ÿ’Ž```",
  581. ["inline"] = true
  582. })
  583. else
  584. table.insert(data["embeds"][1]["fields"], {
  585. ["name"] = "```" .. item["id"].."```",
  586. ["value"] = "```" .. item["gold_cost"] .. " ๐Ÿ’ฐ```",
  587. ["inline"] = true
  588. })
  589. end
  590. end
  591.  
  592. --print(dump(data["embeds"][1]["fields"]))
  593. if not game:GetService("Workspace")["travelling_merchant"]["is_open"].Value then
  594. table.insert(data["embeds"][1]["fields"], {
  595. ["name"] = "SHOP CLOSED",
  596. ["value"] = "SHOP CLOSED",
  597. ["inline"] = true
  598. })
  599. end
  600. print("exec1")
  601. local xd = game:GetService("HttpService"):JSONEncode(data)
  602.  
  603. local headers = {["content-type"] = "application/json"}
  604. request = http_request or request or HttpPost or syn.request or http.request
  605. local sex = {Url = url, Body = xd, Method = "POST", Headers = headers}
  606. warn("Sending Snipe Bulma's Shop webhook notification...")
  607. request(sex)
  608. end
  609. end
  610. ------------------------------\
  611. if game.CoreGui:FindFirstChild("FinityUI") then
  612. game.CoreGui["FinityUI"]:Destroy()
  613. end
  614. local dir = "Anime_Adventures/"..game.Players.LocalPlayer.Name
  615. local Uilib = loadstring(game:HttpGet("https://raw.githubusercontent.com/ArponAG/Scripts/main/finitylib"))()
  616. local exec = tostring(identifyexecutor())
  617. --updatefix fixmap
  618. local Window = Uilib.new(true, "[UPD 13.0.0] Anime Adventures "..version.." - "..exec)
  619. Window.ChangeToggleKey(Enum.KeyCode.P)
  620. local Home = Window:Category(" ๐Ÿ“‹ Home")
  621. local Developers = Home:Sector("Anime Adventures")
  622. local asdasd = Home:Sector(" ")
  623. local UIUPDT = Home:Sector("UI UPDATE (February 20th)")
  624. local Farm = Window:Category(" ๐Ÿน Auto Farm")
  625. local SelectUnits = Farm:Sector("Units Selection")
  626. local SelectWorld = Farm:Sector("World Selection")
  627. local UnitPosition = Farm:Sector("Select Unit Position")
  628. local MoreFarmConfig = Farm:Sector("More Farming Config")
  629. local DeleteConfig2 = Farm:Sector("")
  630. local DeleteConfig = Farm:Sector("More Function Config")
  631. local AutoFarmConfig = Farm:Sector("Auto Farm Config")
  632. local ChallengeConfig = Farm:Sector("Challenge Config")
  633. local UC = Window:Category(" ๐Ÿ‘ฅ Unit Config")
  634. local NDY = UC:Sector("Beta Unit Config ")
  635. local NDY2 = UC:Sector(" Reset Unit Config ")
  636. local emptyxx = UC:Sector(" ")
  637. local emptyxx2 = UC:Sector(" ")
  638. local Unit1 = UC:Sector("Unit 1")
  639. local Unit2 = UC:Sector("Unit 2")
  640. local Unit3 = UC:Sector("Unit 3")
  641. local Unit4 = UC:Sector("Unit 4")
  642. local Unit5 = UC:Sector("Unit 5")
  643. local Unit6 = UC:Sector("Unit 6")
  644. local Misc = Window:Category(" ๐Ÿ›  Misc")
  645. local AutoSummonSec = Misc:Sector("Auto Summon Units")
  646. local AutoSnipeMerchantSec = Misc:Sector("Auto Snipe Merchant")
  647. local WebhookSec = Misc:Sector("Discord Webhook")
  648. --local OtherSec = Misc:Sector("Other Options")
  649. local LG = Window:Category("๐Ÿ› ๏ธ OTHER [BETA]")
  650. local LG1 = LG:Sector("Beta LAGGY Config ")
  651. local OtherSec = LG:Sector("Other Options")
  652. local OtherSec2 = LG:Sector("")
  653. local reFarmConfig = LG:Sector("๐Ÿค– Reset Farm Config ๐Ÿค–")
  654. ----------------------------------------------
  655. ---------------- Units Selection -------------
  656. ----------------------------------------------
  657. local function UnitSec()
  658. --#region Select Units Tab
  659. local Units = {}
  660.  
  661. function Check()
  662. local DataUnits = require(game:GetService("ReplicatedStorage").src.Data.Units)
  663. for i, v in pairs(getgenv().profile_data.equipped_units) do
  664. if DataUnits[v.unit_id] and v.equipped_slot then
  665. Settings.SelectedUnits["U"..tostring(v.equipped_slot)] = tostring(DataUnits[v.unit_id].id) .. " #" .. tostring(v.uuid)
  666. print("U"..tostring(v.equipped_slot).." "..tostring(DataUnits[v.unit_id].id).." #" .. tostring(v.uuid))
  667. end
  668. end
  669. saveSettings()
  670. end
  671. function LoadUnits()
  672. local DataUnits = require(game:GetService("ReplicatedStorage").src.Data.Units)
  673. table.clear(Units)
  674. for i, v in pairs(getgenv().profile_data.equipped_units) do
  675. if DataUnits[v.unit_id] then
  676. table.insert(Units, DataUnits[v.unit_id].name .. " #" .. tostring(v.uuid))
  677. end
  678. end
  679. Check()
  680. end
  681. function GetUnits()
  682. if Settings.SelectedUnits == nil then
  683. Settings.SelectedUnits = {
  684. U1 = "nil",
  685. U2 = "nil",
  686. U3 = "nil",
  687. U4 = "nil",
  688. U5 = "nil",
  689. U6 = "nil"
  690. }
  691. saveSettings()
  692. end
  693. getgenv().profile_data = { equipped_units = {} }; repeat
  694. do
  695. for i, v in pairs(getgc(true)) do
  696. if type(v) == "table" and rawget(v, "xp") then wait()
  697. table.insert(getgenv().profile_data.equipped_units, v)
  698. end
  699. end
  700. end
  701. until #getgenv().profile_data.equipped_units > 0
  702. LoadUnits()
  703. end
  704. GetUnits()
  705. SelectUnits:Cheat("Button", "๐Ÿฆธ Select Units", function() --Selects Currently Equipped Units!
  706. Settings.SelectedUnits = {
  707. U1 = "nil",
  708. U2 = "nil",
  709. U3 = "nil",
  710. U4 = "nil",
  711. U5 = "nil",
  712. U6 = "nil"
  713. }
  714. saveSettings()
  715. GetUnits()
  716. end)
  717. function switchteam(string)
  718. local args = { [1] = string }
  719. game:GetService("ReplicatedStorage").endpoints.client_to_server.switch_team_loadout:InvokeServer(unpack(args))
  720. end
  721. local a = SelectUnits:Cheat("Dropdown", "๐Ÿ‘ฅ Select Team",function(preset)
  722. Settings.SelectedPreset = preset
  723. print(preset)
  724. saveSettings()
  725. end, {
  726. options = { "Team 1", "Team 2", "Team 3", "Team 4","Team 5" },
  727. default = Settings.SelectedPreset
  728. })
  729. SelectUnits:Cheat("Button", "โŒ› Switch Team", function() --loads preset
  730. preset = Settings.SelectedPreset
  731. if preset == "Team 1" then
  732. switchteam("1")
  733. elseif preset == "Team 2" then
  734. switchteam("2")
  735. elseif preset == "Team 3" then
  736. switchteam("3")
  737. elseif preset == "Team 4" then
  738. switchteam("4")
  739. elseif preset == "Team 5" then
  740. switchteam("5")
  741. end
  742. print(preset)
  743. GetUnits()
  744. end)
  745. end
  746. ----------------------------------------------
  747. ------------------ World Section -------------updatefix
  748. ----------------------------------------------
  749. local function WorldSec()
  750. SelectWorld:Cheat("Dropdown", "๐ŸŒŸ Select Category",function(value)
  751. print(value)
  752. Settings.WorldCategory = value
  753. getgenv().updateworld()
  754. getgenv().updatelevel()
  755. getgenv().updatedifficulty()
  756. saveSettings()
  757. end, {
  758. options = {
  759. "Story Worlds",
  760. "Legend Stages",
  761. "Raid Worlds",
  762. "Portals",
  763. "Dungeon"
  764. },
  765. default = Settings.WorldCategory
  766. })
  767. local selectworld = SelectWorld:Cheat("Dropdown", "๐ŸŒ Select World",function(value)
  768. print(value)
  769. Settings.SelectedWorld = value
  770. getgenv().updatelevel()
  771. getgenv().updatedifficulty()
  772. saveSettings()
  773. end, {options = { }, default = Settings.SelectedWorld })
  774. --fixmap
  775. getgenv().updateworld = function()
  776. selectworld:ClearDrop() local storylist;
  777. if Settings.WorldCategory == "Story Worlds" then
  778. storylist = {"Planet Namak", "Shiganshinu District", "Snowy Town","Hidden Sand Village", "Marine's Ford",
  779. "Ghoul City", "Hollow World", "Ant Kingdom", "Magic Town", "Cursed Academy","Clover Kingdom","Cape Canaveral", "Alien Spaceship","Fabled Kingdom",
  780. "Hero City","Puppet Island"}
  781. elseif Settings.WorldCategory == "Legend Stages" then
  782. storylist = {"Clover Kingdom (Elf Invasion)", "Hollow Invasion","Cape Canaveral (Legend)", "Fabled Kingdom (Legend)", "Hero City (Midnight)"}
  783. elseif Settings.WorldCategory == "Raid Worlds" then
  784. storylist = {"Storm Hideout","West City", "Infinity Train", "Shiganshinu District - Raid","Hiddel Sand Village - Raid", "Freezo's Invasion", "Entertainment District"}
  785. elseif Settings.WorldCategory == "Portals" then
  786. storylist = {"Alien Portals","Zeldris Portals", "Demon Portals","Dressrosa Portals","Madoka Portals[ANY]"}
  787. elseif Settings.WorldCategory == "Dungeon" then
  788. storylist = {"Cursed Womb","Crused Parade"}
  789. end
  790.  
  791. for i = 1, #storylist do
  792. selectworld:AddOption(storylist[i])
  793. end
  794. end
  795. local selectlevel = SelectWorld:Cheat("Dropdown", "โœจ Select Level",function(value)
  796. print(value)
  797. Settings.SelectedLevel = value
  798. getgenv().updatedifficulty()
  799. saveSettings()
  800. end, {options = { }, default = Settings.SelectedLevel})
  801. getgenv().updatelevel = function()
  802. selectlevel:ClearDrop() local levellist; local level = Settings.SelectedWorld;
  803. ---///Story Worlds\\\---
  804. if level == "Planet Namak" then
  805. levellist = {"namek_infinite", "namek_level_1", "namek_level_2", "namek_level_3", "namek_level_4", "namek_level_5", "namek_level_6"}
  806. elseif level == "Shiganshinu District" then
  807. levellist = {"aot_infinite", "aot_level_1", "aot_level_2", "aot_level_3", "aot_level_4","aot_level_5", "aot_level_6"}
  808. elseif level == "Snowy Town" then
  809. levellist = {"demonslayer_infinite", "demonslayer_level_1", "demonslayer_level_2", "demonslayer_level_3", "demonslayer_level_4", "demonslayer_level_5","demonslayer_level_6"}
  810. elseif level == "Hidden Sand Village" then
  811. levellist = {"naruto_infinite", "naruto_level_1", "naruto_level_2", "naruto_level_3","naruto_level_4", "naruto_level_5", "naruto_level_6"}
  812. elseif level == "Marine's Ford" then
  813. levellist = {"marineford_infinite","marineford_level_1","marineford_level_2","marineford_level_3","marineford_level_4","marineford_level_5","marineford_level_6"}
  814. elseif level == "Ghoul City" then
  815. levellist = {"tokyoghoul_infinite","tokyoghoul_level_1","tokyoghoul_level_2","tokyoghoul_level_3","tokyoghoul_level_4","tokyoghoul_level_5","tokyoghoul_level_6"}
  816. elseif level == "Hollow World" then
  817. levellist = {"hueco_infinite","hueco_level_1","hueco_level_2","hueco_level_3","hueco_level_4","hueco_level_5","hueco_level_6"}
  818. elseif level == "Ant Kingdom" then
  819. levellist = {"hxhant_infinite","hxhant_level_1","hxhant_level_2","hxhant_level_3","hxhant_level_4","hxhant_level_5","hxhant_level_6"}
  820. elseif level == "Magic Town" then
  821. levellist = {"magnolia_infinite","magnolia_level_1","magnolia_level_2","magnolia_level_3","magnolia_level_4","magnolia_level_5","magnolia_level_6"}
  822. elseif level == "Cursed Academy" then
  823. levellist = {"jjk_infinite","jjk_level_1","jjk_level_2","jjk_level_3", "jjk_level_4","jjk_level_5","jjk_level_6"}
  824. elseif level == "Clover Kingdom" then
  825. levellist = {"clover_infinite","clover_level_1","clover_level_2","clover_level_3","clover_level_4","clover_level_5","clover_level_6"}
  826. elseif level == "Cape Canaveral" then
  827. levellist = {"jojo_infinite","jojo_level_1","jojo_level_2","jojo_level_3","jojo_level_4","jojo_level_5","jojo_level_6",}
  828. elseif level == "Alien Spaceship" then
  829. levellist = {"opm_infinite","opm_level_1","opm_level_2","opm_level_3","opm_level_4","opm_level_5","opm_level_6",}
  830. elseif level == "Fabled Kingdom" then
  831. levellist = {"7ds_infinite","7ds_level_1","7ds_level_2","7ds_level_3","7ds_level_4","7ds_level_5","7ds_level_6",}
  832. elseif level == "Hero City" then
  833. levellist = {"mha_infinite","mha_level_1","mha_level_2","mha_level_3","mha_level_4","mha_level_5","mha_level_6",}
  834. --///Legend Stages\\\---
  835. elseif level == "Clover Kingdom (Elf Invasion)" then
  836. levellist = {"clover_legend_1","clover_legend_2","clover_legend_3"}
  837. elseif level == "Hollow Invasion" then
  838. levellist = {"bleach_legend_1","bleach_legend_2","bleach_legend_3","bleach_legend_4","bleach_legend_5","bleach_legend_6"}
  839. elseif level == "Cape Canaveral (Legend)" then
  840. levellist = {"jojo_legend_1","jojo_legend_2","jojo_legend_3"}
  841. elseif level == "Fabled Kingdom (Legend)" then
  842. levellist = {"7ds_legend_1","7ds_legend_2","7ds_legend_3"}
  843. elseif level == "Hero City (Midnight)" then
  844. levellist = {"mha_legend_1","mha_legend_2","mha_legend_3","mha_legend_4","mha_legend_5","mha_legend_6"}
  845. elseif level == "Puppet Island" then
  846. levellist = {"dressrosa_infinite","dressrosa_level_1","dressrosa_level_2","dressrosa_level_3","dressrosa_level_4","dressrosa_level_5","dressrosa_level_6",}
  847. --///Raids\\\---
  848. elseif level == "Storm Hideout" then
  849. levellist = {"uchiha_level_1","uchiha_level_2","uchiha_level_3","uchiha_level_4","uchiha_level_5"}
  850. elseif level == "West City" then
  851. levellist = {"west_city_raid"}
  852. elseif level == "Infinity Train" then
  853. levellist = {"demonslayer_raid_1"}
  854. elseif level == "Shiganshinu District - Raid" then
  855. levellist = {"aot_raid_1"}
  856. elseif level == "Hiddel Sand Village - Raid" then
  857. levellist = {"naruto_raid_1"}
  858. elseif level == "Freezo's Invasion" then
  859. levellist = {"west_city_frieza_level_1","west_city_frieza_level_2","west_city_frieza_level_3","west_city_frieza_level_4","west_city_frieza_level_5"}
  860. elseif level == "Entertainment District" then
  861. levellist = {"entertainment_district_level_1","entertainment_district_level_2","entertainment_district_level_3","entertainment_district_level_4","entertainment_district_level_5"}
  862. --///Portals\\\--- fixportal
  863. elseif level == "Alien Portals" then
  864. levellist = {"portal_boros_g"}
  865. elseif level == "Demon Portals" then
  866. levellist = {"april_portal_item"}
  867. elseif level == "Zeldris Portals" then
  868. levellist = {"portal_zeldris"}
  869. elseif level == "Dressrosa Portals" then
  870. levellist = {"portal_item__dressrosa"}
  871. elseif level == "Madoka Portals[ANY]" then
  872. levellist = {"portal_item__madoka"}
  873. ---///Dungeon\\\--- updatefix
  874. elseif level == "Cursed Womb" then
  875. levellist = {"jjk_finger"}
  876. elseif level == "Crused Parade" then
  877. levellist = {"jjk_raid"}
  878. end
  879. for i = 1, #levellist do
  880. selectlevel:AddOption(levellist[i])
  881. end
  882. end
  883. --fixmap
  884. local selectdiff = SelectWorld:Cheat("Dropdown", "๐Ÿ’ฆ Difficulty",function(value)
  885. print(value, " Selected")
  886. Settings.Difficulty = value
  887. saveSettings()
  888. end, {
  889. options = {}, default = Settings.Difficulty
  890. })
  891. getgenv().updatedifficulty = function()
  892. selectdiff:ClearDrop(); level = Settings.SelectedLevel; cata = Settings.WorldCategory; local diff;
  893. if level == "namek_infinite" or level == "aot_infinite" or level == "demonslayer_infinite"
  894. or level == "naruto_infinite" or level == "marineford_infinite" or level == "tokyoghoul_infinite" or level == "hueco_infinite"
  895. or level == "hxhant_infinite" or level == "magnolia_infinite" or level == "jjk_infinite" or level == "clover_infinite"
  896. or level == "jojo_infinite" or level == "opm_infinite" or level == "7ds_infinite" or level == "mha_infinite"
  897. or level == "dressrosa_infinite" or cata == "Legend Stages" or cata == "Raid Worlds" then
  898. diff = {"Hard"}
  899. elseif cata == "Portals" or cata == "Dungeon" then
  900. diff = {"Default"}
  901. else
  902. diff = {"Normal", "Hard"}
  903. end
  904. for i = 1, #diff do
  905. selectdiff:AddOption(diff[i])
  906. end
  907. end
  908.  
  909. SelectWorld:Cheat("Checkbox","๐Ÿ™‹๏ธ Friends Only ", function(bool)
  910. print(bool)
  911. Settings.isFriendOnly = bool
  912. saveSettings()
  913. end,{enabled = Settings.isFriendOnly})
  914. end
  915. ----------------------------------------------
  916. ---------------- AutoFarm Config -------------
  917. ----------------------------------------------
  918. local function AutoFarmSec()
  919. AutoFarmConfig:Cheat("Checkbox","๐ŸŒพ Auto Start ", function(bool)
  920. print(bool)
  921. Settings.autostart = bool
  922. saveSettings()
  923. end,{enabled = Settings.autostart })
  924. AutoFarmConfig:Cheat("Checkbox","๐Ÿ‘จโ€๐ŸŒพ Auto Place unit ", function(bool)
  925. print(bool)
  926. Settings.AutoFarm = bool
  927. saveSettings()
  928. end,{enabled = Settings.AutoFarm })
  929. AutoFarmConfig:Cheat("Checkbox","๐Ÿƒ Auto Replay ", function(bool)
  930. print(bool)
  931. Settings.AutoReplay = bool
  932. saveSettings()
  933. end,{enabled = Settings.AutoReplay})
  934. AutoFarmConfig:Cheat("Checkbox","๐Ÿƒ Auto Next Story ", function(bool)
  935. print(bool)
  936. Settings.AutoNext = bool
  937. saveSettings()
  938. end,{enabled = Settings.AutoNext})
  939. AutoFarmConfig:Cheat("Checkbox","๐Ÿƒ Auto Leave ", function(bool)
  940. print(bool)
  941. Settings.AutoLeave = bool
  942. saveSettings()
  943. end,{enabled = Settings.AutoLeave})
  944.  
  945. AutoFarmConfig:Cheat("Checkbox","๐Ÿ”ฅ Auto Abilities ", function(bool)
  946. print(bool)
  947. Settings.AutoAbilities = bool
  948. saveSettings()
  949. end,{enabled = Settings.AutoAbilities})
  950. AutoFarmConfig:Cheat("Checkbox","โญ๏ธ Auto Upgrade Units ", function(bool)
  951. print(bool)
  952. Settings.AutoUpgrade = bool
  953. saveSettings()
  954. end,{enabled = Settings.AutoUpgrade})
  955. AutoFarmConfig:Cheat("Checkbox","โญ๏ธ Sell Units At Wave ", function(bool)
  956. print(bool)
  957. Settings.AutoSell = bool
  958. saveSettings()
  959. end,{enabled = Settings.AutoSell})
  960. AutoFarmConfig:Cheat("Checkbox","โญ๏ธ Leave At Wave ", function(bool)
  961. print(bool)
  962. Settings.autoQuit = bool
  963. saveSettings()
  964. end,{enabled = Settings.autoQuit})
  965. AutoFarmConfig:Cheat("Textbox", "Sell or Leave at Wave", function(Value)
  966. Value = tonumber(Value)
  967. Settings.AutoSellWave = Value
  968. saveSettings()
  969. end, {placeholder = Settings.AutoSellWave})
  970. end
  971. ----------------------------------------------
  972. --------------- More Farm Config -------------
  973. ----------------------------------------------
  974. local function MoreFarmSec()
  975. MoreFarmConfig:Cheat("Checkbox","๐Ÿฏ Auto Next Level inf castle ", function(bool)
  976. print(bool)
  977. Settings.AutoContinue = bool
  978. saveSettings()
  979. end,{enabled = Settings.AutoContinue })
  980. MoreFarmConfig:Cheat("Checkbox","๐Ÿฐ๏ธ Auto Infinity Castle ", function(bool)
  981. print(bool)
  982. Settings.AutoInfinityCastle = bool
  983. saveSettings()
  984. end,{enabled = Settings.AutoInfinityCastle})
  985. end
  986. -----------------------------------------------
  987. --resetautofarm config
  988. --resetall
  989. function refarmcon()
  990. print("reset AutoFarm & find Picoro config ?")
  991. --findPicoro
  992. if Settings.picoHOP then
  993. Settings.picoHOP = false end
  994. --Start
  995. if Settings.autostart then
  996. Settings.autostart = false end
  997. --Place unit
  998. if Settings.AutoFarm then
  999. Settings.AutoFarm = false end
  1000. --Replay
  1001. if Settings.AutoReplay then
  1002. Settings.AutoReplay = false end
  1003. --Next Story
  1004. if Settings.AutoNext then
  1005. Settings.AutoNext = false end
  1006. --Leave
  1007. if Settings.AutoLeave then
  1008. Settings.AutoLeave = false end
  1009. --Abilities
  1010. if Settings.AutoAbilities then
  1011. Settings.AutoAbilities = false end
  1012. --Upgrade
  1013. if Settings.AutoUpgrade then
  1014. Settings.AutoUpgrade = false end
  1015. --AutoSell
  1016. if Settings.AutoSell then
  1017. Settings.AutoSell = false end
  1018. --autoQuitWave
  1019. if Settings.autoQuit then
  1020. Settings.autoQuit = false end
  1021. --AutoSellWave
  1022. if Settings.AutoSellWave then
  1023. Settings.AutoSellWave = 0 end
  1024. --Inf Castle--
  1025. --Next Level inf cas
  1026. if Settings.AutoContinue then
  1027. Settings.AutoContinue = false end
  1028. --Auto Infinity Castle
  1029. if Settings.AutoInfinityCastle then
  1030. Settings.AutoInfinityCastle = false end
  1031. saveSettings()
  1032. autoload2()
  1033.  
  1034. end
  1035. if Settings.refarmc then
  1036. refarmcon()
  1037. autoload2()
  1038. end
  1039. --setAutoFarmStory
  1040. function setfarm1()
  1041. print("Set AutoFarm Story ?")
  1042. --Start
  1043. if Settings.autostart then
  1044. Settings.autostart = true end
  1045. --Place unit
  1046. if Settings.AutoFarm then
  1047. Settings.AutoFarm = true end
  1048. --Replay
  1049. if Settings.AutoReplay then
  1050. Settings.AutoReplay = false end
  1051. --Next Story
  1052. if Settings.AutoNext then
  1053. Settings.AutoNext = false end
  1054. --Leave
  1055. if Settings.AutoLeave then
  1056. Settings.AutoLeave = true end
  1057. --Abilities
  1058. if Settings.AutoAbilities then
  1059. Settings.AutoAbilities = true end
  1060. --Upgrade
  1061. if Settings.AutoUpgrade then
  1062. Settings.AutoUpgrade = true end
  1063. --AutoSell
  1064. if Settings.AutoSell then
  1065. Settings.AutoSell = true end
  1066. --autoQuitWave
  1067. if Settings.autoQuit then
  1068. Settings.autoQuit = false end
  1069. --AutoSellWave
  1070. if Settings.AutoSellWave then
  1071. Settings.AutoSellWave = 50 end
  1072. --Inf Castle--
  1073. --Next Level inf cas
  1074. if Settings.AutoContinue then
  1075. Settings.AutoContinue = false end
  1076. --Auto Infinity Castle
  1077. if Settings.AutoInfinityCastle then
  1078. Settings.AutoInfinityCastle = false end
  1079. saveSettings()
  1080. autoload2()
  1081.  
  1082. end
  1083. if Settings.setfarm1 then
  1084. setfarm1()
  1085. autoload2()
  1086. end
  1087. --setAutoFarmStorynReplay
  1088. function setfarm2()
  1089. print("Set AutoFarm Story & Replay ?")
  1090. --Start
  1091. if Settings.autostart then
  1092. Settings.autostart = true end
  1093. --Place unit
  1094. if Settings.AutoFarm then
  1095. Settings.AutoFarm = true end
  1096. --Replay
  1097. if Settings.AutoReplay then
  1098. Settings.AutoReplay = true end
  1099. --Next Story
  1100. if Settings.AutoNext then
  1101. Settings.AutoNext = false end
  1102. --Leave
  1103. if Settings.AutoLeave then
  1104. Settings.AutoLeave = true end
  1105. --Abilities
  1106. if Settings.AutoAbilities then
  1107. Settings.AutoAbilities = true end
  1108. --Upgrade
  1109. if Settings.AutoUpgrade then
  1110. Settings.AutoUpgrade = true end
  1111. --AutoSell
  1112. if Settings.AutoSell then
  1113. Settings.AutoSell = true end
  1114. --autoQuitWave
  1115. if Settings.autoQuit then
  1116. Settings.autoQuit = false end
  1117. --AutoSellWave
  1118. if Settings.AutoSellWave then
  1119. Settings.AutoSellWave = 50 end
  1120. --Inf Castle--
  1121. --Next Level inf cas
  1122. if Settings.AutoContinue then
  1123. Settings.AutoContinue = false end
  1124. --Auto Infinity Castle
  1125. if Settings.AutoInfinityCastle then
  1126. Settings.AutoInfinityCastle = false end
  1127. saveSettings()
  1128. autoload2()
  1129.  
  1130. end
  1131. if Settings.setfarm2 then
  1132. setfarm2()
  1133. autoload2()
  1134. end
  1135. --setAutoInfCastle
  1136. function setfarmIC()
  1137. print("Set AutoFarm Inf Castle ?")
  1138. --Start
  1139. if Settings.autostart then
  1140. Settings.autostart = false end
  1141. --Place unit
  1142. if Settings.AutoFarm then
  1143. Settings.AutoFarm = true end
  1144. --Replay
  1145. if Settings.AutoReplay then
  1146. Settings.AutoReplay = false end
  1147. --Next Story
  1148. if Settings.AutoNext then
  1149. Settings.AutoNext = false end
  1150. --Leave
  1151. if Settings.AutoLeave then
  1152. Settings.AutoLeave = false end
  1153. --Abilities
  1154. if Settings.AutoAbilities then
  1155. Settings.AutoAbilities = true end
  1156. --Upgrade
  1157. if Settings.AutoUpgrade then
  1158. Settings.AutoUpgrade = true end
  1159. --AutoSell
  1160. if Settings.AutoSell then
  1161. Settings.AutoSell = true end
  1162. --autoQuitWave
  1163. if Settings.autoQuit then
  1164. Settings.autoQuit = false end
  1165. --AutoSellWave
  1166. if Settings.AutoSellWave then
  1167. Settings.AutoSellWave = 50 end
  1168. --Inf Castle--
  1169. --Next Level inf cas
  1170. if Settings.AutoContinue then
  1171. Settings.AutoContinue = true end
  1172. --Auto Infinity Castle
  1173. if Settings.AutoInfinityCastle then
  1174. Settings.AutoInfinityCastle = true end
  1175. saveSettings()
  1176. autoload2()
  1177.  
  1178. end
  1179. if Settings.setfarmIC then
  1180. setfarmIC()
  1181. autoload2()
  1182. end
  1183. -----------------------------------------------
  1184. ----------------------------------------------
  1185. ----------------- Challenge ------------------
  1186. ----------------------------------------------
  1187. local function ChallengeSec()
  1188. local challengeconfig = ChallengeConfig:Cheat("Dropdown", "๐Ÿฅ‡ Select Reward",function(value)
  1189. print(value)
  1190. Settings.SelectedReward = value
  1191. saveSettings()
  1192. end, { options = {"star_fruit_random","star_remnant","gems", "gold"}, default =Settings.SelectedReward})
  1193. ChallengeConfig:Cheat("Checkbox","๐ŸŽฏ Auto Challenge ", function(bool)
  1194. print(bool)
  1195. Settings.AutoChallenge = bool
  1196. saveSettings()
  1197. end, {enabled =Settings.AutoChallenge})
  1198. ChallengeConfig:Cheat("Checkbox","๐Ÿ† Farm Any Rewards ", function(bool)
  1199. print(bool)
  1200. Settings.AutoChallengeAll = bool
  1201. saveSettings()
  1202. end,{enabled =Settings.AutoChallengeAll})
  1203. end
  1204. ----------------------------------------------
  1205. ------------------ credits -------------------
  1206. ----------------------------------------------
  1207. local function credits()
  1208. Developers:Cheat("Label","๐Ÿ“ Scripted by: Arpon AG#6612 & Forever4D#0001 & HOLYSHz#3819 ")
  1209. Developers:Cheat("Label","๐Ÿ“ Also thanks to Trapstar#7845, bytenode#9646 for the help!")
  1210. Developers:Cheat("Label","๐Ÿ“ UI By: detourious @ v3rmillion.net")
  1211. Developers:Cheat("Label","๐Ÿ”ง To toggle the script press \" P \"")
  1212. Developers:Cheat("Button","๐Ÿ”— Discord Invite", function()
  1213. setclipboard("https://discord.gg/2ttfCfzxut")
  1214. end)
  1215. UIUPDT:Cheat("Label","[+] idk \n[+]reeeeeeeeeee")
  1216. end
  1217. getgenv().posX = 1.5
  1218. getgenv().posZ = 1.5
  1219. ----------------------------------------------
  1220. ---------------- Unit Config -----------------
  1221. ----------------------------------------------
  1222. function updatepos(map, UnitPos, a,a2,a3,a4,a5,a6)
  1223. local GetLevelData = game.workspace._MAP_CONFIG:WaitForChild("GetLevelData"):InvokeServer()
  1224. world = GetLevelData.world or GetLevelData.name
  1225. warn(map)
  1226. if Settings[map] == nil then
  1227. Settings[map] = {}
  1228. saveSettings()
  1229. end
  1230. if Settings[map][UnitPos] == nil then
  1231. Settings[map] = {
  1232. UP1 = {
  1233. x = 0,
  1234. z = 0,
  1235. y = 0,
  1236. y2 = 0,
  1237. y3 = 0,
  1238. y4 = 0,
  1239. y5 = 0,
  1240. y6 = 0
  1241. },
  1242. UP2 = {
  1243. x = 0,
  1244. z = 0,
  1245. y = 0,
  1246. y2 = 0,
  1247. y3 = 0,
  1248. y4 = 0,
  1249. y5 = 0,
  1250. y6 = 0
  1251. },
  1252. UP3 = {
  1253. x = 0,
  1254. z = 0,
  1255. y = 0,
  1256. y2 = 0,
  1257. y3 = 0,
  1258. y4 = 0,
  1259. y5 = 0,
  1260. y6 = 0
  1261. },
  1262. UP4 = {
  1263. x = 0,
  1264. z = 0,
  1265. y = 0,
  1266. y2 = 0,
  1267. y3 = 0,
  1268. y4 = 0,
  1269. y5 = 0,
  1270. y6 = 0
  1271. },
  1272. UP5 = {
  1273. x = 0,
  1274. z = 0,
  1275. y = 0,
  1276. y2 = 0,
  1277. y3 = 0,
  1278. y4 = 0,
  1279. y5 = 0,
  1280. y6 = 0
  1281. },
  1282. UP6 = {
  1283. x = 0,
  1284. z = 0,
  1285. y = 0,
  1286. y2 = 0,
  1287. y3 = 0,
  1288. y4 = 0,
  1289. y5 = 0,
  1290. y6 = 0
  1291. }
  1292. }
  1293. saveSettings()
  1294. end
  1295. pcall(function()
  1296.  
  1297. end)
  1298. Settings[map][UnitPos]["x"] = a.Position.X
  1299. Settings[map][UnitPos]["z"] = a.Position.Z
  1300. Settings[map][UnitPos]["y"] = a.Position.Y
  1301. Settings[map][UnitPos]["y2"] = a2.Position.Y
  1302. Settings[map][UnitPos]["y3"] = a3.Position.Y
  1303. Settings[map][UnitPos]["y4"] = a4.Position.Y
  1304. Settings[map][UnitPos]["y5"] = a5.Position.Y
  1305. Settings[map][UnitPos]["y6"] = a6.Position.Y
  1306. print("updatepos")
  1307. saveSettings()
  1308. end
  1309. --updatefix fixmap
  1310. function saveposTEST(UnitPos, a,a2,a3,a4,a5,a6)
  1311. local GetLevelData = game.workspace._MAP_CONFIG:WaitForChild("GetLevelData"):InvokeServer()
  1312. world = GetLevelData.world or GetLevelData.name
  1313. if game.workspace._MAP_CONFIG:WaitForChild("GetLevelData") then
  1314. updatepos(world, UnitPos, a,a2,a3,a4,a5,a6)
  1315. end
  1316. warn("savepos test")
  1317. end
  1318. function savepos(UnitPos, a,a2,a3,a4,a5,a6)
  1319. if game.Workspace._map:FindFirstChild("namek mushroom model") then
  1320. updatepos("namek", UnitPos, a,a2,a3,a4,a5,a6)
  1321. elseif game.Workspace._map:FindFirstChild("houses_new") then
  1322. updatepos("aot", UnitPos, a,a2,a3,a4,a5,a6)
  1323. elseif game.Workspace._map:FindFirstChild("Snow Particles") then
  1324. updatepos("demonslayer", UnitPos, a,a2,a3,a4,a5,a6)
  1325. elseif game.Workspace._map:FindFirstChild("sand_gate") then
  1326. updatepos("naruto", UnitPos, a,a2,a3,a4,a5,a6)
  1327. elseif game.Workspace._map:FindFirstChild("icebergs") then
  1328. updatepos("marineford", UnitPos, a,a2,a3,a4,a5,a6)
  1329. elseif game.Workspace._map:FindFirstChild("new buildings") then
  1330. updatepos("tokyo_ghoul", UnitPos, a,a2,a3,a4,a5,a6)
  1331. elseif game.Workspace._map:FindFirstChild("Bones/dust") then
  1332. updatepos("hueco", UnitPos, a,a2,a3,a4,a5,a6)
  1333. elseif game.Workspace._map:FindFirstChild("light poles") then
  1334. updatepos("magnolia", UnitPos, a,a2,a3,a4,a5,a6)
  1335. elseif game.Workspace._map:FindFirstChild("LanternsGround") then
  1336. updatepos("jjk", UnitPos, a,a2,a3,a4,a5,a6)
  1337. elseif game.Workspace._map:FindFirstChild("pumpkins") then
  1338. updatepos("thriller_park", UnitPos, a,a2,a3,a4,a5,a6)
  1339. elseif game.Workspace._map:FindFirstChild("sand_bags") then
  1340. updatepos("bleach_legend", UnitPos, a,a2,a3,a4,a5,a6)
  1341. elseif game.Workspace._map:FindFirstChild("vending machines") then
  1342. updatepos("chainsaw", UnitPos, a,a2,a3,a4,a5,a6)
  1343. elseif game.Workspace._map:FindFirstChild("SpaceCenter") then
  1344. updatepos("jojo", UnitPos, a,a2,a3,a4,a5,a6)
  1345. elseif game.Workspace._map:FindFirstChild("secret") then
  1346. updatepos("opm", UnitPos, a,a2,a3,a4,a5,a6)
  1347. elseif game.Workspace._map:FindFirstChild("s") then
  1348. updatepos("west_city", UnitPos, a,a2,a3,a4,a5,a6)
  1349. elseif game.Workspace._map:FindFirstChild("bushes and flowers") then
  1350. updatepos("uchiha", UnitPos, a,a2,a3,a4,a5,a6)
  1351. elseif game.Workspace._map:FindFirstChild("snow grass") then
  1352. updatepos("demonslayer_raid_1", UnitPos, a,a2,a3,a4,a5,a6)
  1353. elseif game.Workspace._map:FindFirstChild("misc nonocollide obstacles") then
  1354. updatepos("7ds", UnitPos, a,a2,a3,a4,a5,a6)
  1355. elseif game.Workspace._map:FindFirstChild("bridge nocollide") then
  1356. updatepos("mha", UnitPos, a,a2,a3,a4,a5,a6)
  1357. elseif game.Workspace._map:FindFirstChild("benches and barrels") then
  1358. updatepos("entertain", UnitPos, a,a2,a3,a4,a5,a6)
  1359. elseif game.Workspace._map:FindFirstChild("Ant Nest") then
  1360. updatepos("hxhant", UnitPos, a,a2,a3,a4,a5,a6)
  1361. elseif game.Workspace._map:FindFirstChild("linings") then
  1362. updatepos("OPnew", UnitPos, a,a2,a3,a4,a5,a6)
  1363. elseif game.Workspace._map:FindFirstChild("buildingsouter") then
  1364. updatepos("Modako", UnitPos, a,a2,a3,a4,a5,a6)
  1365. elseif game.Workspace._map["misc deco"]:FindFirstChild("bushes") then
  1366. updatepos("clover", UnitPos, a,a2,a3,a4,a5,a6)
  1367. end
  1368. warn("savepos")
  1369. end
  1370. function mobilegui(UnitPos, a,a2,a3,a4,a5,a6)
  1371. local BillboardGui = Instance.new("BillboardGui")
  1372. local Frame = Instance.new("Frame")
  1373. local UIListLayout = Instance.new("UIListLayout")
  1374. local Done = Instance.new("TextButton")
  1375. local UICorner = Instance.new("UICorner")
  1376. local Cancel = Instance.new("TextButton")
  1377. local UICorner_2 = Instance.new("UICorner")
  1378. --Properties:
  1379. BillboardGui.Adornee = a
  1380. BillboardGui.Parent = game.Players.LocalPlayer.PlayerGui
  1381. BillboardGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  1382. BillboardGui.Active = true
  1383. BillboardGui.LightInfluence = 1.000
  1384. BillboardGui.Size = UDim2.new(7, 0, 3, 0)
  1385. BillboardGui.SizeOffset = Vector2.new(0, 1.5)
  1386. Frame.Parent = BillboardGui
  1387. Frame.BackgroundColor3 = Color3.fromRGB(49, 49, 57)
  1388. Frame.BackgroundTransparency = 1.000
  1389. Frame.Size = UDim2.new(1, 0, 0.5, 0)
  1390. UIListLayout.Parent = Frame
  1391. UIListLayout.FillDirection = Enum.FillDirection.Horizontal
  1392. UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
  1393. UIListLayout.Padding = UDim.new(0.0599999987, 0)
  1394. Done.Name = "Done"
  1395. Done.Parent = Frame
  1396. Done.BackgroundColor3 = Color3.fromRGB(34, 255, 0)
  1397. Done.Size = UDim2.new(0.469999999, 0, 1, 0)
  1398. Done.Font = Enum.Font.SourceSansBold
  1399. Done.Text = "Done"
  1400. Done.TextColor3 = Color3.fromRGB(255, 255, 255)
  1401. Done.TextScaled = true
  1402. Done.TextSize = 1.000
  1403. Done.TextWrapped = true
  1404. Done.Activated:Connect(function()
  1405. _G.gg = false
  1406. savepos(UnitPos, a,a2,a3,a4,a5,a6)
  1407. for i = 0, 1, 0.1 do
  1408. a.Transparency = i
  1409. a2.Transparency = i
  1410. a3.Transparency = i
  1411. a4.Transparency = i
  1412. a5.Transparency = i
  1413. a6.Transparency = i
  1414. task.wait()
  1415. end
  1416. a:Destroy()
  1417. a2:Destroy()
  1418. a3:Destroy()
  1419. a4:Destroy()
  1420. a5:Destroy()
  1421. a6:Destroy()
  1422. BillboardGui:Destroy();
  1423. end)
  1424.  
  1425. UICorner.CornerRadius = UDim.new(0.119999997, 0)
  1426. UICorner.Parent = Done
  1427. Cancel.Name = "Cancel"
  1428. Cancel.Parent = Frame
  1429. Cancel.BackgroundColor3 = Color3.fromRGB(255, 0, 4)
  1430. Cancel.Size = UDim2.new(0.469999999, 0, 1, 0)
  1431. Cancel.Font = Enum.Font.SourceSansBold
  1432. Cancel.Text = "Cancel"
  1433. Cancel.TextColor3 = Color3.fromRGB(255, 255, 255)
  1434. Cancel.TextScaled = true
  1435. Cancel.TextSize = 1.000
  1436. Cancel.TextWrapped = true
  1437. Cancel.Activated:Connect(function()
  1438. print("Cancel")
  1439. _G.gg = false
  1440. for i = 0, 1, 0.1 do
  1441. a.Transparency = i
  1442. a2.Transparency = i
  1443. a3.Transparency = i
  1444. a4.Transparency = i
  1445. a5.Transparency = i
  1446. a6.Transparency = i
  1447. task.wait()
  1448. end
  1449. a:Destroy()
  1450. a2:Destroy()
  1451. a3:Destroy()
  1452. a4:Destroy()
  1453. a5:Destroy()
  1454. a6:Destroy()
  1455. BillboardGui:Destroy();
  1456. end)
  1457.  
  1458. UICorner_2.CornerRadius = UDim.new(0.119999997, 0)
  1459. UICorner_2.Parent = Cancel
  1460. end
  1461. function MouseClick2(UnitPos)
  1462. if UserInputService.TouchEnabled then mobile = true else mobile = false end
  1463. print("a")
  1464. local raycastParams = RaycastParams.new()
  1465. raycastParams.FilterType = Enum.RaycastFilterType.Whitelist
  1466. raycastParams.FilterDescendantsInstances = {game:GetService("Workspace")["_terrain"]}
  1467. _G.gg = true
  1468. task.wait(0.5)
  1469. local x = getgenv().posX
  1470. local z = getgenv().posZ
  1471. local a = Instance.new("Part", game.Workspace)
  1472. local a2 = Instance.new("Part", game.Workspace)
  1473. local a3 = Instance.new("Part", game.Workspace)
  1474. local a4 = Instance.new("Part", game.Workspace)
  1475. local a5 = Instance.new("Part", game.Workspace)
  1476. local a6 = Instance.new("Part", game.Workspace)
  1477. a.Size = Vector3.new(1, 1, 1)
  1478. a2.Size = Vector3.new(1, 1, 1)
  1479. a3.Size = Vector3.new(1, 1, 1)
  1480. a4.Size = Vector3.new(1, 1, 1)
  1481. a5.Size = Vector3.new(1, 1, 1)
  1482. a6.Size = Vector3.new(1, 1, 1)
  1483. a.Material = Enum.Material.Neon
  1484. a2.Material = Enum.Material.Neon
  1485. a3.Material = Enum.Material.Neon
  1486. a4.Material = Enum.Material.Neon
  1487. a5.Material = Enum.Material.Neon
  1488. a6.Material = Enum.Material.Neon
  1489. --a.Position = mouse.hit.p
  1490. game:GetService("RunService").RenderStepped:Connect(function()
  1491. pcall(function()
  1492. if _G.gg and not mobile then
  1493. mouse.TargetFilter = a
  1494. local xPos = mouse.Hit.Position.X --x position of unit
  1495. local zPos = mouse.Hit.Position.Z --z position of unit
  1496. local rayOrigin = CFrame.new(xPos, 1000, zPos).p
  1497. local rayDestination = CFrame.new(xPos, -500, zPos).p
  1498. local rayDirection = (rayDestination - rayOrigin)
  1499. local raycastResult = workspace:Raycast(rayOrigin, rayDirection, raycastParams)
  1500. a.CFrame = CFrame.new(raycastResult.Position) * CFrame.Angles(0, -0, -0)
  1501. local xPos2 = a.Position.X --x position of unit
  1502. local zPos2 = a.Position.Z + z --z position of unit
  1503. local rayOrigin2 = CFrame.new(xPos2, 1000, zPos2).p
  1504. local rayDestination2 = CFrame.new(xPos2, -500, zPos2).p
  1505. local rayDirection2 = (rayDestination2 - rayOrigin2)
  1506. local raycastResult2 = workspace:Raycast(rayOrigin2, rayDirection2, raycastParams)
  1507. a2.CFrame = CFrame.new(raycastResult2.Position) * CFrame.Angles(0, -0, -0)
  1508. local xPos3 = a.Position.X + x --x position of unit
  1509. local zPos3 = a.Position.Z --z position of unit
  1510. local rayOrigin3 = CFrame.new(xPos3, 1000, zPos3).p
  1511. local rayDestination3 = CFrame.new(xPos3, -500, zPos3).p
  1512. local rayDirection3 = (rayDestination3 - rayOrigin3)
  1513. local raycastResult3 = workspace:Raycast(rayOrigin3, rayDirection3, raycastParams)
  1514. a3.CFrame = CFrame.new(raycastResult3.Position) * CFrame.Angles(0, -0, -0)
  1515. local xPos4 = a.Position.X - x --x position of unit
  1516. local zPos4 = a.Position.Z --z position of unit
  1517. local rayOrigin4 = CFrame.new(xPos4, 1000, zPos4).p
  1518. local rayDestination4 = CFrame.new(xPos4, -500, zPos4).p
  1519. local rayDirection4 = (rayDestination4 - rayOrigin4)
  1520. local raycastResult4 = workspace:Raycast(rayOrigin4, rayDirection4, raycastParams)
  1521. a4.CFrame = CFrame.new(raycastResult4.Position) * CFrame.Angles(0, -0, -0)
  1522. local xPos5 = a.Position.X + x--x position of unit
  1523. local zPos5 = a.Position.Z + z --z position of unit
  1524. local rayOrigin5 = CFrame.new(xPos5, 1000, zPos5).p
  1525. local rayDestination5 = CFrame.new(xPos5, -500, zPos5).p
  1526. local rayDirection5 = (rayDestination5 - rayOrigin5)
  1527. local raycastResult5 = workspace:Raycast(rayOrigin5, rayDirection5, raycastParams)
  1528. a5.CFrame = CFrame.new(raycastResult5.Position) * CFrame.Angles(0, -0, -0)
  1529. local xPos6 = a.Position.X - x --x position of unit
  1530. local zPos6 = a.Position.Z + z --z position of unit
  1531. local rayOrigin6 = CFrame.new(xPos6, 1000, zPos6).p
  1532. local rayDestination6 = CFrame.new(xPos6, -500, zPos6).p
  1533. local rayDirection6 = (rayDestination6 - rayOrigin6)
  1534. local raycastResult6 = workspace:Raycast(rayOrigin6, rayDirection6, raycastParams)
  1535. a6.CFrame = CFrame.new(raycastResult6.Position) * CFrame.Angles(0, -0, -0)
  1536. elseif _G.gg and mobile then
  1537. warn("MOBILE DEVICE")
  1538. UserInputService.TouchLongPress:Connect(function()
  1539. mouse.TargetFilter = a
  1540. local xPos = mouse.Hit.Position.X --x position of unit
  1541. local zPos = mouse.Hit.Position.Z --z position of unit
  1542. local rayOrigin = CFrame.new(xPos, 1000, zPos).p
  1543. local rayDestination = CFrame.new(xPos, -500, zPos).p
  1544. local rayDirection = (rayDestination - rayOrigin)
  1545. local raycastResult = workspace:Raycast(rayOrigin, rayDirection, raycastParams)
  1546. a.CFrame = CFrame.new(raycastResult.Position) * CFrame.Angles(0, -0, -0)
  1547. local xPos2 = a.Position.X --x position of unit
  1548. local zPos2 = a.Position.Z + z --z position of unit
  1549. local rayOrigin2 = CFrame.new(xPos2, 1000, zPos2).p
  1550. local rayDestination2 = CFrame.new(xPos2, -500, zPos2).p
  1551. local rayDirection2 = (rayDestination2 - rayOrigin2)
  1552. local raycastResult2 = workspace:Raycast(rayOrigin2, rayDirection2, raycastParams)
  1553. a2.CFrame = CFrame.new(raycastResult2.Position) * CFrame.Angles(0, -0, -0)
  1554. local xPos3 = a.Position.X + x --x position of unit
  1555. local zPos3 = a.Position.Z --z position of unit
  1556. local rayOrigin3 = CFrame.new(xPos3, 1000, zPos3).p
  1557. local rayDestination3 = CFrame.new(xPos3, -500, zPos3).p
  1558. local rayDirection3 = (rayDestination3 - rayOrigin3)
  1559. local raycastResult3 = workspace:Raycast(rayOrigin3, rayDirection3, raycastParams)
  1560. a3.CFrame = CFrame.new(raycastResult3.Position) * CFrame.Angles(0, -0, -0)
  1561. local xPos4 = a.Position.X - x --x position of unit
  1562. local zPos4 = a.Position.Z --z position of unit
  1563. local rayOrigin4 = CFrame.new(xPos4, 1000, zPos4).p
  1564. local rayDestination4 = CFrame.new(xPos4, -500, zPos4).p
  1565. local rayDirection4 = (rayDestination4 - rayOrigin4)
  1566. local raycastResult4 = workspace:Raycast(rayOrigin4, rayDirection4, raycastParams)
  1567. a4.CFrame = CFrame.new(raycastResult4.Position) * CFrame.Angles(0, -0, -0)
  1568. local xPos5 = a.Position.X + x--x position of unit
  1569. local zPos5 = a.Position.Z + z --z position of unit
  1570. local rayOrigin5 = CFrame.new(xPos5, 1000, zPos5).p
  1571. local rayDestination5 = CFrame.new(xPos5, -500, zPos5).p
  1572. local rayDirection5 = (rayDestination5 - rayOrigin5)
  1573. local raycastResult5 = workspace:Raycast(rayOrigin5, rayDirection5, raycastParams)
  1574. a5.CFrame = CFrame.new(raycastResult5.Position) * CFrame.Angles(0, -0, -0)
  1575. local xPos6 = a.Position.X - x --x position of unit
  1576. local zPos6 = a.Position.Z + z --z position of unit
  1577. local rayOrigin6 = CFrame.new(xPos6, 1000, zPos6).p
  1578. local rayDestination6 = CFrame.new(xPos6, -500, zPos6).p
  1579. local rayDirection6 = (rayDestination6 - rayOrigin6)
  1580. local raycastResult6 = workspace:Raycast(rayOrigin6, rayDirection6, raycastParams)
  1581. a6.CFrame = CFrame.new(raycastResult6.Position) * CFrame.Angles(0, -0, -0)
  1582. end)
  1583. end
  1584. end)
  1585. end)
  1586. task.wait()
  1587. a.Anchored = true
  1588. a2.Anchored = true
  1589. a3.Anchored = true
  1590. a4.Anchored = true
  1591. a5.Anchored = true
  1592. a6.Anchored = true
  1593. a.CanCollide = false
  1594. a2.CanCollide = false
  1595. a3.CanCollide = false
  1596. a4.CanCollide = false
  1597. a5.CanCollide = false
  1598. a6.CanCollide = false
  1599. if _G.gg and not mobile then
  1600. kjqhwe = mouse.Button1Down:Connect(function()
  1601. kjqhwe:Disconnect()
  1602. print("b")
  1603. savepos(UnitPos, a,a2,a3,a4,a5,a6)
  1604. _G.gg = false
  1605. for i = 0, 1, 0.1 do
  1606. a.Transparency = i
  1607. a2.Transparency = i
  1608. a3.Transparency = i
  1609. a4.Transparency = i
  1610. a5.Transparency = i
  1611. a6.Transparency = i
  1612. task.wait()
  1613. end
  1614. a:Destroy()
  1615. a2:Destroy()
  1616. a3:Destroy()
  1617. a4:Destroy()
  1618. a5:Destroy()
  1619. a6:Destroy()
  1620. end)
  1621. elseif _G.gg and mobile then
  1622. mobilegui(UnitPos, a,a2,a3,a4,a5,a6)
  1623. end
  1624. end
  1625. local function UnitPosSec()
  1626. UnitPosition:Cheat("Button", "Unit 1 Position", function()
  1627. MouseClick2("UP1")
  1628. end)
  1629. UnitPosition:Cheat("Button", "Unit 2 Position", function()
  1630. MouseClick2("UP2")
  1631. end)
  1632. UnitPosition:Cheat("Button", "Unit 3 Position", function()
  1633. MouseClick2("UP3")
  1634. end)
  1635. UnitPosition:Cheat("Button", "Unit 4 Position", function()
  1636. MouseClick2("UP4")
  1637. end)
  1638. UnitPosition:Cheat("Button", "Unit 5 Position", function()
  1639. MouseClick2("UP5")
  1640. end)
  1641. UnitPosition:Cheat("Button", "Unit 6 Position", function()
  1642. MouseClick2("UP6")
  1643. end)
  1644. end
  1645. local function unitconfig()
  1646. --emptyxx:Cheat("Label"," ")
  1647. --NDY:Cheat("Label","THIS SECTION IS NOT FINISHED SO IT WILL NOT WORK. FOR UPDATE JOIN DISCORD!")
  1648. --NDY2:Cheat("Label"," ")
  1649. NDY:Cheat("Checkbox"," Open Unit Config ", function(bool)
  1650. print(bool)
  1651. Settings.unitconfig = bool
  1652. saveSettings()
  1653. end,{enabled = Settings.unitconfig })
  1654. NDY2:Cheat("Button", "Test Reset unit config", function()
  1655. print(Settings.reunitc)
  1656. reunitcon()
  1657. end)
  1658. --//UNIT 1
  1659. --[[ Unit1:Cheat("Textbox", "Placement Priority", function(Value)
  1660. Value = tonumber(Value)
  1661. Settings.U1_UnPlace = Value
  1662. saveSettings()
  1663. end, {placeholder = Settings.U1_UnPlace})]]
  1664. Unit1:Cheat("Textbox", "Place from wave", function(Value)
  1665. Value = tonumber(Value)
  1666. Settings.U1_Wave = Value
  1667. saveSettings()
  1668. end, {placeholder = Settings.U1_Wave})
  1669. Unit1:Cheat("Textbox", "Total Units", function(Value)
  1670. Value = tonumber(Value)
  1671. Settings.U1_TotalAmmount = Value
  1672. saveSettings()
  1673. end, {placeholder = Settings.U1_TotalAmmount})
  1674. --[[ Unit1:Cheat("Textbox", "Upgrade Priority", function(Value)
  1675. Value = tonumber(Value)
  1676. Settings.U1_UpgPro = Value
  1677. saveSettings()
  1678. end, {placeholder = Settings.U1_UpgPro})]]
  1679. Unit1:Cheat("Textbox", "Upgrade from wave", function(Value)
  1680. Value = tonumber(Value)
  1681. Settings.U1_UpgWave = Value
  1682. saveSettings()
  1683. end, {placeholder = Settings.U1_UpgWave})
  1684. --[[Unit1:Cheat("Textbox", "Upgrade Cap", function(Value)
  1685. Value = tonumber(Value)
  1686. Settings.U1_UpgCap = Value
  1687. saveSettings()
  1688. end, {placeholder = Settings.U1_UpgCap})]]
  1689. Unit1:Cheat("Textbox", "Auto Sell at wave", function(Value)
  1690. Value = tonumber(Value)
  1691. Settings.U1_SellWave = Value
  1692. saveSettings()
  1693. end, {placeholder = Settings.U1_SellWave})
  1694. --//UNIT 2
  1695. --[[ Unit2:Cheat("Textbox", "Placement Priority", function(Value)
  1696. Value = tonumber(Value)
  1697. Settings.U2_UnPlace = Value
  1698. saveSettings()
  1699. end, {placeholder = Settings.U2_UnPlace})]]
  1700. Unit2:Cheat("Textbox", "Place from wave", function(Value)
  1701. Value = tonumber(Value)
  1702. Settings.U2_Wave = Value
  1703. saveSettings()
  1704. end, {placeholder = Settings.U2_Wave})
  1705. Unit2:Cheat("Textbox", "Total Units", function(Value)
  1706. Value = tonumber(Value)
  1707. Settings.U2_TotalAmmount = Value
  1708. saveSettings()
  1709. end, {placeholder = Settings.U2_TotalAmmount})
  1710. --[[Unit2:Cheat("Textbox", "Upgrade Priority", function(Value)
  1711. Value = tonumber(Value)
  1712. Settings.U2_UpgPro = Value
  1713. saveSettings()
  1714. end, {placeholder = Settings.U2_UpgPro})]]
  1715. Unit2:Cheat("Textbox", "Upgrade from wave", function(Value)
  1716. Value = tonumber(Value)
  1717. Settings.U2_UpgWave = Value
  1718. saveSettings()
  1719. end, {placeholder = Settings.U2_UpgWave})
  1720. --[[Unit2:Cheat("Textbox", "Upgrade Cap", function(Value)
  1721. Value = tonumber(Value)
  1722. Settings.U2_UpgCap = Value
  1723. saveSettings()
  1724. end, {placeholder = Settings.U2_UpgCap})]]
  1725. Unit2:Cheat("Textbox", "Auto Sell at wave", function(Value)
  1726. Value = tonumber(Value)
  1727. Settings.U2_SellWave = Value
  1728. saveSettings()
  1729. end, {placeholder = Settings.U2_SellWave})
  1730.  
  1731. ---//UNIT 3
  1732. --[[Unit3:Cheat("Textbox", "Placement Priority", function(Value)
  1733. Value = tonumber(Value)
  1734. Settings.U3_UnPlace = Value
  1735. saveSettings()
  1736. end, {placeholder = Settings.U3_UnPlace})]]
  1737. Unit3:Cheat("Textbox", "Place from wave", function(Value)
  1738. Value = tonumber(Value)
  1739. Settings.U3_Wave = Value
  1740. saveSettings()
  1741. end, {placeholder = Settings.U3_Wave})
  1742.  
  1743. Unit3:Cheat("Textbox", "Total Units", function(Value)
  1744. Value = tonumber(Value)
  1745. Settings.U3_TotalAmmount = Value
  1746. saveSettings()
  1747. end, {placeholder = Settings.U3_TotalAmmount})
  1748. --[[Unit3:Cheat("Textbox", "Upgrade Priority", function(Value)
  1749. Value = tonumber(Value)
  1750. Settings.U3_UpgPro = Value
  1751. saveSettings()
  1752. end, {placeholder = Settings.U3_UpgPro})]]
  1753.  
  1754. Unit3:Cheat("Textbox", "Upgrade from wave", function(Value)
  1755. Value = tonumber(Value)
  1756. Settings.U3_UpgWave = Value
  1757. saveSettings()
  1758. end, {placeholder = Settings.U3_UpgWave})
  1759.  
  1760. --[[Unit3:Cheat("Textbox", "Upgrade Cap", function(Value)
  1761. Value = tonumber(Value)
  1762. Settings.U3_UpgCap = Value
  1763. saveSettings()
  1764. end, {placeholder = Settings.U3_UpgCap})]]
  1765.  
  1766. Unit3:Cheat("Textbox", "Auto Sell at wave", function(Value)
  1767. Value = tonumber(Value)
  1768. Settings.U3_SellWave = Value
  1769. saveSettings()
  1770. end, {placeholder = Settings.U3_SellWave})
  1771. --//UNIT 4
  1772. --[[Unit4:Cheat("Textbox", "Placement Priority", function(Value)
  1773. Value = tonumber(Value)
  1774. Settings.U4_UnPlace = Value
  1775. saveSettings()
  1776. end, {placeholder = Settings.U4_UnPlace})]]
  1777. Unit4:Cheat("Textbox", "Place from wave", function(Value)
  1778. Value = tonumber(Value)
  1779. Settings.U4_Wave = Value
  1780. saveSettings()
  1781. end, {placeholder = Settings.U4_Wave})
  1782.  
  1783. Unit4:Cheat("Textbox", "Total Units", function(Value)
  1784. Value = tonumber(Value)
  1785. Settings.U4_TotalAmmount = Value
  1786. saveSettings()
  1787. end, {placeholder = Settings.U4_TotalAmmount})
  1788. --[[Unit4:Cheat("Textbox", "Upgrade Priority", function(Value)
  1789. Value = tonumber(Value)
  1790. Settings.U4_UpgPro = Value
  1791. saveSettings()
  1792. end, {placeholder = Settings.U4_UpgPro})]]
  1793.  
  1794. Unit4:Cheat("Textbox", "Upgrade from wave", function(Value)
  1795. Value = tonumber(Value)
  1796. Settings.U4_UpgWave = Value
  1797. saveSettings()
  1798. end, {placeholder = Settings.U4_UpgWave})
  1799.  
  1800. --[[Unit4:Cheat("Textbox", "Upgrade Cap", function(Value)
  1801. Value = tonumber(Value)
  1802. Settings.U4_UpgCap = Value
  1803. saveSettings()
  1804. end, {placeholder = Settings.U4_UpgCap})]]
  1805.  
  1806. Unit4:Cheat("Textbox", "Auto Sell at wave", function(Value)
  1807. Value = tonumber(Value)
  1808. Settings.U4_SellWave = Value
  1809. saveSettings()
  1810. end, {placeholder = Settings.U4_SellWave})
  1811.  
  1812. --//UNIT 5
  1813. --[[Unit5:Cheat("Textbox", "Placement Priority", function(Value)
  1814. Value = tonumber(Value)
  1815. Settings.U5_UnPlace = Value
  1816. saveSettings()
  1817. end, {placeholder = Settings.U5_UnPlace})]]
  1818. Unit5:Cheat("Textbox", "Place from wave", function(Value)
  1819. Value = tonumber(Value)
  1820. Settings.U5_Wave = Value
  1821. saveSettings()
  1822. end, {placeholder = Settings.U5_Wave})
  1823.  
  1824. Unit5:Cheat("Textbox", "Total Units", function(Value)
  1825. Value = tonumber(Value)
  1826. Settings.U5_TotalAmmount = Value
  1827. saveSettings()
  1828. end, {placeholder = Settings.U5_TotalAmmount})
  1829. --[[Unit5:Cheat("Textbox", "Upgrade Priority", function(Value)
  1830. Value = tonumber(Value)
  1831. Settings.U5_UpgPro = Value
  1832. saveSettings()
  1833. end, {placeholder = Settings.U5_UpgPro})]]
  1834.  
  1835. Unit5:Cheat("Textbox", "Upgrade from wave", function(Value)
  1836. Value = tonumber(Value)
  1837. Settings.U5_UpgWave = Value
  1838. saveSettings()
  1839. end, {placeholder = Settings.U5_UpgWave})
  1840.  
  1841. --[[Unit5:Cheat("Textbox", "Upgrade Cap", function(Value)
  1842. Value = tonumber(Value)
  1843. Settings.U5_UpgCap = Value
  1844. saveSettings()
  1845. end, {placeholder = Settings.U5_UpgCap})]]
  1846.  
  1847. Unit5:Cheat("Textbox", "Auto Sell at wave", function(Value)
  1848. Value = tonumber(Value)
  1849. Settings.U5_SellWave = Value
  1850. saveSettings()
  1851. end, {placeholder = Settings.U5_SellWave})
  1852. --//UNIT 6
  1853. --[[Unit6:Cheat("Textbox", "Placement Priority", function(Value)
  1854. Value = tonumber(Value)
  1855. Settings.U6_UnPlace = Value
  1856. saveSettings()
  1857. end, {placeholder = Settings.U6_UnPlace})]]
  1858. Unit6:Cheat("Textbox", "Place from wave", function(Value)
  1859. Value = tonumber(Value)
  1860. Settings.U6_Wave = Value
  1861. saveSettings()
  1862. end, {placeholder = Settings.U6_Wave})
  1863.  
  1864. Unit6:Cheat("Textbox", "Total Units", function(Value)
  1865. Value = tonumber(Value)
  1866. Settings.U6_TotalAmmount = Value
  1867. saveSettings()
  1868. end, {placeholder = Settings.U6_TotalAmmount})
  1869. --[[Unit6:Cheat("Textbox", "Upgrade Priority", function(Value)
  1870. Value = tonumber(Value)
  1871. Settings.U6_UpgPro = Value
  1872. saveSettings()
  1873. end, {placeholder = Settings.U6_UpgPro})]]
  1874.  
  1875. Unit6:Cheat("Textbox", "Upgrade from wave", function(Value)
  1876. Value = tonumber(Value)
  1877. Settings.U6_UpgWave = Value
  1878. saveSettings()
  1879. end, {placeholder = Settings.U6_UpgWave})
  1880.  
  1881. --[[Unit6:Cheat("Textbox", "Upgrade Cap", function(Value)
  1882. Value = tonumber(Value)
  1883. Settings.U6_UpgCap = Value
  1884. saveSettings()
  1885. end, {placeholder = Settings.U6_UpgCap})]]
  1886.  
  1887. Unit6:Cheat("Textbox", "Auto Sell at wave", function(Value)
  1888. Value = tonumber(Value)
  1889. Settings.U6_SellWave = Value
  1890. saveSettings()
  1891. end, {placeholder = Settings.U6_SellWave})
  1892. end
  1893. ---------------------------------------------
  1894. --resetautofarmUI
  1895. local function reFarmconfig()
  1896. reFarmConfig:Cheat("Button", "Reset Farm config", function()
  1897. print(Settings.refarmc)
  1898. refarmcon()
  1899. end)
  1900. end
  1901. ---------------------------------------------
  1902. ---------------------------------------------
  1903. local function LAGGYconfig()
  1904. LG1:Cheat("Label"," Is a BETA Version // Enjoy ")
  1905. --test New Lag
  1906. LG1:Cheat("Checkbox","Enable Laggy ", function(bool)
  1907. print(bool)
  1908. Settings.EnableLag = bool
  1909. saveSettings()
  1910. end,{enabled = Settings.EnableLag})
  1911. task.spawn(function()
  1912. while task.wait() do
  1913. if Settings.EnableLag then
  1914. delaylag = tonumber(Settings.delag or 1.5)
  1915. while wait(tonumber(Settings.delag or 1.5)) do --// don't change it's the best
  1916. game:GetService("NetworkClient"):SetOutgoingKBPSLimit(math.huge * math.huge)
  1917. local function getmaxvalue(val)
  1918. local mainvalueifonetable = 499999
  1919. if type(val) ~= "number" then
  1920. return nil
  1921. end
  1922. local calculateperfectval = (mainvalueifonetable/(val+2))
  1923. return calculateperfectval
  1924. end
  1925.  
  1926. --local function bomb(tableincrease, tries)
  1927. function bomb(tableincrease, tries)
  1928. local maintable = {}
  1929. local spammedtable = {}
  1930.  
  1931. table.insert(spammedtable, {})
  1932. z = spammedtable[1]
  1933. tableincrease = tonumber(Settings.max or 22)
  1934. for i = 1, tableincrease do
  1935. local tableins = {}
  1936. table.insert(z, tableins)
  1937. z = tableins
  1938. end
  1939.  
  1940. local calculatemax = getmaxvalue(tableincrease)
  1941. local maximum
  1942.  
  1943. if calculatemax then
  1944. maximum = calculatemax
  1945. else
  1946. maximum = 999999
  1947. end
  1948.  
  1949. for i = 1, maximum do
  1950. table.insert(maintable, spammedtable)
  1951. end
  1952.  
  1953. --tries = tonumber(Settings.mix or 1.5)
  1954. for i = 1, tries do
  1955. game.RobloxReplicatedStorage.SetPlayerBlockList:FireServer(maintable)
  1956. end
  1957. end
  1958.  
  1959. tableincrease = tonumber(Settings.max or 22)
  1960. --tries = tonumber(Settings.mix or 1.5)
  1961. if Settings.EnableLag then
  1962. bomb(tableincrease, tonumber(Settings.mix))
  1963. elseif not Settings.EnableLag then
  1964. bomb(tableincrease, 0)
  1965. end
  1966. --bomb(tableincrease, tries)
  1967. --repeat task.wait() until not Settings.EnableLag
  1968. end
  1969. end
  1970. end
  1971. end)
  1972. --[[LG1:Cheat("Textbox", "LAG Threads", function(Value)
  1973. print("LAG threads.:", Value)
  1974. Settings.max = tonumber(Value)
  1975. saveSettings()
  1976. end, {placeholder = Settings.max or 22})
  1977. LG1:Cheat("Textbox", "LAG Tries ", function(Value)
  1978. print("LAG tries.:", Value)
  1979. Settings.mix = tonumber(Value)
  1980. saveSettings()
  1981. end, {placeholder = Settings.mix or 0})
  1982. LG1:Cheat("Textbox", "Delay ", function(Value)
  1983. print("Delay.:", Value)
  1984. Settings.delag = tonumber(Value)
  1985. saveSettings()
  1986. end, {placeholder = Settings.delag or 1.5})]]
  1987. --LG1:Cheat("Label","LAG Threads : "..tonumber(Settings.max))
  1988. LG1:Cheat("Slider", "LAG Threads [slide]", function(Value)
  1989. print("LAG Lv.:", Value)
  1990. Settings.max = tonumber(Value)
  1991. saveSettings()
  1992. end, {min = 0, max = 250, suffix = "", default = 22 })
  1993. --LG1:Cheat("Label","LAG Lv : "..tonumber(Settings.mix))
  1994. LG1:Cheat("Slider", "LAG Lv. [slide]", function(Value)
  1995. print("LAG Lv.:", Value)
  1996. Settings.mix = tonumber(Value)
  1997. saveSettings()
  1998. end, {min = 1, max = 7, suffix = "", default = 1.2 })
  1999. --LG1:Cheat("Label","Delay : "..tonumber(Settings.delag))
  2000. LG1:Cheat("Slider", "Delay [slide]", function(Value)
  2001. print("Delay.:", Value)
  2002. Settings.delag = tonumber(Value)
  2003. saveSettings()
  2004. end, {min = 0.1, max = 10, suffix = "", default = 1.5 })
  2005. LG1:Cheat("Label"," Threads = lower the faster it lags ")
  2006. LG1:Cheat("Label"," Tries = the higher the faster it lags ")
  2007. LG1:Cheat("Label"," Delay = lower the faster it lags")
  2008. LG1:Cheat("Label"," def settings : threads = 250, tries = 1, Delay = 1.5 ")
  2009. LG1:Cheat("Label"," fast-lag settings : threads = 10, tries = 1.5, Delay = 1.5 ")
  2010. end
  2011. ----------------------------------------------
  2012. ---------------- Auto Summon -----------------
  2013. ----------------------------------------------
  2014. function SummonUnits(banner, method)
  2015. local args = {
  2016. [1] = tostring(banner),
  2017. [2] = tostring(method)
  2018. }
  2019. game:GetService("ReplicatedStorage").endpoints.client_to_server.buy_from_banner:InvokeServer(unpack(args))
  2020. wait(1.5)
  2021. end
  2022. function AutoSummon()
  2023. local aaselectbanner = AutoSummonSec:Cheat("Dropdown", "Select Banner",function(value)
  2024. getgenv().SelectedBanner = value
  2025. end, { options = {"Special", "Standard"}})
  2026. local aaselectbanner = AutoSummonSec:Cheat("Dropdown", "Select Method",function(value)
  2027. getgenv().SelectedMethod = value
  2028. end, { options = {"ticket", "gems", "gems10"}})
  2029. AutoSummonSec:Cheat("Checkbox","Auto Summon", function(bool)
  2030. getgenv().AutoSummon = bool
  2031. end)
  2032. end
  2033. ----------------------------------------------
  2034. ------------ Auto Snipe Merchant -------------
  2035. ----------------------------------------------
  2036. function buymerchant(item)
  2037. local args = { [1] = item }
  2038. game:GetService("ReplicatedStorage").endpoints.client_to_server.buy_travelling_merchant_item:InvokeServer(unpack(args))
  2039. end
  2040. function snipefunc(item)
  2041. if item =="Any StarFruits" then
  2042. if game:GetService("Workspace")["travelling_merchant"]["is_open"].Value == true then
  2043. for i,v in pairs(game:GetService("Workspace")["travelling_merchant"]:FindFirstChild("stand"):FindFirstChild("items"):GetChildren()) do
  2044. if v.Name:match("StarFruitsRainbow") then
  2045. buymerchant(v.Name)
  2046. print(v.Name)
  2047. end
  2048. end
  2049. end
  2050. elseif item == "Any Items"then
  2051. if game:GetService("Workspace")["travelling_merchant"]["is_open"].Value == true then
  2052. for i,v in pairs(game:GetService("Workspace")["travelling_merchant"]:FindFirstChild("stand"):FindFirstChild("items"):GetChildren()) do
  2053. if v.Name:match("LuckPotion") or v.Name:match("star_remnant") or v.Name:match("summon_ticket") then
  2054. buymerchant(v.Name)
  2055. print(v.Name)
  2056. end
  2057. end
  2058. end
  2059. else
  2060. for i,v in pairs(game:GetService("Players").LocalPlayer.PlayerGui.ItemShop:FindFirstChild("Window"):FindFirstChild("Outer"):FindFirstChild("ItemFrames"):GetChildren()) do
  2061. if game:GetService("Workspace")["travelling_merchant"]["is_open"].Value == true then
  2062. for i,v in pairs(game:GetService("Workspace")["travelling_merchant"]:FindFirstChild("stand"):FindFirstChild("items"):GetChildren()) do
  2063. if v.Name:match(tostring(item)) then
  2064. buymerchant(v.Name)
  2065. print(v.Name)
  2066. end
  2067. end
  2068. end
  2069. end
  2070. end
  2071. end
  2072. function SnipeMerchant()
  2073. AutoSnipeMerchantSec:Cheat("Dropdown", "Select Star Fruit",function(value)
  2074. Settings.ASM_SelectedFruit = value
  2075. saveSettings()
  2076. end, { options = {"None","StarFruit","StarFruitGreen","StarFruitRed", "StarFruitPink","StarFruitBlue","StarFruitEpic"}, default =Settings.ASM_SelectedFruit})
  2077.  
  2078. AutoSnipeMerchantSec:Cheat("Dropdown", "Select Other Items",function(value)
  2079. Settings.ASM_SelectedOtherItems = value
  2080. saveSettings()
  2081. end, { options = {"None","Any Items","LuckPotion","star_remnant","summon_ticket"}, default =Settings.ASM_SelectedOtherItems})
  2082. AutoSnipeMerchantSec:Cheat("Dropdown", "Select Evo Items",function(value)
  2083. Settings.ASM_SelectedEvoItems = value
  2084. saveSettings()
  2085. end, { options = {"None"}, default =Settings.ASM_SelectedEvoItems})
  2086.  
  2087. AutoSnipeMerchantSec:Cheat("Checkbox","Enable Auto Snipe", function(bool)
  2088. Settings.AutoSnipeMerchant = bool
  2089. saveSettings()
  2090. end,{enabled = Settings.AutoSnipeMerchant })
  2091. end
  2092. ----------------------------------------------
  2093. -------------- Discord Webhook ---------------
  2094. ----------------------------------------------
  2095. function Webhooksec()
  2096.  
  2097. WebhookSec:Cheat("Textbox", "Webhook Url", function(Value)
  2098. Settings.WebhookUrl = Value
  2099. saveSettings()
  2100. end, {placeholder = Settings.WebhookUrl})
  2101.  
  2102. WebhookSec:Cheat("Textbox", "Baby Webhook Url", function(Value)
  2103. Settings.BabyWebhookUrl = Value
  2104. saveSettings()
  2105. end, {placeholder = Settings.BabyWebhookUrl})
  2106. WebhookSec:Cheat("Textbox", "Snipe Webhook Url", function(Value)
  2107. Settings.SnipeWebhookUrl = Value
  2108. saveSettings()
  2109. end, {placeholder = Settings.SnipeWebhookUrl})
  2110. WebhookSec:Cheat("Checkbox","Enable Webhook", function(bool)
  2111. Settings.WebhookEnabled = bool
  2112. saveSettings()
  2113. end,{enabled = Settings.WebhookEnabled})
  2114. WebhookSec:Cheat("Checkbox","Enable Baby Webhook [BTP,Castle,Tour]", function(bool)
  2115. Settings.BabyWebhookEnabled = bool
  2116. saveSettings()
  2117. end,{enabled = Settings.BabyWebhookEnabled})
  2118. WebhookSec:Cheat("Checkbox","Enable Snipe Webhook [Banner & Shop]", function(bool)
  2119. Settings.snipeWebhookEnabled = bool
  2120. saveSettings()
  2121. end,{enabled = Settings.snipeWebhookEnabled})
  2122. WebhookSec:Cheat("Button", "Test Webhook", function()
  2123. print(Settings.WebhookUrl)
  2124. webhook()
  2125. end)
  2126. end
  2127. function Webhooksec2()
  2128. WebhookSec:Cheat("Button", "Test Baby Webhook", function()
  2129. print(Settings.WebhookUrl)
  2130. BabyWebhook()
  2131. SnipeShopNew()
  2132. end)
  2133. end
  2134. ----------------------------------------------
  2135. ------------------ Others --------------------
  2136. ----------------------------------------------
  2137. function autoload()
  2138. pcall(function()
  2139. local exec = tostring(identifyexecutor())
  2140. if exec == "Synapse X" and Settings.AutoLoadScript then
  2141. syn.queue_on_teleport("loadstring(game:HttpGet('https://raw.githubusercontent.com/ArponAG/Scripts/main/AnimeAdventures_v2__Beta.lua'))()")
  2142. elseif exec ~= "Synapse X" and Settings.AutoLoadScript then
  2143. queue_on_teleport("loadstring(game:HttpGet('https://raw.githubusercontent.com/ArponAG/Scripts/main/AnimeAdventures_v2__Beta.lua'))()")
  2144. end
  2145. end)
  2146. end
  2147. if Settings.AutoLoadScript then
  2148. autoload()
  2149. end
  2150. function autoload2()
  2151. loadstring(game:HttpGet('https://raw.githubusercontent.com/ArponAG/Scripts/main/AnimeAdventures_v2__Beta.lua'))()
  2152. end
  2153. if Settings.refarmc then
  2154. autoload2() end
  2155. if Settings.setfarm1 then
  2156. autoload2() end
  2157. if Settings.setfarm2 then
  2158. autoload2() end
  2159. if Settings.setfarmIC then
  2160. autoload2() end
  2161. function others()
  2162. OtherSec:Cheat("Checkbox","๐Ÿ—บ๏ธ Delete Map ๐Ÿ—บ๏ธ", function(bool)
  2163. Settings.deletemap = bool
  2164. saveSettings()
  2165. end,{enabled = Settings.deletemap})
  2166. OtherSec:Cheat("Checkbox"," Place Anywhere", function(bool)
  2167. print(bool)
  2168. Settings.placeany = bool
  2169. saveSettings()
  2170. placeAny()
  2171. placeunittwin()
  2172. end,{enabled = Settings.placeany})
  2173. OtherSec:Cheat("Checkbox","โŒ› Auto Load Script โŒ›", function(bool)
  2174. Settings.AutoLoadScript = bool
  2175. saveSettings()
  2176. autoload()
  2177. end,{enabled = Settings.AutoLoadScript})
  2178. OtherSec:Cheat("Checkbox","๐Ÿฑ Hide Name Player ๐Ÿฑ", function(bool)
  2179. Settings.hidenamep = bool
  2180. saveSettings()
  2181. hidename()
  2182. end,{enabled = Settings.hidenamep})
  2183. OtherSec:Cheat("Checkbox","Auto Grab Daily Quest ", function(bool)
  2184. print(Settings.autoDailyquest)
  2185. Settings.autoDailyquest = bool
  2186. saveSettings()
  2187. autoDailyquest()
  2188. end,{enabled = Settings.autoDailyquest})
  2189.  
  2190. OtherSec:Cheat("Checkbox","Escanor Infinite Range ", function(bool) -- added by craymel02
  2191. print("Esacanor Infinite Range is set to " .. tostring(bool))
  2192. Settings.escanorIR = bool
  2193. saveSettings()
  2194. end,{enabled = Settings.escanorIR})
  2195. OtherSec:Cheat("Button", "Redeem All Code", function()
  2196. print(Settings.redeemc)
  2197. Reedemcode()
  2198. end)
  2199. OtherSec:Cheat("Button", "Leave To Lobby", function()
  2200. warn("Return to Lobby")
  2201. Teleport()
  2202. end)
  2203.  
  2204. end
  2205. ----------------------------------------------
  2206. ------------ /\/\/\/\/\/\/\/\/\ --------------
  2207. ----------------------------------------------
  2208. if game.PlaceId == 8304191830 then
  2209. UnitPosition:Cheat("Label","Not available in game Lobby!")
  2210. UnitSec()
  2211. WorldSec()
  2212. AutoFarmSec()
  2213. MoreFarmSec()
  2214. ChallengeSec()
  2215. unitconfig()
  2216. reFarmconfig()
  2217. LAGGYconfig()
  2218. credits()
  2219. AutoSummon()
  2220. SnipeMerchant()
  2221. Webhooksec()
  2222. Webhooksec2()
  2223. others()
  2224. else
  2225. SelectUnits:Cheat("Label","Only available in game Lobby!")
  2226. AutoSummonSec:Cheat("Label","Only available in game Lobby!")
  2227. WorldSec()
  2228. AutoFarmSec()
  2229. MoreFarmSec()
  2230. ChallengeSec()
  2231. UnitPosSec()
  2232. unitconfig()
  2233. reFarmconfig()
  2234. LAGGYconfig()
  2235. credits()
  2236. SnipeMerchant()
  2237. Webhooksec()
  2238. others()
  2239. WebhookSec:Cheat("Label","")
  2240. WebhookSec:Cheat("Label","Test Baby&Shop Webhook Only available in game Lobby!")
  2241. end
  2242. ----------------------------------------------
  2243. ------------ /\/\/\/\/\/\/\/\/\ --------------
  2244. ----------------------------------------------
  2245. local function checkChallenge()
  2246. for i,v in pairs(game.Players.LocalPlayer.PlayerGui:GetChildren()) do
  2247. if v:IsA("SurfaceGui") then
  2248. if v:FindFirstChild("ChallengeCleared") then
  2249. return v.ChallengeCleared.Visible
  2250. end
  2251. end
  2252. end
  2253. end
  2254. local function checkReward()
  2255. if checkChallenge() == false then
  2256. if Settings.SelectedReward == game:GetService("Workspace")["_LOBBIES"]["_DATA"]["_CHALLENGE"]["current_reward"].Value then
  2257. return true
  2258. elseif Settings.AutoChallengeAll then
  2259. return true
  2260. else
  2261. return false
  2262. end
  2263. else
  2264. return false
  2265. end
  2266. end
  2267. local function startChallenge()
  2268. if game.PlaceId == 8304191830 then
  2269. local cpos = plr.Character.HumanoidRootPart.CFrame
  2270. if Settings.AutoChallenge and Settings.AutoFarm and checkReward() == true then
  2271. for i, v in pairs(game:GetService("Workspace")["_CHALLENGES"].Challenges:GetDescendants()) do
  2272. if v.Name == "Owner" and v.Value == nil then
  2273. --print(v.Parent.Name.." "..v.Parent:GetFullName())
  2274. local args = { [1] = tostring(v.Parent.Name) }
  2275. game:GetService("ReplicatedStorage").endpoints.client_to_server.request_join_lobby:InvokeServer(unpack(args))
  2276. Settings.chdoor = v.Parent.Name
  2277. break
  2278. end
  2279. end
  2280. task.wait()
  2281. plr.Character.HumanoidRootPart.CFrame = cpos
  2282. end
  2283. end
  2284. end
  2285. --test fixportal
  2286. function getBorosPortals()
  2287. local portals = {}
  2288. for _, item in pairs(get_inventory_items_unique_items()) do
  2289. if item["item_id"] == "portal_boros_g" then
  2290. table.insert(portals, item)
  2291. end
  2292. end
  2293. return portals
  2294. end
  2295. function getDemonPortals()
  2296. local portals = {}
  2297. for _, item in pairs(get_inventory_items_unique_items()) do
  2298. if item["item_id"] == "april_portal_item" then
  2299. table.insert(portals, item)
  2300. end
  2301. end
  2302. return portals
  2303. end
  2304. function getOPNPortals()
  2305. local portals = {}
  2306. for _, item in pairs(get_inventory_items_unique_items()) do
  2307. if item["item_id"] == "portal_item__dressrosa" then
  2308. table.insert(portals, item)
  2309. end
  2310. end
  2311. return portals
  2312. end
  2313. function getZeldrisPortals()
  2314. local portals = {}
  2315. for _, item in pairs(get_inventory_items_unique_items()) do
  2316. if item["item_id"] == "portal_zeldris" then
  2317. table.insert(portals, item)
  2318. end
  2319. end
  2320. return portals
  2321. end
  2322.  
  2323. function getMadokaPortals()
  2324. local portals = {}
  2325. for _, item in pairs(get_inventory_items_unique_items()) do
  2326. if item["item_id"] == "portal_item__madoka" then
  2327. table.insert(portals, item)
  2328. end
  2329. end
  2330. return portals
  2331. end
  2332.  
  2333.  
  2334. function GetPortals(id)
  2335. local reg = getreg()
  2336. local portals = {}
  2337. for i,v in next, reg do
  2338. if type(v) == 'function' then
  2339. if getfenv(v).script then
  2340. for _, v in pairs(debug.getupvalues(v)) do
  2341. if type(v) == 'table' then
  2342. if v["session"] then
  2343. for _, item in pairs(v["session"]["inventory"]['inventory_profile_data']['unique_items']) do
  2344. if item["item_id"]:match(id) then
  2345. table.insert(portals, item)
  2346. end
  2347. end
  2348. return portals
  2349. end
  2350. end
  2351. end
  2352. end
  2353. end
  2354. end
  2355. end
  2356. Settings.teleporting = true
  2357. getgenv().door = "_lobbytemplategreen1"
  2358. local function startfarming()
  2359. if game.PlaceId == 8304191830 and not Settings.farmprotal and Settings.autostart and Settings.AutoFarm and Settings.teleporting and not Settings.AutoInfinityCastle then
  2360. local cpos = plr.Character.HumanoidRootPart.CFrame; cata = Settings.WorldCategory; level = Settings.SelectedLevel;
  2361.  
  2362. if cata == "Story Worlds" or cata == "Legend Stages" then
  2363. if tostring(game.Workspace._LOBBIES.Story[getgenv().door].Owner.Value) ~= plr.Name then
  2364. for i, v in pairs(game:GetService("Workspace")["_LOBBIES"].Story:GetDescendants()) do
  2365. if v.Name == "Owner" and v.Value == nil then
  2366. local args = { [1] = tostring(v.Parent.Name) }
  2367. game:GetService("ReplicatedStorage").endpoints.client_to_server.request_join_lobby:InvokeServer(unpack(args))
  2368.  
  2369. task.wait()
  2370.  
  2371. local args = {
  2372. [1] = tostring(v.Parent.Name), -- Lobby
  2373. [2] = Settings.SelectedLevel, -- World/Level
  2374. [3] = Settings.isFriendOnly or true, -- Friends Only or not
  2375. [4] = Settings.Difficulty }
  2376.  
  2377. game:GetService("ReplicatedStorage").endpoints.client_to_server.request_lock_level:InvokeServer(unpack(args))
  2378.  
  2379. local args = { [1] =tostring(v.Parent.Name) }
  2380. game:GetService("ReplicatedStorage").endpoints.client_to_server.request_start_game:InvokeServer(unpack(args))
  2381.  
  2382. getgenv().door = v.Parent.Name print(v.Parent.Name) --v.Parent:GetFullName()
  2383. plr.Character.HumanoidRootPart.CFrame = v.Parent.Door.CFrame
  2384. break
  2385. end
  2386. end
  2387.  
  2388. task.wait()
  2389.  
  2390. plr.Character.HumanoidRootPart.CFrame = cpos
  2391.  
  2392. if Workspace._LOBBIES.Story[getgenv().door].Owner == plr.Name then
  2393. if Workspace._LOBBIES.Story[getgenv().door].Teleporting.Value == true then
  2394. getgenv().teleporting = false
  2395. else
  2396. getgenv().teleporting = true
  2397. end
  2398. end
  2399.  
  2400. pcall(function()
  2401. BabyWebhook()
  2402. SnipeShopNew()
  2403.  
  2404. end)
  2405. print("send Webhook")
  2406. task.wait(1.1)
  2407. warn("farming")
  2408. task.wait(3)
  2409. end
  2410. elseif cata == "Raid Worlds" then
  2411. getgenv().door = "_lobbytemplate212"
  2412. if tostring(game.Workspace._RAID.Raid[getgenv().door].Owner.Value) ~= plr.Name then
  2413. for i, v in pairs(game:GetService("Workspace")["_RAID"].Raid:GetDescendants()) do
  2414. if v.Name == "Owner" and v.Value == nil then
  2415. local args = { [1] = tostring(v.Parent.Name) }
  2416. game:GetService("ReplicatedStorage").endpoints.client_to_server.request_join_lobby:InvokeServer(unpack(args))
  2417.  
  2418. task.wait()
  2419.  
  2420. local args = {
  2421. [1] = tostring(v.Parent.Name), -- Lobby
  2422. [2] = Settings.SelectedLevel, -- World/Level
  2423. [3] = Settings.isFriendOnly or true, -- Friends Only or not
  2424. [4] = Settings.Difficulty }
  2425.  
  2426. game:GetService("ReplicatedStorage").endpoints.client_to_server.request_lock_level:InvokeServer(unpack(args))
  2427.  
  2428. local args = { [1] =tostring(v.Parent.Name) }
  2429. game:GetService("ReplicatedStorage").endpoints.client_to_server.request_start_game:InvokeServer(unpack(args))
  2430.  
  2431. getgenv().door = v.Parent.Name print(v.Parent.Name) --v.Parent:GetFullName()
  2432. plr.Character.HumanoidRootPart.CFrame = v.Parent.Door.CFrame
  2433. break
  2434. end
  2435. end
  2436.  
  2437. task.wait()
  2438.  
  2439. plr.Character.HumanoidRootPart.CFrame = cpos
  2440.  
  2441. if Workspace._RAID.Raid[getgenv().door].Owner == plr.Name then
  2442. if Workspace._RAID.Raid[getgenv().door].Teleporting.Value == true then
  2443. getgenv().teleporting = false
  2444. else
  2445. getgenv().teleporting = true
  2446. end
  2447. end
  2448.  
  2449. pcall(function()
  2450. BabyWebhook()
  2451. SnipeShopNew()
  2452.  
  2453. end)
  2454. print("send Webhook")
  2455. task.wait(1.1)
  2456. warn("farming")
  2457. task.wait(3)
  2458. end
  2459. elseif cata == "Portals" then
  2460. --aline fixportal
  2461. if level == "portal_boros_g" then
  2462. local args = {
  2463. [1] = GetPortals("portal_boros_g")[1]["uuid"],
  2464. [2] = { ["friends_only"] = getgenv().isFriendOnly } }
  2465. game:GetService("ReplicatedStorage").endpoints.client_to_server.use_portal:InvokeServer(unpack(args))
  2466.  
  2467. task.wait(1.5)
  2468. for i,v in pairs(game:GetService("Workspace")["_PORTALS"].Lobbies:GetDescendants()) do
  2469. if v.Name == "Owner" and tostring(v.value) == game.Players.LocalPlayer.Name then
  2470. local args = { [1] = tostring(v.Parent.Name) }
  2471. game:GetService("ReplicatedStorage").endpoints.client_to_server.request_start_game:InvokeServer(unpack(args))
  2472. break;
  2473. end
  2474. end
  2475. warn("Aline farming")
  2476. task.wait(7)
  2477. --Demon fixportal
  2478. elseif level == "april_portal_item" then
  2479. local args = {
  2480. [1] = GetPortals("april_portal_item")[1]["uuid"],
  2481. [2] = { ["friends_only"] = getgenv().isFriendOnly } }
  2482. game:GetService("ReplicatedStorage").endpoints.client_to_server.use_portal:InvokeServer(unpack(args))
  2483.  
  2484. task.wait(1.5)
  2485. for i,v in pairs(game:GetService("Workspace")["_PORTALS"].Lobbies:GetDescendants()) do
  2486. if v.Name == "Owner" and tostring(v.value) == game.Players.LocalPlayer.Name then
  2487. local args = { [1] = tostring(v.Parent.Name) }
  2488. game:GetService("ReplicatedStorage").endpoints.client_to_server.request_start_game:InvokeServer(unpack(args))
  2489. break;
  2490. end
  2491. end
  2492. pcall(function()
  2493. BabyWebhook()
  2494. SnipeShopNew()
  2495. end)
  2496. print("send Webhook")
  2497. task.wait(1.1)
  2498. warn("Demon farming")
  2499. task.wait(7)
  2500. --OPN fixportal
  2501. elseif level == "portal_item__dressrosa" then
  2502. local args = {
  2503. [1] = GetPortals("portal_item__dressrosa")[1]["uuid"],
  2504. [2] = { ["friends_only"] = getgenv().isFriendOnly } }
  2505. game:GetService("ReplicatedStorage").endpoints.client_to_server.use_portal:InvokeServer(unpack(args))
  2506.  
  2507. task.wait(1.5)
  2508. for i,v in pairs(game:GetService("Workspace")["_PORTALS"].Lobbies:GetDescendants()) do
  2509. if v.Name == "Owner" and tostring(v.value) == game.Players.LocalPlayer.Name then
  2510. local args = { [1] = tostring(v.Parent.Name) }
  2511. game:GetService("ReplicatedStorage").endpoints.client_to_server.request_start_game:InvokeServer(unpack(args))
  2512. break;
  2513. end
  2514. end
  2515. pcall(function()
  2516. BabyWebhook()
  2517. SnipeShopNew()
  2518. end)
  2519. print("send Webhook")
  2520. task.wait(1.1)
  2521. warn("OPNew farming")
  2522. task.wait(7)
  2523. --Madoka fixportal
  2524. elseif level == "portal_item__madoka" then
  2525. local args = {
  2526. [1] = GetPortals("portal_item__madoka")[1]["uuid"],
  2527. [2] = { ["friends_only"] = getgenv().isFriendOnly } }
  2528. game:GetService("ReplicatedStorage").endpoints.client_to_server.use_portal:InvokeServer(unpack(args))
  2529.  
  2530. task.wait(1.5)
  2531. for i,v in pairs(game:GetService("Workspace")["_PORTALS"].Lobbies:GetDescendants()) do
  2532. if v.Name == "Owner" and tostring(v.value) == game.Players.LocalPlayer.Name then
  2533. local args = { [1] = tostring(v.Parent.Name) }
  2534. game:GetService("ReplicatedStorage").endpoints.client_to_server.request_start_game:InvokeServer(unpack(args))
  2535. break;
  2536. end
  2537. end
  2538. pcall(function()
  2539. BabyWebhook()
  2540. SnipeShopNew()
  2541. end)
  2542. print("send Webhook")
  2543. task.wait(1.1)
  2544. warn("Madoka farming")
  2545. task.wait(7)
  2546. --7Ds fixportal
  2547. elseif level == "portal_zeldris" then
  2548. local args = {
  2549. [1] = GetPortals("portal_zeldris")[1]["uuid"],
  2550. [2] = { ["friends_only"] = getgenv().isFriendOnly } }
  2551. game:GetService("ReplicatedStorage").endpoints.client_to_server.use_portal:InvokeServer(unpack(args))
  2552.  
  2553. task.wait(1.5)
  2554. for i,v in pairs(game:GetService("Workspace")["_PORTALS"].Lobbies:GetDescendants()) do
  2555. if v.Name == "Owner" and tostring(v.value) == game.Players.LocalPlayer.Name then
  2556. local args = { [1] = tostring(v.Parent.Name) }
  2557. game:GetService("ReplicatedStorage").endpoints.client_to_server.request_start_game:InvokeServer(unpack(args))
  2558. break;
  2559. end
  2560. end
  2561. pcall(function()
  2562. BabyWebhook()
  2563. SnipeShopNew()
  2564.  
  2565. end)
  2566. print("send Webhook")
  2567. task.wait(1.1)
  2568. warn("7ds farming")
  2569. task.wait(7)
  2570. end
  2571. elseif cata == "Dungeon" then
  2572. if level == "jjk_finger" then --_lobbytemplate_event222
  2573. getgenv().door = "_lobbytemplate_event222"
  2574. local string_1 = "_lobbytemplate_event222";
  2575. local table_1 = {
  2576. ["selected_key"] = "key_jjk_finger" --key_jjk_finger
  2577. };
  2578. local Target = game:GetService("ReplicatedStorage").endpoints["client_to_server"]["request_join_lobby"];
  2579. Target:InvokeServer(string_1, table_1);
  2580.  
  2581. if tostring(game.Workspace._DUNGEONS.Lobbies[getgenv().door].Owner.Value) ~= plr.Name then
  2582. for i, v in pairs(game:GetService("Workspace")["_DUNGEONS"].Lobbies:GetDescendants()) do
  2583. if v.Name == "Owner" and v.Value == nil then
  2584. local args = { [1] = tostring(v.Parent.Name) }
  2585. game:GetService("ReplicatedStorage").endpoints.client_to_server.request_join_lobby:InvokeServer(unpack(args))
  2586.  
  2587. task.wait()
  2588.  
  2589. local args = {
  2590. [1] = tostring(v.Parent.Name), -- Lobby
  2591. [2] = Settings.SelectedLevel, -- World/Level
  2592. [3] = Settings.isFriendOnly or true, -- Friends Only or not
  2593. [4] = Settings.Difficulty
  2594. }
  2595.  
  2596. game:GetService("ReplicatedStorage").endpoints.client_to_server.request_lock_level:InvokeServer(unpack(args))
  2597.  
  2598. local args = { [1] =tostring(v.Parent.Name) }
  2599. game:GetService("ReplicatedStorage").endpoints.client_to_server.request_start_game:InvokeServer(unpack(args))
  2600.  
  2601. getgenv().door = v.Parent.Name print(v.Parent.Name) --v.Parent:GetFullName()
  2602. plr.Character.HumanoidRootPart.CFrame = v.Parent.Door.CFrame
  2603. break
  2604. end
  2605. end
  2606.  
  2607. task.wait()
  2608.  
  2609. plr.Character.HumanoidRootPart.CFrame = cpos
  2610.  
  2611. if Workspace._DUNGEONS.Lobbies[getgenv().door].Owner == plr.Name then
  2612. if Workspace._DUNGEONS.Lobbies[getgenv().door].Teleporting.Value == true then
  2613. getgenv().teleporting = false
  2614. else
  2615. getgenv().teleporting = true
  2616. end
  2617. end
  2618.  
  2619. pcall(function()
  2620. BabyWebhook()
  2621. SnipeShopNew()
  2622.  
  2623. end)
  2624. print("send Webhook")
  2625. task.wait(1.1)
  2626. warn("DUNGEONS jjk_finger farming")
  2627. task.wait(3)
  2628. end
  2629. --เธ”เธฑเธ™เน€เธเธฐเน‚เธ—
  2630. elseif cata == "Dungeon" then
  2631. if level == "jjk_raid" then
  2632. getgenv().door = "_lobbytemplate_event23"
  2633. local string_1 = "_lobbytemplate_event23";
  2634. local table_1 = {
  2635. ["selected_key"] = "key_jjk_map"
  2636. };
  2637. local Target = game:GetService("ReplicatedStorage").endpoints["client_to_server"]["request_join_lobby"];
  2638. Target:InvokeServer(string_1, table_1);
  2639.  
  2640. if tostring(game.Workspace._DUNGEONS.Lobbies[getgenv().door].Owner.Value) ~= plr.Name then
  2641. for i, v in pairs(game:GetService("Workspace")["_DUNGEONS"].Lobbies:GetDescendants()) do
  2642. if v.Name == "Owner" and v.Value == nil then
  2643. local args = { [1] = tostring(v.Parent.Name) }
  2644. game:GetService("ReplicatedStorage").endpoints.client_to_server.request_join_lobby:InvokeServer(unpack(args))
  2645.  
  2646. task.wait()
  2647.  
  2648. local args = {
  2649. [1] = tostring(v.Parent.Name), -- Lobby
  2650. [2] = Settings.SelectedLevel, -- World/Level
  2651. [3] = Settings.isFriendOnly or true, -- Friends Only or not
  2652. [4] = Settings.Difficulty
  2653. }
  2654.  
  2655. game:GetService("ReplicatedStorage").endpoints.client_to_server.request_lock_level:InvokeServer(unpack(args))
  2656.  
  2657. local args = { [1] =tostring(v.Parent.Name) }
  2658. game:GetService("ReplicatedStorage").endpoints.client_to_server.request_start_game:InvokeServer(unpack(args))
  2659.  
  2660. getgenv().door = v.Parent.Name print(v.Parent.Name) --v.Parent:GetFullName()
  2661. plr.Character.HumanoidRootPart.CFrame = v.Parent.Door.CFrame
  2662. break
  2663. end
  2664. end
  2665.  
  2666. task.wait()
  2667.  
  2668. plr.Character.HumanoidRootPart.CFrame = cpos
  2669.  
  2670. if Workspace._DUNGEONS.Lobbies[getgenv().door].Owner == plr.Name then
  2671. if Workspace._DUNGEONS.Lobbies[getgenv().door].Teleporting.Value == true then
  2672. getgenv().teleporting = false
  2673. else
  2674. getgenv().teleporting = true
  2675. end
  2676. end
  2677.  
  2678. pcall(function()
  2679. BabyWebhook()
  2680. SnipeShopNew()
  2681.  
  2682. end)
  2683. print("send Webhook")
  2684. task.wait(1.1)
  2685. warn("DUNGEONS jjk_raid farming")
  2686. task.wait(3)
  2687. end
  2688. end
  2689. end
  2690. end
  2691. end
  2692. end
  2693. -- Start of Auto Ability Function
  2694. getgenv().autoabilityerr = false
  2695. function autoabilityfunc()
  2696. local player = game.Players.LocalPlayer.Name
  2697. if Settings.AutoAbilities then
  2698. repeat task.wait() until Workspace:WaitForChild("_UNITS")
  2699. local success, err = pcall(function()
  2700. for i, v in ipairs(Workspace["_UNITS"]:GetChildren()) do
  2701. if v:FindFirstChild("_stats") then
  2702.  
  2703. -- Look for Threat then execute Puchi Skill
  2704. if v._stats:FindFirstChild("threat") then
  2705. if v._stats.threat.Value > 0 then
  2706. UsePuchiSkill()
  2707. end
  2708.  
  2709. -- Search Player Units
  2710. elseif v._stats:FindFirstChild("player") then
  2711. if tostring(v._stats.player.Value) == player then
  2712.  
  2713.  
  2714. -- Execute Skill if Wendy and recast every 21 seconds
  2715. if v._stats.id.Value == "wendy" then
  2716. game:GetService("ReplicatedStorage").endpoints.client_to_server.use_active_attack:InvokeServer(v)
  2717. task.wait(21)
  2718.  
  2719. -- Execute Skill if Erwin and recast every 21 seconds
  2720. elseif v._stats.id.Value == "erwin" then
  2721. game:GetService("ReplicatedStorage").endpoints.client_to_server.use_active_attack:InvokeServer(v)
  2722. task.wait(21)
  2723.  
  2724. -- Execute Skill if Gojo and recast every 60 seconds
  2725. elseif v._stats.id.Value == "gojo_evolved" then
  2726. if v._stats.state.Value == "attack" then
  2727. game:GetService("ReplicatedStorage").endpoints.client_to_server.use_active_attack:InvokeServer(v)
  2728. end
  2729.  
  2730. -- Execute Skill if Not Wendy, Erwin, Gojo and Puchi
  2731. elseif v._stats.id.Value ~= "pucci_heaven" then
  2732. if v._stats.state.Value == "attack" then
  2733. if v._stats.active_attack.Value ~= "nil" then
  2734. game:GetService("ReplicatedStorage").endpoints.client_to_server.use_active_attack:InvokeServer(v)
  2735. end
  2736. end
  2737. end
  2738. end
  2739. end
  2740. end
  2741. end
  2742. end)
  2743.  
  2744. if err then
  2745. warn("Can't use Ability")
  2746. getgenv().autoabilityerr = true
  2747. error(err)
  2748. end
  2749. end
  2750. end
  2751. -- End of Auto Abilities Function
  2752.  
  2753. -- Start of Puchi Skill Function
  2754. function UsePuchiSkill()
  2755. local player = game.Players.LocalPlayer.Name
  2756. for i, v in ipairs(Workspace["_UNITS"]:getChildren()) do
  2757. if v:FindFirstChild("_stats") then
  2758. if v._stats:FindFirstChild("player") then
  2759. if tostring(v._stats.player.Value) == player then
  2760. if v._stats.id.Value == "pucci_heaven" then
  2761. if v._stats.state.Value == "attack" then
  2762.  
  2763. -- Check if Game Mode is Infinite
  2764. if GLD()._gamemode == "infinite" then
  2765. if GetWaveNumber() % 10 == 0 then
  2766. game:GetService("ReplicatedStorage").endpoints.client_to_server.use_active_attack:InvokeServer(v)
  2767. end
  2768. -- Check if Game Mode is Raid
  2769. elseif GLD()._gamemode == "raid" then
  2770. if GetWaveNumber() == 15 or 20 then
  2771. game:GetService("ReplicatedStorage").endpoints.client_to_server.use_active_attack:InvokeServer(v)
  2772. end
  2773. -- Check if Game mode is Story or Infinite Tower
  2774. elseif GLD()._gamemode == "story" or "infinite_tower" then
  2775. if GetWaveNumber() == 15 then
  2776. game:GetService("ReplicatedStorage").endpoints.client_to_server.use_active_attack:InvokeServer(v)
  2777. end
  2778. end
  2779. end
  2780. end
  2781. end
  2782. end
  2783. end
  2784. end
  2785. end
  2786. -- End of Puchi Skill Function
  2787. function autoupgradefunc()
  2788. local success, err = pcall(function() --///
  2789. repeat task.wait() until game:GetService("Workspace"):WaitForChild("_UNITS")
  2790. for i, v in ipairs(game:GetService("Workspace")["_UNITS"]:GetChildren()) do
  2791. if v:FindFirstChild("_stats") then
  2792. if tostring(v["_stats"].player.Value) == game.Players.LocalPlayer.Name and v["_stats"].xp.Value >= 0 then
  2793. game:GetService("ReplicatedStorage").endpoints.client_to_server.upgrade_unit_ingame:InvokeServer(v)
  2794. end
  2795. end
  2796. end
  2797. end)
  2798. if err then
  2799. warn("//////////////////////////////////////////////////")
  2800. warn("//////////////////////////////////////////////////")
  2801. getgenv().autoupgradeerr = true
  2802. error(err)
  2803. end
  2804. end
  2805. local function FarmInfinityCastle()
  2806. if Settings.AutoInfinityCastle and Settings.AutoFarm or Settings.AutoInfinityCastle then
  2807. if game.PlaceId == 8304191830 then
  2808. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(12423.1855, 155.24025, 3198.07593, -1.34111269e-06, -2.02512282e-08, 1, 3.91705386e-13, 1, 2.02512282e-08, -1, 4.18864542e-13, -1.34111269e-06)
  2809. getgenv().infinityroom = 0
  2810. for i, v in pairs(game:GetService("Players")[game.Players.LocalPlayer.Name].PlayerGui.InfiniteTowerUI.LevelSelect.InfoFrame.LevelButtons:GetChildren()) do
  2811. if v.Name == "FloorButton" then
  2812. if v.clear.Visible == false and v.Locked.Visible == false then
  2813. local room = string.split(v.Main.text.Text, " ")
  2814. local args = {
  2815. [1] = tonumber(room[2])
  2816. }
  2817.  
  2818. game:GetService("ReplicatedStorage").endpoints.client_to_server.request_start_infinite_tower:InvokeServer(unpack(args))
  2819. getgenv().infinityroom = tonumber(room[2])
  2820. break
  2821. end
  2822. end
  2823. end
  2824. task.wait(6)
  2825. end
  2826. end
  2827. end
  2828. coroutine.resume(coroutine.create(function()
  2829. while task.wait() do
  2830. if not Settings.AutoInfinityCastle then
  2831. if not checkChallenge() then --Challenge_Not_Complete
  2832. if Settings.AutoChallenge and checkReward() == true then
  2833. startChallenge() --S_Challenge
  2834. else
  2835. startfarming()--S_Farming
  2836. end
  2837. elseif checkChallenge() == true then
  2838. startfarming()--S_Farming
  2839. BabyWebhook()
  2840. SnipeShopNew()
  2841. end
  2842. elseif not Settings.AutoInfinityCastle == true then--Infiniy Castle
  2843. if not checkChallenge() then --Challenge_Not_Complete
  2844. if Settings.AutoChallengeAll then
  2845. startChallenge() --S_Challenge
  2846. else
  2847. startfarming()--S_Farming
  2848. end
  2849. elseif checkChallenge() == true then
  2850. startfarming()--S_Farming
  2851. BabyWebhook()
  2852. SnipeShopNew()
  2853. end
  2854. elseif Settings.AutoInfinityCastle == true then--Infiniy Castle
  2855. if not checkChallenge() then --Challenge_Not_Complete
  2856. if Settings.AutoChallenge and checkReward() == true then
  2857. startChallenge() --S_Challenge
  2858. else
  2859. FarmInfinityCastle()--S_Farming
  2860. end
  2861. elseif checkChallenge() == true then
  2862. FarmInfinityCastle()--S_Farming
  2863. BabyWebhook()
  2864. SnipeShopNew()
  2865. end
  2866. end
  2867. if game.PlaceId ~= 8304191830 then
  2868. local _wave = game:GetService("Workspace"):WaitForChild("_wave_num")
  2869. if Settings.autoQuit and not Settings.AutoSell and tonumber(Settings.AutoSellWave) <= _wave.Value then
  2870. pcall(function() webhook() end)
  2871. print("send Webhook")
  2872. task.wait(2.1)
  2873. print("Returning to lobby...")
  2874. task.wait(2.1)
  2875. Teleport()
  2876. end
  2877. if Settings.AutoSell and not Settings.autoQuit and tonumber(Settings.AutoSellWave) <= _wave.Value then
  2878. getgenv().disableatuofarm = true
  2879. repeat task.wait() until game:GetService("Workspace"):WaitForChild("_UNITS")
  2880. for i, v in ipairs(game:GetService("Workspace")["_UNITS"]:GetChildren()) do
  2881. repeat task.wait()
  2882. until v:WaitForChild("_stats")
  2883. if tostring(v["_stats"].player.Value) == game.Players.LocalPlayer.Name then
  2884. repeat
  2885. task.wait()
  2886. until v:WaitForChild("_stats"):WaitForChild("upgrade")
  2887.  
  2888. game:GetService("ReplicatedStorage").endpoints.client_to_server.sell_unit_ingame:InvokeServer(v)
  2889. end
  2890. end
  2891. end
  2892. end
  2893. end
  2894. end))
  2895. coroutine.resume(coroutine.create(function()
  2896. while task.wait(2) do
  2897. if Settings.AutoAbilities then
  2898. if game.PlaceId ~= 8304191830 then
  2899. pcall(function()
  2900. autoabilityfunc()
  2901. end)
  2902. end
  2903. if getgenv().autoabilityerr == true then
  2904. task.wait()
  2905. autoabilityfunc()
  2906. getgenv().autoabilityerr = false
  2907. end
  2908. end
  2909.  
  2910. if Settings.AutoUpgrade and not Settings.unitconfig then
  2911. if game.PlaceId ~= 8304191830 then
  2912. pcall(function()
  2913. autoupgradefunc()
  2914. end)
  2915. end
  2916. if getgenv().autoupgradeerr == true then
  2917. task.wait()
  2918. autoupgradefunc()
  2919. getgenv().autoupgradeerr = false
  2920. end
  2921. end
  2922. if Settings.unitconfig and not Settings.AutoUpgrade then
  2923. if game.PlaceId ~= 8304191830 then
  2924. pcall(function()
  2925. upgradeunit(name, min)
  2926. end)
  2927. end
  2928. if getgenv().autoupgradeerr == true then
  2929. task.wait()
  2930. autoupgradefunc()
  2931. getgenv().autoupgradeerr = false
  2932. end
  2933. end
  2934. if Settings.unitconfig and Settings.AutoUpgrade then
  2935. if game.PlaceId ~= 8304191830 then
  2936. pcall(function()
  2937. upgradeunit(name, min)
  2938. end)
  2939. end
  2940. if getgenv().autoupgradeerr == true then
  2941. task.wait()
  2942. autoupgradefunc()
  2943. getgenv().autoupgradeerr = false
  2944. end
  2945. end
  2946. end
  2947. end))
  2948. ------// Auto Leave \\------
  2949. --#region Auto Leave
  2950. local PlaceID = 8304191830
  2951. local AllIDs = {}
  2952. local foundAnything = ""
  2953. local actualHour = os.date("!*t").hour
  2954. local Deleted = false
  2955. local last
  2956. local File = pcall(function()
  2957. AllIDs = game:GetService('HttpService'):JSONDecode(readfile("NotSameServers.json"))
  2958. end)
  2959. if not File then
  2960. table.insert(AllIDs, actualHour)
  2961. writefile("NotSameServers.json", game:GetService('HttpService'):JSONEncode(AllIDs))
  2962. end
  2963. function TPReturner()
  2964. local Site;
  2965. if foundAnything == "" then
  2966. Site = game.HttpService:JSONDecode(game:HttpGet('https://games.roblox.com/v1/games/' .. PlaceID .. '/servers/Public?sortOrder=Asc&limit=100'))
  2967. else
  2968. Site = game.HttpService:JSONDecode(game:HttpGet('https://games.roblox.com/v1/games/' .. PlaceID .. '/servers/Public?sortOrder=Asc&limit=100&cursor=' .. foundAnything))
  2969. end
  2970. local ID = ""
  2971. if Site.nextPageCursor and Site.nextPageCursor ~= "null" and Site.nextPageCursor ~= nil then
  2972. foundAnything = Site.nextPageCursor
  2973. end
  2974. local num = 0;
  2975. local extranum = 0
  2976. for i,v in pairs(Site.data) do
  2977. extranum += 1
  2978. local Possible = true
  2979. ID = tostring(v.id)
  2980. if tonumber(v.maxPlayers) > tonumber(v.playing) then
  2981. if extranum ~= 1 and tonumber(v.playing) < last or extranum == 1 then
  2982. last = tonumber(v.playing)
  2983. elseif extranum ~= 1 then
  2984. continue
  2985. end
  2986. for _,Existing in pairs(AllIDs) do
  2987. if num ~= 0 then
  2988. if ID == tostring(Existing) then
  2989. Possible = false
  2990. end
  2991. else
  2992. if tonumber(actualHour) ~= tonumber(Existing) then
  2993. local delFile = pcall(function()
  2994. delfile("NotSameServers.json")
  2995. AllIDs = {}
  2996. table.insert(AllIDs, actualHour)
  2997. end)
  2998. end
  2999. end
  3000. num = num + 1
  3001. end
  3002. if Possible == true then
  3003. table.insert(AllIDs, ID)
  3004. wait()
  3005. pcall(function()
  3006. writefile("NotSameServers.json", game:GetService('HttpService'):JSONEncode(AllIDs))
  3007. wait()
  3008. game:GetService("TeleportService"):TeleportToPlaceInstance(PlaceID, ID, game.Players.LocalPlayer)
  3009. end)
  3010. wait(4)
  3011. end
  3012. end
  3013. end
  3014. end
  3015. function Teleport()
  3016. while wait() do
  3017. pcall(function()
  3018. TPReturner()
  3019. if foundAnything ~= "" then
  3020. TPReturner()
  3021. end
  3022. end)
  3023. end
  3024. end
  3025. -------------------------------------------
  3026. -------------------------------------------
  3027. coroutine.resume(coroutine.create(function()
  3028.  
  3029. task.spawn(function()
  3030. local GameFinished = game:GetService("Workspace"):WaitForChild("_DATA"):WaitForChild("GameFinished")
  3031. GameFinished:GetPropertyChangedSignal("Value"):Connect(function()
  3032. print("Changed", GameFinished.Value == true)
  3033. if GameFinished.Value == true then
  3034. repeat task.wait() until game:GetService("Players").LocalPlayer.PlayerGui.ResultsUI.Enabled == true
  3035. pcall(function() webhook() end)
  3036. print("Wait next or leave")
  3037. task.wait(2.1)
  3038. if Settings.AutoReplay then
  3039. local a={[1]="replay"} game:GetService("ReplicatedStorage").endpoints.client_to_server.set_game_finished_vote:InvokeServer(unpack(a))
  3040. local a={[1]="replay"} game:GetService("ReplicatedStorage").endpoints.client_to_server.set_game_finished_vote:InvokeServer(unpack(a))
  3041. print("Replay...")
  3042. elseif Settings.AutoNext then
  3043. local a={[1]="next_story"} game:GetService("ReplicatedStorage").endpoints.client_to_server.set_game_finished_vote:InvokeServer(unpack(a))
  3044. local a={[1]="next_story"} game:GetService("ReplicatedStorage").endpoints.client_to_server.set_game_finished_vote:InvokeServer(unpack(a))
  3045. print("Next Story...")
  3046. elseif Settings.AutoContinue then
  3047. local a={[1]="NextRetry"} game:GetService("ReplicatedStorage").endpoints.client_to_server.request_start_infinite_tower_from_game:InvokeServer(unpack(a))
  3048. local a={[1]="NextRetry"} game:GetService("ReplicatedStorage").endpoints.client_to_server.request_start_infinite_tower_from_game:InvokeServer(unpack(a))
  3049. print("Next Room infint Castle...")
  3050. elseif Settings.AutoLeave and not Settings.AutoReplay and not Settings.AutoNext and not Settings.AutoContinue then
  3051. game:GetService("TeleportService"):Teleport(8304191830, game.Players.LocalPlayer)
  3052.  
  3053. Teleport()
  3054. print("Returning to lobby...")
  3055. end
  3056. end
  3057. end)
  3058. end)
  3059.  
  3060. while task.wait() do
  3061. if getgenv().AutoSummon then
  3062. if getgenv().SelectedBanner == "Special" and getgenv().SelectedMethod ~= nil then
  3063. SummonUnits("EventClover", getgenv().SelectedMethod)
  3064. elseif getgenv().SelectedBanner == "Standard" and getgenv().SelectedMethod ~= nil then
  3065. SummonUnits("Standard", getgenv().SelectedMethod)
  3066. end
  3067. end
  3068. if Settings.AutoSnipeMerchant then
  3069. if Settings.ASM_SelectedFruit ~= "None" or Settings.ASM_SelectedFruit ~= nil then
  3070. if Settings.ASM_SelectedFruit == "Any StarFruits" then
  3071. snipefunc("Any StarFruits")
  3072. else
  3073. snipefunc(Settings.ASM_SelectedFruit)
  3074. end
  3075. end
  3076. if Settings.ASM_SelectedOtherItems ~= "None" or Settings.ASM_SelectedOtherItems ~= nil then
  3077. if Settings.ASM_SelectedOtherItems == "Any StarFruits" then
  3078. snipefunc("Any Items")
  3079. else
  3080. snipefunc(Settings.ASM_SelectedOtherItems)
  3081. end
  3082. end
  3083. if Settings.ASM_SelectedEvoItems ~= "None" or Settings.ASM_SelectedEvoItems ~= nil then
  3084.  
  3085. end
  3086. end
  3087. end
  3088. end))
  3089. function PlacePos(map,name,_uuid,unit)
  3090. if Settings.AutoFarm and not getgenv().disableatuofarm then
  3091. --local GetLevelData = game.workspace._MAP_CONFIG:WaitForChild("GetLevelData"):InvokeServer()
  3092. x = getgenv().posX; z = getgenv().posZ
  3093. --world = GetLevelData.world or GetLevelData.name
  3094. --print(tostring(world))
  3095. print(map)
  3096. local pos = Settings[map][unit]
  3097. --warn(" เธ”เนˆเธฒเธ™ "..map.." เธเธณเธฅเธฑเธ‡เธงเธฒเธ‡เธซเธฃเธทเธญเธญเธฑเธžเธ•เธฑเธง "..name)
  3098. if name ~= "metal_knight_evolved" then
  3099. local i = math.random(1,6)
  3100. if i == 1 then
  3101. local args = {
  3102. [1] = _uuid,
  3103. [2] = CFrame.new(Vector3.new(pos["x"], pos["y"], pos["z"]) )
  3104. }
  3105. game:GetService("ReplicatedStorage").endpoints.client_to_server.spawn_unit:InvokeServer(unpack(args))
  3106. return
  3107. elseif i == 2 then
  3108. local args = {
  3109. [1] = _uuid,
  3110. [2] = CFrame.new(Vector3.new(pos["x"], pos["y2"], pos["z"] + z) )
  3111. }
  3112. game:GetService("ReplicatedStorage").endpoints.client_to_server.spawn_unit:InvokeServer(unpack(args))
  3113. return
  3114. elseif i == 3 then
  3115. local args = {
  3116. [1] = _uuid,
  3117. [2] = CFrame.new(Vector3.new(pos["x"] + x, pos["y3"], pos["z"]) )
  3118. }
  3119. game:GetService("ReplicatedStorage").endpoints.client_to_server.spawn_unit:InvokeServer(unpack(args))
  3120. return
  3121. elseif i == 4 then
  3122. local args = {
  3123. [1] = _uuid,
  3124. [2] = CFrame.new(Vector3.new(pos["x"] - x, pos["y4"], pos["z"]) )
  3125. }
  3126. game:GetService("ReplicatedStorage").endpoints.client_to_server.spawn_unit:InvokeServer(unpack(args))
  3127. return
  3128. elseif i == 5 then
  3129. local args = {
  3130. [1] = _uuid,
  3131. [2] = CFrame.new(Vector3.new(pos["x"] + x, pos["y5"], pos["z"] + z) )
  3132. }
  3133. game:GetService("ReplicatedStorage").endpoints.client_to_server.spawn_unit:InvokeServer(unpack(args))
  3134. return
  3135. elseif i == 6 then
  3136. local args = {
  3137. [1] = _uuid,
  3138. [2] = CFrame.new(Vector3.new(pos["x"] - x, pos["y6"], pos["z"] + z) )
  3139. }
  3140. game:GetService("ReplicatedStorage").endpoints.client_to_server.spawn_unit:InvokeServer(unpack(args))
  3141. return
  3142. end
  3143. elseif name == "metal_knight_evolved" then
  3144. local i = math.random(1,6)
  3145. if i == 1 then
  3146. task.spawn(function()
  3147. --place units 0
  3148. warn("p1")
  3149. local args = {
  3150. [1] = _uuid,
  3151. [2] = CFrame.new(Vector3.new(pos["x"], pos["y"], pos["z"]) )
  3152. }
  3153. game:GetService("ReplicatedStorage").endpoints.client_to_server.spawn_unit:InvokeServer(unpack(args))
  3154. end)
  3155. return
  3156. elseif i == 2 then
  3157. task.spawn(function()
  3158. --place units 1
  3159. task.wait(2)
  3160. local args = {
  3161. [1] = _uuid,
  3162. [2] = CFrame.new(Vector3.new(pos["x"] - x, pos["y2"], pos["z"]) )
  3163. }
  3164. game:GetService("ReplicatedStorage").endpoints.client_to_server.spawn_unit:InvokeServer(unpack(args))
  3165. end)
  3166. return
  3167. elseif i == 3 then
  3168. task.spawn(function()
  3169. --place units 2
  3170. task.wait(3)
  3171. local args = {
  3172. [1] = _uuid,
  3173. [2] = CFrame.new(Vector3.new(pos["x"] + x, pos["y3"], pos["z"]) )
  3174. }
  3175. game:GetService("ReplicatedStorage").endpoints.client_to_server.spawn_unit:InvokeServer(unpack(args))
  3176. end)
  3177. end
  3178. end
  3179. return
  3180. end
  3181. end
  3182. -- Start of Get Current Wave Number [Added by Craymel02]
  3183. function GetWaveNumber()
  3184. return game:GetService("Workspace")["_wave_num"].Value
  3185. end
  3186. -- End of Get Current Wave Number
  3187. function GetUnitInfo(Unit)
  3188. local unitinfo = Settings.SelectedUnits[Unit]
  3189. local unitinfo_ = unitinfo:split(" #")
  3190. local _units = {}
  3191. local uu = {}
  3192. table.clear(_units)
  3193. table.clear(uu)
  3194. local name = " "
  3195. local min;
  3196. for i, v in pairs(game:GetService("Workspace")["_UNITS"]:GetChildren()) do
  3197. for i,v in pairs(v:GetChildren()) do
  3198. if v.Name == "_stats" then
  3199. if v:FindFirstChild("uuid") then
  3200. if v.uuid.Value == unitinfo_[2] then
  3201. table.insert(_units,v.Parent.Name)
  3202. name = v.Parent.Name
  3203. end
  3204. end
  3205. if v:FindFirstChild("uuid") and v:FindFirstChild("upgrade") then
  3206. if v.uuid.Value == unitinfo_[2] then
  3207. table.insert(uu,v.upgrade.Value)
  3208. end
  3209. end
  3210. end
  3211. end
  3212. end
  3213.  
  3214. if #uu ~= 0 then
  3215. min = math.min(table.unpack(uu))
  3216. table.sort(uu, function(a, b) return a < b end)
  3217. local min = uu[1]
  3218. end
  3219.  
  3220. return #_units or 0, unitinfo_[1], unitinfo_[2], min or 0
  3221. end
  3222. --test Upgrade
  3223. function upgradeunit(name, min)
  3224. for i, v in ipairs(game:GetService("Workspace")["_UNITS"]:GetChildren()) do
  3225. if v:FindFirstChild("_stats") and v:FindFirstChild("_hitbox") then
  3226. if tostring(v["_stats"].player.Value) == game.Players.LocalPlayer.Name and v["_stats"].xp.Value >= 0 then
  3227. --if v.Name == name and v._stats.upgrade.Value <= min then
  3228. if v._stats.id.Value == name and v._stats.upgrade.Value <= min then
  3229. game:GetService("ReplicatedStorage").endpoints.client_to_server.upgrade_unit_ingame:InvokeServer(v)
  3230. end
  3231. end
  3232. end
  3233. end
  3234. end
  3235. ---------------------------------
  3236. ---------test sell unit----------
  3237. ---------------------------------
  3238. --test
  3239. function sellunit(name)
  3240. repeat task.wait() until game:GetService("Workspace"):WaitForChild("_UNITS")
  3241. for i, v in ipairs(game:GetService("Workspace")["_UNITS"]:GetChildren()) do
  3242. repeat task.wait() until v:WaitForChild("_stats")
  3243. if v.Name == name and tostring(v["_stats"].player.Value) == game.Players.LocalPlayer.Name and v._stats:FindFirstChild("upgrade") then
  3244. game:GetService("ReplicatedStorage").endpoints.client_to_server.sell_unit_ingame:InvokeServer(v)
  3245. end
  3246. end
  3247. end
  3248. --unit1
  3249. function sellunit1(name)
  3250. U1_wave = game:GetService("Workspace"):WaitForChild("_wave_num")
  3251. repeat task.wait() until game:GetService("Workspace"):WaitForChild("_UNITS")
  3252. for i, v in ipairs(game:GetService("Workspace")["_UNITS"]:GetChildren()) do
  3253. repeat task.wait() until v:WaitForChild("_stats")
  3254. if v.Name == name and tostring(v["_stats"].player.Value) == game.Players.LocalPlayer.Name and v._stats:FindFirstChild("upgrade") then
  3255. if tonumber(Settings.U1_SellWave) <= U1_wave.Value then
  3256. game:GetService("ReplicatedStorage").endpoints.client_to_server.sell_unit_ingame:InvokeServer(v)
  3257. end
  3258. end
  3259. end
  3260. end
  3261. --unit2
  3262. function sellunit2(name)
  3263. U2_wave = game:GetService("Workspace"):WaitForChild("_wave_num")
  3264. repeat task.wait() until game:GetService("Workspace"):WaitForChild("_UNITS")
  3265. for i, v in ipairs(game:GetService("Workspace")["_UNITS"]:GetChildren()) do
  3266. repeat task.wait() until v:WaitForChild("_stats")
  3267. if v.Name == name and tostring(v["_stats"].player.Value) == game.Players.LocalPlayer.Name and v._stats:FindFirstChild("upgrade") then
  3268. if tonumber(Settings.U2_SellWave) <= U2_wave.Value then
  3269. game:GetService("ReplicatedStorage").endpoints.client_to_server.sell_unit_ingame:InvokeServer(v)
  3270. end
  3271. end
  3272. end
  3273. end
  3274. --unit3
  3275. function sellunit3(name)
  3276. U3_wave = game:GetService("Workspace"):WaitForChild("_wave_num")
  3277. repeat task.wait() until game:GetService("Workspace"):WaitForChild("_UNITS")
  3278. for i, v in ipairs(game:GetService("Workspace")["_UNITS"]:GetChildren()) do
  3279. repeat task.wait() until v:WaitForChild("_stats")
  3280. if v.Name == name and tostring(v["_stats"].player.Value) == game.Players.LocalPlayer.Name and v._stats:FindFirstChild("upgrade") then
  3281. if tonumber(Settings.U3_SellWave) <= U3_wave.Value then
  3282. game:GetService("ReplicatedStorage").endpoints.client_to_server.sell_unit_ingame:InvokeServer(v)
  3283. end
  3284. end
  3285. end
  3286. end
  3287. --unit4
  3288. function sellunit4(name)
  3289. U4_wave = game:GetService("Workspace"):WaitForChild("_wave_num")
  3290. repeat task.wait() until game:GetService("Workspace"):WaitForChild("_UNITS")
  3291. for i, v in ipairs(game:GetService("Workspace")["_UNITS"]:GetChildren()) do
  3292. repeat task.wait() until v:WaitForChild("_stats")
  3293. if v.Name == name and tostring(v["_stats"].player.Value) == game.Players.LocalPlayer.Name and v._stats:FindFirstChild("upgrade") then
  3294. if tonumber(Settings.U4_SellWave) <= U4_wave.Value then
  3295. game:GetService("ReplicatedStorage").endpoints.client_to_server.sell_unit_ingame:InvokeServer(v)
  3296. end
  3297. end
  3298. end
  3299. end
  3300. --unit5
  3301. function sellunit5(name)
  3302. U5_wave = game:GetService("Workspace"):WaitForChild("_wave_num")
  3303. repeat task.wait() until game:GetService("Workspace"):WaitForChild("_UNITS")
  3304. for i, v in ipairs(game:GetService("Workspace")["_UNITS"]:GetChildren()) do
  3305. repeat task.wait() until v:WaitForChild("_stats")
  3306. if v.Name == name and tostring(v["_stats"].player.Value) == game.Players.LocalPlayer.Name and v._stats:FindFirstChild("upgrade") then
  3307. if tonumber(Settings.U5_SellWave) <= U5_wave.Value then
  3308. game:GetService("ReplicatedStorage").endpoints.client_to_server.sell_unit_ingame:InvokeServer(v)
  3309. end
  3310. end
  3311. end
  3312. end
  3313. --unit6
  3314. function sellunit6(name)
  3315. U6_wave = game:GetService("Workspace"):WaitForChild("_wave_num")
  3316. repeat task.wait() until game:GetService("Workspace"):WaitForChild("_UNITS")
  3317. for i, v in ipairs(game:GetService("Workspace")["_UNITS"]:GetChildren()) do
  3318. repeat task.wait() until v:WaitForChild("_stats")
  3319. if v.Name == name and tostring(v["_stats"].player.Value) == game.Players.LocalPlayer.Name and v._stats:FindFirstChild("upgrade") then
  3320. if tonumber(Settings.U6_SellWave) <= U6_wave.Value then
  3321. game:GetService("ReplicatedStorage").endpoints.client_to_server.sell_unit_ingame:InvokeServer(v)
  3322. end
  3323. end
  3324. end
  3325. end
  3326. ---------------------------------
  3327. ---------------------------------
  3328. ---------------------------------
  3329. function PlaceUnitsTEST(map,name,_uuid,unit)
  3330. local GetLevelData = game.workspace._MAP_CONFIG:WaitForChild("GetLevelData"):InvokeServer()
  3331. world = GetLevelData.world or GetLevelData.name
  3332. current_wave = game:GetService("Workspace")["_wave_num"].Value
  3333. U1_wv, U2_wv, U3_wv, U4_wv, U5_wv, U6_wv = Settings.U1_Wave or 1, Settings.U2_Wave or 1, Settings.U3_Wave or 1, Settings.U4_Wave or 1, Settings.U5_Wave or 1, Settings.U6_Wave or 1
  3334. U1_TAmm, U2_TAmm, U3_TAmm, U4_TAmm, U5_TAmm, U6_TAmm = Settings.U1_TotalAmmount or 6, Settings.U2_TotalAmmount or 6, Settings.U3_TotalAmmount or 6, Settings.U4_TotalAmmount or 6, Settings.U5_TotalAmmount or 6, Settings.U6_TotalAmmount or 6
  3335. U1_upgW, U2_upgW, U3_upgW, U4_upgW, U5_upgW, U6_upgW = Settings.U1_UpgWave or 1, Settings.U2_UpgWave or 1, Settings.U3_UpgWave or 1, Settings.U4_UpgWave or 1, Settings.U5_UpgWave or 1, Settings.U6_UpgWave or 1
  3336. U1_upgCap, U2_upgCap, U3_upgCap, U4_upgCap, U5_upgCap, U6_upgCap = Settings.U1_UpgCap or 99, Settings.U2_UpgCap or 99, Settings.U3_UpgCap or 99, Settings.U4_UpgCap or 99, Settings.U5_UpgCap or 99, Settings.U6_UpgCap or 99
  3337. U1_sellW, U2_sellW, U3_sellW, U4_sellW, U5_sellW, U6_sellW = Settings.U1_SellWave or 999, Settings.U2_SellWave or 999, Settings.U3_SellWave or 999, Settings.U4_SellWave or 999, Settings.U5_SellWave or 999, Settings.U6_SellWave or 999
  3338. U1_upgP, U2_upgP, U3_upgP, U4_upgP, U5_upgP, U6_upgP = Settings.U1_UpgPro or 1, Settings.U2_UpgPro or 1, Settings.U3_UpgPro or 1, Settings.U4_UpgPro or 1, Settings.U5_UpgPro or 1, Settings.U6_UpgPro or 1
  3339. U1_UnP, U2_UnP, U3_UnP, U4_UnP, U5_UnP, U6_UnP = Settings.U1_UnPlace or 1, Settings.U2_UnPlace or 1, Settings.U3_UnPlace or 1, Settings.U4_UnPlace or 1, Settings.U5_UnPlace or 1, Settings.U6_UnPlace or 1
  3340.  
  3341. --//Unit 1
  3342. local U1_amm, U1_name, U1_uuid, U1_u = GetUnitInfo("U1")
  3343. if U1_wv <= current_wave and U1_amm <= U1_TAmm then
  3344. if U1_sellW >= current_wave and U1_amm < U1_TAmm then
  3345. print("placing u1.."..U1_name)
  3346. PlacePos(map, U1_name, U1_uuid,"UP1")
  3347. end
  3348. if U1_sellW <= current_wave then
  3349. print("selling u1.."..U1_name)
  3350. sellunit1(U1_name)
  3351. end
  3352. if U1_u < U1_upgCap and U1_upgW <= current_wave and U1_sellW >= current_wave then
  3353. print("upgrading u1.."..U1_name)
  3354. upgradeunit(U1_name, U1_upgCap)
  3355. end
  3356. end
  3357. --end
  3358. --//Unit 2
  3359. local U2_amm, U2_name, U2_uuid, U2_u = GetUnitInfo("U2")
  3360. if U2_wv <= current_wave and U2_amm <= U2_TAmm then
  3361. if U2_sellW >= current_wave and U2_amm < U2_TAmm then
  3362. print("placing u2.."..U2_name)
  3363. PlacePos(map, U2_name, U2_uuid,"UP2")
  3364. end
  3365. if U2_sellW <= current_wave then
  3366. print("selling u2.."..U2_name)
  3367. sellunit2(U2_name)
  3368. end
  3369. if U2_u < U2_upgCap and U2_upgW <= current_wave and U2_sellW >= current_wave then
  3370. print("upgrading u2.."..U2_name)
  3371. upgradeunit(U2_name, U2_upgCap)
  3372. end
  3373. end
  3374. --end
  3375. --//Unit 3
  3376. local U3_amm, U3_name, U3_uuid, U3_u = GetUnitInfo("U3")
  3377. if U3_wv <= current_wave and U3_amm <= U3_TAmm then
  3378. if U3_sellW >= current_wave and U3_amm < U3_TAmm then
  3379. print("placing u3.."..U3_name)
  3380. PlacePos(map, U3_name, U3_uuid,"UP3")
  3381. end
  3382. if U3_sellW <= current_wave then
  3383. print("selling u3.."..U3_name)
  3384. sellunit3(U3_name)
  3385. end
  3386. if U3_u < U3_upgCap and U3_upgW <= current_wave then
  3387. print("upgrading u3.."..U3_name)
  3388. upgradeunit(U3_name, U3_upgCap)
  3389. end
  3390. end
  3391. --end
  3392. --//Unit 4
  3393. local U4_amm, U4_name, U4_uuid, U4_u = GetUnitInfo("U4")
  3394. if U4_wv <= current_wave and U4_amm <= U4_TAmm then
  3395. if U4_sellW >= current_wave and U4_amm < U4_TAmm then
  3396. print("placing u4.."..U4_name)
  3397. PlacePos(map, U4_name, U4_uuid,"UP4")
  3398. end
  3399. if U4_sellW <= current_wave then
  3400. print("selling u4.."..U4_name)
  3401. sellunit4(U4_name)
  3402. end
  3403. if U4_u < U4_upgCap and U4_upgW <= current_wave and U4_sellW >= current_wave then
  3404. print("upgrading u4.."..U4_name)
  3405. upgradeunit(U4_name, U4_upgCap)
  3406. end
  3407. end
  3408. --end
  3409. --//Unit 5
  3410. local U5_amm, U5_name, U5_uuid, U5_u = GetUnitInfo("U5")
  3411. if U5_wv <= current_wave and U5_amm <= U5_TAmm then
  3412. if U5_sellW >= current_wave and U5_amm < U5_TAmm then
  3413. print("placing u5.."..U5_name)
  3414. PlacePos(map, U5_name, U5_uuid,"UP5")
  3415. end
  3416. if U5_sellW <= current_wave then
  3417. print("selling u5.."..U5_name)
  3418. sellunit5(U5_name)
  3419. end
  3420. if U5_u < U5_upgCap and U5_upgW <= current_wave and U5_sellW >= current_wave then
  3421. print("upgrading u5.."..U5_name)
  3422. upgradeunit(U5_name, U5_upgCap)
  3423. end
  3424. end
  3425. --end
  3426. --//Unit 6
  3427. local U6_amm, U6_name, U6_uuid, U6_u = GetUnitInfo("U6")
  3428. if U6_wv <= current_wave and U6_amm <= U6_TAmm then
  3429. if U6_sellW >= current_wave and U6_amm < U6_TAmm then
  3430. print("placing u6.."..U6_name)
  3431. PlacePos(map, U6_name, U6_uuid,"UP6")
  3432. end
  3433. if U6_sellW <= current_wave then
  3434. print("selling u6.."..U6_name)
  3435. sellunit6(U6_name)
  3436. end
  3437. if U6_u < U6_upgCap and U6_upgW <= current_wave and U6_sellW >= current_wave then
  3438. print("upgrading u6.."..U6_name)
  3439. upgradeunit(U6_name, U6_upgCap)
  3440. end
  3441. end
  3442. end
  3443. --end
  3444. --test reset unit config
  3445. function reunitcon()
  3446. print("reset unit config ?")
  3447. if Settings.U1_Wave then
  3448. Settings.U1_Wave = 1 end
  3449. if Settings.U2_Wave then
  3450. Settings.U2_Wave = 1 end
  3451. if Settings.U3_Wave then
  3452. Settings.U3_Wave = 1 end
  3453. if Settings.U4_Wave then
  3454. Settings.U4_Wave = 1 end
  3455. if Settings.U5_Wave then
  3456. Settings.U5_Wave = 1 end
  3457. if Settings.U6_Wave then
  3458. Settings.U6_Wave = 1 end
  3459. if Settings.U1_TotalAmmount then
  3460. Settings.U1_TotalAmmount = 6 end
  3461. if Settings.U2_TotalAmmount then
  3462. Settings.U2_TotalAmmount = 6 end
  3463. if Settings.U3_TotalAmmount then
  3464. Settings.U3_TotalAmmount = 6 end
  3465. if Settings.U4_TotalAmmount then
  3466. Settings.U4_TotalAmmount = 6 end
  3467. if Settings.U5_TotalAmmount then
  3468. Settings.U5_TotalAmmount = 6 end
  3469. if Settings.U6_TotalAmmount then
  3470. Settings.U6_TotalAmmount = 6 end
  3471. if Settings.U1_UpgWave then
  3472. Settings.U1_UpgWave = 1 end
  3473. if Settings.U2_UpgWave then
  3474. Settings.U2_UpgWave = 1 end
  3475. if Settings.U3_UpgWave then
  3476. Settings.U3_UpgWave = 1 end
  3477. if Settings.U4_UpgWave then
  3478. Settings.U4_UpgWave = 1 end
  3479. if Settings.U5_UpgWave then
  3480. Settings.U5_UpgWave = 1 end
  3481. if Settings.U6_UpgWave then
  3482. Settings.U6_UpgWave = 1 end
  3483. if Settings.U1_UpgCap then
  3484. Settings.U1_UpgCap = 99 end
  3485. if Settings.U2_UpgCap then
  3486. Settings.U2_UpgCap = 99 end
  3487. if Settings.U3_UpgCap then
  3488. Settings.U3_UpgCap = 99 end
  3489. if Settings.U4_UpgCap then
  3490. Settings.U4_UpgCap = 99 end
  3491. if Settings.U5_UpgCap then
  3492. Settings.U5_UpgCap = 99 end
  3493. if Settings.U6_UpgCap then
  3494. Settings.U6_UpgCap = 99 end
  3495. if Settings.U1_SellWave then
  3496. Settings.U1_SellWave = 99 end
  3497. if Settings.U2_SellWave then
  3498. Settings.U2_SellWave = 99 end
  3499. if Settings.U3_SellWave then
  3500. Settings.U3_SellWave = 99 end
  3501. if Settings.U4_SellWave then
  3502. Settings.U4_SellWave = 99 end
  3503. if Settings.U5_SellWave then
  3504. Settings.U5_SellWave = 99 end
  3505. if Settings.U6_SellWave then
  3506. Settings.U6_SellWave = 99 end
  3507. if Settings.U1_UpgPro then
  3508. Settings.U1_UpgPro = 1 end
  3509. if Settings.U2_UpgPro then
  3510. Settings.U2_UpgPro = 1 end
  3511. if Settings.U3_UpgPro then
  3512. Settings.U3_UpgPro = 1 end
  3513. if Settings.U4_UpgPro then
  3514. Settings.U4_UpgPro = 1 end
  3515. if Settings.U5_UpgPro then
  3516. Settings.U5_UpgPro = 1 end
  3517. if Settings.U6_UpgPro then
  3518. Settings.U6_UpgPro = 1 end
  3519. if Settings.U1_UnPlace then
  3520. Settings.U1_UnPlace = 1 end
  3521. if Settings.U2_UnPlace then
  3522. Settings.U2_UnPlace = 1 end
  3523. if Settings.U3_UnPlace then
  3524. Settings.U3_UnPlace = 1 end
  3525. if Settings.U4_UnPlace then
  3526. Settings.U4_UnPlace = 1 end
  3527. if Settings.U5_UnPlace then
  3528. Settings.U5_UnPlace = 1 end
  3529. if Settings.U6_UnPlace then
  3530. Settings.U6_UnPlace = 1 end
  3531.  
  3532. end
  3533. if Settings.reunitc then
  3534. reunitcon()
  3535. end
  3536. --fix sell and place spam
  3537. function PlaceUnits(map)
  3538. pcall(function()
  3539. if Settings.AutoFarm and not getgenv().disableatuofarm then
  3540. --local GetLevelData = game.workspace._MAP_CONFIG:WaitForChild("GetLevelData"):InvokeServer()
  3541. x = getgenv().posX; z = getgenv().posZ
  3542. --world = GetLevelData.world or GetLevelData.name
  3543. --print(tostring(world))
  3544. print(map)
  3545. for i = 1, 6 do
  3546. local unitinfo = Settings.SelectedUnits["U" .. i]
  3547. if unitinfo ~= nil then
  3548. local unitinfo_ = unitinfo:split(" #")
  3549. local pos = Settings[map]["UP" .. i]
  3550. print(map.." attemp to place "..unitinfo_[1])
  3551.  
  3552. if unitinfo_[1] ~= "metal_knight_evolved" then
  3553.  
  3554. --place units 0
  3555. local args = {
  3556. [1] = unitinfo_[2],
  3557. [2] = CFrame.new(Vector3.new(pos["x"], pos["y"], pos["z"]) )
  3558. }
  3559. game:GetService("ReplicatedStorage").endpoints.client_to_server.spawn_unit:InvokeServer(unpack(args))
  3560.  
  3561. --place units 1
  3562. local args = {
  3563. [1] = unitinfo_[2],
  3564. [2] = CFrame.new(Vector3.new(pos["x"] - x, pos["y2"], pos["z"]) )
  3565. }
  3566. game:GetService("ReplicatedStorage").endpoints.client_to_server.spawn_unit:InvokeServer(unpack(args))
  3567.  
  3568. --place units 2
  3569. local args = {
  3570. [1] = unitinfo_[2],
  3571. [2] = CFrame.new(Vector3.new(pos["x"] + x, pos["y3"], pos["z"]) )
  3572. }
  3573. game:GetService("ReplicatedStorage").endpoints.client_to_server.spawn_unit:InvokeServer(unpack(args))
  3574.  
  3575. --place units 3
  3576. local args = {
  3577. [1] = unitinfo_[2],
  3578. [2] = CFrame.new(Vector3.new(pos["x"] - x, pos["y4"], pos["z"]) )
  3579. }
  3580. game:GetService("ReplicatedStorage").endpoints.client_to_server.spawn_unit:InvokeServer(unpack(args))
  3581.  
  3582. --place units 4
  3583. local args = {
  3584. [1] = unitinfo_[2],
  3585. [2] = CFrame.new(Vector3.new(pos["x"] + x, pos["y5"], pos["z"]) )
  3586. }
  3587. game:GetService("ReplicatedStorage").endpoints.client_to_server.spawn_unit:InvokeServer(unpack(args))
  3588.  
  3589. --place units 5
  3590. local args = {
  3591. [1] = unitinfo_[2],
  3592. [2] = CFrame.new(Vector3.new(pos["x"] - x, pos["y6"], pos["z"]) )
  3593. }
  3594. game:GetService("ReplicatedStorage").endpoints.client_to_server.spawn_unit:InvokeServer(unpack(args))
  3595.  
  3596. elseif unitinfo_[1] == "metal_knight_evolved" then
  3597.  
  3598. task.spawn(function()
  3599. --place units 0
  3600. warn("p1" )
  3601. local args = {
  3602. [1] = unitinfo_[2],
  3603. [2] = CFrame.new(Vector3.new(pos["x"], pos["y"], pos["z"]) )
  3604. }
  3605. game:GetService("ReplicatedStorage").endpoints.client_to_server.spawn_unit:InvokeServer(unpack(args))
  3606. end)
  3607.  
  3608. task.spawn(function()
  3609. --place units 1
  3610. task.wait(2)
  3611. local args = {
  3612. [1] = unitinfo_[2],
  3613. [2] = CFrame.new(Vector3.new(pos["x"] - x, pos["y"], pos["z"]) )
  3614. }
  3615. game:GetService("ReplicatedStorage").endpoints.client_to_server.spawn_unit:InvokeServer(unpack(args))
  3616. end)
  3617.  
  3618. task.spawn(function()
  3619. --place units 2
  3620. task.wait(3)
  3621. local args = {
  3622. [1] = unitinfo_[2],
  3623. [2] = CFrame.new(Vector3.new(pos["x"] + x, pos["y"], pos["z"]) )
  3624. }
  3625. game:GetService("ReplicatedStorage").endpoints.client_to_server.spawn_unit:InvokeServer(unpack(args))
  3626. end)
  3627. end
  3628. end
  3629. end
  3630. end
  3631. end)
  3632. end
  3633. ------------------------------------------------------------------------------------------------
  3634. ------------------------------------------------------------------------------------------
  3635. --updatefix fixmap
  3636. coroutine.resume(coroutine.create(function()
  3637. while task.wait(1.5) do
  3638. if game.PlaceId ~= 8304191830 and Settings.AutoFarm and Settings.unitconfig and not getgenv().disableatuofarm then
  3639. warn("Enable Unit Config")
  3640. local _wave = game:GetService("Workspace"):WaitForChild("_wave_num")
  3641. repeat task.wait() until game:GetService("Workspace"):WaitForChild("_map")
  3642. if game.Workspace._map:FindFirstChild("namek mushroom model") then
  3643. PlaceUnitsTEST("namek")
  3644. elseif game.Workspace._map:FindFirstChild("houses_new") then
  3645. PlaceUnitsTEST("aot")
  3646. elseif game.Workspace._map:FindFirstChild("Snow Particles") then
  3647. PlaceUnitsTEST("demonslayer")
  3648. elseif game.Workspace._map:FindFirstChild("sand_gate") then
  3649. PlaceUnitsTEST("naruto")
  3650. elseif game.Workspace._map:FindFirstChild("icebergs") then
  3651. PlaceUnitsTEST("marineford")
  3652. elseif game.Workspace._map:FindFirstChild("new buildings") then
  3653. PlaceUnitsTEST("tokyo_ghoul")
  3654. elseif game.Workspace._map:FindFirstChild("Bones/dust") then
  3655. PlaceUnitsTEST("hueco")
  3656. elseif game.Workspace._map:FindFirstChild("light poles") then
  3657. PlaceUnitsTEST("magnolia")
  3658. elseif game.Workspace._map:FindFirstChild("LanternsGround") then
  3659. PlaceUnitsTEST("jjk")
  3660. elseif game.Workspace._map:FindFirstChild("pumpkins") then
  3661. PlaceUnitsTEST("thriller_park")
  3662. elseif game.Workspace._map:FindFirstChild("sand_bags") then
  3663. PlaceUnitsTEST("bleach_legend")
  3664. elseif game.Workspace._map:FindFirstChild("vending machines") then
  3665. PlaceUnitsTEST("chainsaw")
  3666. elseif game.Workspace._map:FindFirstChild("SpaceCenter") then
  3667. PlaceUnitsTEST("jojo")
  3668. elseif game.Workspace._map:FindFirstChild("secret") then
  3669. PlaceUnitsTEST("opm")
  3670. elseif game.Workspace._map:FindFirstChild("s") then
  3671. PlaceUnitsTEST("west_city")
  3672. elseif game.Workspace._map:FindFirstChild("bushes and flowers") then
  3673. PlaceUnitsTEST("uchiha")
  3674. elseif game.Workspace._map:FindFirstChild("snow grass") then
  3675. PlaceUnitsTEST("demonslayer_raid_1")
  3676. elseif game.Workspace._map:FindFirstChild("misc nonocollide obstacles") then
  3677. PlaceUnitsTEST("7ds")
  3678. elseif game.Workspace._map:FindFirstChild("bridge nocollide") then
  3679. PlaceUnitsTEST("mha")
  3680. elseif game.Workspace._map:FindFirstChild("benches and barrels") then
  3681. PlaceUnitsTEST("entertain")
  3682. elseif game.Workspace._map:FindFirstChild("Ant Nest") then
  3683. PlaceUnitsTEST("hxhant")
  3684. elseif game.Workspace._map:FindFirstChild("linings") then
  3685. PlaceUnitsTEST("OPnew")
  3686. elseif game.Workspace._map:FindFirstChild("buildingsouter") then
  3687. PlaceUnitsTEST("Modako")
  3688. elseif game.Workspace._map["misc deco"]:FindFirstChild("bushes") then
  3689. PlaceUnitsTEST("clover")
  3690. end
  3691. end
  3692. end
  3693. end))
  3694. coroutine.resume(coroutine.create(function()
  3695. while task.wait(1.5) do
  3696. if game.PlaceId ~= 8304191830 and Settings.AutoFarm and not Settings.unitconfig and not getgenv().disableatuofarm then
  3697. warn("Disable Unit Config")
  3698. local _wave = game:GetService("Workspace"):WaitForChild("_wave_num")
  3699. repeat task.wait() until game:GetService("Workspace"):WaitForChild("_map")
  3700. if game.Workspace._map:FindFirstChild("namek mushroom model") then
  3701. PlaceUnits("namek")
  3702. elseif game.Workspace._map:FindFirstChild("houses_new") then
  3703. PlaceUnits("aot")
  3704. elseif game.Workspace._map:FindFirstChild("Snow Particles") then
  3705. PlaceUnits("demonslayer")
  3706. elseif game.Workspace._map:FindFirstChild("sand_gate") then
  3707. PlaceUnits("naruto")
  3708. elseif game.Workspace._map:FindFirstChild("icebergs") then
  3709. PlaceUnits("marineford")
  3710. elseif game.Workspace._map:FindFirstChild("new buildings") then
  3711. PlaceUnits("tokyo_ghoul")
  3712. elseif game.Workspace._map:FindFirstChild("Bones/dust") then
  3713. PlaceUnits("hueco")
  3714. elseif game.Workspace._map:FindFirstChild("light poles") then
  3715. PlaceUnits("magnolia")
  3716. elseif game.Workspace._map:FindFirstChild("LanternsGround") then
  3717. PlaceUnits("jjk")
  3718. elseif game.Workspace._map:FindFirstChild("pumpkins") then
  3719. PlaceUnits("thriller_park")
  3720. elseif game.Workspace._map:FindFirstChild("sand_bags") then
  3721. PlaceUnits("bleach_legend")
  3722. elseif game.Workspace._map:FindFirstChild("vending machines") then
  3723. PlaceUnits("chainsaw")
  3724. elseif game.Workspace._map:FindFirstChild("SpaceCenter") then
  3725. PlaceUnits("jojo")
  3726. elseif game.Workspace._map:FindFirstChild("secret") then
  3727. PlaceUnits("opm")
  3728. elseif game.Workspace._map:FindFirstChild("s") then
  3729. PlaceUnits("west_city")
  3730. elseif game.Workspace._map:FindFirstChild("bushes and flowers") then
  3731. PlaceUnits("uchiha")
  3732. elseif game.Workspace._map:FindFirstChild("snow grass") then
  3733. PlaceUnits("demonslayer_raid_1")
  3734. elseif game.Workspace._map:FindFirstChild("misc nonocollide obstacles") then
  3735. PlaceUnits("7ds")
  3736. elseif game.Workspace._map:FindFirstChild("bridge nocollide") then
  3737. PlaceUnits("mha")
  3738. elseif game.Workspace._map:FindFirstChild("benches and barrels") then
  3739. PlaceUnits("entertain")
  3740. elseif game.Workspace._map:FindFirstChild("Ant Nest") then
  3741. PlaceUnits("hxhant")
  3742. elseif game.Workspace._map:FindFirstChild("linings") then
  3743. PlaceUnits("OPnew")
  3744. elseif game.Workspace._map:FindFirstChild("buildingsouter") then
  3745. PlaceUnits("Modako")
  3746. elseif game.Workspace._map["misc deco"]:FindFirstChild("bushes") then
  3747. PlaceUnits("clover")
  3748. end
  3749. end
  3750. end
  3751. end))
  3752. -----------------------------------------------------
  3753. --------------------DELETE MAP-----------------------
  3754. -----------------------------------------------------
  3755. --delete map Map id
  3756. --deletet terrain
  3757. function DelTer()
  3758. if game.Workspace._terrain:FindFirstChild("terrain") then
  3759. for i,v in pairs(game:GetService("Workspace")["_terrain"].terrain:GetChildren()) do
  3760. if v.ClassName == "MeshPart" then v:Destroy() end
  3761. if v.ClassName == "Model" then v:Destroy() end
  3762. if v.ClassName == "Folder" then v:Destroy() end
  3763. end
  3764. end
  3765. end
  3766. function DelMapMain()
  3767. if game.Workspace:FindFirstChild("_map") then
  3768. for i,v in pairs(game:GetService("Workspace")["_map"]:GetChildren()) do
  3769. if v.ClassName == "MeshPart" then v:Destroy() end
  3770. if v.ClassName == "Model" then v:Destroy() end
  3771. if v.ClassName == "Part" then v:Destroy() end
  3772. end
  3773. end
  3774. end
  3775. --Namek
  3776. function DelMapnamekmap2()
  3777. if game.Workspace:FindFirstChild("_map") then
  3778. for i,v in pairs(game:GetService("Workspace")["_map"]["namek mushroom model"]:GetChildren()) do
  3779. if v.ClassName == "Model" then v:Destroy() end
  3780. if v.ClassName == "Part" then v:Destroy() end
  3781. end
  3782. end
  3783. end
  3784. function DelMapnamekmap3()
  3785. if game.Workspace:FindFirstChild("_map") then
  3786. for i,v in pairs(game:GetService("Workspace")["_map"]["namek trees model"]:GetChildren()) do
  3787. if v.ClassName == "Model" then v:Destroy() end
  3788. if v.ClassName == "Part" then v:Destroy() end
  3789. end
  3790. end
  3791. end
  3792. function DelMapnamekmap4()
  3793. if game.Workspace:FindFirstChild("_map") then
  3794. for i,v in pairs(game:GetService("Workspace")["_map"]["namek_details"]:GetChildren()) do
  3795. if v.ClassName == "Model" then v:Destroy() end
  3796. if v.ClassName == "Part" then v:Destroy() end
  3797. end
  3798. end
  3799. end
  3800. function DelMapnamekmap5()
  3801. if game.Workspace:FindFirstChild("_map") then
  3802. for i,v in pairs(game:GetService("Workspace")["_map"]["vines_model"]:GetChildren()) do
  3803. if v.ClassName == "Model" then v:Destroy() end
  3804. if v.ClassName == "Part" then v:Destroy() end
  3805. end
  3806. end
  3807. end
  3808. function DelMapnamekmap6()
  3809. if game.Workspace:FindFirstChild("_map") then
  3810. for i,v in pairs(game:GetService("Workspace")["_map"]["namek grass model"]:GetChildren()) do
  3811. if v.ClassName == "MeshPart" then v:Destroy() end
  3812. if v.ClassName == "Model" then v:Destroy() end
  3813. if v.ClassName == "Part" then v:Destroy() end
  3814. end
  3815. end
  3816. end
  3817. function DelMapnamekmap7()
  3818. if game.Workspace:FindFirstChild("_map") then
  3819. for i,v in pairs(game:GetService("Workspace")["_map"].obstacles:GetChildren()) do
  3820. if v.ClassName == "MeshPart" then v:Destroy() end
  3821. if v.ClassName == "Model" then v:Destroy() end
  3822. if v.ClassName == "Part" then v:Destroy() end
  3823. end
  3824. end
  3825. end
  3826. function DelMapnamekmap8()
  3827. if game.Workspace:FindFirstChild("_map") then
  3828. for i,v in pairs(game:GetService("Workspace")["_map"].obstacles["new houses"]:GetChildren()) do
  3829. if v.ClassName == "MeshPart" then v:Destroy() end
  3830. if v.ClassName == "Model" then v:Destroy() end
  3831. if v.ClassName == "Part" then v:Destroy() end
  3832. end
  3833. end
  3834. end
  3835. function DelMapnamekmap9()
  3836. if game.Workspace:FindFirstChild("_map") then
  3837. for i,v in pairs(game:GetService("Workspace")["_map"].obstacles.rocks:GetChildren()) do
  3838. if v.ClassName == "MeshPart" then v:Destroy() end
  3839. if v.ClassName == "Model" then v:Destroy() end
  3840. if v.ClassName == "Part" then v:Destroy() end
  3841. end
  3842. end
  3843. end
  3844. --Titan
  3845. function DelMapTitan1()
  3846. if game.Workspace:FindFirstChild("_map") then
  3847. for i,v in pairs(game:GetService("Workspace")["_map"].grass:GetChildren()) do
  3848. if v.ClassName == "MeshPart" then v:Destroy() end
  3849. if v.ClassName == "Model" then v:Destroy() end
  3850. if v.ClassName == "Part" then v:Destroy() end
  3851. end
  3852. end
  3853. end
  3854. function DelMapTitan2()
  3855. if game.Workspace:FindFirstChild("_map") then
  3856. for i,v in pairs(game:GetService("Workspace")["_map"]["houses_new"]:GetChildren()) do
  3857. if v.ClassName == "MeshPart" then v:Destroy() end
  3858. if v.ClassName == "Model" then v:Destroy() end
  3859. if v.ClassName == "Part" then v:Destroy() end
  3860. end
  3861. end
  3862. end
  3863. function DelMapTitan3()
  3864. if game.Workspace:FindFirstChild("_map") then
  3865. for i,v in pairs(game:GetService("Workspace")["_map"].obstacles:GetChildren()) do
  3866. if v.ClassName == "MeshPart" then v:Destroy() end
  3867. if v.ClassName == "Model" then v:Destroy() end
  3868. if v.ClassName == "Part" then v:Destroy() end
  3869. end
  3870. end
  3871. end
  3872. function DelMapTitan4()
  3873. if game.Workspace:FindFirstChild("_map") then
  3874. for i,v in pairs(game:GetService("Workspace")["_map"].obstacles.deco:GetChildren()) do
  3875. if v.ClassName == "MeshPart" then v:Destroy() end
  3876. if v.ClassName == "Model" then v:Destroy() end
  3877. if v.ClassName == "Part" then v:Destroy() end
  3878. end
  3879. end
  3880. end
  3881. function DelMapTitan5()
  3882. if game.Workspace:FindFirstChild("_map") then
  3883. for i,v in pairs(game:GetService("Workspace")["_map"].obstacles.trees:GetChildren()) do
  3884. if v.ClassName == "MeshPart" then v:Destroy() end
  3885. if v.ClassName == "Model" then v:Destroy() end
  3886. if v.ClassName == "Part" then v:Destroy() end
  3887. end
  3888. end
  3889. end
  3890. function DelMapTitan6()
  3891. if game.Workspace:FindFirstChild("_map") then
  3892. for i,v in pairs(game:GetService("Workspace")["_map"]["river towers"]:GetChildren()) do
  3893. if v.ClassName == "MeshPart" then v:Destroy() end
  3894. if v.ClassName == "Model" then v:Destroy() end
  3895. if v.ClassName == "Part" then v:Destroy() end
  3896. end
  3897. end
  3898. end
  3899. function DelMapTitan7()
  3900. if game.Workspace:FindFirstChild("_map") then
  3901. for i,v in pairs(game:GetService("Workspace")["_map"]["towers_new"]:GetChildren()) do
  3902. if v.ClassName == "MeshPart" then v:Destroy() end
  3903. if v.ClassName == "Model" then v:Destroy() end
  3904. if v.ClassName == "Part" then v:Destroy() end
  3905. end
  3906. end
  3907. end
  3908. function DelMapTitan8()
  3909. if game.Workspace:FindFirstChild("_map") then
  3910. for i,v in pairs(game:GetService("Workspace")["_map"]["hq_new"]:GetChildren()) do
  3911. if v.ClassName == "MeshPart" then v:Destroy() end
  3912. if v.ClassName == "Model" then v:Destroy() end
  3913. if v.ClassName == "Part" then v:Destroy() end
  3914. end
  3915. end
  3916. end
  3917. --Snowy
  3918. function DelMapSnowy1()
  3919. if game.Workspace:FindFirstChild("_map") then
  3920. for i,v in pairs(game:GetService("Workspace")["_map"]["snow grass"]:GetChildren()) do
  3921. if v.ClassName == "MeshPart" then v:Destroy() end
  3922. if v.ClassName == "Model" then v:Destroy() end
  3923. if v.ClassName == "Part" then v:Destroy() end
  3924. end
  3925. end
  3926. end
  3927. function DelMapSnowy1()
  3928. if game.Workspace:FindFirstChild("_map") then
  3929. for i,v in pairs(game:GetService("Workspace")["_map"].obstacles.deco.trees:GetChildren()) do
  3930. if v.ClassName == "MeshPart" then v:Destroy() end
  3931. if v.ClassName == "Model" then v:Destroy() end
  3932. if v.ClassName == "Part" then v:Destroy() end
  3933. end
  3934. end
  3935. end
  3936. function DelMapSnowy2()
  3937. if game.Workspace:FindFirstChild("_map") then
  3938. for i,v in pairs(game:GetService("Workspace")["_map"].obstacles.deco.rocks:GetChildren()) do
  3939. if v.ClassName == "MeshPart" then v:Destroy() end
  3940. if v.ClassName == "UnionOperation" then v:Destroy() end
  3941. if v.ClassName == "Model" then v:Destroy() end
  3942. if v.ClassName == "Part" then v:Destroy() end
  3943. end
  3944. end
  3945. end
  3946. function DelMapSnowy3()
  3947. if game.Workspace:FindFirstChild("_map") then
  3948. for i,v in pairs(game:GetService("Workspace")["_map"].obstacles.deco.trunks:GetChildren()) do
  3949. if v.ClassName == "MeshPart" then v:Destroy() end
  3950. if v.ClassName == "Model" then v:Destroy() end
  3951. if v.ClassName == "Part" then v:Destroy() end
  3952. end
  3953. end
  3954. end
  3955. --Aline
  3956. function DelMapAlinewires()
  3957. if game.Workspace:FindFirstChild("_map") then
  3958. for i,v in pairs(game:GetService("Workspace")["_map"].wires:GetChildren()) do
  3959. if v.ClassName == "Model" then v:Destroy() end
  3960. if v.ClassName == "Part" then v:Destroy() end
  3961. end
  3962. end
  3963. end
  3964. function DelMapAlinepaper()
  3965. if game.Workspace:FindFirstChild("_map") then
  3966. for i,v in pairs(game:GetService("Workspace")["_map"].paper:GetChildren()) do
  3967. if v.ClassName == "Model" then v:Destroy() end
  3968. if v.ClassName == "Part" then v:Destroy() end
  3969. end
  3970. end
  3971. end
  3972. function DelMapAlinetrees()
  3973. if game.Workspace:FindFirstChild("_map") then
  3974. for i,v in pairs(game:GetService("Workspace")["_map"].trees:GetChildren()) do
  3975. if v.ClassName == "MeshPart" then v:Destroy() end
  3976. if v.ClassName == "Model" then v:Destroy() end
  3977. if v.ClassName == "Part" then v:Destroy() end
  3978. end
  3979. end
  3980. end
  3981. function DelMapAlinefences()
  3982. if game.Workspace:FindFirstChild("_map") then
  3983. for i,v in pairs(game:GetService("Workspace")["_map"].fences:GetChildren()) do
  3984. if v.ClassName == "Model" then v:Destroy() end
  3985. if v.ClassName == "Part" then v:Destroy() end
  3986. end
  3987. end
  3988. end
  3989. function DelMapAlinepole()
  3990. if game.Workspace:FindFirstChild("_map") then
  3991. for i,v in pairs(game:GetService("Workspace")["_map"].pole:GetChildren()) do
  3992. if v.ClassName == "Model" then v:Destroy() end
  3993. if v.ClassName == "Part" then v:Destroy() end
  3994. end
  3995. end
  3996. end
  3997. function DelMapAlinevents()
  3998. if game.Workspace:FindFirstChild("_map") then
  3999. for i,v in pairs(game:GetService("Workspace")["_map"].vents:GetChildren()) do
  4000. if v.ClassName == "Model" then v:Destroy() end
  4001. if v.ClassName == "Part" then v:Destroy() end
  4002. end
  4003. end
  4004. end
  4005. --Sand
  4006. function DelMapSand1()
  4007. if game.Workspace:FindFirstChild("_map") then
  4008. for i,v in pairs(game:GetService("Workspace")["_map"]["market deco"]:GetChildren()) do
  4009. if v.ClassName == "MeshPart" then v:Destroy() end
  4010. if v.ClassName == "Model" then v:Destroy() end
  4011. if v.ClassName == "Part" then v:Destroy() end
  4012. end
  4013. end
  4014. end
  4015. function DelMapSand2()
  4016. if game.Workspace:FindFirstChild("_map") then
  4017. for i,v in pairs(game:GetService("Workspace")["_map"].ropes:GetChildren()) do
  4018. if v.ClassName == "MeshPart" then v:Destroy() end
  4019. if v.ClassName == "Model" then v:Destroy() end
  4020. if v.ClassName == "Part" then v:Destroy() end
  4021. end
  4022. end
  4023. end
  4024. function DelMapSand3()
  4025. if game.Workspace:FindFirstChild("_map") then
  4026. for i,v in pairs(game:GetService("Workspace")["_map"]["desert_houses"]:GetChildren()) do
  4027. if v.ClassName == "MeshPart" then v:Destroy() end
  4028. if v.ClassName == "Model" then v:Destroy() end
  4029. if v.ClassName == "Part" then v:Destroy() end
  4030. end
  4031. end
  4032. end
  4033. function DelMapSand4()
  4034. if game.Workspace:FindFirstChild("_map") then
  4035. for i,v in pairs(game:GetService("Workspace")["_map"].innerterrain:GetChildren()) do
  4036. if v.ClassName == "MeshPart" then v:Destroy() end
  4037. if v.ClassName == "Model" then v:Destroy() end
  4038. if v.ClassName == "Part" then v:Destroy() end
  4039. end
  4040. end
  4041. end
  4042. --Marine
  4043. function DelMapMarine1()
  4044. if game.Workspace:FindFirstChild("_map") then
  4045. for i,v in pairs(game:GetService("Workspace")["_map"].deco:GetChildren()) do
  4046. if v.ClassName == "MeshPart" then v:Destroy() end
  4047. if v.ClassName == "Model" then v:Destroy() end
  4048. if v.ClassName == "Part" then v:Destroy() end
  4049. end
  4050. end
  4051. end
  4052. function DelMapMarine2()
  4053. if game.Workspace:FindFirstChild("_map") then
  4054. for i,v in pairs(game:GetService("Workspace")["_map"].grass:GetChildren()) do
  4055. if v.ClassName == "MeshPart" then v:Destroy() end
  4056. if v.ClassName == "Model" then v:Destroy() end
  4057. if v.ClassName == "Part" then v:Destroy() end
  4058. end
  4059. end
  4060. end
  4061. function DelMapMarine3()
  4062. if game.Workspace:FindFirstChild("_map") then
  4063. for i,v in pairs(game:GetService("Workspace")["_map"]["ice spikes"]:GetChildren()) do
  4064. if v.ClassName == "MeshPart" then v:Destroy() end
  4065. if v.ClassName == "Model" then v:Destroy() end
  4066. if v.ClassName == "Part" then v:Destroy() end
  4067. end
  4068. end
  4069. end
  4070. function DelMapMarine4()
  4071. if game.Workspace:FindFirstChild("_map") then
  4072. for i,v in pairs(game:GetService("Workspace")["_map"].icebergs:GetChildren()) do
  4073. if v.ClassName == "MeshPart" then v:Destroy() end
  4074. if v.ClassName == "Model" then v:Destroy() end
  4075. if v.ClassName == "Part" then v:Destroy() end
  4076. end
  4077. end
  4078. end
  4079. function DelMapMarine5()
  4080. if game.Workspace:FindFirstChild("_map") then
  4081. for i,v in pairs(game:GetService("Workspace")["_map"]["marine ships"]:GetChildren()) do
  4082. if v.ClassName == "MeshPart" then v:Destroy() end
  4083. if v.ClassName == "Model" then v:Destroy() end
  4084. if v.ClassName == "Part" then v:Destroy() end
  4085. end
  4086. end
  4087. end
  4088. function DelMapMarine6()
  4089. if game.Workspace:FindFirstChild("_map") then
  4090. for i,v in pairs(game:GetService("Workspace")["_map"]["marineford_houses"]:GetChildren()) do
  4091. if v.ClassName == "MeshPart" then v:Destroy() end
  4092. if v.ClassName == "Model" then v:Destroy() end
  4093. if v.ClassName == "Part" then v:Destroy() end
  4094. end
  4095. end
  4096. end
  4097. function DelMapMarine7()
  4098. if game.Workspace:FindFirstChild("_map") then
  4099. for i,v in pairs(game:GetService("Workspace")["_map"]["small ice spikes"]:GetChildren()) do
  4100. if v.ClassName == "MeshPart" then v:Destroy() end
  4101. if v.ClassName == "Model" then v:Destroy() end
  4102. if v.ClassName == "Part" then v:Destroy() end
  4103. end
  4104. end
  4105. end
  4106. --Ghoul
  4107. function DelMapGhoul1()
  4108. if game.Workspace:FindFirstChild("_map") then
  4109. for i,v in pairs(game:GetService("Workspace")["_map"].Folder.CantPlace:GetChildren()) do
  4110. if v.ClassName == "Folder" then v:Destroy() end
  4111. if v.ClassName == "Model" then v:Destroy() end
  4112. if v.ClassName == "Part" then v:Destroy() end
  4113. end
  4114. end
  4115. end
  4116. function DelMapGhoul2()
  4117. if game.Workspace:FindFirstChild("_map") then
  4118. for i,v in pairs(game:GetService("Workspace")["_map"]["new buildings"]:GetChildren()) do
  4119. if v.ClassName == "Folder" then v:Destroy() end
  4120. if v.ClassName == "Model" then v:Destroy() end
  4121. if v.ClassName == "Part" then v:Destroy() end
  4122. end
  4123. end
  4124. end
  4125. function DelMapGhoul3()
  4126. if game.Workspace:FindFirstChild("_map") then
  4127. for i,v in pairs(game:GetService("Workspace")["_map"]:GetChildren()) do
  4128. if v.Name == "obstacles" then v:Destroy() end
  4129. if v.ClassName == "Model" then v:Destroy() end
  4130. if v.ClassName == "Part" then v:Destroy() end
  4131. end
  4132. end
  4133. end
  4134. function DelMapGhoul4()
  4135. if game.Workspace:FindFirstChild("_map") then
  4136. for i,v in pairs(game:GetService("Workspace")["_map"]["rain_floors"]:GetChildren()) do
  4137. if v.Name == "obstacles" then v:Destroy() end
  4138. if v.ClassName == "Model" then v:Destroy() end
  4139. if v.ClassName == "Part" then v:Destroy() end
  4140. end
  4141. end
  4142. end
  4143. function DelMapGhoul5()
  4144. if game.Workspace:FindFirstChild("_map") then
  4145. for i,v in pairs(game:GetService("Workspace")["_map"].rain:GetChildren()) do
  4146. if v.Name == "obstacles" then v:Destroy() end
  4147. if v.ClassName == "Model" then v:Destroy() end
  4148. if v.ClassName == "Part" then v:Destroy() end
  4149. end
  4150. end
  4151. end
  4152. --Hollow
  4153. function DelMapHollow1()
  4154. if game.Workspace:FindFirstChild("_map") then
  4155. for i,v in pairs(game:GetService("Workspace")["_map"]["Bones/dust"]:GetChildren()) do
  4156. if v.Name == "obstacles" then v:Destroy() end
  4157. if v.ClassName == "MeshPart" then v:Destroy() end
  4158. if v.ClassName == "Model" then v:Destroy() end
  4159. if v.ClassName == "Part" then v:Destroy() end
  4160. end
  4161. end
  4162. end
  4163. --Ant
  4164. function DelMapAnt()
  4165. if game.Workspace._terrain:FindFirstChild("terrain") then
  4166. for i,v in pairs(game:GetService("Workspace")["_map"]:GetChildren()) do
  4167. if v.ClassName == "Model" then v:Destroy() end
  4168. if v.ClassName == "Folder" then v:Destroy() end
  4169. end
  4170. end
  4171. end
  4172. function DelMapAnt1()
  4173. if game.Workspace:FindFirstChild("_map") then
  4174. for i,v in pairs(game:GetService("Workspace")["_map"].obstacles.deco:GetChildren()) do
  4175. if v.ClassName == "MeshPart" then v:Destroy() end
  4176. if v.ClassName == "Model" then v:Destroy() end
  4177. if v.ClassName == "Part" then v:Destroy() end
  4178. end
  4179. end
  4180. end
  4181. function DelMapAnt2()
  4182. if game.Workspace:FindFirstChild("_map") then
  4183. for i,v in pairs(game:GetService("Workspace")["_map"].flowers:GetChildren()) do
  4184. if v.ClassName == "Folder" then v:Destroy() end
  4185. if v.ClassName == "MeshPart" then v:Destroy() end
  4186. if v.ClassName == "Model" then v:Destroy() end
  4187. if v.ClassName == "Part" then v:Destroy() end
  4188. end
  4189. end
  4190. end
  4191. function DelMapAnt3()
  4192. if game.Workspace:FindFirstChild("_map") then
  4193. for i,v in pairs(game:GetService("Workspace")["_map"].stumps:GetChildren()) do
  4194. if v.ClassName == "Folder" then v:Destroy() end
  4195. if v.ClassName == "MeshPart" then v:Destroy() end
  4196. if v.ClassName == "Model" then v:Destroy() end
  4197. if v.ClassName == "Part" then v:Destroy() end
  4198. end
  4199. end
  4200. end
  4201. function DelMapAnt4()
  4202. if game.Workspace:FindFirstChild("_map") then
  4203. for i,v in pairs(game:GetService("Workspace")["_map"].cloth:GetChildren()) do
  4204. if v.ClassName == "Folder" then v:Destroy() end
  4205. if v.ClassName == "MeshPart" then v:Destroy() end
  4206. if v.ClassName == "Model" then v:Destroy() end
  4207. if v.ClassName == "Part" then v:Destroy() end
  4208. end
  4209. end
  4210. end
  4211. function DelMapAnt5()
  4212. if game.Workspace:FindFirstChild("_map") then
  4213. for i,v in pairs(game:GetService("Workspace")["_map"].grass:GetChildren()) do
  4214. if v.ClassName == "Folder" then v:Destroy() end
  4215. if v.ClassName == "MeshPart" then v:Destroy() end
  4216. if v.ClassName == "Model" then v:Destroy() end
  4217. if v.ClassName == "Part" then v:Destroy() end
  4218. end
  4219. end
  4220. end
  4221. function DelMapAnt6()
  4222. if game.Workspace:FindFirstChild("_map") then
  4223. for i,v in pairs(game:GetService("Workspace")["_map"].graves:GetChildren()) do
  4224. if v.ClassName == "Folder" then v:Destroy() end
  4225. if v.ClassName == "MeshPart" then v:Destroy() end
  4226. if v.ClassName == "Model" then v:Destroy() end
  4227. if v.ClassName == "Part" then v:Destroy() end
  4228. end
  4229. end
  4230. end
  4231. function DelMapAnt7()
  4232. if game.Workspace:FindFirstChild("_map") then
  4233. for i,v in pairs(game:GetService("Workspace")["_map"].obstacles.deco.Farms:GetChildren()) do
  4234. if v.ClassName == "MeshPart" then v:Destroy() end
  4235. if v.ClassName == "Model" then v:Destroy() end
  4236. if v.ClassName == "Part" then v:Destroy() end
  4237. end
  4238. end
  4239. end
  4240. function DelMapAnt8()
  4241. if game.Workspace:FindFirstChild("_map") then
  4242. for i,v in pairs(game:GetService("Workspace")["_map"].obstacles.deco.Nature:GetChildren()) do
  4243. if v.ClassName == "Folder" then v:Destroy() end
  4244. if v.ClassName == "MeshPart" then v:Destroy() end
  4245. if v.ClassName == "Model" then v:Destroy() end
  4246. if v.ClassName == "Part" then v:Destroy() end
  4247. end
  4248. end
  4249. end
  4250. function DelMapAnt9()
  4251. if game.Workspace:FindFirstChild("_map") then
  4252. for i,v in pairs(game:GetService("Workspace")["_map"].obstacles.deco["Other Small Stuff"]:GetChildren()) do
  4253. if v.ClassName == "MeshPart" then v:Destroy() end
  4254. if v.ClassName == "Model" then v:Destroy() end
  4255. if v.ClassName == "Part" then v:Destroy() end
  4256. end
  4257. end
  4258. end
  4259. function DelMapAnt10()
  4260. if game.Workspace:FindFirstChild("_map") then
  4261. for i,v in pairs(game:GetService("Workspace")["_map"].obstacles.deco.Walls:GetChildren()) do
  4262. if v.ClassName == "MeshPart" then v:Destroy() end
  4263. if v.ClassName == "Model" then v:Destroy() end
  4264. if v.ClassName == "Part" then v:Destroy() end
  4265. end
  4266. end
  4267. end
  4268. function DelMapAnt11()
  4269. if game.Workspace:FindFirstChild("_map") then
  4270. for i,v in pairs(game:GetService("Workspace")["_map"].obstacles.deco.trees:GetChildren()) do
  4271. if v.ClassName == "MeshPart" then v:Destroy() end
  4272. if v.ClassName == "Model" then v:Destroy() end
  4273. if v.ClassName == "Part" then v:Destroy() end
  4274. end
  4275. end
  4276. end
  4277. function DelMapAnt12()
  4278. if game.Workspace:FindFirstChild("_map") then
  4279. for i,v in pairs(game:GetService("Workspace")["_map"].obstacles.deco["trees-thin"]:GetChildren()) do
  4280. if v.ClassName == "MeshPart" then v:Destroy() end
  4281. if v.ClassName == "Model" then v:Destroy() end
  4282. if v.ClassName == "Part" then v:Destroy() end
  4283. end
  4284. end
  4285. end
  4286. --Magic
  4287. function DelMapMagic1()
  4288. if game.Workspace:FindFirstChild("_map") then
  4289. for i,v in pairs(game:GetService("Workspace")["_map"]["barrels, benches"]:GetChildren()) do
  4290. if v.ClassName == "Folder" then v:Destroy() end
  4291. if v.ClassName == "MeshPart" then v:Destroy() end
  4292. if v.ClassName == "Model" then v:Destroy() end
  4293. if v.ClassName == "Part" then v:Destroy() end
  4294. end
  4295. end
  4296. end
  4297. function DelMapMagic2()
  4298. if game.Workspace:FindFirstChild("_map") then
  4299. for i,v in pairs(game:GetService("Workspace")["_map"].boats:GetChildren()) do
  4300. if v.ClassName == "Folder" then v:Destroy() end
  4301. if v.ClassName == "MeshPart" then v:Destroy() end
  4302. if v.ClassName == "Model" then v:Destroy() end
  4303. if v.ClassName == "Part" then v:Destroy() end
  4304. end
  4305. end
  4306. end
  4307. function DelMapMagic3()
  4308. if game.Workspace:FindFirstChild("_map") then
  4309. for i,v in pairs(game:GetService("Workspace")["_map"].extras:GetChildren()) do
  4310. if v.ClassName == "Folder" then v:Destroy() end
  4311. if v.ClassName == "MeshPart" then v:Destroy() end
  4312. if v.ClassName == "Model" then v:Destroy() end
  4313. if v.ClassName == "Part" then v:Destroy() end
  4314. end
  4315. end
  4316. end
  4317. function DelMapMagic4()
  4318. if game.Workspace:FindFirstChild("_map") then
  4319. for i,v in pairs(game:GetService("Workspace")["_map"].grass:GetChildren()) do
  4320. if v.ClassName == "Folder" then v:Destroy() end
  4321. if v.ClassName == "MeshPart" then v:Destroy() end
  4322. if v.ClassName == "Model" then v:Destroy() end
  4323. if v.ClassName == "Part" then v:Destroy() end
  4324. end
  4325. end
  4326. end
  4327. function DelMapMagic5()
  4328. if game.Workspace:FindFirstChild("_map") then
  4329. for i,v in pairs(game:GetService("Workspace")["_map"]["grass place"]:GetChildren()) do
  4330. if v.ClassName == "Folder" then v:Destroy() end
  4331. if v.ClassName == "MeshPart" then v:Destroy() end
  4332. if v.ClassName == "Model" then v:Destroy() end
  4333. if v.ClassName == "Part" then v:Destroy() end
  4334. end
  4335. end
  4336. end
  4337. function DelMapMagic6()
  4338. if game.Workspace:FindFirstChild("_map") then
  4339. for i,v in pairs(game:GetService("Workspace")["_map"]["light poles"]:GetChildren()) do
  4340. if v.ClassName == "Folder" then v:Destroy() end
  4341. if v.ClassName == "MeshPart" then v:Destroy() end
  4342. if v.ClassName == "Model" then v:Destroy() end
  4343. if v.ClassName == "Part" then v:Destroy() end
  4344. end
  4345. end
  4346. end
  4347. function DelMapMagic7()
  4348. if game.Workspace:FindFirstChild("_map") then
  4349. for i,v in pairs(game:GetService("Workspace")["_map"].pillars:GetChildren()) do
  4350. if v.ClassName == "Folder" then v:Destroy() end
  4351. if v.ClassName == "MeshPart" then v:Destroy() end
  4352. if v.ClassName == "Model" then v:Destroy() end
  4353. if v.ClassName == "Part" then v:Destroy() end
  4354. end
  4355. end
  4356. end
  4357. function DelMapMagic8()
  4358. if game.Workspace:FindFirstChild("_map") then
  4359. for i,v in pairs(game:GetService("Workspace")["_map"].streamers:GetChildren()) do
  4360. if v.ClassName == "Folder" then v:Destroy() end
  4361. if v.ClassName == "MeshPart" then v:Destroy() end
  4362. if v.ClassName == "Model" then v:Destroy() end
  4363. if v.ClassName == "Part" then v:Destroy() end
  4364. end
  4365. end
  4366. end
  4367. function DelMapMagic9()
  4368. if game.Workspace:FindFirstChild("_map") then
  4369. for i,v in pairs(game:GetService("Workspace")["_map"].tents:GetChildren()) do
  4370. if v.ClassName == "Folder" then v:Destroy() end
  4371. if v.ClassName == "MeshPart" then v:Destroy() end
  4372. if v.ClassName == "Model" then v:Destroy() end
  4373. if v.ClassName == "Part" then v:Destroy() end
  4374. end
  4375. end
  4376. end
  4377. function DelMapMagic10()
  4378. if game.Workspace:FindFirstChild("_map") then
  4379. for i,v in pairs(game:GetService("Workspace")["_map"].trees:GetChildren()) do
  4380. if v.ClassName == "Folder" then v:Destroy() end
  4381. if v.ClassName == "MeshPart" then v:Destroy() end
  4382. if v.ClassName == "Model" then v:Destroy() end
  4383. if v.ClassName == "Part" then v:Destroy() end
  4384. end
  4385. end
  4386. end
  4387. function DelMapMagic11()
  4388. if game.Workspace:FindFirstChild("_map") then
  4389. for i,v in pairs(game:GetService("Workspace")["_map"].wheelbarrows:GetChildren()) do
  4390. if v.ClassName == "Folder" then v:Destroy() end
  4391. if v.ClassName == "MeshPart" then v:Destroy() end
  4392. if v.ClassName == "Model" then v:Destroy() end
  4393. if v.ClassName == "Part" then v:Destroy() end
  4394. end
  4395. end
  4396. end
  4397. function DelMapMagic12()
  4398. if game.Workspace:FindFirstChild("_map") then
  4399. for i,v in pairs(game:GetService("Workspace")["_map"].docks:GetChildren()) do
  4400. if v.ClassName == "Folder" then v:Destroy() end
  4401. if v.ClassName == "MeshPart" then v:Destroy() end
  4402. if v.ClassName == "Model" then v:Destroy() end
  4403. if v.ClassName == "Part" then v:Destroy() end
  4404. end
  4405. end
  4406. end
  4407. function DelMapMagic13()
  4408. if game.Workspace:FindFirstChild("_map") then
  4409. for i,v in pairs(game:GetService("Workspace")["_map"]["wooden stacks"]:GetChildren()) do
  4410. if v.ClassName == "Folder" then v:Destroy() end
  4411. if v.ClassName == "MeshPart" then v:Destroy() end
  4412. if v.ClassName == "Model" then v:Destroy() end
  4413. if v.ClassName == "Part" then v:Destroy() end
  4414. end
  4415. end
  4416. end
  4417. function DelMapMagic13()
  4418. if game.Workspace:FindFirstChild("_map") then
  4419. for i,v in pairs(game:GetService("Workspace")["_map"].dirt:GetChildren()) do
  4420. if v.ClassName == "Folder" then v:Destroy() end
  4421. if v.ClassName == "MeshPart" then v:Destroy() end
  4422. if v.ClassName == "Model" then v:Destroy() end
  4423. if v.ClassName == "Part" then v:Destroy() end
  4424. end
  4425. end
  4426. end
  4427. --Cursed
  4428. function DelMapCursed1()
  4429. if game.Workspace:FindFirstChild("_map") then
  4430. for i,v in pairs(game:GetService("Workspace")["_map"].LanternsGround:GetChildren()) do
  4431. if v.ClassName == "Folder" then v:Destroy() end
  4432. if v.ClassName == "MeshPart" then v:Destroy() end
  4433. if v.ClassName == "Model" then v:Destroy() end
  4434. if v.ClassName == "Part" then v:Destroy() end
  4435. end
  4436. end
  4437. end
  4438. function DelMapCursed2()
  4439. if game.Workspace:FindFirstChild("_map") then
  4440. for i,v in pairs(game:GetService("Workspace")["_map"].Nature:GetChildren()) do
  4441. if v.ClassName == "Folder" then v:Destroy() end
  4442. if v.ClassName == "MeshPart" then v:Destroy() end
  4443. if v.ClassName == "Model" then v:Destroy() end
  4444. if v.ClassName == "Part" then v:Destroy() end
  4445. end
  4446. end
  4447. end
  4448. function DelMapCursed3()
  4449. if game.Workspace:FindFirstChild("_map") then
  4450. for i,v in pairs(game:GetService("Workspace")["_map"].Trees:GetChildren()) do
  4451. if v.ClassName == "Folder" then v:Destroy() end
  4452. if v.ClassName == "MeshPart" then v:Destroy() end
  4453. if v.ClassName == "Model" then v:Destroy() end
  4454. if v.ClassName == "Part" then v:Destroy() end
  4455. end
  4456. end
  4457. end
  4458. function DelMapCursed4()
  4459. if game.Workspace:FindFirstChild("_map") then
  4460. for i,v in pairs(game:GetService("Workspace")["_map"].bushes:GetChildren()) do
  4461. if v.ClassName == "Folder" then v:Destroy() end
  4462. if v.ClassName == "MeshPart" then v:Destroy() end
  4463. if v.ClassName == "Model" then v:Destroy() end
  4464. if v.ClassName == "Part" then v:Destroy() end
  4465. end
  4466. end
  4467. end
  4468. function DelMapCursed5()
  4469. if game.Workspace:FindFirstChild("_map") then
  4470. for i,v in pairs(game:GetService("Workspace")["_map"].LanternsSky:GetChildren()) do
  4471. if v.ClassName == "Folder" then v:Destroy() end
  4472. if v.ClassName == "MeshPart" then v:Destroy() end
  4473. if v.ClassName == "Model" then v:Destroy() end
  4474. if v.ClassName == "Part" then v:Destroy() end
  4475. end
  4476. end
  4477. end
  4478. function DelMapCursed6()
  4479. if game.Workspace:FindFirstChild("_map") then
  4480. for i,v in pairs(game:GetService("Workspace")["_map"].deco:GetChildren()) do
  4481. if v.ClassName == "Folder" then v:Destroy() end
  4482. if v.ClassName == "MeshPart" then v:Destroy() end
  4483. if v.ClassName == "Model" then v:Destroy() end
  4484. if v.ClassName == "Part" then v:Destroy() end
  4485. end
  4486. end
  4487. end
  4488. function DelMapCursed7()
  4489. if game.Workspace:FindFirstChild("_map") then
  4490. for i,v in pairs(game:GetService("Workspace")["_map"].dirt:GetChildren()) do
  4491. if v.ClassName == "Folder" then v:Destroy() end
  4492. if v.ClassName == "MeshPart" then v:Destroy() end
  4493. if v.ClassName == "Model" then v:Destroy() end
  4494. if v.ClassName == "Part" then v:Destroy() end
  4495. end
  4496. end
  4497. end
  4498. function DelMapCursed8()
  4499. if game.Workspace:FindFirstChild("_map") then
  4500. for i,v in pairs(game:GetService("Workspace")["_map"].fences:GetChildren()) do
  4501. if v.ClassName == "Folder" then v:Destroy() end
  4502. if v.ClassName == "MeshPart" then v:Destroy() end
  4503. if v.ClassName == "Model" then v:Destroy() end
  4504. if v.ClassName == "Part" then v:Destroy() end
  4505. end
  4506. end
  4507. end
  4508. function DelMapCursed9()
  4509. if game.Workspace:FindFirstChild("_map") then
  4510. for i,v in pairs(game:GetService("Workspace")["_map"].gate:GetChildren()) do
  4511. if v.ClassName == "Folder" then v:Destroy() end
  4512. if v.ClassName == "MeshPart" then v:Destroy() end
  4513. if v.ClassName == "Model" then v:Destroy() end
  4514. if v.ClassName == "Part" then v:Destroy() end
  4515. end
  4516. end
  4517. end
  4518. function DelMapCursed10()
  4519. if game.Workspace:FindFirstChild("_map") then
  4520. for i,v in pairs(game:GetService("Workspace")["_map"].lightning:GetChildren()) do
  4521. if v.ClassName == "Folder" then v:Destroy() end
  4522. if v.ClassName == "MeshPart" then v:Destroy() end
  4523. if v.ClassName == "Model" then v:Destroy() end
  4524. if v.ClassName == "Part" then v:Destroy() end
  4525. end
  4526. end
  4527. end
  4528. function DelMapCursed11()
  4529. if game.Workspace:FindFirstChild("_map") then
  4530. for i,v in pairs(game:GetService("Workspace")["_map"].logs:GetChildren()) do
  4531. if v.ClassName == "Folder" then v:Destroy() end
  4532. if v.ClassName == "MeshPart" then v:Destroy() end
  4533. if v.ClassName == "Model" then v:Destroy() end
  4534. if v.ClassName == "Part" then v:Destroy() end
  4535. end
  4536. end
  4537. end
  4538. function DelMapCursed12()
  4539. if game.Workspace:FindFirstChild("_map") then
  4540. for i,v in pairs(game:GetService("Workspace")["_map"]["notice boards and paper"]:GetChildren()) do
  4541. if v.ClassName == "Folder" then v:Destroy() end
  4542. if v.ClassName == "MeshPart" then v:Destroy() end
  4543. if v.ClassName == "Model" then v:Destroy() end
  4544. if v.ClassName == "Part" then v:Destroy() end
  4545. end
  4546. end
  4547. end
  4548. function DelMapCursed13()
  4549. if game.Workspace:FindFirstChild("_map") then
  4550. for i,v in pairs(game:GetService("Workspace")["_map"].sheds:GetChildren()) do
  4551. if v.ClassName == "Folder" then v:Destroy() end
  4552. if v.ClassName == "MeshPart" then v:Destroy() end
  4553. if v.ClassName == "Model" then v:Destroy() end
  4554. if v.ClassName == "Part" then v:Destroy() end
  4555. end
  4556. end
  4557. end
  4558. function DelMapCursed14()
  4559. if game.Workspace:FindFirstChild("_map") then
  4560. for i,v in pairs(game:GetService("Workspace")["_map"].stairs:GetChildren()) do
  4561. if v.ClassName == "Folder" then v:Destroy() end
  4562. if v.ClassName == "MeshPart" then v:Destroy() end
  4563. if v.ClassName == "Model" then v:Destroy() end
  4564. if v.ClassName == "Part" then v:Destroy() end
  4565. end
  4566. end
  4567. end
  4568. function DelMapCursed15()
  4569. if game.Workspace:FindFirstChild("_map") then
  4570. for i,v in pairs(game:GetService("Workspace")["_map"].wheelbarrows:GetChildren()) do
  4571. if v.ClassName == "Folder" then v:Destroy() end
  4572. if v.ClassName == "MeshPart" then v:Destroy() end
  4573. if v.ClassName == "Model" then v:Destroy() end
  4574. if v.ClassName == "Part" then v:Destroy() end
  4575. end
  4576. end
  4577. end
  4578. function DelMapCursed16()
  4579. if game.Workspace:FindFirstChild("_map") then
  4580. for i,v in pairs(game:GetService("Workspace")["_map"].cables:GetChildren()) do
  4581. if v.ClassName == "Folder" then v:Destroy() end
  4582. if v.ClassName == "MeshPart" then v:Destroy() end
  4583. if v.ClassName == "Model" then v:Destroy() end
  4584. if v.ClassName == "Part" then v:Destroy() end
  4585. end
  4586. end
  4587. end
  4588. --Clover
  4589. function DelMapClover1()
  4590. if game.Workspace:FindFirstChild("_map") then
  4591. for i,v in pairs(game:GetService("Workspace")["_map"]["misc deco"]:GetChildren()) do
  4592. if v.ClassName == "MeshPart" then v:Destroy() end
  4593. if v.ClassName == "Model" then v:Destroy() end
  4594. if v.ClassName == "Part" then v:Destroy() end
  4595. end
  4596. end
  4597. end
  4598. function DelMapClover2()
  4599. if game.Workspace:FindFirstChild("_map") then
  4600. for i,v in pairs(game:GetService("Workspace")["_map"].dust:GetChildren()) do
  4601. if v.ClassName == "Folder" then v:Destroy() end
  4602. if v.ClassName == "MeshPart" then v:Destroy() end
  4603. if v.ClassName == "Model" then v:Destroy() end
  4604. if v.ClassName == "Part" then v:Destroy() end
  4605. end
  4606. end
  4607. end
  4608. function DelMapClover3()
  4609. if game.Workspace:FindFirstChild("_map") then
  4610. for i,v in pairs(game:GetService("Workspace")["_map"]["notice boards"]:GetChildren()) do
  4611. if v.ClassName == "Folder" then v:Destroy() end
  4612. if v.ClassName == "MeshPart" then v:Destroy() end
  4613. if v.ClassName == "Model" then v:Destroy() end
  4614. if v.ClassName == "Part" then v:Destroy() end
  4615. end
  4616. end
  4617. end
  4618. function DelMapClover4()
  4619. if game.Workspace:FindFirstChild("_map") then
  4620. for i,v in pairs(game:GetService("Workspace")["_map"].streetlights:GetChildren()) do
  4621. if v.ClassName == "Folder" then v:Destroy() end
  4622. if v.ClassName == "MeshPart" then v:Destroy() end
  4623. if v.ClassName == "Model" then v:Destroy() end
  4624. if v.ClassName == "Part" then v:Destroy() end
  4625. end
  4626. end
  4627. end
  4628. function DelMapClover5()
  4629. if game.Workspace:FindFirstChild("_map") then
  4630. for i,v in pairs(game:GetService("Workspace")["_map"].grass:GetChildren()) do
  4631. if v.ClassName == "Folder" then v:Destroy() end
  4632. if v.ClassName == "MeshPart" then v:Destroy() end
  4633. if v.ClassName == "Model" then v:Destroy() end
  4634. if v.ClassName == "Part" then v:Destroy() end
  4635. end
  4636. end
  4637. end
  4638. function DelMapClover6()
  4639. if game.Workspace:FindFirstChild("_map") then
  4640. for i,v in pairs(game:GetService("Workspace")["_map"].stumps:GetChildren()) do
  4641. if v.ClassName == "Folder" then v:Destroy() end
  4642. if v.ClassName == "MeshPart" then v:Destroy() end
  4643. if v.ClassName == "Model" then v:Destroy() end
  4644. if v.ClassName == "Part" then v:Destroy() end
  4645. end
  4646. end
  4647. end
  4648. function DelMapClover7()
  4649. if game.Workspace:FindFirstChild("_map") then
  4650. for i,v in pairs(game:GetService("Workspace")["_map"].rocks:GetChildren()) do
  4651. if v.ClassName == "Folder" then v:Destroy() end
  4652. if v.ClassName == "MeshPart" then v:Destroy() end
  4653. if v.ClassName == "Model" then v:Destroy() end
  4654. if v.ClassName == "Part" then v:Destroy() end
  4655. end
  4656. end
  4657. end
  4658. function DelMapClover8()
  4659. if game.Workspace:FindFirstChild("_map") then
  4660. for i,v in pairs(game:GetService("Workspace")["_map"].fences:GetChildren()) do
  4661. if v.ClassName == "Folder" then v:Destroy() end
  4662. if v.ClassName == "MeshPart" then v:Destroy() end
  4663. if v.ClassName == "Model" then v:Destroy() end
  4664. if v.ClassName == "Part" then v:Destroy() end
  4665. end
  4666. end
  4667. end
  4668. function DelMapClover9()
  4669. if game.Workspace:FindFirstChild("_map") then
  4670. for i,v in pairs(game:GetService("Workspace")["_map"].trees:GetChildren()) do
  4671. if v.ClassName == "Folder" then v:Destroy() end
  4672. if v.ClassName == "MeshPart" then v:Destroy() end
  4673. if v.ClassName == "Model" then v:Destroy() end
  4674. if v.ClassName == "Part" then v:Destroy() end
  4675. end
  4676. end
  4677. end
  4678. --Cape JoJo
  4679. function DelMapJoJo1()
  4680. if game.Workspace:FindFirstChild("_map") then
  4681. for i,v in pairs(game:GetService("Workspace")["_map"].SpaceCenter:GetChildren()) do
  4682. if v.ClassName == "Folder" then v:Destroy() end
  4683. if v.ClassName == "MeshPart" then v:Destroy() end
  4684. if v.ClassName == "Model" then v:Destroy() end
  4685. if v.ClassName == "Part" then v:Destroy() end
  4686. end
  4687. end
  4688. end
  4689. function DelMapJoJo2()
  4690. if game.Workspace:FindFirstChild("_map") then
  4691. for i,v in pairs(game:GetService("Workspace")["_map"]:GetChildren()) do
  4692. if v.ClassName == "MeshPart" then v:Destroy() end
  4693. if v.ClassName == "Model" then v:Destroy() end
  4694. if v.ClassName == "Part" then v:Destroy() end
  4695. if v.Name == "trees" then v:Destroy() end
  4696. if v.Name == "grass" then v:Destroy() end
  4697. if v.Name == "benches" then v:Destroy() end
  4698. if v.Name == "bushes" then v:Destroy() end
  4699. if v.Name == "fences" then v:Destroy() end
  4700. if v.Name == "misc" then v:Destroy() end
  4701. if v.Name == "rockets" then v:Destroy() end
  4702. if v.Name == "background buildings" then v:Destroy() end
  4703. if v.Name == "paper" then v:Destroy() end
  4704. if v.Name == "parking spots" then v:Destroy() end
  4705. if v.Name == "barrels" then v:Destroy() end
  4706. if v.Name == "sand bags" then v:Destroy() end
  4707. if v.Name == "vending_machines" then v:Destroy() end
  4708. if v.Name == "_helicopters" then v:Destroy() end
  4709. if v.Name == "faketerrain" then v:Destroy() end
  4710. end
  4711. end
  4712. end
  4713. --Fabled 7ds
  4714. function DelMap7ds1()
  4715. if game.Workspace:FindFirstChild("_map") then
  4716. for i,v in pairs(game:GetService("Workspace")["_map"]["misc nonocollide obstacles"]:GetChildren()) do
  4717. if v.ClassName == "Folder" then v:Destroy() end
  4718. if v.ClassName == "MeshPart" then v:Destroy() end
  4719. if v.ClassName == "Model" then v:Destroy() end
  4720. if v.ClassName == "Part" then v:Destroy() end
  4721. end
  4722. end
  4723. end
  4724. function DelMap7ds2()
  4725. if game.Workspace:FindFirstChild("_map") then
  4726. for i,v in pairs(game:GetService("Workspace")["_map"]:GetChildren()) do
  4727. if v.ClassName == "MeshPart" then v:Destroy() end
  4728. if v.ClassName == "Model" then v:Destroy() end
  4729. if v.ClassName == "Part" then v:Destroy() end
  4730. if v.Name == "trees" then v:Destroy() end
  4731. if v.Name == "grass" then v:Destroy() end
  4732. if v.Name == "Flowers" then v:Destroy() end
  4733. if v.Name == "wood" then v:Destroy() end
  4734. if v.Name == "flag streamers" then v:Destroy() end
  4735. if v.Name == "bushes" then v:Destroy() end
  4736. if v.Name == "misc noncollide no obstacle" then v:Destroy() end
  4737. if v.Name == "fence" then v:Destroy() end
  4738. if v.Name == "_secretthing" then v:Destroy() end
  4739. end
  4740. end
  4741. end
  4742. --Hero mha
  4743. function DelMapmha1()
  4744. if game.Workspace:FindFirstChild("_map") then
  4745. for i,v in pairs(game:GetService("Workspace")["_map"]["bridge nocollide"]:GetChildren()) do
  4746. if v.ClassName == "Folder" then v:Destroy() end
  4747. if v.ClassName == "MeshPart" then v:Destroy() end
  4748. if v.ClassName == "Model" then v:Destroy() end
  4749. if v.ClassName == "Part" then v:Destroy() end
  4750. end
  4751. end
  4752. end
  4753. function DelMapmha2()
  4754. if game.Workspace:FindFirstChild("_map") then
  4755. for i,v in pairs(game:GetService("Workspace")["_map"]:GetChildren()) do
  4756. if v.ClassName == "MeshPart" then v:Destroy() end
  4757. if v.ClassName == "Model" then v:Destroy() end
  4758. if v.ClassName == "Part" then v:Destroy() end
  4759. if v.Name == "trees" then v:Destroy() end
  4760. if v.Name == "grass" then v:Destroy() end
  4761. if v.Name == "Folder" then v:Destroy() end
  4762. if v.Name == "Graffiti" then v:Destroy() end
  4763. if v.Name == "street_lights" then v:Destroy() end
  4764. if v.Name == "Assets" then v:Destroy() end
  4765. if v.Name == "bushes" then v:Destroy() end
  4766. if v.Name == "bricks" then v:Destroy() end
  4767. if v.Name == "sky bridges" then v:Destroy() end
  4768. if v.Name == "clothing" then v:Destroy() end
  4769. if v.Name == "more" then v:Destroy() end
  4770. if v.Name == "parking_spots" then v:Destroy() end
  4771. if v.Name == "trash" then v:Destroy() end
  4772. if v.Name == "vending" then v:Destroy() end
  4773. if v.Name == "store" then v:Destroy() end
  4774. end
  4775. end
  4776. end
  4777. --bleach_legend
  4778. function DelMapbleachleg1()
  4779. if game.Workspace:FindFirstChild("_map") then
  4780. for i,v in pairs(game:GetService("Workspace")["_map"]["sand_bags"]:GetChildren()) do
  4781. if v.ClassName == "Folder" then v:Destroy() end
  4782. if v.ClassName == "MeshPart" then v:Destroy() end
  4783. if v.ClassName == "Model" then v:Destroy() end
  4784. if v.ClassName == "Part" then v:Destroy() end
  4785. end
  4786. end
  4787. end
  4788. function DelMapbleachleg2()
  4789. if game.Workspace:FindFirstChild("_map") then
  4790. for i,v in pairs(game:GetService("Workspace")["_map"]:GetChildren()) do
  4791. if v.ClassName == "MeshPart" then v:Destroy() end
  4792. if v.ClassName == "Model" then v:Destroy() end
  4793. if v.ClassName == "Part" then v:Destroy() end
  4794. if v.Name == "trees" then v:Destroy() end
  4795. if v.Name == "grass" then v:Destroy() end
  4796. if v.Name == "Folder" then v:Destroy() end
  4797. if v.Name == "barrels" then v:Destroy() end
  4798. if v.Name == "misc" then v:Destroy() end
  4799. if v.Name == "benches" then v:Destroy() end
  4800. if v.Name == "fences" then v:Destroy() end
  4801. if v.Name == "graves" then v:Destroy() end
  4802. if v.Name == "parking spots" then v:Destroy() end
  4803. if v.Name == "street_lights" then v:Destroy() end
  4804. if v.Name == "trees separatetd" then v:Destroy() end
  4805. if v.Name == "trucks" then v:Destroy() end
  4806. end
  4807. end
  4808. end
  4809. --westcity
  4810. function DelMapwestcity1()
  4811. if game.Workspace:FindFirstChild("_map") then
  4812. for i,v in pairs(game:GetService("Workspace")["_map"].s:GetChildren()) do
  4813. if v.ClassName == "Folder" then v:Destroy() end
  4814. if v.ClassName == "MeshPart" then v:Destroy() end
  4815. if v.ClassName == "Model" then v:Destroy() end
  4816. if v.ClassName == "Part" then v:Destroy() end
  4817. end
  4818. end
  4819. end
  4820. function DelMapwestcity2()
  4821. if game.Workspace:FindFirstChild("_map") then
  4822. for i,v in pairs(game:GetService("Workspace")["_map"]:GetChildren()) do
  4823. if v.ClassName == "MeshPart" then v:Destroy() end
  4824. if v.ClassName == "Model" then v:Destroy() end
  4825. if v.ClassName == "Part" then v:Destroy() end
  4826. if v.Name == "deco" then v:Destroy() end
  4827. end
  4828. end
  4829. end
  4830. --uchiha
  4831. function DelMapuchiha1()
  4832. if game.Workspace:FindFirstChild("_map") then
  4833. for i,v in pairs(game:GetService("Workspace")["_map"]["bushes and flowers"]:GetChildren()) do
  4834. if v.ClassName == "Folder" then v:Destroy() end
  4835. if v.ClassName == "MeshPart" then v:Destroy() end
  4836. if v.ClassName == "Model" then v:Destroy() end
  4837. if v.ClassName == "Part" then v:Destroy() end
  4838. end
  4839. end
  4840. end
  4841. function DelMapuchiha2()
  4842. if game.Workspace:FindFirstChild("_map") then
  4843. for i,v in pairs(game:GetService("Workspace")["_map"]:GetChildren()) do
  4844. if v.ClassName == "MeshPart" then v:Destroy() end
  4845. if v.ClassName == "Model" then v:Destroy() end
  4846. if v.ClassName == "Part" then v:Destroy() end
  4847. if v.Name == "grass" then v:Destroy() end
  4848. if v.Name == "trees" then v:Destroy() end
  4849. if v.Name == "lanterns" then v:Destroy() end
  4850. if v.Name == "logs" then v:Destroy() end
  4851. end
  4852. end
  4853. end
  4854. --demonslayer_raid_1
  4855. function DelMapdemonraid1()
  4856. if game.Workspace:FindFirstChild("_map") then
  4857. for i,v in pairs(game:GetService("Workspace")["_map"]["snow grass"]:GetChildren()) do
  4858. if v.ClassName == "Folder" then v:Destroy() end
  4859. if v.ClassName == "MeshPart" then v:Destroy() end
  4860. if v.ClassName == "Model" then v:Destroy() end
  4861. if v.ClassName == "Part" then v:Destroy() end
  4862. end
  4863. end
  4864. end
  4865. function DelMapdemonraid2()
  4866. if game.Workspace:FindFirstChild("_map") then
  4867. for i,v in pairs(game:GetService("Workspace")["_map"]:GetChildren()) do
  4868. if v.ClassName == "MeshPart" then v:Destroy() end
  4869. if v.ClassName == "Model" then v:Destroy() end
  4870. if v.ClassName == "Part" then v:Destroy() end
  4871. if v.Name == "grass" then v:Destroy() end
  4872. if v.Name == "trees" then v:Destroy() end
  4873. if v.Name == "obstacles" then v:Destroy() end
  4874. if v.Name == "flowers" then v:Destroy() end
  4875. end
  4876. end
  4877. end
  4878. --entertain
  4879. function DelMapentertain1()
  4880. if game.Workspace:FindFirstChild("_map") then
  4881. for i,v in pairs(game:GetService("Workspace")["_map"]["benches and barrels"]:GetChildren()) do
  4882. if v.ClassName == "Folder" then v:Destroy() end
  4883. if v.ClassName == "MeshPart" then v:Destroy() end
  4884. if v.ClassName == "Model" then v:Destroy() end
  4885. if v.ClassName == "Part" then v:Destroy() end
  4886. end
  4887. end
  4888. end
  4889. function DelMapentertain2()
  4890. if game.Workspace:FindFirstChild("_map") then
  4891. for i,v in pairs(game:GetService("Workspace")["_map"]:GetChildren()) do
  4892. if v.ClassName == "MeshPart" then v:Destroy() end
  4893. if v.ClassName == "Model" then v:Destroy() end
  4894. if v.ClassName == "Part" then v:Destroy() end
  4895. if v.Name == "grass" then v:Destroy() end
  4896. if v.Name == "trees" then v:Destroy() end
  4897. if v.Name == "Folder" then v:Destroy() end
  4898. if v.Name == "wires" then v:Destroy() end
  4899. if v.Name == "bushes" then v:Destroy() end
  4900. if v.Name == "poles" then v:Destroy() end
  4901. if v.Name == "flowers" then v:Destroy() end
  4902. if v.Name == "gates" then v:Destroy() end
  4903. if v.Name == "lamps" then v:Destroy() end
  4904. if v.Name == "paper textures" then v:Destroy() end
  4905. if v.Name == "notice boards" then v:Destroy() end
  4906. if v.Name == "grass things" then v:Destroy() end
  4907. if v.Name == "lanterns" then v:Destroy() end
  4908. if v.Name == "houses outer (collision)" then v:Destroy() end
  4909. if v.Name == "doors" then v:Destroy() end
  4910. if v.Name == "_secret" then v:Destroy() end
  4911. end
  4912. end
  4913. end
  4914.  
  4915. function DelMapOPnew()
  4916. if game.Workspace:FindFirstChild("_map") then
  4917. for i,v in pairs(game:GetService("Workspace")["_map"]:GetChildren()) do
  4918. if v.ClassName == "MeshPart" then v:Destroy() end
  4919. if v.ClassName == "Model" then v:Destroy() end
  4920. if v.ClassName == "Part" then v:Destroy() end
  4921. if v.Name == "grass" then v:Destroy() end
  4922. if v.Name == "trees" then v:Destroy() end
  4923. if v.Name == "Folder" then v:Destroy() end
  4924. if v.Name == "wires" then v:Destroy() end
  4925. if v.Name == "bushes" then v:Destroy() end
  4926. if v.Name == "poles" then v:Destroy() end
  4927. if v.Name == "flowers" then v:Destroy() end
  4928. if v.Name == "gates" then v:Destroy() end
  4929. if v.Name == "lamps" then v:Destroy() end
  4930. if v.Name == "paper textures" then v:Destroy() end
  4931. if v.Name == "notice boards" then v:Destroy() end
  4932. if v.Name == "grass things" then v:Destroy() end
  4933. if v.Name == "lanterns" then v:Destroy() end
  4934. if v.Name == "houses outer (collision)" then v:Destroy() end
  4935. if v.Name == "doors" then v:Destroy() end
  4936. if v.Name == "_secret" then v:Destroy() end
  4937. end
  4938. end
  4939. end
  4940.  
  4941. function DelMapOPnew1()
  4942. if game.Workspace:FindFirstChild("_map") then
  4943. for i,v in pairs(game:GetService("Workspace")["_map"].cloth:GetChildren()) do
  4944. if v.ClassName == "Folder" then v:Destroy() end
  4945. if v.ClassName == "MeshPart" then v:Destroy() end
  4946. if v.ClassName == "Model" then v:Destroy() end
  4947. if v.ClassName == "Part" then v:Destroy() end
  4948. end
  4949. end
  4950. end
  4951.  
  4952. function DelMapOPnew2()
  4953. if game.Workspace:FindFirstChild("_map") then
  4954. for i,v in pairs(game:GetService("Workspace")["_map"].hay:GetChildren()) do
  4955. if v.ClassName == "Folder" then v:Destroy() end
  4956. if v.ClassName == "MeshPart" then v:Destroy() end
  4957. if v.ClassName == "Model" then v:Destroy() end
  4958. if v.ClassName == "Part" then v:Destroy() end
  4959. end
  4960. end
  4961. end
  4962.  
  4963. function DelMapOPnew3()
  4964. if game.Workspace:FindFirstChild("_map") then
  4965. for i,v in pairs(game:GetService("Workspace")["_map"].paper:GetChildren()) do
  4966. if v.ClassName == "Folder" then v:Destroy() end
  4967. if v.ClassName == "MeshPart" then v:Destroy() end
  4968. if v.ClassName == "Model" then v:Destroy() end
  4969. if v.ClassName == "Part" then v:Destroy() end
  4970. end
  4971. end
  4972. end
  4973.  
  4974. function DelMapOPnew4()
  4975. if game.Workspace:FindFirstChild("_map") then
  4976. for i,v in pairs(game:GetService("Workspace")["_map"]["wood stacks"]:GetChildren()) do
  4977. if v.ClassName == "Folder" then v:Destroy() end
  4978. if v.ClassName == "MeshPart" then v:Destroy() end
  4979. if v.ClassName == "Model" then v:Destroy() end
  4980. if v.ClassName == "Part" then v:Destroy() end
  4981. end
  4982. end
  4983. end
  4984.  
  4985. function DelMapOPnew5()
  4986. if game.Workspace:FindFirstChild("_map") then
  4987. for i,v in pairs(game:GetService("Workspace")["_map"]["tables and tents"]:GetChildren()) do
  4988. if v.ClassName == "Folder" then v:Destroy() end
  4989. if v.ClassName == "MeshPart" then v:Destroy() end
  4990. if v.ClassName == "Model" then v:Destroy() end
  4991. if v.ClassName == "Part" then v:Destroy() end
  4992. end
  4993. end
  4994. end
  4995.  
  4996. function DelMapOPnew6()
  4997. if game.Workspace:FindFirstChild("_map") then
  4998. for i,v in pairs(game:GetService("Workspace")["_map"].linings:GetChildren()) do
  4999. if v.ClassName == "Folder" then v:Destroy() end
  5000. if v.ClassName == "MeshPart" then v:Destroy() end
  5001. if v.ClassName == "Model" then v:Destroy() end
  5002. if v.ClassName == "Part" then v:Destroy() end
  5003. end
  5004. end
  5005. end
  5006.  
  5007. --Modako
  5008. function DelMapmodako()
  5009. if game.Workspace:FindFirstChild("_map") then
  5010. for i,v in pairs(game:GetService("Workspace")["_map"]:GetChildren()) do
  5011. if v.ClassName == "MeshPart" then v:Destroy() end
  5012. if v.ClassName == "Model" then v:Destroy() end
  5013. if v.ClassName == "Part" then v:Destroy() end
  5014. if v.Name == "grass" then v:Destroy() end
  5015. if v.Name == "trees" then v:Destroy() end
  5016. if v.Name == "Folder" then v:Destroy() end
  5017. if v.Name == "wires" then v:Destroy() end
  5018. if v.Name == "bushes" then v:Destroy() end
  5019. if v.Name == "poles" then v:Destroy() end
  5020. if v.Name == "flowers" then v:Destroy() end
  5021. if v.Name == "gates" then v:Destroy() end
  5022. if v.Name == "lamps" then v:Destroy() end
  5023. if v.Name == "paper textures" then v:Destroy() end
  5024. if v.Name == "notice boards" then v:Destroy() end
  5025. if v.Name == "grass things" then v:Destroy() end
  5026. if v.Name == "lanterns" then v:Destroy() end
  5027. if v.Name == "houses outer (collision)" then v:Destroy() end
  5028. if v.Name == "doors" then v:Destroy() end
  5029. if v.Name == "_secret" then v:Destroy() end
  5030. end
  5031. end
  5032. end
  5033.  
  5034. function DelMapmodako1()
  5035. if game.Workspace:FindFirstChild("_map") then
  5036. for i,v in pairs(game:GetService("Workspace")["_map"].debrisouter:GetChildren()) do
  5037. if v.ClassName == "Folder" then v:Destroy() end
  5038. if v.ClassName == "MeshPart" then v:Destroy() end
  5039. if v.ClassName == "Model" then v:Destroy() end
  5040. if v.ClassName == "Part" then v:Destroy() end
  5041. end
  5042. end
  5043. end
  5044.  
  5045. function DelMapmodako2()
  5046. if game.Workspace:FindFirstChild("_map") then
  5047. for i,v in pairs(game:GetService("Workspace")["_map"].buildingsouter:GetChildren()) do
  5048. if v.ClassName == "Folder" then v:Destroy() end
  5049. if v.ClassName == "MeshPart" then v:Destroy() end
  5050. if v.ClassName == "Model" then v:Destroy() end
  5051. if v.ClassName == "Part" then v:Destroy() end
  5052. end
  5053. end
  5054. end
  5055.  
  5056. function DelMapmodako3()
  5057. if game.Workspace:FindFirstChild("_map") then
  5058. for i,v in pairs(game:GetService("Workspace")["_map"].fence:GetChildren()) do
  5059. if v.ClassName == "Folder" then v:Destroy() end
  5060. if v.ClassName == "MeshPart" then v:Destroy() end
  5061. if v.ClassName == "Model" then v:Destroy() end
  5062. if v.ClassName == "Part" then v:Destroy() end
  5063. end
  5064. end
  5065. end
  5066.  
  5067. function DelMapmodako4()
  5068. if game.Workspace:FindFirstChild("_map") then
  5069. for i,v in pairs(game:GetService("Workspace")["_map"]["fire p"]:GetChildren()) do
  5070. if v.ClassName == "Folder" then v:Destroy() end
  5071. if v.ClassName == "MeshPart" then v:Destroy() end
  5072. if v.ClassName == "Model" then v:Destroy() end
  5073. if v.ClassName == "Part" then v:Destroy() end
  5074. end
  5075. end
  5076. end
  5077.  
  5078. function DelMapmodako5()
  5079. if game.Workspace:FindFirstChild("_map") then
  5080. for i,v in pairs(game:GetService("Workspace")["_map"].paper:GetChildren()) do
  5081. if v.ClassName == "Folder" then v:Destroy() end
  5082. if v.ClassName == "MeshPart" then v:Destroy() end
  5083. if v.ClassName == "Model" then v:Destroy() end
  5084. if v.ClassName == "Part" then v:Destroy() end
  5085. end
  5086. end
  5087. end
  5088.  
  5089. function DelMapmodako6()
  5090. if game.Workspace:FindFirstChild("_map") then
  5091. for i,v in pairs(game:GetService("Workspace")["_map"]["road lines"]:GetChildren()) do
  5092. if v.ClassName == "Folder" then v:Destroy() end
  5093. if v.ClassName == "MeshPart" then v:Destroy() end
  5094. if v.ClassName == "Model" then v:Destroy() end
  5095. if v.ClassName == "Part" then v:Destroy() end
  5096. end
  5097. end
  5098. end
  5099.  
  5100. function DelMapmodako7()
  5101. if game.Workspace:FindFirstChild("_map") then
  5102. for i,v in pairs(game:GetService("Workspace")["_map"].roadtreethings:GetChildren()) do
  5103. if v.ClassName == "Folder" then v:Destroy() end
  5104. if v.ClassName == "MeshPart" then v:Destroy() end
  5105. if v.ClassName == "Model" then v:Destroy() end
  5106. if v.ClassName == "Part" then v:Destroy() end
  5107. end
  5108. end
  5109. end
  5110.  
  5111. function DelMapmodako8()
  5112. if game.Workspace:FindFirstChild("_map") then
  5113. for i,v in pairs(game:GetService("Workspace")["_map"].telepoles:GetChildren()) do
  5114. if v.ClassName == "Folder" then v:Destroy() end
  5115. if v.ClassName == "MeshPart" then v:Destroy() end
  5116. if v.ClassName == "Model" then v:Destroy() end
  5117. if v.ClassName == "Part" then v:Destroy() end
  5118. end
  5119. end
  5120. end
  5121.  
  5122. function DelMapmodako9()
  5123. if game.Workspace:FindFirstChild("_map") then
  5124. for i,v in pairs(game:GetService("Workspace")["_map"].watertanks:GetChildren()) do
  5125. if v.ClassName == "Folder" then v:Destroy() end
  5126. if v.ClassName == "MeshPart" then v:Destroy() end
  5127. if v.ClassName == "Model" then v:Destroy() end
  5128. if v.ClassName == "Part" then v:Destroy() end
  5129. end
  5130. end
  5131. end
  5132.  
  5133. function DelMapmodako10()
  5134. if game.Workspace:FindFirstChild("_map") then
  5135. for i,v in pairs(game:GetService("Workspace")["_map"].sparks:GetChildren()) do
  5136. if v.ClassName == "Folder" then v:Destroy() end
  5137. if v.ClassName == "MeshPart" then v:Destroy() end
  5138. if v.ClassName == "Model" then v:Destroy() end
  5139. if v.ClassName == "Part" then v:Destroy() end
  5140. end
  5141. end
  5142. end
  5143.  
  5144. ---------------------------------------------------------------------------------------
  5145. ---------------------------------------------------------------
  5146. coroutine.resume(coroutine.create(function()
  5147. while task.wait(1.5) do
  5148. if game.PlaceId ~= 8304191830 and Settings.deletemap then
  5149. warn("Enable Delete map")
  5150. local _wave = game:GetService("Workspace"):WaitForChild("_wave_num")
  5151. repeat task.wait() until game:GetService("Workspace"):WaitForChild("_map")
  5152. if game.Workspace._map:FindFirstChild("namek mushroom model") then
  5153. DelTer()
  5154. DelMapMain()
  5155. DelMapnamekmap2()
  5156. DelMapnamekmap3()
  5157. DelMapnamekmap4()
  5158. DelMapnamekmap5()
  5159. DelMapnamekmap6()
  5160. DelMapnamekmap7()
  5161. DelMapnamekmap8()
  5162. DelMapnamekmap9()
  5163. elseif game.Workspace._map:FindFirstChild("houses_new") then
  5164. DelTer()
  5165. DelMapMain()
  5166. DelMapTitan1()
  5167. DelMapTitan2()
  5168. DelMapTitan3()
  5169. DelMapTitan4()
  5170. DelMapTitan5()
  5171. DelMapTitan6()
  5172. DelMapTitan7()
  5173. DelMapTitan8()
  5174. elseif game.Workspace._map:FindFirstChild("Snow Particles") then
  5175. DelTer()
  5176. DelMapMain()
  5177. DelMapSnowy1()
  5178. DelMapSnowy2()
  5179. DelMapSnowy3()
  5180. elseif game.Workspace._map:FindFirstChild("sand_gate") then
  5181. DelTer()
  5182. DelMapMain()
  5183. DelMapSand1()
  5184. DelMapSand2()
  5185. DelMapSand3()
  5186. DelMapSand4()
  5187. elseif game.Workspace._map:FindFirstChild("icebergs") then
  5188. DelTer()
  5189. DelMapMain()
  5190. DelMapMarine1()
  5191. DelMapMarine2()
  5192. DelMapMarine3()
  5193. DelMapMarine4()
  5194. DelMapMarine5()
  5195. DelMapMarine6()
  5196. DelMapMarine7()
  5197. elseif game.Workspace._map:FindFirstChild("new buildings") then
  5198. DelTer()
  5199. DelMapMain()
  5200. DelMapGhoul1()
  5201. DelMapGhoul2()
  5202. DelMapGhoul3()
  5203. DelMapGhoul4()
  5204. DelMapGhoul5()
  5205. elseif game.Workspace._map:FindFirstChild("Bones/dust") then
  5206. DelTer()
  5207. DelMapMain()
  5208. DelMapHollow1()
  5209. elseif game.Workspace._map:FindFirstChild("light poles") then
  5210. DelTer()
  5211. DelMapMain()
  5212. DelMapMagic1()
  5213. DelMapMagic2()
  5214. DelMapMagic3()
  5215. DelMapMagic4()
  5216. DelMapMagic5()
  5217. DelMapMagic6()
  5218. DelMapMagic7()
  5219. DelMapMagic8()
  5220. DelMapMagic9()
  5221. DelMapMagic10()
  5222. DelMapMagic11()
  5223. DelMapMagic12()
  5224. DelMapMagic13()
  5225. elseif game.Workspace._map:FindFirstChild("LanternsGround") then
  5226. DelTer()
  5227. DelMapMain()
  5228. DelMapCursed1()
  5229. DelMapCursed2()
  5230. DelMapCursed3()
  5231. DelMapCursed4()
  5232. DelMapCursed5()
  5233. DelMapCursed6()
  5234. DelMapCursed7()
  5235. DelMapCursed8()
  5236. DelMapCursed9()
  5237. DelMapCursed10()
  5238. DelMapCursed11()
  5239. DelMapCursed12()
  5240. DelMapCursed13()
  5241. DelMapCursed14()
  5242. DelMapCursed15()
  5243. DelMapCursed16()
  5244. elseif game.Workspace._map:FindFirstChild("pumpkins") then
  5245. DelTer()
  5246. DelMapMain()
  5247. elseif game.Workspace._map:FindFirstChild("sand_bags") then
  5248. DelTer()
  5249. DelMapMain()
  5250. DelMapbleachleg1()
  5251. DelMapbleachleg2()
  5252. elseif game.Workspace._map:FindFirstChild("vending machines") then
  5253. DelTer()
  5254. DelMapMain()
  5255. elseif game.Workspace._map:FindFirstChild("SpaceCenter") then
  5256. DelTer()
  5257. DelMapMain()
  5258. DelMapJoJo1()
  5259. DelMapJoJo2()
  5260. elseif game.Workspace._map:FindFirstChild("secret") then
  5261. DelTer()
  5262. DelMapMain()
  5263. DelMapAlinewires()
  5264. DelMapAlinepaper()
  5265. DelMapAlinetrees()
  5266. DelMapAlinefences()
  5267. DelMapAlinepole()
  5268. DelMapAlinevents()
  5269. elseif game.Workspace._map:FindFirstChild("s") then
  5270. DelTer()
  5271. DelMapMain()
  5272. DelMapwestcity1()
  5273. DelMapwestcity2()
  5274. elseif game.Workspace._map:FindFirstChild("bushes and flowers") then
  5275. DelTer()
  5276. DelMapMain()
  5277. DelMapuchiha1()
  5278. DelMapuchiha2()
  5279. elseif game.Workspace._map:FindFirstChild("snow grass") then
  5280. DelTer()
  5281. DelMapMain()
  5282. DelMapdemonraid1()
  5283. DelMapdemonraid2()
  5284. elseif game.Workspace._map:FindFirstChild("misc nonocollide obstacles") then
  5285. DelTer()
  5286. DelMapMain()
  5287. DelMap7ds1()
  5288. DelMap7ds2()
  5289. elseif game.Workspace._map:FindFirstChild("bridge nocollide") then
  5290. DelTer()
  5291. DelMapMain()
  5292. DelMapmha1()
  5293. DelMapmha2()
  5294. elseif game.Workspace._map:FindFirstChild("benches and barrels") then
  5295. DelTer()
  5296. DelMapMain()
  5297. DelMapentertain1()
  5298. DelMapentertain2()
  5299. elseif game.Workspace._map:FindFirstChild("Ant Nest") then
  5300. DelTer()
  5301. DelMapAnt()
  5302. DelMapAnt1()
  5303. DelMapAnt2()
  5304. DelMapAnt3()
  5305. DelMapAnt4()
  5306. DelMapAnt5()
  5307. DelMapAnt6()
  5308. DelMapAnt7()
  5309. DelMapAnt8()
  5310. DelMapAnt9()
  5311. DelMapAnt10()
  5312. DelMapAnt11()
  5313. DelMapAnt12()
  5314. elseif game.Workspace._map:FindFirstChild("linings") then
  5315. DelTer()
  5316. DelMapMain()
  5317. DelMapOPnew()
  5318. DelMapOPnew1()
  5319. DelMapOPnew2()
  5320. DelMapOPnew3()
  5321. DelMapOPnew4()
  5322. DelMapOPnew5()
  5323. DelMapOPnew6()
  5324. elseif game.Workspace._map:FindFirstChild("buildingsouter") then
  5325. DelTer()
  5326. DelMapmodako()
  5327. DelMapmodako1()
  5328. DelMapmodako2()
  5329. DelMapmodako3()
  5330. DelMapmodako4()
  5331. DelMapmodako5()
  5332. DelMapmodako6()
  5333. DelMapmodako7()
  5334. DelMapmodako8()
  5335. DelMapmodako9()
  5336. DelMapmodako10()
  5337. elseif game.Workspace._map["misc deco"]:FindFirstChild("bushes") then
  5338. DelTer()
  5339. DelMapMain()
  5340. DelMapClover1()
  5341. DelMapClover2()
  5342. DelMapClover3()
  5343. DelMapClover4()
  5344. DelMapClover5()
  5345. DelMapClover6()
  5346. DelMapClover7()
  5347. DelMapClover8()
  5348. DelMapClover9()
  5349. end
  5350. end
  5351. end
  5352. end))
  5353. --hide name
  5354. function hidename()
  5355. task.spawn(function() -- Hides name for yters (not sure if its Fe)
  5356. while task.wait() do
  5357. pcall(function()
  5358. if game.Players.LocalPlayer.Character.Head:FindFirstChild("_overhead") then
  5359. game.Players.LocalPlayer.Character.Head:FindFirstChild("_overhead"):Destroy()
  5360. end
  5361. end)
  5362. end
  5363. end)
  5364. end
  5365. if Settings.hidenamep then
  5366. hidename()
  5367. end
  5368. --Auto Grab Daily Quest
  5369. function autoDailyquest()
  5370. if Settings.autoDailyquest then
  5371. game:GetService("ReplicatedStorage").endpoints.client_to_server.accept_npc_quest:InvokeServer("7ds_daily")
  5372. wait(15)
  5373. end
  5374. end
  5375. if Settings.autoDailyquest then
  5376. autoDailyquest()
  5377. end
  5378.  
  5379. -- added by craymel02
  5380. function escanorIR()
  5381. if Settings.escanorIR == nil then
  5382. Settings.escanorIR = false
  5383. else
  5384. loadstring(game:HttpGet("https://raw.githubusercontent.com/ArponAG/Scripts/main/dontDelete-IR.lua"))()
  5385. end
  5386. end
  5387.  
  5388. --placeany
  5389.  
  5390. function placeAny()
  5391. local services = require(game.ReplicatedStorage.src.Loader)
  5392. local placement_service = services.load_client_service(script, "PlacementServiceClient")
  5393.  
  5394. task.spawn(function()
  5395. while task.wait() do
  5396. placement_service.can_place = true
  5397. end
  5398. end)
  5399. end
  5400. function placeunittwin()
  5401. if game.Workspace:WaitForChild("_UNITS") then
  5402. for i, v in ipairs(game:GetService("Workspace")["_UNITS"]:GetChildren()) do
  5403. repeat task.wait() until v:WaitForChild("_stats")
  5404. if v.Name == name and tostring(v["_stats"].player.Value) == game.Players.LocalPlayer.Name and v.Name:FindFirstChild("_hitbox") then
  5405. v:Destroy() end
  5406. end
  5407. end
  5408. end
  5409.  
  5410. if Settings.placeany then
  5411. placeAny()
  5412. placeunittwin()
  5413. end
  5414. --ReedemCode
  5415. function Reedemcode()
  5416. codes = {"TWOMILLION","subtomaokuma","CHALLENGEFIX","GINYUFIX","RELEASE","SubToKelvingts","SubToBlamspot","KingLuffy","TOADBOIGAMING","noclypso","FictioNTheFirst","GOLDENSHUTDOWN","GOLDEN"
  5417. ,"SINS2","subtosnowrbx","Cxrsed","subtomaokuma","VIGILANTE","HAPPYEASTER","ENTERTAINMENT","DRESSROSA","BILLION"}
  5418. for _, v in pairs(codes) do
  5419. pcall(function() game:GetService("ReplicatedStorage").endpoints["client_to_server"]["redeem_code"]:InvokeServer(v)() end)
  5420. end
  5421. end
  5422. if Settings.redeemc then
  5423. Reedemcode()
  5424. end
  5425. pcall(function()
  5426. local vu = game:GetService("VirtualUser")
  5427. game:GetService("Players").LocalPlayer.Idled:connect(function()
  5428. vu:Button2Down(Vector2.new(0,0),workspace.CurrentCamera.CFrame)
  5429. wait(1)
  5430. vu:Button2Up(Vector2.new(0,0),workspace.CurrentCamera.CFrame)
  5431. end)
  5432. game:GetService("ReplicatedStorage").endpoints.client_to_server.claim_daily_reward:InvokeServer()
  5433. warn("Anti-AFK Loaded!!!")
  5434. end)
  5435. --disms
  5436. if game.PlaceId ~= 8304191830 then
  5437. game:GetService("ReplicatedStorage").packages.assets["ui_sfx"].error.Volume = 0
  5438. game:GetService("ReplicatedStorage").packages.assets["ui_sfx"].error_old.Volume = 0
  5439. game.Players.LocalPlayer.PlayerGui.MessageGui.Enabled = false --disables the annoying error messages
  5440. end
  5441. --disms
  5442. if game.PlaceId == 8304191830 then
  5443. game:GetService("ReplicatedStorage").packages.assets["ui_sfx"].error.Volume = 0
  5444. game:GetService("ReplicatedStorage").packages.assets["ui_sfx"].error_old.Volume = 0
  5445. game.Players.LocalPlayer.PlayerGui.MessageGui.Enabled = false --disables the annoying error messages
  5446. end
  5447. warn("Display Error Hider!!!")
  5448. warn("Hider Name Loaded!!!")
  5449. warn("AA v2 Loaded!!!")
  5450. warn("All Loaded !!!")
  5451. escanorIR() -- added by craymel02
  5452.  
Advertisement
Add Comment
Please, Sign In to add comment