SirSaber

Rumble Quest Autofarm

Dec 23rd, 2019
240
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.76 KB | None | 0 0
  1. wait(6)
  2. local Player = game.Players.LocalPlayer
  3. _G.autosell = true --Sells all things except the legendaries and equppeds
  4. local LobbySettnigs =
  5. {
  6. ["Difficulty"] = "Medium", --Easy, Medium, Hard, Expert
  7. ["PartyOnly"] = true,
  8. ["Hardcore"] = true,
  9. ["Location"] = "Frozen Depths"--Cave, Underworld, Frozen Depths
  10. }
  11. spawn(function()
  12. while wait() do
  13. pcall(function()
  14. if game.workspace:FindFirstChild("Lobby") and _G.autosell == true then
  15. Player.Character.HumanoidRootPart.CFrame = CFrame.new(-418.266968, 25.2000008, 408.361694)
  16. for i,v in pairs(game:GetService("Players").LocalPlayer.PlayerGui.ScreenGui.Sell.Sell.Inner.Items.Frame.Items:GetChildren()) do
  17. if v.Name ~= "UIGridLayout" and v.Equipped.Visible == false and v.RarityBackground.Visible == false then
  18. game:GetService("ReplicatedStorage").Modules.Network.RemoteFunction:InvokeServer(unpack{"SellItems", {{"Weapon", ""..v.Name..""}}})
  19. game:GetService("ReplicatedStorage").Modules.Network.RemoteFunction:InvokeServer(unpack{"SellItems", {{"Armor", ""..v.Name..""}}})
  20. game:GetService("ReplicatedStorage").Modules.Network.RemoteFunction:InvokeServer(unpack{"SellItems", {{"Ability", ""..v.Name..""}}})
  21. end
  22. end
  23. end
  24. end)
  25. end
  26. end)
  27. wait(4)
  28. game:GetService('RunService').Stepped:connect(function()
  29. pcall(function()
  30. game.Players.LocalPlayer.Character:findFirstChildOfClass("Humanoid"):ChangeState(11)
  31. end)
  32. end)
  33. function toTarget(pos, targetPos, targetCFrame)
  34. local tween_s = game:service"TweenService"
  35. local info = TweenInfo.new((targetPos - pos).Magnitude/80, Enum.EasingStyle.Quad)
  36. local tic_k = tick()
  37. local tween, err = pcall(function()
  38. local tween = tween_s:Create(Player.Character["HumanoidRootPart"], info, {CFrame = targetCFrame})
  39. tween:Play()
  40. end)
  41. if not tween then return err end
  42. end
  43. spawn(function()
  44. while wait() do
  45. pcall(function()
  46. if game.workspace:FindFirstChild("Lobby") then
  47. local _1 = "CreateLobby"
  48. local vent = game:GetService("ReplicatedStorage").Modules.Network.RemoteFunction
  49. vent:InvokeServer(_1, LobbySettnigs)
  50. wait()
  51. local A1 = "StartDungeon"
  52. local Even = game:GetService("ReplicatedStorage").Modules.Network.RemoteEvent
  53. Even:FireServer(A1)
  54. end
  55. end)
  56. end
  57. end)
  58. while wait() do
  59. pcall(function()
  60. if game.Players.LocalPlayer.Character ~= nil and not game.workspace:FindFirstChild("Lobby") then
  61. local plr = game.Players.LocalPlayer.Character
  62. for i,v in next, plr:GetChildren() do
  63. if v:IsA("Model") then
  64. for i2, v2 in next, game.workspace.Enemies:GetChildren() do
  65. if v2:FindFirstChild("Humanoid") and v2:FindFirstChild("HumanoidRootPart") then
  66. repeat
  67. toTarget(Player.Character.HumanoidRootPart.Position, v2.HumanoidRootPart.Position, v2.HumanoidRootPart.CFrame*CFrame.new(10,-3,0))
  68. local A_1 = "WeaponDamage"
  69. local A_2 = ""..v.Name..""
  70. local A_3 = v2.Humanoid
  71. local Event = game:GetService("ReplicatedStorage").Modules.Network.RemoteEvent
  72. Event:FireServer(A_1, A_2, A_3)
  73. wait()
  74. until v2.Humanoid.Health == 0
  75. end
  76. end
  77. end
  78. end
  79. end
  80. end)
  81. end
Add Comment
Please, Sign In to add comment