Advertisement
lilhappylilsadd

Collect All Pets! Script

Jun 4th, 2022 (edited)
500
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 25.53 KB | None | 0 0
  1. if game.CoreGui:FindFirstChild("CryptidHub - Collect All Pets!") then
  2. game.CoreGui["CryptidHub - Collect All Pets!"]:Destroy()
  3. end
  4. local Material = loadstring(game:HttpGet("https://raw.githubusercontent.com/Kinlei/MaterialLua/master/Module.lua"))()
  5. local X = Material.Load({
  6. Title = "CryptidHub - Collect All Pets!",
  7. Style = 2,
  8. SizeX = 500,
  9. SizeY = 350,
  10. Theme = "Mocha",
  11. ColorOverrides = {
  12. MainFrame = Color3.fromRGB(235,235,235)
  13. }
  14. })
  15. local children = workspace.HiddenEggs:GetChildren()
  16. local Pos = game:GetService('Players').LocalPlayer.Character.HumanoidRootPart
  17. local Main = X.New({
  18. Title = "Main"
  19. })
  20. local Upgrades = X.New({
  21. Title = "Upgrades"
  22. })
  23. local Player = X.New({
  24. Title = "Player"
  25. })
  26. local Teleport = X.New({
  27. Title = "Teleports"
  28. })
  29. local Misc = X.New({
  30. Title = "Misc"
  31. })local AutoOpenEgg = Main.Dropdown({
  32. Text = "Egg Option",
  33. Callback = function(Value)
  34. if Value == "Common Egg" then
  35. eggg = 1
  36. end
  37. if Value == "Uncommon Egg" then
  38. eggg = 2
  39. end
  40. if Value == "Rare Egg" then
  41. eggg = 3
  42. end
  43. if Value == "Epic Egg" then
  44. eggg = 4
  45. end
  46. if Value == "Legendary Egg" then
  47. eggg = 5
  48. end
  49. if Value == "Prodigious Egg" then
  50. eggg = 6
  51. end
  52. end,
  53. Options = {
  54. "Common Egg",
  55. "Uncommon Egg",
  56. "Rare Egg",
  57. "Epic Egg",
  58. "Legendary Egg",
  59. "Prodigious Egg"
  60. }
  61. })
  62. local QuestAutoComplete = Main.Toggle({
  63. Text = "Auto Complete Quests",
  64. Callback = function(Value)
  65. OS = Value
  66. end
  67. })
  68. local OpenEgg = Main.Toggle({
  69. Text = "Auto Open Egg",
  70. Callback = function(Value)
  71. Openn = Value
  72. end
  73. })
  74. local OpenEggOne = Main.Button({
  75. Text = "Open Egg Once",
  76. Callback = function(Value)
  77. game:GetService("ReplicatedStorage").Remotes.BuyEgg:FireServer(eggg)
  78. end
  79. })
  80. local AntiOpenGui = Main.Button({
  81. Text = "Anti Egg Open UI",
  82. Callback = function(Value)
  83. game:GetService('Players').LocalPlayer.PlayerGui.ScreenGui.Hatcher.Visible = false
  84. game:GetService('Players').LocalPlayer.PlayerGui.ScreenGui.Hatcher:FindFirstChildOfClass('LocalScript'):Destroy()
  85. AEOU = true
  86. end
  87. })
  88. local AutoQuest = Main.Toggle({
  89. Text = "Auto Collect Quests",
  90. Callback = function(Value)
  91. ACQ = Value
  92. end
  93. })
  94. local Autocollect = Main.Toggle({
  95. Text = "Auto Collect Drops",
  96. Callback = function(Value)
  97. enabledd = Value
  98. end,
  99. Menu = {
  100. Information = function(self)
  101. X.Banner({
  102. Text = "Can be laggy."
  103. })
  104. end
  105. }
  106. })
  107. Costone = Workspace.StatIncreaseShops.StatIncrease_Damage.GuiPart.Gui.PriceLabel.Text:split(">")[2]:split("<")[1]
  108. local AutoBuyDamage = Upgrades.Toggle({
  109. Text = "Auto Buy Damage - " .. Costone .. " Gold",
  110. Callback = function(Value)
  111. ABD = Value
  112. end
  113. })
  114. local BuyDamage = Upgrades.Button({
  115. Text = "Buy Damage - " .. Costone .. " Gold",
  116. Callback = function(Value)
  117. local args = {
  118. [1] = "Damage"
  119. }
  120.  
  121. game:GetService("ReplicatedStorage").Remotes.BuyStatIncrease:FireServer(unpack(args))
  122. end
  123. })
  124. Costtwo = Workspace.StatIncreaseShops.StatIncrease_Speed.GuiPart.Gui.PriceLabel.Text:split(">")[2]:split("<")[1]
  125. local AutoBuySpeed = Upgrades.Toggle({
  126. Text = "Auto Buy Speed - " .. Costtwo .. " Gold",
  127. Callback = function(Value)
  128. ABS = Value
  129. end
  130. })
  131. local BuySpeed = Upgrades.Button({
  132. Text = "Buy Speed - " .. Costtwo .. " Gold",
  133. Callback = function(Value)
  134. local args = {
  135. [1] = "Speed"
  136. }
  137. game:GetService("ReplicatedStorage").Remotes.BuyStatIncrease:FireServer(unpack(args))
  138. end
  139. })
  140. local Cost = "0"
  141. local hasgamepass = game:GetService('Players').LocalPlayer.HasPetEquipGamePass.Value
  142. local petslots = game:GetService('Players').LocalPlayer.PetSlotsUnlocked.Value
  143. if hasgamepass == false and petslots == 4 then
  144. Cost = "25,000 Gold"
  145. Current = 0
  146. end
  147. if hasgamepass == false and petslots == 5 then
  148. Cost = "100,000 Gold"
  149. Current = 1
  150. end
  151. if hasgamepass == false and petslots == 6 then
  152. Cost = "500,000 Gold"
  153. Current = 2
  154. end
  155. if hasgamepass == false and petslots == 7 then
  156. Cost = "10,000,000 Gold"
  157. Current = 3
  158. end
  159. if hasgamepass == false and petslots == 8 then
  160. Cost = "25,000,000 Gold"
  161. Current = 4
  162. end
  163. if hasgamepass == true and petslots == 6 then
  164. Cost = "25,000 Gold"
  165. Current = 0
  166. end
  167. if hasgamepass == true and petslots == 7 then
  168. Cost = "100,000 Gold"
  169. Current = 1
  170. end
  171. if hasgamepass == true and petslots == 8 then
  172. Cost = "500,000 Gold"
  173. Current = 2
  174. end
  175. if hasgamepass == true and petslots == 9 then
  176. Cost = "10,000,000 Gold"
  177. Current = 3
  178. end
  179. if hasgamepass == true and petslots == 10 then
  180. Cost = "25,000,000 Gold"
  181. Current = 4
  182. end
  183. local autobuypetslot = Upgrades.Toggle({
  184. Text = "Auto Buy Pet Slot - "..Cost,
  185. Callback = function(Value)
  186. ABPS = Value
  187. end
  188. })
  189. local buypetslot = Upgrades.Button({
  190. Text = "Buy Pet Slot - " .. Cost,
  191. Callback = function(Value)
  192. if Current == 0 and Value == true then
  193. local args = {
  194. [1] = 1
  195. }
  196. game:GetService("ReplicatedStorage").Remotes.BuyPetEquipSlot:FireServer(unpack(args))
  197. end
  198. if Current == 1 and Value == true then
  199. local args = {
  200. [1] = 2
  201. }
  202. game:GetService("ReplicatedStorage").Remotes.BuyPetEquipSlot:FireServer(unpack(args))
  203. end
  204. if Current == 2 and Value == true then
  205. local args = {
  206. [1] = 3
  207. }
  208. game:GetService("ReplicatedStorage").Remotes.BuyPetEquipSlot:FireServer(unpack(args))
  209. end
  210. end
  211. })
  212. Costthree = Workspace.StatIncreaseShops.StatIncrease_DropCollectionRange.GuiPart.Gui.PriceLabel.Text:split(">")[2]:split("<")[1]
  213. local autobuydropcollect = Upgrades.Toggle({
  214. Text = "Auto Buy Drop Collection Range - " .. Costthree .. " Gold",
  215. Callback = function(Value)
  216. ABDCR = Value
  217. end
  218. })
  219. local buydropcollect = Upgrades.Button({
  220. Text = "Buy Drop Collection Range - " .. Costthree .. " Gold",
  221. Callback = function(Value)
  222. local args = {
  223. [1] = "DropCollectionRange"
  224. }
  225.  
  226. game:GetService("ReplicatedStorage").Remotes.BuyStatIncrease:FireServer(unpack(args))
  227. end
  228. })
  229. Costfive = Workspace.StatIncreaseShops.StatIncrease_ShinyLuck.GuiPart.Gui.PriceLabel.Text:split(">")[2]:split("<")[1]
  230. local AutoShinyLuck = Upgrades.Toggle({
  231. Text = "Auto Buy Shiny Luck - " .. Costfive .. "Gold",
  232. Callback = function(Value)
  233. ASL = Value
  234. end
  235. })
  236. local Shinyluck = Upgrades.Button({
  237. Text = "Buy Shiny Luck - " .. Costfive .. "Gold",
  238. Callback = function(Value)
  239. local args = {
  240. [1] = "ShinyLuck"
  241. }
  242. game:GetService("ReplicatedStorage").Remotes.BuyStatIncrease:FireServer(unpack(args))
  243. wait()
  244. end
  245. })
  246. local plrws = game:GetService('Players').LocalPlayer.Character.Humanoid.WalkSpeed
  247. local plrjp = game:GetService('Players').LocalPlayer.Character:FindFirstChildOfClass('Humanoid').JumpHeight
  248. local Teleporttoplayer = Player.TextField({
  249. Text = "Teleport to Player",
  250. Callback = function(Value)
  251. Pos.CFrame = game:GetService('Players')[Value].Character.HumanoidRootPart.CFrame
  252. end
  253. })
  254. local Walkspeed = Player.Slider({
  255. Text = "Walkspeed",
  256. Callback = function(Value)
  257. plrws = (Value)
  258. end,
  259. Min = 16.75,
  260. Max = 100,
  261. Def = 58.375
  262. })
  263. local Jumppower = Player.Slider({
  264. Text = "Jumppower",
  265. Callback = function(Value)
  266. plrjp = Value
  267. end,
  268. Min = 10,
  269. Max = 100,
  270. Def = 55
  271. })
  272. local Spawn = Teleport.Button({
  273. Text = "Spawn",
  274. Callback = function(Value)
  275. Pos.CFrame = CFrame.new(-0.4, 5.56, -57.33)
  276. end
  277. })
  278. local Meadow = Teleport.Button({
  279. Text = "Meadow",
  280. Callback = function(Value)
  281. Pos.CFrame = CFrame.new(1.39, 5.56, -277.14)
  282. end
  283. })
  284. local Forest = Teleport.Button({
  285. Text = "Forest",
  286. Callback = function(Value)
  287. Pos.CFrame = CFrame.new(9.9, 5.56, -418)
  288. end
  289. })
  290. local Desert = Teleport.Button({
  291. Text = "Desert",
  292. Callback = function(Value)
  293. Pos.CFrame = CFrame.new(163.19, 5.56, -427.84)
  294. end
  295. })
  296. local Arctic = Teleport.Button({
  297. Text = "Arctic",
  298. Callback = function(Value)
  299. Pos.CFrame = CFrame.new(167.67, 5.56, -272)
  300. end
  301. })
  302. local Beach = Teleport.Button({
  303. Text = "Beach",
  304. Callback = function(Value)
  305. Pos.CFrame = CFrame.new(171.62, 5.56, -104.23)
  306. end
  307. })
  308. local Mountains = Teleport.Button({
  309. Text = "Mountains",
  310. Callback = function(Value)
  311. Pos.CFrame = CFrame.new(174.63, 25.29, 46.63)
  312. end
  313. })
  314. local Jungle = Teleport.Button({
  315. Text = "Jungle",
  316. Callback = function(Value)
  317. Pos.CFrame = CFrame.new(-40, 5.56, 72.34)
  318. end
  319. })
  320. local Grotto = Teleport.Button({
  321. Text = "Grotto",
  322. Callback = function(Value)
  323. Pos.CFrame = CFrame.new(-266.59, 5.56, 146.12)
  324. end
  325. })
  326. local Cave = Teleport.Button({
  327. Text = "Cave",
  328. Callback = function(Value)
  329. Pos.CFrame = CFrame.new(-110.78, 5.56, -49.72)
  330. end
  331. })
  332. local CollectEggs = Misc.Button({
  333. Text = "Collect Eggs",
  334. Callback = function(Value)
  335. local children = workspace.HiddenEggs:GetChildren()
  336. for i = 1, #children do
  337. var = children[i].Position
  338. for i = 1, #children do
  339. Pos.CFrame = CFrame.new(var)
  340. wait(0.1)
  341. end
  342. end
  343. end,
  344. Menu = {
  345. Information = function(self)
  346. X.Banner({
  347. Text = "Requires zones eggs are in. (might take a while)"
  348. })
  349. end
  350. }
  351. })
  352. local RedeemCodes = Misc.Button({
  353. Text = "Redeem Codes",
  354. Callback = function(Value)
  355. game:GetService("ReplicatedStorage").Remotes.RedeemCode:FireServer("WhoLetTheDogsOut")
  356. game:GetService("ReplicatedStorage").Remotes.RedeemCode:FireServer("ItsAlwaysADesert")
  357. game:GetService("ReplicatedStorage").Remotes.RedeemCode:FireServer("DuelingDragons")
  358. game:GetService("ReplicatedStorage").Remotes.RedeemCode:FireServer("FewAndFarBetween")
  359. game:GetService("ReplicatedStorage").Remotes.RedeemCode:FireServer("KlausWasHere")
  360. game:GetService("ReplicatedStorage").Remotes.RedeemCode:FireServer("ShinyHunting")
  361. game:GetService("ReplicatedStorage").Remotes.RedeemCode:FireServer("TooManyDrops")
  362. game:GetService("ReplicatedStorage").Remotes.RedeemCode:FireServer("TheGreatCodeInTheSky")
  363. game:GetService("ReplicatedStorage").Remotes.RedeemCode:FireServer("PillarsOfCreation")
  364. game:GetService("ReplicatedStorage").Remotes.RedeemCode:FireServer("TreeSauce")
  365. game:GetService("ReplicatedStorage").Remotes.RedeemCode:FireServer("TillFjalls")
  366. game:GetService("ReplicatedStorage").Remotes.RedeemCode:FireServer("Orion")
  367. game:GetService("ReplicatedStorage").Remotes.RedeemCode:FireServer("HorseWithNoName")
  368. game:GetService("ReplicatedStorage").Remotes.RedeemCode:FireServer("IfYouAintFirst")
  369. game:GetService("ReplicatedStorage").Remotes.RedeemCode:FireServer("MemoryLeak")
  370. game:GetService("ReplicatedStorage").Remotes.RedeemCode:FireServer("SecretCodeWasHere")
  371. game:GetService("ReplicatedStorage").Remotes.RedeemCode:FireServer("Taikatalvi")
  372. game:GetService("ReplicatedStorage").Remotes.RedeemCode:FireServer("Brrrrr")
  373. game:GetService("ReplicatedStorage").Remotes.RedeemCode:FireServer("Click")
  374. game:GetService("ReplicatedStorage").Remotes.RedeemCode:FireServer("4815162342")
  375. game:GetService("ReplicatedStorage").Remotes.RedeemCode:FireServer("Erdentempel")
  376. game:GetService("ReplicatedStorage").Remotes.RedeemCode:FireServer("FirstCodeEver")
  377. game:GetService("ReplicatedStorage").Remotes.RedeemCode:FireServer("Groupie")
  378. game:GetService("ReplicatedStorage").Remotes.RedeemCode:FireServer("NewCode")
  379. end
  380. })
  381. while true do
  382. while enabledd do
  383. for _, obj in pairs(game.Workspace.Drops:GetDescendants()) do
  384. if obj.Name == "Base" then
  385. Pos.CFrame = CFrame.new(obj.Position.X, obj.Position.Y, obj.Position.Z)
  386. end
  387. end
  388. wait()
  389. end
  390. while Openn do
  391. game:GetService("ReplicatedStorage").Remotes.BuyEgg:FireServer(eggg)
  392. wait(1)
  393. end
  394. while ABD do
  395. local args = {
  396. [1] = "Damage"
  397. }
  398.  
  399. game:GetService("ReplicatedStorage").Remotes.BuyStatIncrease:FireServer(unpack(args))
  400. wait()
  401. end
  402. while ABS do
  403. local args = {
  404. [1] = "Speed"
  405. }
  406. game:GetService("ReplicatedStorage").Remotes.BuyStatIncrease:FireServer(unpack(args))
  407. wait()
  408. end
  409. while ACQ do
  410. game:GetService("ReplicatedStorage").Remotes.ClaimQuestReward:FireServer()
  411. wait()
  412. end
  413. while ABDCR do
  414. local args = {
  415. [1] = "DropCollectionRange"
  416. }
  417. game:GetService("ReplicatedStorage").Remotes.BuyStatIncrease:FireServer(unpack(args))
  418. wait()
  419. end
  420.  
  421. while ASL do
  422. local args = {
  423. [1] = "ShinyLuck"
  424. }
  425. game:GetService("ReplicatedStorage").Remotes.BuyStatIncrease:FireServer(unpack(args))
  426. wait()
  427. end
  428. while OS do
  429. game:GetService('ReplicatedStorage').Remotes.ClaimQuestReward:FireServer()
  430. local Pos = game:GetService('Players').LocalPlayer.Character.HumanoidRootPart
  431. local QuestTask = game:GetService('Players').LocalPlayer.QuestTask.Value
  432. local QuestArea = game:GetService('Players').LocalPlayer.QuestArea.Value
  433. local CurrentArea = game:GetService('Players').LocalPlayer.Area.Value
  434. local Meadowpos = CFrame.new(1.39, 5.56, -277.14)
  435. local Forestpos = CFrame.new(9.9, 5.56, -418)
  436. local Desertpos = CFrame.new(163.19, 5.56, -427.84)
  437. local Arcticpos = CFrame.new(167.67, 5.56, -272)
  438. local Beachpos = CFrame.new(171.62, 5.56, -104.23)
  439. local Mountainspos = CFrame.new(174.63, 25.29, 46.63)
  440. local Junglepos = CFrame.new(-40, 5.56, 72.34)
  441. local Grottopos = CFrame.new(-266.59, 5.56, 146.12)
  442. if QuestTask == 1 and QuestArea == 0 then
  443. for _, obj in pairs(Workspace.Drops:GetDescendants()) do
  444. if obj.Name == 'Base' then
  445. Pos.CFrame = CFrame.new(obj.Position.X, obj.Position.Y, obj.Position.Z)
  446. end
  447. end
  448. end
  449. if QuestTask == 2 and QuestArea == 0 then
  450. for _, obj in pairs(Workspace.Drops:GetDescendants()) do
  451. if obj.Name == 'Base' then
  452. Pos.CFrame = CFrame.new(obj.Position.X, obj.Position.Y, obj.Position.Z)
  453. end
  454. end
  455. end
  456. if QuestTask == 3 and QuestArea == 0 then
  457. if CurrentArea == 1 then
  458. Pos.CFrame = Meadowpos
  459. wait(0.2)
  460. if Pos.CFrame ~= Meadowpos then
  461. Pos.CFrame = Meadowpos
  462. end
  463. end
  464. if CurrentArea == 2 then
  465. Pos.CFrame = Forestpos
  466. wait(0.2)
  467. if Pos.CFrame ~= Forestpos then
  468. Pos.CFrame = Forestpos
  469. end
  470. end
  471. if CurrentArea == 3 then
  472. Pos.CFrame = Desertpos
  473. wait(0.2)
  474. if Pos.CFrame ~= Desertpos then
  475. Pos.CFrame = Desertpos
  476. end
  477. end
  478. if CurrentArea == 4 then
  479. Pos.CFrame = Arcticpos
  480. wait(0.2)
  481. if Pos.CFrame ~= Arcticpos then
  482. Pos.CFrame = Arcticpos
  483. end
  484. end
  485. if CurrentArea == 5 then
  486. Pos.CFrame = Beachpos
  487. wait(0.2)
  488. if Pos.CFrame ~= Beachpos then
  489. Pos.CFrame = Beachpos
  490. end
  491. end
  492. if CurrentArea == 6 then
  493. Pos.CFrame = Mountainspos
  494. wait(0.2)
  495. if Pos.CFrame ~= Mountainspos then
  496. Pos.CFrame = Mountainspos
  497. end
  498. end
  499. if CurrentArea == 7 then
  500. Pos.CFrame = Junglepos
  501. wait(0.2)
  502. if Pos.CFrame ~= Junglepos then
  503. Pos.CFrame = Junglepos
  504. end
  505. end
  506. if CurrentArea == 8 then
  507. Pos.CFrame = Grottopos
  508. wait(0.2)
  509. if Pos.CFrame ~= Grottopos then
  510. Pos.CFrame = Grottopos
  511. end
  512. end
  513. end
  514. if QuestTask == 1 and QuestArea == 1 then
  515. Pos.CFrame = Meadowpos
  516. for _, obj in pairs(Workspace.Drops:GetDescendants()) do
  517. if obj.Name == 'Base' then
  518. Pos.CFrame = CFrame.new(obj.Position.X, obj.Position.Y, obj.Position.Z)
  519. end
  520. end
  521. wait(0.2)
  522. if Pos.CFrame ~= Meadowpos then
  523. Pos.CFrame = Meadowpos
  524. end
  525. end
  526. if QuestTask == 2 and QuestArea == 1 then
  527. Pos.CFrame = Meadowpos
  528. for _, obj in pairs(Workspace.Drops:GetDescendants()) do
  529. if obj.Name == 'Base' then
  530. Pos.CFrame = CFrame.new(obj.Position.X, obj.Position.Y, obj.Position.Z)
  531. end
  532. end
  533. wait(0.2)
  534. if Pos.CFrame ~= Meadowpos then
  535. Pos.CFrame = Meadowpos
  536. end
  537. end
  538. if QuestTask == 3 and QuestArea == 1 then
  539. Pos.CFrame = Meadowpos
  540. wait(0.2)
  541. if Pos.CFrame ~= Meadowpos then
  542. Pos.CFrame = Meadowpos
  543. end
  544. end
  545. if QuestTask == 1 and QuestArea == 2 then
  546. Pos.CFrame = Forestpos
  547. for _, obj in pairs(Workspace.Drops:GetDescendants()) do
  548. if obj.Name == 'Base' then
  549. Pos.CFrame = CFrame.new(obj.Position.X, obj.Position.Y, obj.Position.Z)
  550. end
  551. end
  552. wait(0.2)
  553. if Pos.CFrame ~= Forestpos then
  554. Pos.CFrame = Forestpos
  555. end
  556. end
  557. if QuestTask == 2 and QuestArea == 2 then
  558. Pos.CFrame = Forestpos
  559. for _, obj in pairs(Workspace.Drops:GetDescendants()) do
  560. if obj.Name == 'Base' then
  561. Pos.CFrame = CFrame.new(obj.Position.X, obj.Position.Y, obj.Position.Z)
  562. end
  563. end
  564. wait(0.2)
  565. if Pos.CFrame ~= Forestpos then
  566. Pos.CFrame = Forestpos
  567. end
  568. end
  569. if QuestTask == 3 and QuestArea == 2 then
  570. Pos.CFrame = Forestpos
  571. wait(0.2)
  572. if Pos.CFrame ~= Forestpos then
  573. Pos.CFrame = Forestpos
  574. end
  575. end
  576. if QuestTask == 1 and QuestArea == 3 then
  577. Pos.CFrame = Desertpos
  578. for _, obj in pairs(Workspace.Drops:GetDescendants()) do
  579. if obj.Name == 'Base' then
  580. Pos.CFrame = CFrame.new(obj.Position.X, obj.Position.Y, obj.Position.Z)
  581. end
  582. end
  583. wait(0.2)
  584. if Pos.CFrame ~= Desertpos then
  585. Pos.CFrame = Desertpos
  586. end
  587. end
  588. if QuestTask == 2 and QuestArea == 3 then
  589. Pos.CFrame = Desertpos
  590. for _, obj in pairs(Workspace.Drops:GetDescendants()) do
  591. if obj.Name == 'Base' then
  592. Pos.CFrame = CFrame.new(obj.Position.X, obj.Position.Y, obj.Position.Z)
  593. end
  594. end
  595. wait(0.2)
  596. if Pos.CFrame ~= Desertpos then
  597. Pos.CFrame = Desertpos
  598. end
  599. end
  600. if QuestTask == 3 and QuestArea == 3 then
  601. Pos.CFrame = Desertpos
  602. wait(0.2)
  603. if Pos.CFrame ~= Desertpos then
  604. Pos.CFrame = Desertpos
  605. end
  606. end
  607. if QuestTask == 1 and QuestArea == 4 then
  608. Pos.CFrame = Arcticpos
  609. for _, obj in pairs(Workspace.Drops:GetDescendants()) do
  610. if obj.Name == 'Base' then
  611. Pos.CFrame = CFrame.new(obj.Position.X, obj.Position.Y, obj.Position.Z)
  612. end
  613. end
  614. wait(0.2)
  615. if Pos.CFrame ~= Arcticpos then
  616. Pos.CFrame = Arcticpos
  617. end
  618. end
  619. if QuestTask == 2 and QuestArea == 4 then
  620. Pos.CFrame = Arcticpos
  621. for _, obj in pairs(Workspace.Drops:GetDescendants()) do
  622. if obj.Name == 'Base' then
  623. Pos.CFrame = CFrame.new(obj.Position.X, obj.Position.Y, obj.Position.Z)
  624. end
  625. end
  626. wait(0.2)
  627. if Pos.CFrame ~= Arcticpos then
  628. Pos.CFrame = Arcticpos
  629. end
  630. end
  631. if QuestTask == 3 and QuestArea == 4 then
  632. Pos.CFrame = Arcticpos
  633. wait(0.2)
  634. if Pos.CFrame ~= Arcticpos then
  635. Pos.CFrame = Arcticpos
  636. end
  637. end
  638. if QuestTask == 1 and QuestArea == 5 then
  639. Pos.CFrame = Beachpos
  640. for _, obj in pairs(Workspace.Drops:GetDescendants()) do
  641. if obj.Name == 'Base' then
  642. Pos.CFrame = CFrame.new(obj.Position.X, obj.Position.Y, obj.Position.Z)
  643. end
  644. end
  645. wait(0.2)
  646. if Pos.CFrame ~= Beachpos then
  647. Pos.CFrame = Beachpos
  648. end
  649. end
  650. if QuestTask == 2 and QuestArea == 5 then
  651. Pos.CFrame = Beachpos
  652. for _, obj in pairs(Workspace.Drops:GetDescendants()) do
  653. if obj.Name == 'Base' then
  654. Pos.CFrame = CFrame.new(obj.Position.X, obj.Position.Y, obj.Position.Z)
  655. end
  656. end
  657. wait(0.2)
  658. if Pos.CFrame ~= Beachpos then
  659. Pos.CFrame = Beachpos
  660. end
  661. end
  662. if QuestTask == 3 and QuestArea == 5 then
  663. Pos.CFrame = Beachpos
  664. wait(0.2)
  665. if Pos.CFrame ~= Beachpos then
  666. Pos.CFrame = Beachpos
  667. end
  668. end
  669. if QuestTask == 1 and QuestArea == 6 then
  670. Pos.CFrame = Mountainspos
  671. for _, obj in pairs(Workspace.Drops:GetDescendants()) do
  672. if obj.Name == 'Base' then
  673. Pos.CFrame = CFrame.new(obj.Position.X, obj.Position.Y, obj.Position.Z)
  674. end
  675. end
  676. wait(0.2)
  677. if Pos.CFrame ~= Mountainspos then
  678. Pos.CFrame = Mountainspos
  679. end
  680. end
  681. if QuestTask == 2 and QuestArea == 6 then
  682. Pos.CFrame = Mountainspos
  683. for _, obj in pairs(Workspace.Drops:GetDescendants()) do
  684. if obj.Name == 'Base' then
  685. Pos.CFrame = CFrame.new(obj.Position.X, obj.Position.Y, obj.Position.Z)
  686. end
  687. end
  688. wait(0.2)
  689. if Pos.CFrame ~= Mountainspos then
  690. Pos.CFrame = Mountainspos
  691. end
  692. end
  693. if QuestTask == 3 and QuestArea == 6 then
  694. Pos.CFrame = Mountainspos
  695. wait(0.2)
  696. if Pos.CFrame ~= Mountainspos then
  697. Pos.CFrame = Mountainspos
  698. end
  699. end
  700. if QuestTask == 1 and QuestArea == 7 then
  701. Pos.CFrame = Junglepos
  702. for _, obj in pairs(Workspace.Drops:GetDescendants()) do
  703. if obj.Name == 'Base' then
  704. Pos.CFrame = CFrame.new(obj.Position.X, obj.Position.Y, obj.Position.Z)
  705. end
  706. end
  707. wait(0.2)
  708. if Pos.CFrame ~= Junglepos then
  709. Pos.CFrame = Junglepos
  710. end
  711. end
  712. if QuestTask == 2 and QuestArea == 7 then
  713. Pos.CFrame = Junglepos
  714. for _, obj in pairs(Workspace.Drops:GetDescendants()) do
  715. if obj.Name == 'Base' then
  716. Pos.CFrame = CFrame.new(obj.Position.X, obj.Position.Y, obj.Position.Z)
  717. end
  718. end
  719. wait(0.2)
  720. if Pos.CFrame ~= Junglepos then
  721. Pos.CFrame = Junglepos
  722. end
  723. end
  724. if QuestTask == 3 and QuestArea == 7 then
  725. Pos.CFrame = Junglepos
  726. wait(0.2)
  727. if Pos.CFrame ~= Junglepos then
  728. Pos.CFrame = Junglepos
  729. end
  730. end
  731. if QuestTask == 1 and QuestArea == 8 then
  732. Pos.CFrame = Grottopos
  733. for _, obj in pairs(Workspace.Drops:GetDescendants()) do
  734. if obj.Name == 'Base' then
  735. Pos.CFrame = CFrame.new(obj.Position.X, obj.Position.Y, obj.Position.Z)
  736. end
  737. end
  738. wait(0.2)
  739. if Pos.CFrame ~= Grottopos then
  740. Pos.CFrame = Grottopos
  741. end
  742. end
  743. if QuestTask == 2 and QuestArea == 8 then
  744. Pos.CFrame = Grottopos
  745. for _, obj in pairs(Workspace.Drops:GetDescendants()) do
  746. if obj.Name == 'Base' then
  747. Pos.CFrame = CFrame.new(obj.Position.X, obj.Position.Y, obj.Position.Z)
  748. end
  749. end
  750. wait(0.2)
  751. if Pos.CFrame ~= Grottopos then
  752. Pos.CFrame = Grottopos
  753. end
  754. end
  755. if QuestTask == 3 and QuestArea == 8 then
  756. Pos.CFrame = Grottopos
  757. wait(0.2)
  758. if Pos.CFrame ~= Grottopos then
  759. Pos.CFrame = Grottopos
  760. end
  761. end
  762. wait()
  763. end
  764. wait()
  765. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement