You are on page 1of 19

local yPLzG = {["Frame_1"] = Instance.

new("Frame"), ["TextLabel_1"] =
Instance.new("TextLabel"), ["UICorner_1"] = Instance.new("UICorner"), ["Frame_2"] =
Instance.new("Frame"), ["UICorner_2"] = Instance.new("UICorner"), ["TextButton_1"]
= Instance.new("TextButton"), ["Frame_3"] = Instance.new("Frame"), ["UICorner_3"] =
Instance.new("UICorner"), ["UICorner_4"] = Instance.new("UICorner"),
["TextButton_2"] = Instance.new("TextButton"), ["Frame_4"] = Instance.new("Frame"),
["UICorner_5"] = Instance.new("UICorner"), ["LocalScript_1"] =
Instance.new("LocalScript"), ["UICorner_6"] = Instance.new("UICorner"),
["TextButton_3"] = Instance.new("TextButton"), ["Frame_5"] = Instance.new("Frame"),
["UICorner_7"] = Instance.new("UICorner"), ["UICorner_8"] =
Instance.new("UICorner"), ["TextButton_4"] = Instance.new("TextButton"),
["Frame_6"] = Instance.new("Frame"), ["UICorner_9"] = Instance.new("UICorner"),
["UICorner_10"] = Instance.new("UICorner"), ["ScrollingFrame_1"] =
Instance.new("ScrollingFrame"), ["TextButton_5"] = Instance.new("TextButton"),
["Frame_7"] = Instance.new("Frame"), ["UICorner_11"] = Instance.new("UICorner"),
["UIListLayout_1"] = Instance.new("UIListLayout"), ["ScrollingFrame_2"] =
Instance.new("ScrollingFrame"), ["TextButton_6"] = Instance.new("TextButton"),
["Frame_8"] = Instance.new("Frame"), ["UICorner_12"] = Instance.new("UICorner"),
["UIListLayout_2"] = Instance.new("UIListLayout"), ["TextLabel_2"] =
Instance.new("TextLabel"), ["TextLabel_3"] = Instance.new("TextLabel"),
["LocalScript_2"] = Instance.new("LocalScript"), ["LocalScript_3"] =
Instance.new("LocalScript"), ["LocalScript_4"] = Instance.new("LocalScript"),
["LocalScript_5"] = Instance.new("LocalScript"), ["LocalScript_6"] =
Instance.new("LocalScript"), ["ScreenGui_1"] = Instance.new("ScreenGui")}

--

yPLzG.ScreenGui_1.Parent = game.CoreGui

-----------------------------------------------------------------------------------
-----------------

yPLzG.Frame_1.Active = true
yPLzG.Frame_1.BackgroundColor3 = Color3.new(0.235294, 0.235294, 0.235294)
yPLzG.Frame_1.BorderColor3 = Color3.new(0, 0, 0)
yPLzG.Frame_1.BorderSizePixel = 0
yPLzG.Frame_1.Position = UDim2.new(0.309049517, 0, 0.16752103, 0)
yPLzG.Frame_1.Size = UDim2.new(0, 446, 0, 439)
yPLzG.Frame_1.Parent = yPLzG.ScreenGui_1

yPLzG.TextLabel_1.FontFace = Font.new("rbxasset://fonts/families/GothamSSm.json",
Enum.FontWeight.Light, Enum.FontStyle.Normal)
yPLzG.TextLabel_1.Text = [[TREE FARM & ORE FARM]]
yPLzG.TextLabel_1.TextColor3 = Color3.new(0.713726, 0.713726, 0.713726)
yPLzG.TextLabel_1.TextSize = 36
yPLzG.TextLabel_1.BackgroundColor3 = Color3.new(1, 1, 1)
yPLzG.TextLabel_1.BackgroundTransparency = 1
yPLzG.TextLabel_1.BorderColor3 = Color3.new(0, 0, 0)
yPLzG.TextLabel_1.BorderSizePixel = 0
yPLzG.TextLabel_1.Position = UDim2.new(0.0165176392, 0, 0.0179775283, 0)
yPLzG.TextLabel_1.Size = UDim2.new(0, 436, 0, 33)
yPLzG.TextLabel_1.Parent = yPLzG.Frame_1

yPLzG.UICorner_1.Parent = yPLzG.Frame_1

yPLzG.Frame_2.Active = true
yPLzG.Frame_2.BackgroundColor3 = Color3.new(0.156863, 0.156863, 0.156863)
yPLzG.Frame_2.BorderColor3 = Color3.new(0, 0, 0)
yPLzG.Frame_2.BorderSizePixel = 0
yPLzG.Frame_2.Position = UDim2.new(0.053417258, 0, 0.133043289, 0)
yPLzG.Frame_2.Size = UDim2.new(0, 398, 0, 363)
yPLzG.Frame_2.ZIndex = 2
yPLzG.Frame_2.Name = [[Economy Tab]]
yPLzG.Frame_2.Parent = yPLzG.Frame_1

yPLzG.UICorner_2.Parent = yPLzG.Frame_2

yPLzG.TextButton_1.FontFace = Font.new("rbxasset://fonts/families/Roboto.json",
Enum.FontWeight.Medium, Enum.FontStyle.Normal)
yPLzG.TextButton_1.Text = [[Auto Farm Tree]]
yPLzG.TextButton_1.TextColor3 = Color3.new(1, 1, 1)
yPLzG.TextButton_1.TextSize = 16
yPLzG.TextButton_1.BackgroundColor3 = Color3.new(0.956863, 0.247059, 0.247059)
yPLzG.TextButton_1.BorderColor3 = Color3.new(0, 0, 0)
yPLzG.TextButton_1.BorderSizePixel = 0
yPLzG.TextButton_1.Position = UDim2.new(0.0170226358, 0, 0.0243555009, 0)
yPLzG.TextButton_1.Size = UDim2.new(0, 142, 0, 50)
yPLzG.TextButton_1.ZIndex = 2
yPLzG.TextButton_1.Name = [[Auto Farm Tree]]
yPLzG.TextButton_1.Parent = yPLzG.Frame_2

yPLzG.Frame_3.BackgroundColor3 = Color3.new(0.568627, 0, 0)
yPLzG.Frame_3.BorderColor3 = Color3.new(0.117647, 0.117647, 0.117647)
yPLzG.Frame_3.BorderSizePixel = 0
yPLzG.Frame_3.Size = UDim2.new(0, 142, 0, 53)
yPLzG.Frame_3.Name = [[Shadow]]
yPLzG.Frame_3.Parent = yPLzG.TextButton_1

yPLzG.UICorner_3.Parent = yPLzG.Frame_3

yPLzG.UICorner_4.Parent = yPLzG.TextButton_1

yPLzG.TextButton_2.FontFace = Font.new("rbxasset://fonts/families/Roboto.json",
Enum.FontWeight.Medium, Enum.FontStyle.Normal)
yPLzG.TextButton_2.Text = [[Auto Farm Ore]]
yPLzG.TextButton_2.TextColor3 = Color3.new(1, 1, 1)
yPLzG.TextButton_2.TextSize = 16
yPLzG.TextButton_2.BackgroundColor3 = Color3.new(0.956863, 0.247059, 0.247059)
yPLzG.TextButton_2.BorderColor3 = Color3.new(0, 0, 0)
yPLzG.TextButton_2.BorderSizePixel = 0
yPLzG.TextButton_2.Position = UDim2.new(0.622414768, 0, 0.0243555009, 0)
yPLzG.TextButton_2.Size = UDim2.new(0, 142, 0, 50)
yPLzG.TextButton_2.ZIndex = 2
yPLzG.TextButton_2.Name = [[Auto Farm Ore]]
yPLzG.TextButton_2.Parent = yPLzG.Frame_2

yPLzG.Frame_4.BackgroundColor3 = Color3.new(0.568627, 0, 0)
yPLzG.Frame_4.BorderColor3 = Color3.new(0.117647, 0.117647, 0.117647)
yPLzG.Frame_4.BorderSizePixel = 0
yPLzG.Frame_4.Size = UDim2.new(0, 142, 0, 53)
yPLzG.Frame_4.Name = [[Shadow]]
yPLzG.Frame_4.Parent = yPLzG.TextButton_2

yPLzG.UICorner_5.Parent = yPLzG.Frame_4

yPLzG.LocalScript_1.Parent = yPLzG.Frame_4

yPLzG.UICorner_6.Parent = yPLzG.TextButton_2
yPLzG.TextButton_3.FontFace = Font.new("rbxasset://fonts/families/Roboto.json",
Enum.FontWeight.Medium, Enum.FontStyle.Normal)
yPLzG.TextButton_3.Text = [[Whitelist Ore]]
yPLzG.TextButton_3.TextColor3 = Color3.new(1, 1, 1)
yPLzG.TextButton_3.TextSize = 16
yPLzG.TextButton_3.BackgroundColor3 = Color3.new(0.956863, 0.247059, 0.247059)
yPLzG.TextButton_3.BorderColor3 = Color3.new(0, 0, 0)
yPLzG.TextButton_3.BorderSizePixel = 0
yPLzG.TextButton_3.Position = UDim2.new(0.622414768, 0, 0.192399591, 0)
yPLzG.TextButton_3.Size = UDim2.new(0, 142, 0, 50)
yPLzG.TextButton_3.ZIndex = 2
yPLzG.TextButton_3.Name = [[Whitelist Ore]]
yPLzG.TextButton_3.Parent = yPLzG.Frame_2

yPLzG.Frame_5.BackgroundColor3 = Color3.new(0.568627, 0, 0)
yPLzG.Frame_5.BorderColor3 = Color3.new(0.117647, 0.117647, 0.117647)
yPLzG.Frame_5.BorderSizePixel = 0
yPLzG.Frame_5.Size = UDim2.new(0, 142, 0, 53)
yPLzG.Frame_5.Name = [[Shadow]]
yPLzG.Frame_5.Parent = yPLzG.TextButton_3

yPLzG.UICorner_7.Parent = yPLzG.Frame_5

yPLzG.UICorner_8.Parent = yPLzG.TextButton_3

yPLzG.TextButton_4.FontFace = Font.new("rbxasset://fonts/families/Roboto.json",
Enum.FontWeight.Medium, Enum.FontStyle.Normal)
yPLzG.TextButton_4.Text = [[Whitelist Tree]]
yPLzG.TextButton_4.TextColor3 = Color3.new(1, 1, 1)
yPLzG.TextButton_4.TextSize = 16
yPLzG.TextButton_4.BackgroundColor3 = Color3.new(0.956863, 0.247059, 0.247059)
yPLzG.TextButton_4.BorderColor3 = Color3.new(0, 0, 0)
yPLzG.TextButton_4.BorderSizePixel = 0
yPLzG.TextButton_4.Position = UDim2.new(0.0170226134, 0, 0.189644769, 0)
yPLzG.TextButton_4.Size = UDim2.new(0, 142, 0, 50)
yPLzG.TextButton_4.ZIndex = 2
yPLzG.TextButton_4.Name = [[Whitelist Tree]]
yPLzG.TextButton_4.Parent = yPLzG.Frame_2

yPLzG.Frame_6.BackgroundColor3 = Color3.new(0.568627, 0, 0)
yPLzG.Frame_6.BorderColor3 = Color3.new(0.117647, 0.117647, 0.117647)
yPLzG.Frame_6.BorderSizePixel = 0
yPLzG.Frame_6.Size = UDim2.new(0, 142, 0, 53)
yPLzG.Frame_6.Name = [[Shadow]]
yPLzG.Frame_6.Parent = yPLzG.TextButton_4

yPLzG.UICorner_9.Parent = yPLzG.Frame_6

yPLzG.UICorner_10.Parent = yPLzG.TextButton_4

yPLzG.ScrollingFrame_1.CanvasSize = UDim2.new(0, 0, 5, 0)
yPLzG.ScrollingFrame_1.ScrollBarImageColor3 = Color3.new(0, 0, 0)
yPLzG.ScrollingFrame_1.ScrollBarThickness = 5
yPLzG.ScrollingFrame_1.Active = true
yPLzG.ScrollingFrame_1.BackgroundColor3 = Color3.new(1, 1, 1)
yPLzG.ScrollingFrame_1.BackgroundTransparency = 0.8999999761581421
yPLzG.ScrollingFrame_1.BorderColor3 = Color3.new(0, 0, 0)
yPLzG.ScrollingFrame_1.BorderSizePixel = 0
yPLzG.ScrollingFrame_1.Position = UDim2.new(0.0171568636, 0, 0.358127058, 0)
yPLzG.ScrollingFrame_1.Size = UDim2.new(0, 185, 0, 224)
yPLzG.ScrollingFrame_1.ZIndex = 2
yPLzG.ScrollingFrame_1.Name = [[Tree List]]
yPLzG.ScrollingFrame_1.Parent = yPLzG.Frame_2

yPLzG.TextButton_5.FontFace = Font.new("rbxasset://fonts/families/Roboto.json",
Enum.FontWeight.Regular, Enum.FontStyle.Normal)
yPLzG.TextButton_5.Text = [[Tree]]
yPLzG.TextButton_5.TextColor3 = Color3.new(1, 1, 1)
yPLzG.TextButton_5.TextSize = 17
yPLzG.TextButton_5.BackgroundColor3 = Color3.new(0.176471, 0.176471, 0.176471)
yPLzG.TextButton_5.BorderColor3 = Color3.new(0, 0, 0)
yPLzG.TextButton_5.BorderSizePixel = 0
yPLzG.TextButton_5.Position = UDim2.new(0.0351351351, 0, 0.0099175116, 0)
yPLzG.TextButton_5.Size = UDim2.new(0, 169, 0, 50)
yPLzG.TextButton_5.ZIndex = 2
yPLzG.TextButton_5.Name = [[Tree Dummy]]
yPLzG.TextButton_5.Parent = yPLzG.ScrollingFrame_1

yPLzG.Frame_7.BackgroundColor3 = Color3.new(0.509804, 0.509804, 0.509804)


yPLzG.Frame_7.BorderColor3 = Color3.new(0.741176, 0.741176, 0.741176)
yPLzG.Frame_7.BorderSizePixel = 0
yPLzG.Frame_7.Size = UDim2.new(0, 168, 0, 53)
yPLzG.Frame_7.Parent = yPLzG.TextButton_5

yPLzG.UICorner_11.CornerRadius = UDim.new(0, 0)
yPLzG.UICorner_11.Parent = yPLzG.TextButton_5

yPLzG.UIListLayout_1.Padding = UDim.new(0, 8)
yPLzG.UIListLayout_1.HorizontalAlignment = Enum.HorizontalAlignment.Center
yPLzG.UIListLayout_1.SortOrder = Enum.SortOrder.LayoutOrder
yPLzG.UIListLayout_1.Parent = yPLzG.ScrollingFrame_1

yPLzG.ScrollingFrame_2.CanvasSize = UDim2.new(0, 0, 7, 0)
yPLzG.ScrollingFrame_2.ScrollBarImageColor3 = Color3.new(0, 0, 0)
yPLzG.ScrollingFrame_2.ScrollBarThickness = 5
yPLzG.ScrollingFrame_2.Active = true
yPLzG.ScrollingFrame_2.BackgroundColor3 = Color3.new(1, 1, 1)
yPLzG.ScrollingFrame_2.BackgroundTransparency = 0.8999999761581421
yPLzG.ScrollingFrame_2.BorderColor3 = Color3.new(0, 0, 0)
yPLzG.ScrollingFrame_2.BorderSizePixel = 0
yPLzG.ScrollingFrame_2.Position = UDim2.new(0.514705896, 0, 0.358127058, 0)
yPLzG.ScrollingFrame_2.Size = UDim2.new(0, 185, 0, 224)
yPLzG.ScrollingFrame_2.ZIndex = 2
yPLzG.ScrollingFrame_2.Name = [[Ore List]]
yPLzG.ScrollingFrame_2.Parent = yPLzG.Frame_2

yPLzG.TextButton_6.FontFace = Font.new("rbxasset://fonts/families/Roboto.json",
Enum.FontWeight.Regular, Enum.FontStyle.Normal)
yPLzG.TextButton_6.Text = [[Ore]]
yPLzG.TextButton_6.TextColor3 = Color3.new(1, 1, 1)
yPLzG.TextButton_6.TextSize = 17
yPLzG.TextButton_6.BackgroundColor3 = Color3.new(0.176471, 0.176471, 0.176471)
yPLzG.TextButton_6.BorderColor3 = Color3.new(0, 0, 0)
yPLzG.TextButton_6.BorderSizePixel = 0
yPLzG.TextButton_6.Position = UDim2.new(0, 0, 0.00472270558, 0)
yPLzG.TextButton_6.Size = UDim2.new(0, 166, 0, 50)
yPLzG.TextButton_6.ZIndex = 2
yPLzG.TextButton_6.Name = [[Ore Dummy]]
yPLzG.TextButton_6.Parent = yPLzG.ScrollingFrame_2

yPLzG.Frame_8.BackgroundColor3 = Color3.new(0.509804, 0.509804, 0.509804)


yPLzG.Frame_8.BorderColor3 = Color3.new(0.741176, 0.741176, 0.741176)
yPLzG.Frame_8.BorderSizePixel = 0
yPLzG.Frame_8.Size = UDim2.new(0, 166, 0, 53)
yPLzG.Frame_8.Parent = yPLzG.TextButton_6

yPLzG.UICorner_12.CornerRadius = UDim.new(0, 0)
yPLzG.UICorner_12.Parent = yPLzG.TextButton_6

yPLzG.UIListLayout_2.Padding = UDim.new(0, 8)
yPLzG.UIListLayout_2.HorizontalAlignment = Enum.HorizontalAlignment.Center
yPLzG.UIListLayout_2.SortOrder = Enum.SortOrder.LayoutOrder
yPLzG.UIListLayout_2.Parent = yPLzG.ScrollingFrame_2

yPLzG.TextLabel_2.FontFace =
Font.new("rbxasset://fonts/families/SourceSansPro.json", Enum.FontWeight.Regular,
Enum.FontStyle.Normal)
yPLzG.TextLabel_2.TextColor3 = Color3.new(0, 0, 0)
yPLzG.TextLabel_2.TextSize = 14
yPLzG.TextLabel_2.TextTransparency = 1
yPLzG.TextLabel_2.BackgroundColor3 = Color3.new(1, 1, 1)
yPLzG.TextLabel_2.BackgroundTransparency = 1
yPLzG.TextLabel_2.BorderColor3 = Color3.new(0, 0, 0)
yPLzG.TextLabel_2.BorderSizePixel = 0
yPLzG.TextLabel_2.Position = UDim2.new(0, 0, 1.02754819, 0)
yPLzG.TextLabel_2.Size = UDim2.new(0, 200, 0, 50)
yPLzG.TextLabel_2.Name = [[selectedTree]]
yPLzG.TextLabel_2.Parent = yPLzG.Frame_2

yPLzG.TextLabel_3.FontFace =
Font.new("rbxasset://fonts/families/SourceSansPro.json", Enum.FontWeight.Regular,
Enum.FontStyle.Normal)
yPLzG.TextLabel_3.TextColor3 = Color3.new(0, 0, 0)
yPLzG.TextLabel_3.TextSize = 14
yPLzG.TextLabel_3.TextTransparency = 1
yPLzG.TextLabel_3.BackgroundColor3 = Color3.new(1, 1, 1)
yPLzG.TextLabel_3.BackgroundTransparency = 1
yPLzG.TextLabel_3.BorderColor3 = Color3.new(0, 0, 0)
yPLzG.TextLabel_3.BorderSizePixel = 0
yPLzG.TextLabel_3.Position = UDim2.new(0.514705896, 0, 1.030303, 0)
yPLzG.TextLabel_3.Size = UDim2.new(0, 200, 0, 50)
yPLzG.TextLabel_3.Name = [[selectedOre]]
yPLzG.TextLabel_3.Parent = yPLzG.Frame_2

yPLzG.LocalScript_2.Parent = yPLzG.Frame_2

yPLzG.LocalScript_3.Parent = yPLzG.Frame_1

yPLzG.LocalScript_4.Parent = yPLzG.Frame_1

yPLzG.LocalScript_5.Name = [[AnticheatBypass]]
yPLzG.LocalScript_5.Parent = yPLzG.ScreenGui_1

yPLzG.LocalScript_6.Name = [[AntiAfk]]
yPLzG.LocalScript_6.Parent = yPLzG.ScreenGui_1
yPLzG.ScreenGui_1.Name = [[HEHEHE]]
-----------------------------------------------------------------------------------
-----------------

local function LocalScript_1(script)

local Shadow = script.Parent


local Combat = Shadow.Parent
local TweenService = game:GetService("TweenService")
local pressed = false

local ShadowTween = TweenService:Create(


Shadow,
TweenInfo.new(0.5, Enum.EasingStyle.Sine, Enum.EasingDirection.In, 0,
false, 0),
{BackgroundColor3 = Color3.fromRGB(13, 129, 0)}
)

local CombatTween = TweenService:Create(


Combat,
TweenInfo.new(0.5, Enum.EasingStyle.Sine, Enum.EasingDirection.In, 0,
false, 0),
{BackgroundColor3 = Color3.fromRGB(0, 180, 100)}
)

local CombatTweenClick = TweenService:Create(


Combat,
TweenInfo.new(0.5, Enum.EasingStyle.Sine, Enum.EasingDirection.In, 0,
false, 0),
{BackgroundColor3 = Color3.fromRGB(244,63,63)}
)
local ShadowTweenClick = TweenService:Create(
Shadow,
TweenInfo.new(0.5, Enum.EasingStyle.Sine, Enum.EasingDirection.In, 0,
false, 0),
{BackgroundColor3 = Color3.fromRGB(145,0,0)}

Combat.MouseButton1Click:Connect(function()
if not pressed then
pressed = true
CombatTween:Play()
ShadowTween:Play()
wait(0.5)
Combat.BackgroundColor3 = Color3.fromRGB(0, 180, 100)
Shadow.BackgroundColor3 = Color3.fromRGB(13, 129, 0)
else
pressed = false
ShadowTweenClick:Play()
CombatTweenClick:Play()
wait(0.5)
Combat.BackgroundColor3 = Color3.fromRGB(244,63,63)
Shadow.BackgroundColor3 = Color3.fromRGB(145,0,0)
end
end)
end
-----------------------------------------------------------------------------------
-----------------

local function LocalScript_4(script)

local UserInputService = game:GetService("UserInputService")


local gui = script.Parent
local debounce = false

UserInputService.InputBegan:Connect(function(key, Processed)
if Processed then return end
if key.UserInputType == Enum.UserInputType.Keyboard then
if key.UserInputState == Enum.UserInputState.Begin then
if key.KeyCode == Enum.KeyCode.R then
if not debounce then
debounce = true
gui.Visible = true
else
debounce = false
gui.Visible = false
end
end
end
end
end)
end

-----------------------------------------------------------------------------------
-----------------

local function LocalScript_5(script)

for _,v in pairs(game:GetService("Players").LocalPlayer.PlayerScripts["Server


Helpers"]:GetChildren()) do
for _,c in
pairs(getconnections(v:GetPropertyChangedSignal("Disabled"))) do
c:Disable()
end
v.Disabled = true
end
end

-----------------------------------------------------------------------------------
-----------------

local function LocalScript_3(script)

local UserInputService = game:GetService("UserInputService")


local runService = game:GetService("RunService")
local gui = script.Parent
local dragging
local dragInput
local dragStart
local startPos

function Lerp(a, b, m)
return a + (b - a) * m
end;
local lastMousePos
local lastGoalPos
local DRAG_SPEED = (8); -- // The speed of the UI darg.
function Update(dt)
if not (startPos) then return end;
if not (dragging) and (lastGoalPos) then
gui.Position = UDim2.new(startPos.X.Scale,
Lerp(gui.Position.X.Offset, lastGoalPos.X.Offset, dt * DRAG_SPEED),
startPos.Y.Scale, Lerp(gui.Position.Y.Offset, lastGoalPos.Y.Offset, dt *
DRAG_SPEED))
return
end;

local delta = (lastMousePos - UserInputService:GetMouseLocation())


local xGoal = (startPos.X.Offset - delta.X);
local yGoal = (startPos.Y.Offset - delta.Y);
lastGoalPos = UDim2.new(startPos.X.Scale, xGoal, startPos.Y.Scale,
yGoal)
gui.Position = UDim2.new(startPos.X.Scale, Lerp(gui.Position.X.Offset,
xGoal, dt * DRAG_SPEED), startPos.Y.Scale, Lerp(gui.Position.Y.Offset, yGoal, dt *
DRAG_SPEED))
end;

gui.InputBegan:Connect(function(input)
if input.UserInputType == Enum.UserInputType.MouseButton1 or
input.UserInputType == Enum.UserInputType.Touch then
dragging = true
dragStart = input.Position
startPos = gui.Position
lastMousePos = UserInputService:GetMouseLocation()

input.Changed:Connect(function()
if input.UserInputState == Enum.UserInputState.End then
dragging = false
end
end)
end
end)

gui.InputChanged:Connect(function(input)
if input.UserInputType == Enum.UserInputType.MouseMovement or
input.UserInputType == Enum.UserInputType.Touch then
dragInput = input
end
end)

runService.Heartbeat:Connect(Update)

end

-----------------------------------------------------------------------------------
-----------------

local function LocalScript_2(script)

local EconomyTab = script.Parent


local ReplicatedStorage = game:GetService("ReplicatedStorage")
local selectedTree = EconomyTab.selectedTree
local selectedOre = EconomyTab.selectedOre
local TreesFolder = require(ReplicatedStorage.Trees)
local OresFolder = require(ReplicatedStorage.Ores)
local TreeTracker = game.Workspace["Tree Tracker"]
local OreTracker = game.Workspace["Ore Tracker"]
local OreList = EconomyTab["Ore List"]
local TreeList = EconomyTab["Tree List"]
local OresInstance = game.Workspace.Ores_Regular
local AutoFarmOres = EconomyTab["Auto Farm Ore"]
local AutoFarmTrees = EconomyTab["Auto Farm Tree"]
local WhitelistOres = EconomyTab["Whitelist Ore"]
local WhitelistTree = EconomyTab["Whitelist Tree"]
local OreTracker = game.Workspace["Ore Tracker"]
local OreDummy = OreList["Ore Dummy"]
local TreeDummy = TreeList["Tree Dummy"]
local TreesClone = TreeDummy:Clone()
local FrameClone = TreeDummy.Frame:Clone()
local OreClone = OreDummy:Clone()
local RunService = game:GetService("RunService")
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local Communication = ReplicatedStorage:WaitForChild("Communication")
local SellItem = Communication:FindFirstChild("SellTradeItem")
local RequestOreCut_Regular =
Communication:FindFirstChild("RequestOreCut_Regular")
local DepositBankMaterial =
Communication:FindFirstChild("DepositBankMaterial")
local Players = game:GetService("Players")
local player = Players.LocalPlayer
local UIS = game:GetService("UserInputService")
local tree_Farm
local Character = player.Character or player.CharacterAdded:Wait()
local trees
local ores
local ore_Farm
local treeFrame
local pressed = false
local pressed2 = false
_G.Debounce = false
table.insert(TreesFolder, "strong wood")
table.insert(TreesFolder, "wood")

TreesClone.Parent = TreeList
FrameClone.Parent = TreesClone
OreClone.Parent = OreList

for i,tree in pairs(TreesFolder) do


trees = TreesClone:Clone()
for i,v in pairs(trees:GetChildren()) do
if v:IsA("Frame") then
v:Destroy()
end
end
treeFrame = FrameClone:Clone()
trees.Parent = TreeList
treeFrame.Parent = trees
trees.Name = tree
trees.Text = tree
end
TreesClone:Destroy()
FrameClone:Destroy()
TreeDummy:Destroy()

for i,txtbtn in pairs(TreeList:GetChildren()) do


if txtbtn:IsA("TextButton") then
txtbtn.MouseButton1Click:Connect(function()
selectedTree.Name = txtbtn.Name
selectedTree.Text = txtbtn.Name
end)
end
end

for i,ore in pairs(OresFolder) do


ores = OreClone:Clone()
ores.Parent = OreList
ores.Name = ore
ores.Text = ore
end

for i,txtbtn in pairs(OreList:GetChildren()) do


if txtbtn:IsA("TextButton") then
txtbtn.MouseButton1Click:Connect(function()
selectedOre.Name = txtbtn.Name
selectedOre.Text = txtbtn.Name
end)
end
end

OreClone:Destroy()
OreDummy:Destroy()

WhitelistTree.MouseButton1Click:Connect(function()
local TweenService = game:GetService("TweenService")
local function tableFinder()
if table.find(TreesFolder, selectedTree.Text) then
return true
elseif not table.find(TreesFolder, selectedTree.Text) then
return false
end
end

local tableResolver = tableFinder()

if tableResolver then
for i,btn in pairs(TreeList:GetChildren()) do
if btn.Name == selectedTree.Text then
local tableFind = table.find(TreesFolder,
selectedTree.Text)
table.remove(TreesFolder, tableFind)
if btn then
print(btn.Name)
local Shadow =
btn:FindFirstChildWhichIsA("Frame")
local Combat = btn
local ShadowTween = TweenService:Create(
Shadow,
TweenInfo.new(0.5, Enum.EasingStyle.Sine,
Enum.EasingDirection.In, 0, false, 0),
{BackgroundColor3 = Color3.fromRGB(13,
129, 0)}
)
local CombatTween = TweenService:Create(
Combat,
TweenInfo.new(0.5, Enum.EasingStyle.Sine,
Enum.EasingDirection.In, 0, false, 0),
{BackgroundColor3 = Color3.fromRGB(0,
160, 90)}
)
CombatTween:Play()
ShadowTween:Play()
end
end
end
elseif not tableResolver then
for i,btn in pairs(TreeList:GetChildren()) do
if btn:IsA("TextButton") then
if btn.Name == selectedTree.Text then
table.insert(TreesFolder, selectedTree.Text)
for i,v in pairs(TreesFolder) do
print("WHITELISTED TREES: "..v)
end
local Shadow =
btn:FindFirstChildWhichIsA("Frame")
local Combat = btn
local ShadowTween = TweenService:Create(
Shadow,
TweenInfo.new(0.5, Enum.EasingStyle.Sine,
Enum.EasingDirection.In, 0, false, 0),
{BackgroundColor3 = Color3.fromRGB(130,
130, 130)}
)
local CombatTween = TweenService:Create(
Combat,
TweenInfo.new(0.5, Enum.EasingStyle.Sine,
Enum.EasingDirection.In, 0, false, 0),
{BackgroundColor3 = Color3.fromRGB(45,
45, 45)}
)
CombatTween:Play()
ShadowTween:Play()
end
end
end
end
end)

AutoFarmOres.MouseButton1Click:Connect(function()

local Shadow = AutoFarmOres.Shadow


local Combat = AutoFarmOres
local TweenService = game:GetService("TweenService")

local ShadowTween = TweenService:Create(


Shadow,
TweenInfo.new(0.5, Enum.EasingStyle.Sine,
Enum.EasingDirection.In, 0, false, 0),
{BackgroundColor3 = Color3.fromRGB(13, 129, 0)}
)

local CombatTween = TweenService:Create(


Combat,
TweenInfo.new(0.5, Enum.EasingStyle.Sine,
Enum.EasingDirection.In, 0, false, 0),
{BackgroundColor3 = Color3.fromRGB(0, 180, 100)}
)

local CombatTweenClick = TweenService:Create(


Combat,
TweenInfo.new(0.5, Enum.EasingStyle.Sine,
Enum.EasingDirection.In, 0, false, 0),
{BackgroundColor3 = Color3.fromRGB(244,63,63)}
)
local ShadowTweenClick = TweenService:Create(
Shadow,
TweenInfo.new(0.5, Enum.EasingStyle.Sine,
Enum.EasingDirection.In, 0, false, 0),
{BackgroundColor3 = Color3.fromRGB(145,0,0)}

)
if not pressed2 then
local RunService = game:GetService("RunService")
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local Communication =
ReplicatedStorage:WaitForChild("Communication")
local Players = game:GetService("Players")
local player = Players.LocalPlayer
local Character = player.Character or
player.CharacterAdded:Wait()
local InventorySlots =
ReplicatedStorage.Player_Data[player.UserId].Save_Data.inventory_slots.Value
local InventorySpace = Players.LocalPlayer.PlayerGui.main["main
guis"].inventory.holder.left.top.space.txt
local inventory = Players.LocalPlayer.PlayerGui.main["main
guis"].inventory
local MainGuiHandle =
game:GetService("Players").LocalPlayer.PlayerGui.main["main guis"].MainGuiHandle
local holder =
game:GetService("Players").LocalPlayer.PlayerGui.main["main guis"].inventory.holder
local title = inventory.title
local line = inventory.line
local HRP = Character:WaitForChild("HumanoidRootPart")
local LocalPlayer = game:GetService("Players").LocalPlayer
local Character, Humanoid, HumanoidRootPart
local Player = Players.LocalPlayer
HRP.CFrame = CFrame.new(-209, 298, -44)
pressed2 = true
CombatTween:Play()
ShadowTween:Play()
wait(0.5)
Combat.BackgroundColor3 = Color3.fromRGB(0, 180, 100)
Shadow.BackgroundColor3 = Color3.fromRGB(13, 129, 0)
wait(4)
_G.Looping = true
local function automine(part)
local function NewCharacter(Char)
Character = Char
if Char then
HumanoidRootPart =
Char:WaitForChild("HumanoidRootPart")
Humanoid = Char:WaitForChild("Humanoid")
if part:IsA("Part") then
print(part)
local fullPos =
Vector3.new(part.Position.X + 0, part.Position.Y + 5, part.Position.Z + 0)
HumanoidRootPart.CFrame =
CFrame.new(fullPos)
local InventoryHolder =
game:GetService("HttpService"):JSONDecode(game:GetService("ReplicatedStorage").Play
er_Data[game.Players.LocalPlayer.UserId].Save_Data.materials.Value)
if #InventoryHolder ~= InventorySlots and
pressed2 == true and Humanoid then
print(#InventoryHolder)
repeat wait(0.2)
if part ~= nil and
part.Parent ~= nil and HumanoidRootPart ~= nil and Humanoid ~= nil and
Humanoid.Health > 0 then
local orePickedName =
part.Parent.Name
local args =
{
nil,

orePickedName,
"faIse",
false
}

Communication.RequestOreCut_Regular:InvokeServer(unpack(args))
else return end
until part == nil or part.Parent ==
nil or not HumanoidRootPart or not HumanoidRootPart.Parent
elseif #InventoryHolder == InventorySlots
and pressed2 == true and Humanoid and HumanoidRootPart and Humanoid.Health > 0
then
print("Full ,,,
"..#InventoryHolder)
HumanoidRootPart.CFrame =
CFrame.new(75, 382, -134)
HumanoidRootPart.CFrame *=
CFrame.Angles(0, math.rad(-45), 0)
print("False")
HumanoidRootPart.CFrame =
CFrame.new(75, 382, -134)
HumanoidRootPart.CFrame *=
CFrame.Angles(0, math.rad(-45), 0)
for i,v in pairs(InventoryHolder)
do
if table.find(OresFolder,
v.name) then
print("Sold")

SellItem:InvokeServer(v.name, true)
end
end
HumanoidRootPart.CFrame =
CFrame.new(93, 382, 41)
HumanoidRootPart.CFrame *=
CFrame.Angles(0, math.rad(-140), 0)
if (#InventoryHolder > 0) then
for i,v in
pairs(InventoryHolder) do
if not
table.find(OresFolder, v.name) then

DepositBankMaterial:InvokeServer(1, v.name, v.id)


end
end
end
else return end
else return end
end
end
NewCharacter(LocalPlayer.Character)
end
local function UpdateMiner()
if OresFolder and OreTracker and pressed2 == true then
for i,v in ipairs(OreTracker:GetChildren()) do
_G.Looping = true
if v.Adornee and v.Parent ~= nil and
v.Adornee.Parent ~= nil then
print(v.Name)
automine(v.Adornee)
end
end
end
_G.Looping = false
end
UpdateMiner()
while _G.Looping == false do
wait()
UpdateMiner()
end
Players.LocalPlayer.CharacterAdded:Connect(function()
wait(6)
UpdateMiner()
end)
else
pressed2 = false
ShadowTweenClick:Play()
CombatTweenClick:Play()
wait(0.25)
Combat.BackgroundColor3 = Color3.fromRGB(244,63,63)
Shadow.BackgroundColor3 = Color3.fromRGB(145,0,0)
_G.Looping = nil
end
end)

WhitelistOres.MouseButton1Click:Connect(function()
print("UHG")
local TweenService = game:GetService("TweenService")
local function tableFinder()
if table.find(OresFolder, selectedOre.Text) then
return true
elseif not table.find(OresFolder, selectedOre.Text) then
return false
end
end

local tableResolver = tableFinder()

if tableResolver then
for i,btn in pairs(OreList:GetChildren()) do
if btn.Name == selectedOre.Text then
local tableFind = table.find(OresFolder,
selectedOre.Text)
table.remove(OresFolder, tableFind)
if btn then
print(btn.Name)
local Shadow =
btn:FindFirstChildWhichIsA("Frame")
local Combat = btn
local ShadowTween = TweenService:Create(
Shadow,
TweenInfo.new(0.5, Enum.EasingStyle.Sine,
Enum.EasingDirection.In, 0, false, 0),
{BackgroundColor3 = Color3.fromRGB(13,
129, 0)}
)
local CombatTween = TweenService:Create(
Combat,
TweenInfo.new(0.5, Enum.EasingStyle.Sine,
Enum.EasingDirection.In, 0, false, 0),
{BackgroundColor3 = Color3.fromRGB(0,
160, 90)}
)
CombatTween:Play()
ShadowTween:Play()
end
end
end
elseif not tableResolver then
for i,btn in pairs(OreList:GetChildren()) do
if btn:IsA("TextButton") then
if btn.Name == selectedOre.Text then
table.insert(OresFolder, selectedOre.Text)
for i,v in pairs(OresFolder) do
print("WHITELISTED TREES: "..v)
end
local Shadow =
btn:FindFirstChildWhichIsA("Frame")
local Combat = btn
local ShadowTween = TweenService:Create(
Shadow,
TweenInfo.new(0.5, Enum.EasingStyle.Sine,
Enum.EasingDirection.In, 0, false, 0),
{BackgroundColor3 = Color3.fromRGB(130,
130, 130)}
)
local CombatTween = TweenService:Create(
Combat,
TweenInfo.new(0.5, Enum.EasingStyle.Sine,
Enum.EasingDirection.In, 0, false, 0),
{BackgroundColor3 = Color3.fromRGB(45,
45, 45)}
)
CombatTween:Play()
ShadowTween:Play()
end
end
end
else
print('rrrrrr')
end
end)

AutoFarmTrees.MouseButton1Click:Connect(function()

local Shadow = AutoFarmTrees.Shadow


local Combat = AutoFarmTrees
local TweenService = game:GetService("TweenService")

local ShadowTween = TweenService:Create(


Shadow,
TweenInfo.new(0.5, Enum.EasingStyle.Sine,
Enum.EasingDirection.In, 0, false, 0),
{BackgroundColor3 = Color3.fromRGB(13, 129, 0)}
)

local CombatTween = TweenService:Create(


Combat,
TweenInfo.new(0.5, Enum.EasingStyle.Sine,
Enum.EasingDirection.In, 0, false, 0),
{BackgroundColor3 = Color3.fromRGB(0, 180, 100)}
)

local CombatTweenClick = TweenService:Create(


Combat,
TweenInfo.new(0.5, Enum.EasingStyle.Sine,
Enum.EasingDirection.In, 0, false, 0),
{BackgroundColor3 = Color3.fromRGB(244,63,63)}
)
local ShadowTweenClick = TweenService:Create(
Shadow,
TweenInfo.new(0.5, Enum.EasingStyle.Sine,
Enum.EasingDirection.In, 0, false, 0),
{BackgroundColor3 = Color3.fromRGB(145,0,0)}

)
if not pressed then
pressed = true
CombatTween:Play()
ShadowTween:Play()
wait(0.5)
Combat.BackgroundColor3 = Color3.fromRGB(0, 180, 100)
Shadow.BackgroundColor3 = Color3.fromRGB(13, 129, 0)
local RunService = game:GetService("RunService")
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local TreesFolderr = game.Workspace.trees
local Communication =
ReplicatedStorage:WaitForChild("Communication")
local Players = game:GetService("Players")
local player = Players.LocalPlayer
local UIS = game:GetService("UserInputService")
local Character = player.Character or
player.CharacterAdded:Wait()
local InventorySlots =
ReplicatedStorage.Player_Data[player.UserId].Save_Data.inventory_slots.Value
local InventorySpace = Players.LocalPlayer.PlayerGui.main["main
guis"].inventory.holder.left.top.space.txt
local inventory = Players.LocalPlayer.PlayerGui.main["main
guis"].inventory
local MainGuiHandle =
game:GetService("Players").LocalPlayer.PlayerGui.main["main guis"].MainGuiHandle
local holder =
game:GetService("Players").LocalPlayer.PlayerGui.main["main guis"].inventory.holder
local title = inventory.title
local line = inventory.line
local Player = Players.LocalPlayer
local Character, Humanoid, HumanoidRootPart
local LocalPlayer = Players.LocalPlayer
_G.FarmingTree = true
for i,tree in pairs(TreesFolderr:GetChildren()) do
if tree then
for _,xcall in pairs(tree:GetChildren()) do
if xcall.Name == "Tree" then
xcall.CanCollide = false
end
end
end
end
local function AutoChop(part)
local function NewCharacter(Char)
Character = Char
if Char then
HumanoidRootPart =
Char:WaitForChild("HumanoidRootPart")
Humanoid = Char:WaitForChild("Humanoid")
if part:IsA("Part") and part.Name == "base"
then
local fullPos =
Vector3.new(part.Position.X, part.Position.Y + 5, part.Position.Z)
HumanoidRootPart.CFrame =
CFrame.new(fullPos)
local InventoryHolder =
game:GetService("HttpService"):JSONDecode(ReplicatedStorage.Player_Data[game.Player
s.LocalPlayer.UserId].Save_Data.materials.Value)
if #InventoryHolder ~= InventorySlots
and pressed == true and Humanoid and HumanoidRootPart and Humanoid.Health > 0 then
print("True")
print(#InventoryHolder)
repeat wait(0.2)
if part ~= nil and
part.Parent ~= nil and HumanoidRootPart ~= nil and Humanoid ~= nil and
Humanoid.Health > 0 then
local treeName =
part.Parent.Name

Communication:WaitForChild("RequestTreeCut"):InvokeServer(nil, treeName,
"faIse", false)
else return end
until part == nil or part.Parent ==
nil or not HumanoidRootPart or not HumanoidRootPart.Parent
elseif #InventoryHolder == InventorySlots
and pressed == true and Humanoid and HumanoidRootPart and Humanoid.Health > 0 then

print("False")
HumanoidRootPart.CFrame =
CFrame.new(75, 382, -134)
HumanoidRootPart.CFrame *=
CFrame.Angles(0, math.rad(-45), 0)
for i,v in pairs(InventoryHolder)
do
if table.find(TreesFolder,
v.name) then
print("Sold")

SellItem:InvokeServer(v.name, true)
end
end
HumanoidRootPart.CFrame =
CFrame.new(93, 382, 41)
HumanoidRootPart.CFrame *=
CFrame.Angles(0, math.rad(-140), 0)
if (#InventoryHolder > 0) then
for i,v in
pairs(InventoryHolder) do
if not
table.find(TreesFolder, v.name) then

DepositBankMaterial:InvokeServer(1, v.name, v.id)


end
end
end

else return end

else return end


end
end
NewCharacter(LocalPlayer.Character)
end
local function updateTree()
if TreesFolderr and pressed == true then
for i,v in ipairs(TreeTracker:GetChildren()) do
_G.FarmingTree = true
if v.Adornee and v.Parent ~= nil and
v.Adornee.Parent ~= nil then
AutoChop(v.Adornee)
end
end
end
_G.FarmingTree = false
end
updateTree()
while _G.FarmingTree == false do
wait()
updateTree()
end
Players.LocalPlayer.CharacterAdded:Connect(function()
wait(6)
updateTree()
end)
else
pressed = false
ShadowTweenClick:Play()
CombatTweenClick:Play()
wait(0.25)
Combat.BackgroundColor3 = Color3.fromRGB(244,63,63)
Shadow.BackgroundColor3 = Color3.fromRGB(145,0,0)
_G.FarmingTree = nil
end
end)

end

-----------------------------------------------------------------------------------
-----------------

local function LocalScript_6(script)

local vu = game:GetService("VirtualUser")
game:GetService("Players").LocalPlayer.Idled:connect(function()
vu:Button2Down(Vector2.new(0,0),workspace.CurrentCamera.CFrame)
wait(1)
vu:Button2Up(Vector2.new(0,0),workspace.CurrentCamera.CFrame)
end)
end

-----------------------------------------------------------------------------------
-----------------

coroutine.wrap(LocalScript_1)(yPLzG.LocalScript_1)
coroutine.wrap(LocalScript_4)(yPLzG.LocalScript_4)
coroutine.wrap(LocalScript_5)(yPLzG.LocalScript_5)
coroutine.wrap(LocalScript_3)(yPLzG.LocalScript_3)
coroutine.wrap(LocalScript_2)(yPLzG.LocalScript_2)
coroutine.wrap(LocalScript_6)(yPLzG.LocalScript_6)

You might also like