307 lines
11 KiB
Lua
307 lines
11 KiB
Lua
-- Super Fast Harvest for GaG
|
|
-- เวอร์ชันพิเศษที่เก็บเร็วที่สุด
|
|
|
|
print("⚡ Loading SUPER FAST GaG Harvest...")
|
|
|
|
local ReplicatedStorage = game:GetService("ReplicatedStorage")
|
|
local Players = game:GetService("Players")
|
|
local RunService = game:GetService("RunService")
|
|
|
|
local LocalPlayer = Players.LocalPlayer
|
|
local PlayerGui = LocalPlayer:WaitForChild("PlayerGui")
|
|
|
|
-- ป้องกันการรันซ้ำ
|
|
if _G.SuperFastHarvestLoaded then
|
|
print("⚠️ Super Fast Harvest already loaded!")
|
|
if _G.SuperFastHarvestUI then
|
|
_G.SuperFastHarvestUI:Destroy()
|
|
end
|
|
end
|
|
_G.SuperFastHarvestLoaded = true
|
|
|
|
-- Settings
|
|
local Settings = {
|
|
UltraFastHarvest = false,
|
|
InstantHarvest = false,
|
|
HarvestEverywhere = true
|
|
}
|
|
|
|
-- Game Objects
|
|
local GameEvents = ReplicatedStorage:WaitForChild("GameEvents")
|
|
local Farms = workspace:WaitForChild("Farm")
|
|
|
|
print("✅ Game objects loaded")
|
|
|
|
-- Super Fast Harvest Function
|
|
local function SuperFastHarvest()
|
|
if not Settings.UltraFastHarvest then return end
|
|
|
|
local allPlants = {}
|
|
|
|
-- เก็บจากทุกฟาร์มพร้อมกัน
|
|
local function CollectAllPlants()
|
|
if Settings.HarvestEverywhere then
|
|
for _, Farm in pairs(Farms:GetChildren()) do
|
|
spawn(function()
|
|
local Important = Farm:FindFirstChild("Important")
|
|
if Important then
|
|
local PlantsPhysical = Important:FindFirstChild("Plants_Physical")
|
|
if PlantsPhysical then
|
|
for _, Plant in pairs(PlantsPhysical:GetDescendants()) do
|
|
if Plant:FindFirstChild("ProximityPrompt", true) then
|
|
local Prompt = Plant:FindFirstChild("ProximityPrompt", true)
|
|
if Prompt and Prompt.Enabled then
|
|
table.insert(allPlants, Prompt)
|
|
end
|
|
end
|
|
end
|
|
end
|
|
end
|
|
end)
|
|
end
|
|
end
|
|
end
|
|
|
|
CollectAllPlants()
|
|
wait(0.05) -- รอให้เก็บข้อมูลเสร็จ
|
|
|
|
if #allPlants == 0 then return end
|
|
|
|
local harvested = 0
|
|
|
|
if Settings.InstantHarvest then
|
|
-- โหมด INSTANT - เก็บทั้งหมดทันที
|
|
for _, prompt in pairs(allPlants) do
|
|
spawn(function()
|
|
fireproximityprompt(prompt)
|
|
harvested = harvested + 1
|
|
end)
|
|
end
|
|
else
|
|
-- โหมด ULTRA FAST - เก็บแบบ batch เร็วๆ
|
|
local batchSize = 50
|
|
for i = 1, #allPlants, batchSize do
|
|
spawn(function()
|
|
for j = i, math.min(i + batchSize - 1, #allPlants) do
|
|
if allPlants[j] then
|
|
fireproximityprompt(allPlants[j])
|
|
harvested = harvested + 1
|
|
end
|
|
end
|
|
end)
|
|
end
|
|
end
|
|
|
|
if harvested > 0 then
|
|
print("⚡ SUPER FAST เก็บเกี่ยว " .. harvested .. " ต้น!")
|
|
end
|
|
end
|
|
|
|
-- Create Ultra Simple UI
|
|
local function CreateUI()
|
|
-- Remove old UI
|
|
local oldUI = PlayerGui:FindFirstChild("SuperFastHarvestUI")
|
|
if oldUI then oldUI:Destroy() end
|
|
|
|
-- ScreenGui
|
|
local ScreenGui = Instance.new("ScreenGui")
|
|
ScreenGui.Name = "SuperFastHarvestUI"
|
|
ScreenGui.Parent = PlayerGui
|
|
ScreenGui.ResetOnSpawn = false
|
|
|
|
_G.SuperFastHarvestUI = ScreenGui
|
|
|
|
-- Main Frame
|
|
local MainFrame = Instance.new("Frame")
|
|
MainFrame.Parent = ScreenGui
|
|
MainFrame.BackgroundColor3 = Color3.fromRGB(15, 15, 15)
|
|
MainFrame.BorderColor3 = Color3.fromRGB(255, 0, 0)
|
|
MainFrame.BorderSizePixel = 3
|
|
MainFrame.Position = UDim2.new(0, 50, 0, 300)
|
|
MainFrame.Size = UDim2.new(0, 280, 0, 200)
|
|
MainFrame.Active = true
|
|
MainFrame.Draggable = true
|
|
|
|
-- Glow Effect
|
|
local Corner = Instance.new("UICorner")
|
|
Corner.CornerRadius = UDim.new(0, 10)
|
|
Corner.Parent = MainFrame
|
|
|
|
local Stroke = Instance.new("UIStroke")
|
|
Stroke.Parent = MainFrame
|
|
Stroke.Color = Color3.fromRGB(255, 0, 0)
|
|
Stroke.Thickness = 2
|
|
|
|
-- Title
|
|
local Title = Instance.new("TextLabel")
|
|
Title.Parent = MainFrame
|
|
Title.BackgroundTransparency = 1
|
|
Title.Position = UDim2.new(0, 10, 0, 5)
|
|
Title.Size = UDim2.new(1, -40, 0, 30)
|
|
Title.Font = Enum.Font.SourceSansBold
|
|
Title.Text = "⚡ SUPER FAST HARVEST ⚡"
|
|
Title.TextColor3 = Color3.fromRGB(255, 255, 0)
|
|
Title.TextSize = 16
|
|
Title.TextXAlignment = Enum.TextXAlignment.Left
|
|
|
|
-- Close Button
|
|
local CloseButton = Instance.new("TextButton")
|
|
CloseButton.Parent = MainFrame
|
|
CloseButton.BackgroundColor3 = Color3.fromRGB(255, 0, 0)
|
|
CloseButton.BorderSizePixel = 0
|
|
CloseButton.Position = UDim2.new(1, -30, 0, 5)
|
|
CloseButton.Size = UDim2.new(0, 25, 0, 25)
|
|
CloseButton.Font = Enum.Font.SourceSansBold
|
|
CloseButton.Text = "X"
|
|
CloseButton.TextColor3 = Color3.fromRGB(255, 255, 255)
|
|
CloseButton.TextSize = 14
|
|
|
|
local CloseCorner = Instance.new("UICorner")
|
|
CloseCorner.CornerRadius = UDim.new(0, 5)
|
|
CloseCorner.Parent = CloseButton
|
|
|
|
-- Ultra Fast Toggle
|
|
local UltraButton = Instance.new("TextButton")
|
|
UltraButton.Parent = MainFrame
|
|
UltraButton.BackgroundColor3 = Color3.fromRGB(255, 100, 0)
|
|
UltraButton.BorderSizePixel = 0
|
|
UltraButton.Position = UDim2.new(0, 10, 0, 45)
|
|
UltraButton.Size = UDim2.new(1, -20, 0, 35)
|
|
UltraButton.Font = Enum.Font.SourceSansBold
|
|
UltraButton.Text = "⚡ ULTRA FAST HARVEST: OFF"
|
|
UltraButton.TextColor3 = Color3.fromRGB(255, 255, 255)
|
|
UltraButton.TextSize = 14
|
|
|
|
local UltraCorner = Instance.new("UICorner")
|
|
UltraCorner.CornerRadius = UDim.new(0, 8)
|
|
UltraCorner.Parent = UltraButton
|
|
|
|
-- Instant Toggle
|
|
local InstantButton = Instance.new("TextButton")
|
|
InstantButton.Parent = MainFrame
|
|
InstantButton.BackgroundColor3 = Color3.fromRGB(255, 0, 0)
|
|
InstantButton.BorderSizePixel = 0
|
|
InstantButton.Position = UDim2.new(0, 10, 0, 90)
|
|
InstantButton.Size = UDim2.new(1, -20, 0, 35)
|
|
InstantButton.Font = Enum.Font.SourceSansBold
|
|
InstantButton.Text = "💥 INSTANT HARVEST: OFF"
|
|
InstantButton.TextColor3 = Color3.fromRGB(255, 255, 255)
|
|
InstantButton.TextSize = 14
|
|
|
|
local InstantCorner = Instance.new("UICorner")
|
|
InstantCorner.CornerRadius = UDim.new(0, 8)
|
|
InstantCorner.Parent = InstantButton
|
|
|
|
-- Status
|
|
local StatusLabel = Instance.new("TextLabel")
|
|
StatusLabel.Parent = MainFrame
|
|
StatusLabel.BackgroundColor3 = Color3.fromRGB(20, 20, 20)
|
|
StatusLabel.BorderSizePixel = 0
|
|
StatusLabel.Position = UDim2.new(0, 10, 0, 135)
|
|
StatusLabel.Size = UDim2.new(1, -20, 0, 55)
|
|
StatusLabel.Font = Enum.Font.SourceSans
|
|
StatusLabel.Text = "สถานะ: พร้อมใช้งาน\n⚡ โหมดเร็วสุดๆ !"
|
|
StatusLabel.TextColor3 = Color3.fromRGB(0, 255, 0)
|
|
StatusLabel.TextSize = 12
|
|
StatusLabel.TextYAlignment = Enum.TextYAlignment.Top
|
|
|
|
local StatusCorner = Instance.new("UICorner")
|
|
StatusCorner.CornerRadius = UDim.new(0, 6)
|
|
StatusCorner.Parent = StatusLabel
|
|
|
|
-- Event Handlers
|
|
UltraButton.MouseButton1Click:Connect(function()
|
|
Settings.UltraFastHarvest = not Settings.UltraFastHarvest
|
|
UltraButton.Text = "⚡ ULTRA FAST HARVEST: " .. (Settings.UltraFastHarvest and "ON" or "OFF")
|
|
UltraButton.BackgroundColor3 = Settings.UltraFastHarvest and Color3.fromRGB(0, 255, 0) or Color3.fromRGB(255, 100, 0)
|
|
print("⚡ ULTRA FAST HARVEST: " .. (Settings.UltraFastHarvest and "เปิด" or "ปิด"))
|
|
end)
|
|
|
|
InstantButton.MouseButton1Click:Connect(function()
|
|
Settings.InstantHarvest = not Settings.InstantHarvest
|
|
InstantButton.Text = "💥 INSTANT HARVEST: " .. (Settings.InstantHarvest and "ON" or "OFF")
|
|
InstantButton.BackgroundColor3 = Settings.InstantHarvest and Color3.fromRGB(0, 255, 0) or Color3.fromRGB(255, 0, 0)
|
|
print("💥 INSTANT HARVEST: " .. (Settings.InstantHarvest and "เปิด" or "ปิด"))
|
|
end)
|
|
|
|
CloseButton.MouseButton1Click:Connect(function()
|
|
Settings.UltraFastHarvest = false
|
|
Settings.InstantHarvest = false
|
|
ScreenGui:Destroy()
|
|
_G.SuperFastHarvestLoaded = false
|
|
_G.SuperFastHarvestUI = nil
|
|
print("⚡ ปิด Super Fast Harvest")
|
|
end)
|
|
|
|
-- Status Update
|
|
spawn(function()
|
|
while ScreenGui.Parent do
|
|
local harvestCount = 0
|
|
|
|
-- นับพืชที่เก็บได้
|
|
for _, Farm in pairs(Farms:GetChildren()) do
|
|
local Important = Farm:FindFirstChild("Important")
|
|
if Important then
|
|
local PlantsPhysical = Important:FindFirstChild("Plants_Physical")
|
|
if PlantsPhysical then
|
|
for _, Plant in pairs(PlantsPhysical:GetDescendants()) do
|
|
if Plant:FindFirstChild("ProximityPrompt", true) then
|
|
local Prompt = Plant:FindFirstChild("ProximityPrompt", true)
|
|
if Prompt and Prompt.Enabled then
|
|
harvestCount = harvestCount + 1
|
|
end
|
|
end
|
|
end
|
|
end
|
|
end
|
|
end
|
|
|
|
local mode = "ปิด"
|
|
if Settings.InstantHarvest then
|
|
mode = "💥 INSTANT"
|
|
elseif Settings.UltraFastHarvest then
|
|
mode = "⚡ ULTRA FAST"
|
|
end
|
|
|
|
StatusLabel.Text = string.format(
|
|
"สถานะ: %s\n🚜 พืชที่เก็บได้: %d\n⚡ ความเร็ว: สูงสุด!",
|
|
mode,
|
|
harvestCount
|
|
)
|
|
|
|
wait(0.5) -- อัปเดตเร็วมาก
|
|
end
|
|
end)
|
|
|
|
print("✅ Super Fast UI created!")
|
|
end
|
|
|
|
-- Main Loop (เร็วสุดๆ)
|
|
local function StartSuperLoop()
|
|
spawn(function()
|
|
while _G.SuperFastHarvestLoaded do
|
|
if Settings.UltraFastHarvest or Settings.InstantHarvest then
|
|
pcall(SuperFastHarvest)
|
|
end
|
|
wait(0.1) -- เร็วมากๆ ทุก 0.1 วินาที
|
|
end
|
|
end)
|
|
end
|
|
|
|
-- Initialize
|
|
CreateUI()
|
|
StartSuperLoop()
|
|
|
|
-- Success notification
|
|
game:GetService("StarterGui"):SetCore("SendNotification", {
|
|
Title = "⚡ SUPER FAST HARVEST",
|
|
Text = "โหลดเรียบร้อย! เร็วสุดๆ! ⚡",
|
|
Duration = 3
|
|
})
|
|
|
|
print("✅ Super Fast Harvest loaded!")
|
|
|
|
return {
|
|
Settings = Settings,
|
|
UI = _G.SuperFastHarvestUI
|
|
} |