Advertisement
JasonJJK

Saber Simulator

Sep 28th, 2019
525
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 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.     game.Players.LocalPlayer.CharacterAdded:Connect(function()
  54.         wait(1)
  55.         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
  56.         wait()
  57.         autofarm = true
  58.         status.Text = "[AUTOFARM]: Fixed autofarm."
  59.     end)
  60.  
  61.     if autofarm then
  62.  
  63.     local plr = game.Players.LocalPlayer.Name
  64.     game.Players.LocalPlayer.Character:FindFirstChild(_G.name):FindFirstChild("RemoteClick"):FireServer()
  65.     game.ReplicatedStorage.Events.Clicked:FireServer()
  66.     game.ReplicatedStorage.Events.UpdateData:InvokeServer()
  67.  
  68.     local curTest = game.Players.LocalPlayer.leaderstats.Strength.Value
  69.     local curStrength = tostring(curTest)
  70.     local maxTest = game.Players.LocalPlayer.PlayerGui.Gui.Home.Sand.Amount.Text
  71.     local maxStrength = maxTest:gsub(curStrength.." / ", "")
  72.    
  73.     for _,v in pairs (game.Workspace.CoinsHolder:GetChildren()) do
  74.         game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = v.CFrame
  75.     end
  76.  
  77.         if counter >= 10 then
  78.         local char = game.Players.LocalPlayer.Character.HumanoidRootPart
  79.         local pos = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame
  80.         char.CFrame = game.Workspace.SellArea.CFrame * CFrame.new(0,10,0)
  81.         wait(0.45)
  82.         char.CFrame = game.Workspace.SellArea.CFrame * CFrame.new(0,10,0)
  83.         wait(0.45)
  84.         char.CFrame = pos
  85.         counter = 0
  86.         end
  87.  
  88.         counter = counter + 1
  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
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement