--BROUGHT TO YOU BY RobloxScripter.com!--
--// Toggles
getgenv().CandyFarm = true --// Farms Ghosts, Must Be On Ur Plot.
getgenv().CrateFarm = true --// Collects Crates.
--// Locals
local HumRootPart = game:GetService("Players").LocalPlayer.Character.HumanoidRootPart
local Ghosts = game:GetService("Workspace").Ghosts
--// Functions
local function CollectGhosts()
for i, v in pairs(Ghosts:GetChildren()) do
if v:IsA("Model") and v:FindFirstChildWhichIsA("ClickDetector", true) then
fireclickdetector(v:FindFirstChildWhichIsA("ClickDetector", true))
task.wait(.5)
end
end
end
local function CollectCrates()
for i, v in pairs(game:GetService("Workspace"):GetChildren()) do
if v.Name:match("Crate") then
for i = 1, 10 do
v.CanCollide = false
v.CFrame = HumRootPart.CFrame
task.wait(.1)
end
end
end
end
--// Main Script
spawn(function()
while CandyFarm == true and task.wait(1) do
CollectGhosts()
end
end)
spawn(function()
while CrateFarm == true and task.wait(1) do
CollectCrates()
end
end)