DE_Speedruns

Untitled

Nov 30th, 2023
27
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.47 KB | None | 0 0
  1. _G.AutoFarm_Level = true
  2. _G.FastAttack = true
  3.  
  4.  
  5.  
  6.  
  7.  
  8.  
  9.  
  10.  
  11.  
  12. function checklevel()
  13. local Level = game:GetService("Players").LocalPlayer.Data.Level.Value
  14. if Level == 1 or Level <= 9 then
  15. MON = "Bandit [Lv. 5]"
  16. QUESTTITLE = "Bandit"
  17. QUESTPOS = CFrame.new(1060.0158691406, 16.424287796021, 1547.9769287109)
  18. MONPOS = CFrame.new(1148.8698730469, 16.432844161987, 1630.5396728516)
  19. QUESTNAME = "BanditQuest1"
  20. QUESTNUMBER = 1
  21. SPAWNPOINT = "Default"
  22. SPAWNPOINTPOS = CFrame.new(973.96197509766, 16.273551940918, 1413.2775878906)
  23. end
  24. end
  25. Method = CFrame.new(0,25,0)
  26.  
  27. spawn(function()
  28. while wait(3) do
  29. if Methodnow == 1 then
  30. Methodnow = 2
  31. Method = CFrame.new(0,25,0)
  32. else
  33. Methodnow = 1
  34. Method = CFrame.new(0,0,25)
  35. end
  36. end
  37. end)
  38.  
  39. spawn(function()
  40. while wait() do
  41. if _G.WARP then
  42. game.Players.LocalPlayer.Character.HumanoidRootPart.Anchored = true
  43. else
  44. game.Players.LocalPlayer.Character.HumanoidRootPart.Anchored = false
  45. end
  46. end
  47. end)
  48.  
  49. spawn(function()
  50. game:GetService("RunService").Heartbeat:Connect(function()
  51. if game:GetService("Players").LocalPlayer.Character:FindFirstChild("Humanoid") and _G.AutoFarm_Level then
  52. setfflag("HumanoidParallelRemoveNoPhysics", "False")
  53. setfflag("HumanoidParallelRemoveNoPhysicsNoSimulate2", "False")
  54. game:GetService("Players").LocalPlayer.Character.Humanoid:ChangeState(11)
  55. end
  56. end)
  57. end)
  58.  
  59.  
  60. spawn(function()
  61. while wait() do
  62. if _G.AutoFarm_Level then
  63. pcall(function()
  64. checklevel()
  65.  
  66. if not string.find(game:GetService("Players").LocalPlayer.PlayerGui.Main.Quest.Container.QuestTitle.Title.Text,QUESTTITLE) then
  67. local args = {
  68. [1] = "AbandonQuest"
  69. }
  70. game:GetService("ReplicatedStorage").Remotes.CommF_:InvokeServer(unpack(args))
  71. end
  72. if game:GetService("Players").LocalPlayer.PlayerGui.Main.Quest.Visible == false then
  73.  
  74. if game:GetService("Players").LocalPlayer.Data.SpawnPoint.Value == SPAWNPOINT then
  75. local args = {
  76. [1] = "SetTeam",
  77. [2] = "Pirates"
  78. }
  79. game:GetService("ReplicatedStorage").Remotes.CommF_:InvokeServer(unpack(args))
  80. wait(0.5)
  81. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = QUESTPOS
  82. wait(0.8)
  83. local args = {
  84. [1] = "StartQuest",
  85. [2] = QUESTNAME,
  86. [3] = QUESTNUMBER
  87. }
  88. game:GetService("ReplicatedStorage").Remotes.CommF_:InvokeServer(unpack(args))
  89. wait(0.8)
  90. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = MONPOS
  91. else
  92. _G.WARP = true
  93. repeat
  94. wait()
  95. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = SPAWNPOINTPOS
  96. game:GetService("ReplicatedStorage").Remotes.CommF_:InvokeServer("SetSpawnPoint")
  97. until game:GetService("Players").LocalPlayer.Data.SpawnPoint.Value == SPAWNPOINT or _G.AutoFarm_Level == false
  98. _G.WARP = false
  99. end
  100. end
  101. for i,v in pairs(game:GetService("Workspace").Enemies:GetChildren()) do
  102. for i2,v2 in pairs(game:GetService("Workspace").Enemies:GetChildren()) do
  103. if v.Name == MON and v2.Name == MON then
  104. v2.HumanoidRootPart.CFrame = v.HumanoidRootPart.CFrame
  105. v2.HumanoidRootPart.CanCollide = false
  106. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = v.HumanoidRootPart.CFrame * Method
  107. sethiddenproperty(game.Players.LocalPlayer, "SimulationRadius", math.huge)
  108. end
  109. end
  110. end
  111. end)
  112. end
  113. end
  114. end)
  115.  
  116.  
  117.  
  118. spawn(function()
  119. game:GetService("RunService").RenderStepped:Connect(function()
  120. pcall(function()
  121. if _G.FastAttack and _G.AutoFarm_Level then
  122. local Combat = require(game:GetService("Players").LocalPlayer.PlayerScripts.CombatFramework)
  123. local Cemara = require(game:GetService("Players").LocalPlayer.PlayerScripts.CombatFramework.CameraShaker)
  124. Cemara.CameraShakeInstance.CameraShakeState = {FadingIn = 3, FadingOut = 2, Sustained = 0, Inactive = 1}
  125. Combat.activeController.timeToNextAttack = 0
  126. Combat.activeController.hitboxMagnitude = 120
  127. Combat.activeController.increment = 3
  128. end
  129. end)
  130. end)
  131. end)
  132.  
  133.  
  134. spawn(function()
  135. game:GetService("RunService").RenderStepped:Connect(function()
  136. pcall(function()
  137. if _G.AutoFarm_Level then
  138. game:GetService'VirtualUser':CaptureController()
  139. game:GetService'VirtualUser':Button1Down(Vector2.new(1280, 672))
  140. end
  141. end)
  142. end)
  143. end)
Add Comment
Please, Sign In to add comment