Advertisement
MegumuSenpai

Demon Slayer Retribution | AutoFarm GUI

Jan 28th, 2020
13,234
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.41 KB | None | 0 0
  1. -- UI Library
  2. local library = loadstring(game:HttpGet("https://pastebin.com/raw/eWKgbdix", true))()
  3.  
  4. -- Main
  5. local w = library:CreateWindow('Demon Slayer')
  6. local cred = library:CreateWindow('Credits')
  7.  
  8. -- Labels
  9. cred:Label('UI: wally')
  10. cred:Label('Dragging: Ririchi')
  11. cred:Label('Scripts: Megumu')
  12.  
  13. -- Section
  14. w:Section('Auto Farm')
  15.  
  16. -- Toggle
  17. w:Toggle('Enabled', {flag = "autofarm"})
  18. w:Toggle('Auto Strength', {flag = "strength"})
  19.  
  20. -- Variables
  21. local player = game:GetService("Players").LocalPlayer
  22. local rs = game:GetService("ReplicatedStorage")
  23.  
  24. -- Button
  25. w:Button("Platform", function()
  26. local plat = Instance.new("Part", workspace)
  27. plat.Size = Vector3.new(100, 2, 100)
  28. plat.Position = Vector3.new(math.random(1000, 9999), 250, math.random(1000, 9999))
  29. plat.Anchored = true
  30. wait(0.25)
  31. player.Character.HumanoidRootPart.CFrame = plat.CFrame + Vector3.new(0, 12, 0)
  32. end)
  33.  
  34. -- NoClip
  35. function noclip()
  36. Stepped = game:GetService('RunService').Stepped:Connect(function()
  37. if player.Character and player.Character:FindFirstChild("Humanoid") and player.Character:FindFirstChild("HumanoidRootPart") then
  38. game.Players.LocalPlayer.Character.Humanoid:ChangeState(11)
  39. end
  40. end)
  41. end
  42.  
  43. -- Strength
  44. spawn(function()
  45. while true do
  46. if w.flags.strength then
  47. game.ReplicatedStorage.StatSystem.Points:FireServer("Strength")
  48. end
  49. wait(0.25)
  50. end
  51. end)
  52.  
  53. -- AutoFarm
  54. while true do
  55. if w.flags.autofarm then
  56. for i,v in pairs(workspace["Npc's"]:GetChildren()) do
  57. if w.flags.autofarm and v:FindFirstChild("HumanoidRootPart") and v:FindFirstChild("Humanoid") and v.Humanoid.Health > 0 then
  58. noclip()
  59. repeat
  60. pcall(function()
  61. v.HumanoidRootPart.Anchored = true
  62. v.HumanoidRootPart.CFrame = player.Character.Sword.Sword.CFrame + Vector3.new(math.random(1,10)/10, math.random(1,10)/10-1, math.random(1,10)/10)
  63. player.Character.EquipScript.SwingEvent:FireServer(true)
  64. end)
  65. wait()
  66. until not w.flags.autofarm or v == nil or v.Parent == nil or not v:FindFirstChild("HumanoidRootPart") or not v:FindFirstChild("Humanoid") or v.Humanoid.Health <= 0
  67. Stepped:Disconnect()
  68. end
  69. end
  70. end
  71. wait()
  72. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement