Advertisement
RDMScript

Untitled

Aug 23rd, 2022
8,575
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.03 KB | None | 0 0
  1. -- Script Made By Babyspiderman#2582
  2. -- UI Library: Blek Library
  3.  
  4. local BlekLib = loadstring(game:HttpGet("https://raw.githubusercontent.com/laderite/bleklib/main/library.lua"))()
  5.  
  6. local win = BlekLib:Create({
  7. Name = "One Punch Fighters",
  8. StartupSound = {
  9. Toggle = true,
  10. SoundID = "rbxassetid://6958727243", -- Win 11 Startup Sound
  11. TimePosition = 1
  12. }
  13. })
  14.  
  15. local maintab = win:Tab('Auto Farm')
  16. local charactertab = win:Tab('Other')
  17. local uitab = win:Tab('UI')
  18.  
  19. maintab:Slider('Area', 1, 1, 7, function(a)
  20. _G.Area = 1 or a
  21. end)
  22.  
  23. maintab:Toggle('Start Auto Farm', function(a)
  24. _G.Farm = a
  25.  
  26. function AutoFarm1()
  27. for i,v in pairs(game:GetService("Workspace")["__GAME"]["__Mobs"]["Area".._G.Area]:GetChildren()) do
  28. if v:FindFirstChild("NpcConfiguration").Health.Value > 0 and _G.Farm then
  29. if (v.NpcModel.HumanoidRootPart.Position-game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.Position).magnitude <= 300 then
  30. repeat wait()
  31. game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.CFrame = v.NpcModel.HumanoidRootPart.CFrame
  32. Target = v
  33. until v.NpcConfiguration.Health.Value <= 0 or _G.Farm == false
  34. end
  35. end
  36. end
  37. end
  38. end)
  39.  
  40. charactertab:Toggle('Auto Punch', function(a)
  41. _G.Puch = a
  42. end)
  43.  
  44. charactertab:Toggle('Auto Collect Reward', function(a)
  45. _G.Collect = a
  46.  
  47. function Collect()
  48. for i,v in pairs(game:GetService("Workspace")["__Cache"]:GetChildren()) do
  49. if v.Name == "CoinsPart" then
  50. if (v.Position-game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.Position).magnitude <= 300 then
  51. game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.CFrame = v.CFrame
  52. end
  53. end
  54. end
  55. end
  56. end)
  57.  
  58. charactertab:Toggle('Auto Punch', function(a)
  59. _G.Puch = a
  60. end)
  61.  
  62. uitab:Button('Destroy GUI', function()
  63. win:Exit()
  64. end)
  65.  
  66. spawn(function()
  67. while task.wait() do
  68. pcall(function()
  69. if _G.Farm then
  70. AutoFarm1()
  71. end
  72. end)
  73. end
  74. end)
  75.  
  76. spawn(function()
  77. while task.wait() do
  78. pcall(function()
  79. if _G.Collect then
  80. Collect()
  81. end
  82. end)
  83. end
  84. end)
  85.  
  86. spawn(function()
  87. while task.wait() do
  88. pcall(function()
  89. if _G.Puch then
  90. local A_1 = "Normal"
  91. game:GetService("ReplicatedStorage").Game["__Remotes"].ClickEvent:FireServer(A_1)
  92. end
  93. end)
  94. end
  95. end)
  96.  
  97. spawn(function()
  98. while task.wait(0.2) do
  99. pcall(function()
  100. if _G.Farm then
  101. local A_1 = "Attack"
  102. local A_2 = Target
  103. game:GetService("ReplicatedStorage").Game["__Remotes"].AttackEvent:FireServer(A_1, A_2)
  104. end
  105. end)
  106. end
  107. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement