Advertisement
Finatic

Treasure quest

Jun 1st, 2019
3,956
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.72 KB | None | 0 0
  1.  
  2. --config
  3. sell = false -- sells everything
  4. xp = true--if true then it will be slow but u get xp right?
  5. shitty = false -- for non sypapse or if u really wanna crash it’s ok to go with false if u are going for the true for xp
  6. killminiboss = false -- kill minibosses so they cant waste ur time(reduces xp gain)
  7. auto_choose_dungeon = true --edit below if false
  8. dungeonname = "Ancient Jungle"-- case sensitive full name
  9. difficulty = "Demon" -- case sensitive full name
  10. --false or true pls
  11. -------script dont edit unless u know what you doing
  12. if game.PlaceId ~= 2960777560 then
  13. wait(1)
  14. game:GetService"ReplicatedStorage":WaitForChild"Remotes":WaitForChild"Dungeon":WaitForChild"Begin":FireServer()
  15. game:GetService"RunService".Heartbeat:Connect(function()
  16. workspace[game.Players.LocalPlayer.Name]:WaitForChild("Humanoid"):ChangeState(11)
  17. end)
  18. for i,v in pairs(workspace[game.Players.LocalPlayer.Name]:children()) do
  19. if v:IsA"BasePart" then
  20. v.CanCollide = false
  21. end
  22. end
  23. wait(2)
  24. spawn(function()
  25. while true do
  26. for i,v in pairs(workspace.DungeonFolder:GetDescendants()) do
  27. if v:FindFirstChild"MonsterTarget" then
  28. v.MonsterTarget:FireServer()
  29. end
  30. end
  31. wait(2)
  32. end
  33. end)
  34. game.Players.LocalPlayer.PlayerScripts.BodyRotate:Remove()
  35. repeat
  36. if shitty == true then
  37. wait(0.05)
  38. else
  39. wait(.01)
  40. end
  41. for i,v in pairs(workspace:children()) do
  42. if v:IsA"BasePart" and v.Name ~= "Terrain" then
  43. v:Destroy()
  44. end
  45. end
  46. for i, v in next, workspace.DungeonFolder:GetDescendants() do
  47. if v:FindFirstChild"Humanoid" and v:FindFirstChild"Head" then
  48. if xp == true then
  49. workspace.PlayerWeapons:WaitForChild(game.Players.LocalPlayer.Name).Hitbox.Size = Vector3.new(50,50,50)
  50. if workspace:WaitForChild(game.Players.LocalPlayer.Name).PrimaryPart ~= nil and v.PrimaryPart~=nil then
  51. workspace[game.Players.LocalPlayer.Name]:SetPrimaryPartCFrame(v:GetPrimaryPartCFrame()*CFrame.Angles(math.rad(90),0,0)*CFrame.new(0,0,10))
  52. game:GetService("ReplicatedStorage").Remotes.Attack:FireServer()
  53. game:GetService("ReplicatedStorage").Remotes.Ability:FireServer()
  54. end
  55. if killminiboss == true then
  56. if v.Name == "Obsidian" or v.Name == "Star Guardian" or v.Name == "Reaper" or v.Name == "Blaze" or v.Name == "Greenback" or v.Name == "Frost" or v.Name == "Brute" or v.Name =="Voltage" or v.Name == "Witch" then
  57. game.Players.LocalPlayer.SimulationRadius = 1e4
  58. v.Humanoid.Health = 0
  59. end
  60. else
  61. if v.Name == "Obsidian" then
  62. game.Players.LocalPlayer.SimulationRadius = 1e4
  63. v.Humanoid.Health = 0
  64. end
  65. end
  66. else
  67. game.Players.LocalPlayer.SimulationRadius = 1e4
  68. v.Humanoid.Health = 0
  69. end
  70. end
  71. end
  72. until workspace.DungeonFolder:FindFirstChild"BossRoom"
  73. wait(3)
  74. for i, v in next, workspace.DungeonFolder:GetDescendants() do
  75. if v:FindFirstChild"Humanoid" then
  76. game.Players.LocalPlayer.SimulationRadius = 1e4
  77. v.Humanoid.Health = 0
  78. end
  79. end
  80. for i,v in pairs(workspace.DungeonFolder:GetDescendants()) do
  81. if v.Name == "Chest" then
  82. for i, x in pairs(v:children()) do
  83. if x:IsA"BasePart" then
  84. x.CanCollide = false
  85. x.Transparency = 0.9
  86. x.Position = game.Players.LocalPlayer.Character.Head.Position
  87. wait(0.035)
  88. x:Destroy()
  89. end
  90. end
  91. end
  92. end
  93. repeat wait(.1) until workspace.DungeonFolder:FindFirstChild"EndRoom"
  94. game.Players.LocalPlayer.Character.HumanoidRootPart.Position = workspace.DungeonFolder.EndRoom.Finish.Position
  95. else
  96. local level = game.Players.LocalPlayer:WaitForChild("leaderstats",15):WaitForChild("Level",15).Value
  97. local create = game:GetService("ReplicatedStorage"):WaitForChild("Remotes",15):WaitForChild("Squads",15).Create
  98. if sell == true then
  99. local count = 1
  100. repeat
  101. wait()
  102. count = count +1
  103. game:GetService("ReplicatedStorage").Remotes.SellItemFeedback:InvokeServer(game.Players.LocalPlayer.UserId.."-"..count)
  104. until count >= 99
  105. end
  106. local function start()
  107. game:GetService("ReplicatedStorage").Remotes.Squads.Start:FireServer()
  108. end
  109. game:GetService("ReplicatedStorage").Remotes.ClaimPrizes:FireServer()
  110. if auto_choose_dungeon == true then
  111. if level <=4 then
  112. create:FireServer("Ancient Jungle", "Easy")
  113. start()
  114. elseif (level >=5 and level <= 9) then
  115. create:FireServer("Ancient Jungle", "Medium")
  116. start()
  117. elseif (level >=10 and level <= 14) then
  118. create:FireServer("Coral Kingdom", "Easy")
  119. start()
  120. elseif (level >=15 and level <= 19) then
  121. create:FireServer("Coral Kingdom", "Medium")
  122. start()
  123. elseif (level >=20 and level <= 24) then
  124. create:FireServer("Crystal Cave", "Easy")
  125. start()
  126. elseif (level >=25 and level <= 29) then
  127. create:FireServer("Crystal Cave", "Medium")
  128. start()
  129. elseif (level >=30 and level <= 34) then
  130. create:FireServer("Crystal Cave", "Hard")
  131. start()
  132. elseif level >=35 then
  133. create:FireServer("Crystal Cave", "Demon")
  134. start()
  135. end
  136. else
  137. create:FireServer(dungeonname, difficulty)
  138. start()
  139. end
  140. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement