-- [[ Rscripts Risk Notice ]] -- This script is not verified by rscripts.net. Deal with caution. -- -- Stay safe: -- • Never log in on unofficial Roblox sites or lookalike domains. -- • Real Roblox links use roblox.com (check the .com ending). -- • Treat fake Roblox login / "claim reward" pages as phishing. -- [[ End Rscripts Risk Notice ]] local Players = game:GetService("Players") local RunService = game:GetService("RunService") local UserInputService = game:GetService("UserInputService") local TweenService = game:GetService("TweenService") local ReplicatedStorage = game:GetService("ReplicatedStorage") local CoreGui = game:GetService("CoreGui") local LocalPlayer = Players.LocalPlayer pcall(function() if _G.StopAnt then _G.StopAnt() end end) local TargetParent if gethui then TargetParent = gethui() else local success = pcall(function() local _ = CoreGui.Name end) TargetParent = success and CoreGui or LocalPlayer:WaitForChild("PlayerGui") end if TargetParent:FindFirstChild("AntRemotesGui") then TargetParent.AntRemotesGui:Destroy() end --------------------------------------------------------- -- [ المتغيرات والريموتات ] --------------------------------------------------------- local OrbFarmEnabled = false local AutoEvolveEnabled = false local StopFarm = false local IsDead = false local IsEvolvingNow = false local ActiveTween = nil local FloorGuardConn = nil local OrbSpeed = 300 local EvolveDelay = 1.0 local PlayableInset = 75 local HillStepSize = 35 local lastValidGroundY = nil local lastZoneDetectTime = 0 local PlayZone = { MinX = -320, MaxX = 320, MinZ = -320, MaxZ = 320, MinY = -100, MaxY = 240 } local FarmKeybind = Enum.KeyCode.F local EvolveKeybind = Enum.KeyCode.E local InstantEvolveKeybind = Enum.KeyCode.R local AntRemotes = ReplicatedStorage:FindFirstChild("AntRemotes") or ReplicatedStorage:WaitForChild("AntRemotes", 5) local EvolveRemote = AntRemotes and AntRemotes:FindFirstChild("Evolve") --------------------------------------------------------- -- [ إنشاء الواجهة ] --------------------------------------------------------- local ScreenGui = Instance.new("ScreenGui") ScreenGui.Name = "AntRemotesGui" ScreenGui.ResetOnSpawn = false ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling ScreenGui.Parent = TargetParent local MainFrame = Instance.new("Frame") MainFrame.Name = "MainFrame" MainFrame.Size = UDim2.new(0, 300, 0, 340) MainFrame.Position = UDim2.new(0.5, -150, 0.22, 0) MainFrame.BackgroundColor3 = Color3.fromRGB(16, 17, 23) MainFrame.BorderSizePixel = 0 MainFrame.Active = true MainFrame.Draggable = true MainFrame.Parent = ScreenGui Instance.new("UICorner", MainFrame).CornerRadius = UDim.new(0, 14) local UIStroke = Instance.new("UIStroke") UIStroke.Color = Color3.fromRGB(52, 56, 76) UIStroke.Thickness = 1.5 UIStroke.Parent = MainFrame local HeaderFrame = Instance.new("Frame") HeaderFrame.Name = "HeaderFrame" HeaderFrame.Size = UDim2.new(1, 0, 0, 44) HeaderFrame.BackgroundColor3 = Color3.fromRGB(23, 25, 34) HeaderFrame.BorderSizePixel = 0 HeaderFrame.Parent = MainFrame Instance.new("UICorner", HeaderFrame).CornerRadius = UDim.new(0, 14) local HeaderCover = Instance.new("Frame") HeaderCover.Size = UDim2.new(1, 0, 0, 14) HeaderCover.Position = UDim2.new(0, 0, 1, -14) HeaderCover.BackgroundColor3 = Color3.fromRGB(23, 25, 34) HeaderCover.BorderSizePixel = 0 HeaderCover.Parent = HeaderFrame local Title = Instance.new("TextLabel") Title.Name = "Title" Title.Size = UDim2.new(1, -24, 1, 0) Title.Position = UDim2.new(0, 12, 0, 0) Title.BackgroundTransparency = 1 Title.Text = "ANT ORB SCANNER" Title.TextXAlignment = Enum.TextXAlignment.Left Title.TextColor3 = Color3.fromRGB(240, 244, 255) Title.TextSize = 14 Title.Font = Enum.Font.GothamBold Title.Parent = HeaderFrame local Badge = Instance.new("TextLabel") Badge.Name = "Badge" Badge.Size = UDim2.new(0, 82, 0, 22) Badge.Position = UDim2.new(1, -94, 0.5, -11) Badge.BackgroundColor3 = Color3.fromRGB(36, 42, 62) Badge.Text = "HILL SCAN" Badge.TextColor3 = Color3.fromRGB(130, 185, 255) Badge.TextSize = 10 Badge.Font = Enum.Font.GothamBold Badge.Parent = HeaderFrame Instance.new("UICorner", Badge).CornerRadius = UDim.new(0, 6) local FarmBtn = Instance.new("TextButton") FarmBtn.Name = "FarmBtn" FarmBtn.Size = UDim2.new(0.9, 0, 0, 38) FarmBtn.Position = UDim2.new(0.05, 0, 0.165, 0) FarmBtn.BackgroundColor3 = Color3.fromRGB(205, 48, 56) FarmBtn.Text = "Scanner Orbs : OFF [F]" FarmBtn.TextColor3 = Color3.fromRGB(255, 255, 255) FarmBtn.TextSize = 13 FarmBtn.Font = Enum.Font.GothamBold FarmBtn.Parent = MainFrame Instance.new("UICorner", FarmBtn).CornerRadius = UDim.new(0, 9) local AutoEvolveBtn = Instance.new("TextButton") AutoEvolveBtn.Name = "AutoEvolveBtn" AutoEvolveBtn.Size = UDim2.new(0.9, 0, 0, 38) AutoEvolveBtn.Position = UDim2.new(0.05, 0, 0.295, 0) AutoEvolveBtn.BackgroundColor3 = Color3.fromRGB(205, 48, 56) AutoEvolveBtn.Text = "Auto Evolve : OFF [E]" AutoEvolveBtn.TextColor3 = Color3.fromRGB(255, 255, 255) AutoEvolveBtn.TextSize = 13 AutoEvolveBtn.Font = Enum.Font.GothamBold AutoEvolveBtn.Parent = MainFrame Instance.new("UICorner", AutoEvolveBtn).CornerRadius = UDim.new(0, 9) local EvolveOnceBtn = Instance.new("TextButton") EvolveOnceBtn.Name = "EvolveOnceBtn" EvolveOnceBtn.Size = UDim2.new(0.9, 0, 0, 38) EvolveOnceBtn.Position = UDim2.new(0.05, 0, 0.425, 0) EvolveOnceBtn.BackgroundColor3 = Color3.fromRGB(32, 128, 215) EvolveOnceBtn.Text = "Evolve Now [R]" EvolveOnceBtn.TextColor3 = Color3.fromRGB(255, 255, 255) EvolveOnceBtn.TextSize = 13 EvolveOnceBtn.Font = Enum.Font.GothamBold EvolveOnceBtn.Parent = MainFrame Instance.new("UICorner", EvolveOnceBtn).CornerRadius = UDim.new(0, 9) local StatusLabel = Instance.new("TextLabel") StatusLabel.Name = "StatusLabel" StatusLabel.Size = UDim2.new(0.9, 0, 0, 30) StatusLabel.Position = UDim2.new(0.05, 0, 0.56, 0) StatusLabel.BackgroundColor3 = Color3.fromRGB(22, 24, 33) StatusLabel.Text = EvolveRemote and "Status: Ready (Direct Hill Scan)" or "Status: No Evolve Remote" StatusLabel.TextColor3 = EvolveRemote and Color3.fromRGB(85, 225, 130) or Color3.fromRGB(245, 95, 95) StatusLabel.TextSize = 11 StatusLabel.Font = Enum.Font.GothamMedium StatusLabel.Parent = MainFrame Instance.new("UICorner", StatusLabel).CornerRadius = UDim.new(0, 8) local StatusStroke = Instance.new("UIStroke") StatusStroke.Color = Color3.fromRGB(38, 42, 58) StatusStroke.Thickness = 1 StatusStroke.Parent = StatusLabel local SpeedLabel = Instance.new("TextLabel") SpeedLabel.Size = UDim2.new(0.43, 0, 0, 16) SpeedLabel.Position = UDim2.new(0.05, 0, 0.675, 0) SpeedLabel.BackgroundTransparency = 1 SpeedLabel.Text = "MOVE SPEED" SpeedLabel.TextColor3 = Color3.fromRGB(135, 142, 168) SpeedLabel.TextSize = 10 SpeedLabel.Font = Enum.Font.GothamBold SpeedLabel.Parent = MainFrame local DelayLabel = Instance.new("TextLabel") DelayLabel.Size = UDim2.new(0.43, 0, 0, 16) DelayLabel.Position = UDim2.new(0.52, 0, 0.675, 0) DelayLabel.BackgroundTransparency = 1 DelayLabel.Text = "EVOLVE DELAY" DelayLabel.TextColor3 = Color3.fromRGB(135, 142, 168) DelayLabel.TextSize = 10 DelayLabel.Font = Enum.Font.GothamBold DelayLabel.Parent = MainFrame local SpeedInput = Instance.new("TextBox") SpeedInput.Name = "SpeedInput" SpeedInput.Size = UDim2.new(0.43, 0, 0, 34) SpeedInput.Position = UDim2.new(0.05, 0, 0.725, 0) SpeedInput.BackgroundColor3 = Color3.fromRGB(25, 27, 38) SpeedInput.Text = tostring(OrbSpeed) SpeedInput.TextColor3 = Color3.fromRGB(225, 230, 245) SpeedInput.TextSize = 12 SpeedInput.Font = Enum.Font.GothamBold SpeedInput.ClearTextOnFocus = false SpeedInput.Parent = MainFrame Instance.new("UICorner", SpeedInput).CornerRadius = UDim.new(0, 8) local SpeedInputStroke = Instance.new("UIStroke") SpeedInputStroke.Color = Color3.fromRGB(45, 49, 68) SpeedInputStroke.Thickness = 1 SpeedInputStroke.Parent = SpeedInput local DelayInput = Instance.new("TextBox") DelayInput.Name = "DelayInput" DelayInput.Size = UDim2.new(0.43, 0, 0, 34) DelayInput.Position = UDim2.new(0.52, 0, 0.725, 0) DelayInput.BackgroundColor3 = Color3.fromRGB(25, 27, 38) DelayInput.Text = tostring(EvolveDelay) .. "s" DelayInput.TextColor3 = Color3.fromRGB(225, 230, 245) DelayInput.TextSize = 12 DelayInput.Font = Enum.Font.GothamBold DelayInput.ClearTextOnFocus = false DelayInput.Parent = MainFrame Instance.new("UICorner", DelayInput).CornerRadius = UDim.new(0, 8) local DelayInputStroke = Instance.new("UIStroke") DelayInputStroke.Color = Color3.fromRGB(45, 49, 68) DelayInputStroke.Thickness = 1 DelayInputStroke.Parent = DelayInput local CreditsLabel = Instance.new("TextLabel") CreditsLabel.Name = "Credits" CreditsLabel.Size = UDim2.new(1, 0, 0, 22) CreditsLabel.Position = UDim2.new(0, 0, 0.905, 0) CreditsLabel.BackgroundTransparency = 1 CreditsLabel.Text = "by 7s31 and gemini" CreditsLabel.TextColor3 = Color3.fromRGB(115, 122, 145) CreditsLabel.TextSize = 11 CreditsLabel.Font = Enum.Font.GothamMedium CreditsLabel.Parent = MainFrame --------------------------------------------------------- -- [ كشف مساحة اللعب بتخزين مؤقت ] --------------------------------------------------------- local function isHighObstacleName(nameLower) return string.find(nameLower, "tree", 1, true) or string.find(nameLower, "leaf", 1, true) or string.find(nameLower, "leaves", 1, true) or string.find(nameLower, "foliage", 1, true) or string.find(nameLower, "flower", 1, true) or string.find(nameLower, "mushroom", 1, true) or string.find(nameLower, "sunflower", 1, true) or string.find(nameLower, "cloud", 1, true) or string.find(nameLower, "sky", 1, true) end local function detectPlayZone(force) local now = os.clock() if not force and (now - lastZoneDetectTime) < 6 then return end lastZoneDetectTime = now local minX, maxX = math.huge, -math.huge local minZ, maxZ = math.huge, -math.huge local minY, maxY = math.huge, -math.huge local foundAny = false for _, obj in ipairs(workspace:GetChildren()) do if obj:IsA("BasePart") and obj.Anchored then local n = string.lower(obj.Name) if not isHighObstacleName(n) and not string.find(n, "orb", 1, true) and not string.find(n, "drop", 1, true) and not string.find(n, "barrier", 1, true) and not string.find(n, "border", 1, true) and not string.find(n, "edge", 1, true) and not string.find(n, "wall", 1, true) and not string.find(n, "kill", 1, true) and (obj.Size.X > 16 or obj.Size.Z > 16) then foundAny = true minX = math.min(minX, obj.Position.X - (obj.Size.X * 0.5)) maxX = math.max(maxX, obj.Position.X + (obj.Size.X * 0.5)) minZ = math.min(minZ, obj.Position.Z - (obj.Size.Z * 0.5)) maxZ = math.max(maxZ, obj.Position.Z + (obj.Size.Z * 0.5)) minY = math.min(minY, obj.Position.Y - (obj.Size.Y * 0.5)) maxY = math.max(maxY, obj.Position.Y + (obj.Size.Y * 0.5)) end end end if foundAny and minX < maxX and minZ < maxZ then local spanX = maxX - minX local spanZ = maxZ - minZ local insetX = math.min(PlayableInset, spanX * 0.18) local insetZ = math.min(PlayableInset, spanZ * 0.18) PlayZone.MinX = minX + insetX PlayZone.MaxX = maxX - insetX PlayZone.MinZ = minZ + insetZ PlayZone.MaxZ = maxZ - insetZ PlayZone.MinY = minY PlayZone.MaxY = math.min(maxY + 45, 260) end end local function clampInsidePlayZoneXZ(x, z) return math.clamp(x, PlayZone.MinX, PlayZone.MaxX), math.clamp(z, PlayZone.MinZ, PlayZone.MaxZ) end local function isInsidePlayZone(pos) return pos.X >= PlayZone.MinX and pos.X <= PlayZone.MaxX and pos.Z >= PlayZone.MinZ and pos.Z <= PlayZone.MaxZ and pos.Y >= (PlayZone.MinY - 15) and pos.Y <= PlayZone.MaxY end --------------------------------------------------------- -- [ تطوير النملة بدون كسر دورة المسح ] --------------------------------------------------------- local function triggerEvolve() if IsEvolvingNow then return false end IsEvolvingNow = true if not EvolveRemote then local r = ReplicatedStorage:FindFirstChild("AntRemotes") EvolveRemote = r and r:FindFirstChild("Evolve") end if not EvolveRemote then IsEvolvingNow = false return false end local ch = LocalPlayer.Character local hrp = ch and ch:FindFirstChild("HumanoidRootPart") local prevAnchored = hrp and hrp.Anchored or false if hrp then hrp.AssemblyLinearVelocity = Vector3.zero hrp.AssemblyAngularVelocity = Vector3.zero hrp.Anchored = true end local ok = pcall(function() EvolveRemote:InvokeServer() end) if hrp and hrp.Parent then hrp.Anchored = prevAnchored hrp.AssemblyLinearVelocity = Vector3.zero hrp.AssemblyAngularVelocity = Vector3.zero end IsEvolvingNow = false return ok end --------------------------------------------------------- -- [ قياس حجم النملة وحساب الهضبات بدقة ] --------------------------------------------------------- local function getAntScale(ch) if not ch then return 1 end local scale = 1 local attrScale = ch:GetAttribute("Scale") or ch:GetAttribute("AntScale") or ch:GetAttribute("Size") if type(attrScale) == "number" and attrScale > 0 then scale = attrScale end local hum = ch:FindFirstChildOfClass("Humanoid") if hum then local bodyScale = hum:FindFirstChild("BodyHeightScale") or hum:FindFirstChild("BodyProportionScale") if bodyScale and bodyScale:IsA("NumberValue") and bodyScale.Value > 0 then scale = math.max(scale, bodyScale.Value) end if hum.HipHeight and hum.HipHeight > 0 then scale = math.max(scale, hum.HipHeight / 2) end end local hrp = ch:FindFirstChild("HumanoidRootPart") if hrp and hrp:IsA("BasePart") then local sizeScale = hrp.Size.Y / 2 if sizeScale > 0.1 then scale = math.max(scale, sizeScale) end end return math.clamp(scale, 0.15, 25) end local function getAntGroundOffset(ch) if not ch then return 0.8 end local scale = getAntScale(ch) local hum = ch:FindFirstChildOfClass("Humanoid") local hrp = ch:FindFirstChild("HumanoidRootPart") local halfRoot = hrp and (hrp.Size.Y * 0.5) or (0.5 * scale) local hipHeight = (hum and hum.HipHeight > 0) and hum.HipHeight or (0.35 * scale) local exactFootDist = halfRoot + hipHeight local tinyMargin = math.clamp(0.15 * scale, 0.08, 1.2) return math.max(exactFootDist + tinyMargin, 0.35 * scale) end local function isValidGroundHit(hit) if not hit or not hit.Instance then return false end if hit.Position.Y <= -550 then return false end if hit.Normal.Y < 0.35 then return false end if hit.Instance:IsA("BasePart") then local n = string.lower(hit.Instance.Name) if isHighObstacleName(n) or string.find(n, "orb", 1, true) or string.find(n, "drop", 1, true) or string.find(n, "barrier", 1, true) or string.find(n, "kill", 1, true) then return false end end return true end local function castSingleGroundRay(x, z, folder, refY) local cx, cz = clampInsidePlayZoneXZ(x, z) local ch = LocalPlayer.Character local scale = getAntScale(ch) local rp = RaycastParams.new() local ignore = {} if ch then table.insert(ignore, ch) end if folder then table.insert(ignore, folder) end rp.FilterDescendantsInstances = ignore rp.FilterType = Enum.RaycastFilterType.Exclude local startY = refY and math.clamp(refY + math.max(55, 22 * scale), 35, 240) or 140 local hit = workspace:Raycast(Vector3.new(cx, startY, cz), Vector3.new(0, -450, 0), rp) if isValidGroundHit(hit) then return hit.Position.Y end return nil end local function sampleHillHeight(x, z, folder, refY) local cx, cz = clampInsidePlayZoneXZ(x, z) local ch = LocalPlayer.Character local scale = getAntScale(ch) local probe = math.clamp(1.2 * scale, 0.8, 6.0) local offsets = { {0, 0}, {probe, 0}, {-probe, 0}, {0, probe}, {0, -probe} } local highestGround = nil for _, pair in ipairs(offsets) do local y = castSingleGroundRay(cx + pair[1], cz + pair[2], folder, refY) if y and (not highestGround or y > highestGround) then highestGround = y end end if highestGround then lastValidGroundY = highestGround return highestGround end return lastValidGroundY end local function getStraightTargetPosition(orbPos, folder, currentY) local cx, cz = clampInsidePlayZoneXZ(orbPos.X, orbPos.Z) local ch = LocalPlayer.Character local scale = getAntScale(ch) local offset = getAntGroundOffset(ch) local groundY = sampleHillHeight(cx, cz, folder, currentY or orbPos.Y) local targetY = orbPos.Y if groundY then local minFloorY = groundY + offset local maxHover = math.max(1.2, 2.0 * scale) targetY = math.clamp(orbPos.Y, minFloorY, minFloorY + maxHover) end return Vector3.new(cx, math.clamp(targetY, PlayZone.MinY + 0.5, PlayZone.MaxY), cz) end --------------------------------------------------------- -- [ فحص المجلد بدون خطوة التأكد الإضافية ] --------------------------------------------------------- local function getOrbFolder() return workspace:FindFirstChild("ClientOrbs") or workspace:FindFirstChild("Orbs") or workspace:FindFirstChild("Drops") end local function isOrbObject(obj) if not obj or not obj.Parent then return false end local n = string.lower(obj.Name) return string.find(n, "orb", 1, true) or string.find(n, "drop", 1, true) or string.find(n, "gem", 1, true) or string.find(n, "food", 1, true) end local function getPart(o) if o:IsA("BasePart") then return o end if o:IsA("Model") then if o.PrimaryPart and o.PrimaryPart:IsA("BasePart") then return o.PrimaryPart end for _, p in ipairs(o:GetChildren()) do if p:IsA("BasePart") and p.Position.Y > -600 and p.Position.Magnitude > 1 then return p end end end return nil end local function scanWholeFolder(folder) local list = folder and folder:GetChildren() or workspace:GetChildren() local orbs = {} for _, obj in ipairs(list) do if not OrbFarmEnabled or StopFarm or IsDead then break end if obj.Parent and (folder or isOrbObject(obj)) then if obj:IsA("Model") or obj:IsA("BasePart") then local pt = getPart(obj) if pt and pt.Parent and pt.Position.Y > -600 and isInsidePlayZone(pt.Position) then table.insert(orbs, pt) end end end end return orbs end local function setFloorGuard(on) if FloorGuardConn then FloorGuardConn:Disconnect() FloorGuardConn = nil end if on then local lastGuardCheck = 0 FloorGuardConn = RunService.Heartbeat:Connect(function() if not OrbFarmEnabled or StopFarm or IsDead or IsEvolvingNow then return end local now = os.clock() if (now - lastGuardCheck) < 0.08 then return end lastGuardCheck = now local ch = LocalPlayer.Character local hrp = ch and ch:FindFirstChild("HumanoidRootPart") if not ch or not hrp or hrp.Anchored then return end local folder = getOrbFolder() local offset = getAntGroundOffset(ch) local scale = getAntScale(ch) local cx, cz = clampInsidePlayZoneXZ(hrp.Position.X, hrp.Position.Z) local groundY = sampleHillHeight(cx, cz, folder, hrp.Position.Y) local outsidePlayZone = (math.abs(hrp.Position.X - cx) > 0.2) or (math.abs(hrp.Position.Z - cz) > 0.2) if groundY then local minY = groundY + offset - (0.25 * scale) local maxY = groundY + offset + math.max(2.0, 2.8 * scale) if outsidePlayZone or hrp.Position.Y < minY or hrp.Position.Y > maxY then hrp.AssemblyLinearVelocity = Vector3.zero hrp.CFrame = CFrame.new(cx, groundY + offset, cz) * hrp.CFrame.Rotation end elseif outsidePlayZone then hrp.AssemblyLinearVelocity = Vector3.zero hrp.CFrame = CFrame.new(cx, math.clamp(hrp.Position.Y, 5, 60), cz) * hrp.CFrame.Rotation end end) end end local function resetCharacterState() setFloorGuard(false) local ch = LocalPlayer.Character if ch then local hrp = ch:FindFirstChild("HumanoidRootPart") local hum = ch:FindFirstChildOfClass("Humanoid") if hrp then hrp.Anchored = false if hrp:FindFirstChild("AntBV") then hrp.AntBV:Destroy() end hrp.AssemblyLinearVelocity = Vector3.zero end if hum then hum.PlatformStand = false end end end local function tweenToPoint(hrp, goalPos) if not hrp or not hrp.Parent or IsDead or hrp.Anchored then return end local diff = goalPos - hrp.Position local dist = diff.Magnitude if dist <= 0.05 then return end local dur = math.max(dist / math.max(OrbSpeed, 10), 0.01) local lookDir = Vector3.new(diff.X, 0, diff.Z) local goalCF = lookDir.Magnitude > 0.05 and CFrame.lookAt(goalPos, goalPos + lookDir.Unit) or CFrame.new(goalPos) * hrp.CFrame.Rotation ActiveTween = TweenService:Create( hrp, TweenInfo.new(dur, Enum.EasingStyle.Linear, Enum.EasingDirection.Out), {CFrame = goalCF} ) ActiveTween:Play() ActiveTween.Completed:Wait() ActiveTween = nil end local function moveStraightToOrb(hrp, orbPos, folder) if not hrp or not hrp.Parent or IsDead then return end while IsEvolvingNow and OrbFarmEnabled and not StopFarm do RunService.Heartbeat:Wait() end if hrp.Anchored or not hrp.Parent then return end local finalGoal = getStraightTargetPosition(orbPos, folder, hrp.Position.Y) local startPos = hrp.Position local totalDist = (finalGoal - startPos).Magnitude if totalDist <= HillStepSize then tweenToPoint(hrp, finalGoal) return end local steps = math.ceil(totalDist / HillStepSize) for i = 1, steps do if not OrbFarmEnabled or StopFarm or IsDead or not hrp.Parent then break end local alpha = i / steps local lerpPoint = startPos:Lerp(orbPos, alpha) local adjustedPoint = getStraightTargetPosition(lerpPoint, folder, hrp.Position.Y) tweenToPoint(hrp, adjustedPoint) end end local function startScannerLoop() StopFarm = false detectPlayZone(true) while OrbFarmEnabled and not StopFarm and not IsDead do detectPlayZone(false) local ch = LocalPlayer.Character local hrp = ch and ch:FindFirstChild("HumanoidRootPart") local hum = ch and ch:FindFirstChildOfClass("Humanoid") if not ch or not ch.Parent or not hrp or not hum or hum.Health <= 0 then RunService.Heartbeat:Wait() else local folder = getOrbFolder() hum.PlatformStand = true local bv = hrp:FindFirstChild("AntBV") or Instance.new("BodyVelocity", hrp) bv.Name = "AntBV" bv.Velocity = Vector3.zero bv.MaxForce = Vector3.new(math.huge, math.huge, math.huge) local orbs = scanWholeFolder(folder) local total = #orbs if total > 0 then for idx, pt in ipairs(orbs) do if not OrbFarmEnabled or StopFarm or IsDead or not ch.Parent or not hrp.Parent then break end if pt and pt.Parent and pt.Position.Y > -600 and isInsidePlayZone(pt.Position) then StatusLabel.Text = "Status: Hill Scan (" .. idx .. "/" .. total .. ")" StatusLabel.TextColor3 = Color3.fromRGB(85, 225, 130) moveStraightToOrb(hrp, pt.Position, folder) end end else RunService.Heartbeat:Wait() end end end if ActiveTween then ActiveTween:Cancel() ActiveTween = nil end resetCharacterState() end --------------------------------------------------------- -- [ التفاعل مع الأزرار والاختصارات ] --------------------------------------------------------- local function toggleFarm() OrbFarmEnabled = not OrbFarmEnabled FarmBtn.Text = OrbFarmEnabled and "Scanner Orbs : ON [F]" or "Scanner Orbs : OFF [F]" local targetColor = OrbFarmEnabled and Color3.fromRGB(38, 168, 82) or Color3.fromRGB(205, 48, 56) TweenService:Create(FarmBtn, TweenInfo.new(0.2), {BackgroundColor3 = targetColor}):Play() if OrbFarmEnabled then StopFarm = false detectPlayZone(true) StatusLabel.Text = "Status: Direct Hill Scan ON" StatusLabel.TextColor3 = Color3.fromRGB(85, 225, 130) setFloorGuard(true) task.spawn(startScannerLoop) else StopFarm = true if ActiveTween then ActiveTween:Cancel() ActiveTween = nil end resetCharacterState() StatusLabel.Text = "Status: Stopped" StatusLabel.TextColor3 = Color3.fromRGB(200, 206, 225) end end local function toggleAutoEvolve() AutoEvolveEnabled = not AutoEvolveEnabled AutoEvolveBtn.Text = AutoEvolveEnabled and "Auto Evolve : ON [E]" or "Auto Evolve : OFF [E]" local targetColor = AutoEvolveEnabled and Color3.fromRGB(38, 168, 82) or Color3.fromRGB(205, 48, 56) TweenService:Create(AutoEvolveBtn, TweenInfo.new(0.2), {BackgroundColor3 = targetColor}):Play() end FarmBtn.Activated:Connect(toggleFarm) AutoEvolveBtn.Activated:Connect(toggleAutoEvolve) EvolveOnceBtn.Activated:Connect(function() task.spawn(triggerEvolve) end) UserInputService.InputBegan:Connect(function(input, gameProcessed) if gameProcessed then return end if input.KeyCode == FarmKeybind then toggleFarm() elseif input.KeyCode == EvolveKeybind then toggleAutoEvolve() elseif input.KeyCode == InstantEvolveKeybind then task.spawn(triggerEvolve) end end) SpeedInput.FocusLost:Connect(function() local extracted = SpeedInput.Text:gsub("[^%d%.%-]", "") local num = tonumber(extracted) if num then OrbSpeed = math.clamp(math.floor(num), 10, 3000) end SpeedInput.Text = tostring(OrbSpeed) end) SpeedInput.Focused:Connect(function() SpeedInput.Text = tostring(OrbSpeed) end) DelayInput.FocusLost:Connect(function() local extracted = DelayInput.Text:gsub("[^%d%.%-]", "") local num = tonumber(extracted) if num then EvolveDelay = math.clamp(num, 0.1, 30) end DelayInput.Text = tostring(EvolveDelay) .. "s" end) DelayInput.Focused:Connect(function() DelayInput.Text = tostring(EvolveDelay) end) task.spawn(function() while not IsDead do task.wait(EvolveDelay) if AutoEvolveEnabled and not IsDead then triggerEvolve() end end end) _G.StopAnt = function() IsDead = true OrbFarmEnabled = false AutoEvolveEnabled = false StopFarm = true if ActiveTween then ActiveTween:Cancel() end resetCharacterState() if ScreenGui then ScreenGui:Destroy() end end