Advertisement
Lorrypoa

BADDIES SCRIPT (testing)

Oct 3rd, 2024 (edited)
501
-1
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.68 KB | Gaming | 0 1
  1. repeat task.wait() until game:IsLoaded()
  2.  
  3. game.Players.LocalPlayer.Idled:Connect(function()
  4. game:GetService("VirtualUser"):Button2Down(Vector2.new(0, 0), workspace.CurrentCamera.CFrame)
  5. wait(1)
  6. game:GetService("VirtualUser"):Button2Up(Vector2.new(0, 0), workspace.CurrentCamera.CFrame)
  7. end)
  8.  
  9. UserSettings().GameSettings.MasterVolume = 0
  10. game:GetService("RunService"):Set3dRenderingEnabled(Settings.Autofarm.Rendering)
  11. setfpscap(Settings.Autofarm.FPSCap)
  12.  
  13. local Blacklist = {"Cash", "Damageables", "Characters", "AntiPvpArea", "Debris"}
  14. for Index, Folder in ipairs(game.Workspace:GetChildren()) do
  15. if not Folder:IsA("Terrain") then
  16. if Folder:IsA("Folder") and not table.find(Blacklist, Folder.Name) then
  17. Folder:Destroy()
  18. elseif Folder:IsA("BasePart") or Folder:IsA("Model") then
  19. Folder:Destroy()
  20. end
  21. end
  22. end
  23.  
  24. local AntiPvpAreas = game.Workspace:WaitForChild("AntiPvpArea"):GetChildren()
  25. local function CanPvp(Part)
  26. for Index, Area in AntiPvpAreas do
  27. if table.find(game.Workspace:GetPartsInPart(Area), Part) then
  28. return false
  29. else
  30. return true
  31. end
  32. end
  33. end
  34.  
  35. local function GetRegister()
  36. for Index, Register in ipairs(workspace.Damageables:GetChildren()) do
  37. if Register.Name == "ATM" or Register.Name == "CashRegister" and CanPvp(Register:FindFirstChild("Screen")) == true then
  38. if Register:FindFirstChild("Damageable").Value > 0 then
  39. return Register
  40. end
  41. end
  42. end
  43.  
  44. return nil
  45. end
  46.  
  47. local function GetCashNearby()
  48. local Cash = {}
  49. for Index, CashPart in ipairs(workspace.Cash:GetChildren()) do
  50. if CashPart.Name == "Cash" then
  51. table.insert(Cash, CashPart)
  52. end
  53. end
  54.  
  55. return Cash
  56. end
  57.  
  58. while task.wait() do
  59. pcall(function()
  60. local Register = GetRegister()
  61. if Register then
  62. repeat
  63. task.wait()
  64.  
  65. if game.Players.LocalPlayer.Character:GetAttribute("PVP_ENABLED") == false then
  66. game:GetService("ReplicatedStorage"):WaitForChild("Modules"):WaitForChild("Net"):WaitForChild("RE/ChangePVP"):FireServer()
  67. elseif game.Players.LocalPlayer.Character:GetAttribute("PVP_ENABLED") == true then
  68. game:GetService("ReplicatedStorage"):WaitForChild("PUNCHEVENT"):FireServer(1)
  69. end
  70.  
  71. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = Register.Screen.CFrame * CFrame.new(0, 0, 3)
  72. game.Players.LocalPlayer.Character.HumanoidRootPart.Velocity = Vector3.new(0, 0, 0)
  73. until Register:FindFirstChild("Damageable").Value <= 0
  74.  
  75. local CashOnGround = GetCashNearby()
  76. repeat
  77. task.wait()
  78.  
  79. for Index, Cash in pairs(CashOnGround) do
  80. repeat
  81. task.wait()
  82.  
  83. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(Cash.Position - Vector3.new(0, 6, 0))
  84. game.Players.LocalPlayer.Character.HumanoidRootPart.Velocity = Vector3.new(0, 0, 0)
  85.  
  86. if Cash:FindFirstChild("ProximityPrompt") then
  87. fireproximityprompt(Cash.ProximityPrompt)
  88. end
  89. until Cash.Parent == nil
  90. end
  91.  
  92. CashOnGround = GetCashNearby()
  93. until CashOnGround == nil or #CashOnGround == 0
  94. else
  95. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(0, 500, 0)
  96. end
  97. end)
  98. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement