Advertisement
thomas13215

Weapon Simulator AutoFarm

Apr 8th, 2019
535
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.32 KB | None | 0 0
  1. --[[
  2. AutoFarm script for Weapon Simulator
  3. Equip your weapon and press execute to start farming, unequip your weapon to stop
  4. This script doesnt work with guns!
  5. --]]
  6.  
  7. local Area = "1" --Put here the area where do you want to farm [1-9] (The area has to be unlocked)
  8.  
  9. if Area == "1" then
  10. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(4.70544526, 3.87829924, 37.5635262)
  11. elseif Area == "2" then
  12. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(4.70544526, 3.87829924, -160.5635262)
  13. elseif Area == "3" then
  14. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(4.70544526, 3.87829924, -350.5635262)
  15. elseif Area == "4" then
  16. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(4.70544526, 3.87829924, -540.5635262)
  17. elseif Area == "5" then
  18. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(4.70544526, 3.87829924, -750.5635262)
  19. elseif Area == "6" then
  20. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(4.70544526, 3.87829924, -950.5635262)
  21. elseif Area == "7" then
  22. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(4.70544526, 3.87829924, -1150.5635262)
  23. elseif Area == "8" then
  24. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(4.70544526, 3.87829924, -1350.5635262)
  25. elseif Area == "9" then
  26. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(4.70544526, 3.87829924, -1550.5635262)
  27. end
  28.  
  29. local function GC()
  30. game.ReplicatedStorage.Events.Money:FireServer("Loot", 40) wait()
  31. game.ReplicatedStorage.Events.Money:FireServer("Loot", 10)
  32. game.ReplicatedStorage.Events.Money:FireServer("Loot", 1)
  33. end
  34.  
  35. local function AF()
  36. while wait() do
  37. for i,v in pairs(game.Workspace.Areas[Area].Mobs:GetChildren()) do
  38. if v.Name == Area or v.Name == Area.."b" then
  39. while v:FindFirstChild("Damage") do
  40. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = v.HumanoidRootPart.CFrame + v.HumanoidRootPart.CFrame.lookVector * -2
  41. game.Players.LocalPlayer.Character.Weapons.Remote:FireServer()
  42. GC()
  43. end
  44. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(-17.6603642, 2.44802189, 138.817398) wait()
  45. if game.Workspace.Camera:FindFirstChild("Heart")then
  46. game.Workspace.Camera:FindFirstChild("Heart"):Destroy()
  47. end
  48. end end end end
  49. wait(1)
  50. AF()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement