Guest User

Untitled

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