CarMonetCreat

Banning Simulator 2 AutoFarm script

Mar 24th, 2020
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.27 KB | None | 0 0
  1. _G.Toggle = true --True/False
  2. local Player = game:GetService("Players").LocalPlayer
  3.  
  4. --Bonk
  5. while true do
  6. for i,v in pairs(game:GetService("Workspace").Zones.npcSpawn:GetChildren())do
  7. if _G.Toggle and v:FindFirstChild("HumanoidRootPart") and v:FindFirstChildOfClass("Humanoid") then
  8. repeat
  9. pcall(function()
  10. local tool = Player.Character:FindFirstChildOfClass("Tool") or Player.Backpack:FindFirstChildOfClass("Tool")
  11. if tool:FindFirstChild("Damage") then
  12. Player.Character.HumanoidRootPart.CFrame = v.HumanoidRootPart.CFrame*CFrame.new(0,0,3)
  13. Player.Character[tool.Name].Damage:FireServer(v,tool.Name)
  14. if tool.Parent == Player.Character then
  15. tool.Parent = Player.Backpack
  16. end
  17. if tool.Parent == Player.Backpack then
  18. tool.Parent = Player.Character
  19. end
  20. end
  21. end)
  22. wait()
  23. until not _G.Toggle or not v or not v.Parent or not v:FindFirstChild("HumanoidRootPart") or not v:FindFirstChildOfClass("Humanoid")
  24. end
  25. end
  26. wait()
  27. end
Add Comment
Please, Sign In to add comment