Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[
- -- How to use:
- --
- -- 1: Once in game, inject your exploit.
- -- 2: Copy & paste this script into your exploit.
- -- 3: Execute and have fun.
- --
- -- To start and stop the auto-farm, just click the button at the middle bottom.
- --]]
- local AutoFarm = Instance.new("ScreenGui")
- AutoFarm.Name = "AutoFarm"
- AutoFarm.Parent = game.Players.LocalPlayer:FindFirstChild("PlayerGui")
- local TextButton = Instance.new("TextButton")
- TextButton.Parent = AutoFarm
- TextButton.AnchorPoint = Vector2.new(0.5, 0)
- TextButton.BackgroundColor3 = Color3.new(0.905882, 0.298039, 0.235294)
- TextButton.BorderColor3 = Color3.new(0.796079, 0.254902, 0.203922)
- TextButton.Position = UDim2.new(0.5, 0, 1, -25)
- TextButton.Size = UDim2.new(0, 250, 0, 25)
- TextButton.AutoButtonColor = false
- TextButton.Font = Enum.Font.SourceSans
- TextButton.Text = "START"
- TextButton.TextColor3 = Color3.new(1, 1, 1)
- TextButton.TextSize = 16
- TextButton.TextStrokeColor3 = Color3.new(0.121569, 0.121569, 0.121569)
- TextButton.TextStrokeTransparency = 0.94999998807907
- local startColor, stopColor = Color3.fromRGB(46, 204, 113), Color3.fromRGB(231, 76, 60)
- local player = game:GetService("Players").LocalPlayer
- local character = player.Character or player.CharacterAdded:wait()
- local progress = player.PlayerGui.Progress.Progress
- local waiting, started
- local ev_Weapon = game:GetService("ReplicatedStorage").Events.Weapon
- local ev_Progress = game:GetService("ReplicatedStorage").Events.Progress
- local ev_Arg = "\229\155\158\229\176\143\228\189\143\228\189\141\229\166\187\229\155\158\227\129\177\229\185\179\229\166\187\232\166\129\230\138\132\227\129\139\228\189\143\227\131\139\227\129\140\229\185\179\227\130\130\229\176\143\227\131\141\229\155\158\227\131\141\230\138\132\230\191\128\227\129\166\227\130\130\227\130\130\229\155\158\230\155\184"
- local function findOwner()
- for _,v in next, workspace.Farms:GetDescendants() do
- if v:IsA("ObjectValue") then
- if v.Value == nil and not workspace.Farms:FindFirstChild(player.Name) then
- v.Parent.Name = player.Name
- player.Character.HumanoidRootPart.CFrame = v.Parent:FindFirstChild("Door").CFrame * CFrame.new(0, 3, 0)
- end
- end
- end
- end
- local function findNearest(obj, dist)
- if type(dist) == "number" then
- if (character.HumanoidRootPart.Position - obj.Position).magnitude <= dist then
- return true
- else
- --// yes no nothing why not
- end
- end
- end
- TextButton.MouseButton1Click:Connect(function()
- started = not started
- TextButton.Text = started and "STOP" or not started and "START"
- game:GetService("TweenService"):Create(TextButton, TweenInfo.new(.5), {
- BackgroundColor3 = not started and startColor or started and stopColor,
- BorderColor3 = not started and Color3.fromRGB(26, 184, 93) or started and Color3.fromRGB(211, 56, 40)
- }
- ):Play()
- end)
- spawn(function()
- if player.PlayerGui:FindFirstChild("Turing") then
- player.PlayerGui:FindFirstChild("Turing"):Destroy()
- end
- if character:FindFirstChild("L_Character") then
- character:FindFirstChild("L_Character"):Destroy()
- end
- findOwner()
- end)
- while game:GetService("RunService").Stepped:wait() do
- if started then
- ev_Weapon:FireServer("self", ev_Arg) ev_Weapon:FireServer(ev_Arg)
- if workspace.Farms:FindFirstChild(player.Name) then
- if #workspace.Farms[player.Name].Diamonds:GetChildren() == 0 then
- waiting = false
- end
- for _,v in next, workspace.Farms[player.Name]:GetChildren() do
- if workspace.Farms[player.Name]:FindFirstChild("Meat") and not waiting then
- character.Humanoid:MoveTo(workspace.Farms[player.Name]:FindFirstChild("Meat").Position)
- end
- end
- for _,v in next, workspace.Farms[player.Name].Diamonds:GetChildren() do
- if v.Name == "Diamond" then
- if findNearest(v, 25) then
- waiting = true
- character.Humanoid:MoveTo(v.Position)
- end
- end
- end
- for _,v in next, workspace.Terrain:GetChildren() do
- if v.Name == "Egg" then
- v.CFrame = character.HumanoidRootPart.CFrame
- end
- end
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement