TalkToMe

SABER SIMULATOR AUTO FARM

Oct 3rd, 2019
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.43 KB | None | 0 0
  1. local Autofarm = Instance.new("ScreenGui")
  2. local creds = Instance.new("TextLabel")
  3. local status = Instance.new("TextLabel")
  4. Autofarm.Name = "Autofarm"
  5. Autofarm.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
  6. Autofarm.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  7. Autofarm.ResetOnSpawn = false
  8. creds.Name = "creds"
  9. creds.Parent = Autofarm
  10. creds.BackgroundColor3 = Color3.new(1, 1, 1)
  11. creds.BackgroundTransparency = 1
  12. creds.Position = UDim2.new(0.5, -100, 0, 0)
  13. creds.Size = UDim2.new(0, 200, 0, 30)
  14. creds.Font = Enum.Font.SourceSansBold
  15. creds.Text = "Created by JasonJJK (Jas_n#0501)"
  16. creds.TextColor3 = Color3.new(1, 1, 1)
  17. creds.TextSize = 20
  18. creds.TextStrokeTransparency = 0.5
  19. status.Name = "status"
  20. status.Parent = Autofarm
  21. status.BackgroundColor3 = Color3.new(1, 1, 1)
  22. status.BackgroundTransparency = 1
  23. status.Position = UDim2.new(0.5, -100, 0.0351288058, 0)
  24. status.Size = UDim2.new(0, 200, 0, 30)
  25. status.Font = Enum.Font.SourceSansBold
  26. status.Text = "[AUTOFARM]: Started."
  27. status.TextColor3 = Color3.new(1, 1, 1)
  28. status.TextSize = 20
  29. status.TextStrokeTransparency = 0.5
  30.  
  31. for _,v in pairs (game.Players.LocalPlayer.Backpack:GetChildren()) do _G.name = v.Name _G.swingDelay = v.SwingDelay.Value + 0.02 v.Parent = game.Players.LocalPlayer.Character end
  32.  
  33. wait()
  34.  
  35. autofarm = true
  36.  
  37. counter = 0
  38.  
  39. local m = game.Players.LocalPlayer:GetMouse()
  40. m.KeyDown:connect(function(key)
  41. if key == "p" then
  42. if autofarm == true then
  43. autofarm = false
  44. status.Text = "[AUTOFARM]: Stopped autofarm."
  45. else
  46. autofarm = true
  47. status.Text = "[AUTOFARM]: Resumed autofarm."
  48. end
  49. end
  50. end)
  51.  
  52. while wait(_G.swingDelay - 1) do
  53. counter = counter + 1
  54.  
  55. game.Players.LocalPlayer.CharacterAdded:Connect(function()
  56. wait(1)
  57. for _,v in pairs (game.Players.LocalPlayer.Backpack:GetChildren()) do _G.name = v.Name _G.swingDelay = v.SwingDelay.Value + 0.02 v.Parent = game.Players.LocalPlayer.Character end
  58. wait()
  59. autofarm = true
  60. status.Text = "[AUTOFARM]: Fixed autofarm."
  61. end)
  62.  
  63. if autofarm then
  64.  
  65. local plr = game.Players.LocalPlayer.Name
  66. game.Players.LocalPlayer.Character:FindFirstChild(_G.name):FindFirstChild("RemoteClick"):FireServer()
  67. game.ReplicatedStorage.Events.Clicked:FireServer()
  68. game.ReplicatedStorage.Events.UpdateData:InvokeServer()
  69.  
  70. local curTest = game.Players.LocalPlayer.leaderstats.Strength.Value
  71. local curStrength = tostring(curTest)
  72. local maxTest = game.Players.LocalPlayer.PlayerGui.Gui.Home.Sand.Amount.Text
  73. local maxStrength = maxTest:gsub(curStrength.." / ", "")
  74.  
  75. for _,v in pairs (game.Workspace.CoinsHolder:GetChildren()) do
  76. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = v.CFrame
  77. end
  78.  
  79. if counter >= 10 then
  80. local char = game.Players.LocalPlayer.Character.HumanoidRootPart
  81. local pos = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame
  82. char.CFrame = game.Workspace.SellArea.CFrame * CFrame.new(0,10,0)
  83. wait(0.45)
  84. char.CFrame = game.Workspace.SellArea.CFrame * CFrame.new(0,10,0)
  85. wait(0.45)
  86. char.CFrame = pos
  87. counter = 0
  88. end
  89.  
  90. status.Text = "[AUTOFARM]: Sold Strength."
  91.  
  92. game.Players.LocalPlayer.Character.Humanoid.Died:Connect(function()
  93. autofarm = false
  94. status.Text = "[AUTOFARM]: Player died. Resetting autofarm..."
  95. end)
  96.  
  97. end
  98.  
  99. end
Add Comment
Please, Sign In to add comment