local Items = game:GetService("Workspace").Conveyor.Items
local Event = game:GetService("ReplicatedStorage").Remotes.Network.RemoteEvent
local CollectionSpots = Workspace.CollectionSpots
local playercollect = nil
local Buy = game:GetService("ReplicatedStorage").Remotes.Network.RemoteEvent
firesignal(Event.OnClientEvent, "Notify", {
Top = true,
Text = "<b><font color ='#ED401C'>Autofarm</font></b> has been loaded!",
Sound = "Mutate",
})
for _, p in pairs(CollectionSpots:GetChildren()) do
if p:FindFirstChild("MyGardenGui") then
if p:FindFirstChild("MyGardenGui").TextLabel.Text == "My Garden" then
playercollect = p
end
end
end
local function doprox(item)
local character = game.Players.LocalPlayer.Character
local LeftLeg = character:FindFirstChild("HumanoidRootPart")
local motor = character.Torso:FindFirstChild("Neck")
local motor1 = character.Torso:FindFirstChild("Left Hip")
local motor2 = character.Torso:FindFirstChild("Right Hip")
local motor3 = character.Torso:FindFirstChild("Left Shoulder")
local motor4 = character.Torso:FindFirstChild("Right Shoulder")
local prevcameratype = game.Workspace.Camera.CameraType
local prevposition = LeftLeg.CFrame
local primary = item.PrimaryPart
if not primary then
return
end
local itempos = primary.CFrame
if not itempos then
return
end
if motor or motor1 or motor2 or motor3 or motor4 then
motor.Enabled = false
motor1.Enabled = false
motor2.Enabled = false
motor3.Enabled = false
motor4.Enabled = false
end
game.Workspace.Camera.CameraType = Enum.CameraType.Scriptable
LeftLeg.CFrame = itempos
task.wait(0.1)
local prox = item:FindFirstChild("BuyPrompt")
if not prox then
return
end
fireproximityprompt(prox)
task.wait(0.05)
LeftLeg.CFrame = playercollect.CFrame
game.Workspace.Camera.CameraType = prevcameratype
motor.Enabled = true
motor1.Enabled = true
motor2.Enabled = true
motor3.Enabled = true
motor4.Enabled = true
end
task.spawn(function()
while true do
for _, v in pairs(Items:GetChildren()) do
if not v then
return
end
if v:IsA("Model") then
local item: Model = v
if true then
doprox(item)
task.wait()
end
end
end
task.wait()
end
end)
task.spawn(function()
while true do
task.wait(1)
Buy:FireServer(
"PurchaseGearItem",
"Watering Can"
)
Buy:FireServer(
"PurchaseGearItem",
"Fertilizer"
)
Buy:FireServer(
"PurchaseGearItem",
"Sprinkler"
)
Buy:FireServer(
"PurchaseGearItem",
"Better Sprinkler"
)
Buy:FireServer(
"PurchaseGearItem",
"Trowel"
)
Buy:FireServer(
"PurchaseGearItem",
"Collector"
)
Buy:FireServer(
"PurchaseGearItem",
"Copper Rod"
)
Buy:FireServer(
"PurchaseGearItem",
"Tower Sprinkler"
)
Buy:FireServer(
"PurchaseGearItem",
"Golden Watering Can"
)
Buy:FireServer(
"PurchaseGearItem",
"Golden Fertilizer"
)
Buy:FireServer(
"PurchaseGearItem",
"Golden Sprinkler"
)
Buy:FireServer(
"PurchaseGearItem",
"Void Sprinkler"
)
Buy:FireServer(
"PurchaseGearItem",
"Favorite Tool"
)
Buy:FireServer(
"PurchaseGearItem",
"Reclaimer"
)
Event:FireServer(
"PurchaseMixerItem",
"Void Blender"
)
Event:FireServer(
"PurchaseMixerItem",
"Diamond Blender"
)
Event:FireServer(
"PurchaseMixerItem",
"Golden Blender"
)
Event:FireServer(
"PurchaseMixerItem",
"Normal Blender"
)
Event:FireServer(
"PurchaseMixerItem",
"Basic Blender"
)
keyclick(113)
end
end)
Comments
No comments yet
Be the first to share your thoughts!