Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Autofarm = Instance.new("ScreenGui")
- local creds = Instance.new("TextLabel")
- local status = Instance.new("TextLabel")
- Autofarm.Name = "Autofarm"
- Autofarm.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
- Autofarm.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
- Autofarm.ResetOnSpawn = false
- creds.Name = "creds"
- creds.Parent = Autofarm
- creds.BackgroundColor3 = Color3.new(1, 1, 1)
- creds.BackgroundTransparency = 1
- creds.Position = UDim2.new(0.5, -100, 0, 0)
- creds.Size = UDim2.new(0, 200, 0, 30)
- creds.Font = Enum.Font.SourceSansBold
- creds.Text = "Created by JasonJJK (Jas_n#0501)"
- creds.TextColor3 = Color3.new(1, 1, 1)
- creds.TextSize = 20
- creds.TextStrokeTransparency = 0.5
- status.Name = "status"
- status.Parent = Autofarm
- status.BackgroundColor3 = Color3.new(1, 1, 1)
- status.BackgroundTransparency = 1
- status.Position = UDim2.new(0.5, -100, 0.0351288058, 0)
- status.Size = UDim2.new(0, 200, 0, 30)
- status.Font = Enum.Font.SourceSansBold
- status.Text = "[AUTOFARM]: Started."
- status.TextColor3 = Color3.new(1, 1, 1)
- status.TextSize = 20
- status.TextStrokeTransparency = 0.5
- 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
- wait()
- autofarm = true
- counter = 0
- local m = game.Players.LocalPlayer:GetMouse()
- m.KeyDown:connect(function(key)
- if key == "p" then
- if autofarm == true then
- autofarm = false
- status.Text = "[AUTOFARM]: Stopped autofarm."
- else
- autofarm = true
- status.Text = "[AUTOFARM]: Resumed autofarm."
- end
- end
- end)
- while wait(_G.swingDelay - 1) do
- game.Players.LocalPlayer.CharacterAdded:Connect(function()
- wait(1)
- 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
- wait()
- autofarm = true
- status.Text = "[AUTOFARM]: Fixed autofarm."
- end)
- if autofarm then
- local plr = game.Players.LocalPlayer.Name
- game.Players.LocalPlayer.Character:FindFirstChild(_G.name):FindFirstChild("RemoteClick"):FireServer()
- game.ReplicatedStorage.Events.Clicked:FireServer()
- game.ReplicatedStorage.Events.UpdateData:InvokeServer()
- local curTest = game.Players.LocalPlayer.leaderstats.Strength.Value
- local curStrength = tostring(curTest)
- local maxTest = game.Players.LocalPlayer.PlayerGui.Gui.Home.Sand.Amount.Text
- local maxStrength = maxTest:gsub(curStrength.." / ", "")
- for _,v in pairs (game.Workspace.CoinsHolder:GetChildren()) do
- game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = v.CFrame
- end
- if counter >= 10 then
- local char = game.Players.LocalPlayer.Character.HumanoidRootPart
- local pos = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame
- char.CFrame = game.Workspace.SellArea.CFrame * CFrame.new(0,10,0)
- wait(0.45)
- char.CFrame = game.Workspace.SellArea.CFrame * CFrame.new(0,10,0)
- wait(0.45)
- char.CFrame = pos
- counter = 0
- end
- counter = counter + 1
- status.Text = "[AUTOFARM]: Sold Strength."
- game.Players.LocalPlayer.Character.Humanoid.Died:Connect(function()
- autofarm = false
- status.Text = "[AUTOFARM]: Player died. Resetting autofarm..."
- end)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement