Professional Documents
Culture Documents
Message
Message
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.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.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]]
-----------------------------------------------------------------------------------
-----------------
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
-----------------------------------------------------------------------------------
-----------------
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
-----------------------------------------------------------------------------------
-----------------
-----------------------------------------------------------------------------------
-----------------
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;
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
-----------------------------------------------------------------------------------
-----------------
TreesClone.Parent = TreeList
FrameClone.Parent = TreesClone
OreClone.Parent = OreList
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
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()
)
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
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
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()
)
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
end
-----------------------------------------------------------------------------------
-----------------
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)