--[[ FEED THE CHUD – ULTIMATE FIX - Reads exactly: PlayerGui.FeedTheChudGui.StatsHud.CarryLabel - Teleports to food/Chud, presses F/E. - Throws ALL food at once. --]] local player = game.Players.LocalPlayer local char = player.Character or player.CharacterAdded:Wait() local hrp = char:WaitForChild("HumanoidRootPart") local hum = char:WaitForChild("Humanoid") local VIM = game:GetService("VirtualInputManager") local TELEPORT_OFFSET = Vector3.new(2.5, 0, 0) -- ===== CREATE THE UI ===== local screenGui = Instance.new("ScreenGui") screenGui.Name = "FeedChudUI" screenGui.Parent = player.PlayerGui screenGui.ResetOnSpawn = false local frame = Instance.new("Frame") frame.Size = UDim2.new(0, 300, 0, 200) frame.Position = UDim2.new(0.5, -150, 0.5, -100) frame.BackgroundColor3 = Color3.fromRGB(30, 30, 35) frame.BorderSizePixel = 0 frame.Parent = screenGui local corner = Instance.new("UICorner") corner.CornerRadius = UDim.new(0, 8) corner.Parent = frame -- Drag local dragging = false local dragStart, dragStartPos frame.InputBegan:Connect(function(input) if input.UserInputType == Enum.UserInputType.MouseButton1 then dragging = true dragStart = input.Position dragStartPos = frame.Position end end) frame.InputEnded:Connect(function(input) if input.UserInputType == Enum.UserInputType.MouseButton1 then dragging = false end end) frame.InputChanged:Connect(function(input) if dragging and input.UserInputType == Enum.UserInputType.MouseMovement then local delta = input.Position - dragStart frame.Position = UDim2.new( dragStartPos.X.Scale, dragStartPos.X.Offset + delta.X, dragStartPos.Y.Scale, dragStartPos.Y.Offset + delta.Y ) end end) local title = Instance.new("TextLabel") title.Size = UDim2.new(1, 0, 0, 30) title.Position = UDim2.new(0, 0, 0, 5) title.BackgroundTransparency = 1 title.Text = "πŸ• Feed The Chud Auto" title.TextColor3 = Color3.fromRGB(255, 200, 100) title.TextScaled = true title.Font = Enum.Font.GothamBold title.Parent = frame -- Chud Name Input local chudLabel = Instance.new("TextLabel") chudLabel.Size = UDim2.new(0.4, 0, 0, 25) chudLabel.Position = UDim2.new(0, 10, 0, 45) chudLabel.BackgroundTransparency = 1 chudLabel.Text = "Chud Name:" chudLabel.TextColor3 = Color3.fromRGB(200, 200, 200) chudLabel.TextScaled = true chudLabel.Font = Enum.Font.Gotham chudLabel.TextXAlignment = Enum.TextXAlignment.Left chudLabel.Parent = frame local chudInput = Instance.new("TextBox") chudInput.Size = UDim2.new(0.5, 0, 0, 28) chudInput.Position = UDim2.new(0.45, 0, 0, 43) chudInput.BackgroundColor3 = Color3.fromRGB(50, 50, 55) chudInput.TextColor3 = Color3.fromRGB(255, 255, 255) chudInput.PlaceholderText = "Chud name" chudInput.Text = "chudcreature" chudInput.Font = Enum.Font.Gotham chudInput.TextScaled = true chudInput.Parent = frame local chudCorner = Instance.new("UICorner") chudCorner.CornerRadius = UDim.new(0, 4) chudCorner.Parent = chudInput -- Inventory display local invLabel = Instance.new("TextLabel") invLabel.Size = UDim2.new(1, -20, 0, 25) invLabel.Position = UDim2.new(0, 10, 0, 85) invLabel.BackgroundColor3 = Color3.fromRGB(20, 20, 25) invLabel.TextColor3 = Color3.fromRGB(150, 200, 255) invLabel.Text = "πŸ“¦ Inventory: ?" invLabel.TextScaled = true invLabel.Font = Enum.Font.Gotham invLabel.Parent = frame local invCorner = Instance.new("UICorner") invCorner.CornerRadius = UDim.new(0, 4) invCorner.Parent = invLabel -- Status local statusLabel = Instance.new("TextLabel") statusLabel.Size = UDim2.new(1, -20, 0, 25) statusLabel.Position = UDim2.new(0, 10, 0, 115) statusLabel.BackgroundColor3 = Color3.fromRGB(20, 20, 25) statusLabel.TextColor3 = Color3.fromRGB(150, 255, 150) statusLabel.Text = "⏸️ STOPPED" statusLabel.TextScaled = true statusLabel.Font = Enum.Font.Gotham statusLabel.Parent = frame local statusCorner = Instance.new("UICorner") statusCorner.CornerRadius = UDim.new(0, 4) statusCorner.Parent = statusLabel -- Buttons local toggleBtn = Instance.new("TextButton") toggleBtn.Size = UDim2.new(0.35, 0, 0, 35) toggleBtn.Position = UDim2.new(0.05, 0, 0, 150) toggleBtn.BackgroundColor3 = Color3.fromRGB(60, 180, 60) toggleBtn.TextColor3 = Color3.fromRGB(255, 255, 255) toggleBtn.Text = "β–Ά START" toggleBtn.TextScaled = true toggleBtn.Font = Enum.Font.GothamBold toggleBtn.Parent = frame local btnCorner = Instance.new("UICorner") btnCorner.CornerRadius = UDim.new(0, 6) btnCorner.Parent = toggleBtn local testBtn = Instance.new("TextButton") testBtn.Size = UDim2.new(0.35, 0, 0, 35) testBtn.Position = UDim2.new(0.55, 0, 0, 150) testBtn.BackgroundColor3 = Color3.fromRGB(60, 60, 180) testBtn.TextColor3 = Color3.fromRGB(255, 255, 255) testBtn.Text = "πŸ” TEST" testBtn.TextScaled = true testBtn.Font = Enum.Font.GothamBold testBtn.Parent = frame local testCorner = Instance.new("UICorner") testCorner.CornerRadius = UDim.new(0, 6) testCorner.Parent = testBtn -- ===== HELPER FUNCTIONS ===== local function status(msg, isGood) statusLabel.Text = msg statusLabel.TextColor3 = isGood and Color3.fromRGB(150, 255, 150) or Color3.fromRGB(255, 150, 150) print("[FeedChud] " .. msg) end local function pressKey(keyCode) pcall(function() VIM:SendKeyEvent(true, keyCode, false, game) task.wait(0.05) VIM:SendKeyEvent(false, keyCode, false, game) end) end -- Get position of any object local function getObjectPosition(obj) if obj:IsA("BasePart") then return obj.Position end if obj:IsA("Model") then if obj.PrimaryPart then return obj.PrimaryPart.Position end local hrpPart = obj:FindFirstChild("HumanoidRootPart") if hrpPart and hrpPart:IsA("BasePart") then return hrpPart.Position end for _, child in pairs(obj:GetDescendants()) do if child:IsA("BasePart") then return child.Position end end end return nil end -- Find nearest food (starts with "Item_") local function findNearestFood() local bestDist = math.huge local bestObject = nil for _, obj in pairs(workspace:GetDescendants()) do if string.sub(obj.Name, 1, 5) == "Item_" then local pos = getObjectPosition(obj) if pos then local dist = (hrp.Position - pos).Magnitude if dist < bestDist then bestDist = dist bestObject = obj end end end end return bestObject, bestDist end -- Find nearest Chud local function findNearestChud(name) if name == "" then return nil, math.huge end local bestDist = math.huge local bestObject = nil local targetLower = string.lower(name) for _, obj in pairs(workspace:GetDescendants()) do if string.find(string.lower(obj.Name), targetLower) then local pos = getObjectPosition(obj) if pos then local dist = (hrp.Position - pos).Magnitude if dist < bestDist then bestDist = dist bestObject = obj end end end end return bestObject, bestDist end -- Teleport to target local function teleportToTarget(target) local pos if typeof(target) == "Vector3" then pos = target else pos = getObjectPosition(target) end if not pos then return end hrp.CFrame = CFrame.new(pos + TELEPORT_OFFSET) task.wait(0.05) end -- πŸ”₯ READ THE EXACT CARRY LABEL local function getInventoryInfo() local carryLabel = player.PlayerGui:FindFirstChild("FeedTheChudGui") and player.PlayerGui.FeedTheChudGui:FindFirstChild("StatsHud") and player.PlayerGui.FeedTheChudGui.StatsHud:FindFirstChild("CarryLabel") if carryLabel and carryLabel:IsA("TextLabel") then local text = carryLabel.Text if text and text ~= "" then -- Try to extract numbers like "2/4" or "Carry: 3/5" local cur, max = string.match(text, "(%d+)/(%d+)") if cur and max then return tonumber(cur), tonumber(max) end -- If it's just a number, assume max from somewhere else? fallback. end end -- Fallback: scan all texts (if label not found) local current = nil local maxCap = nil local searchRoots = {player.PlayerGui, workspace} for _, root in pairs(searchRoots) do for _, obj in pairs(root:GetDescendants()) do if obj:IsA("TextLabel") or obj:IsA("TextBox") then local text = obj.Text if text and text ~= "" then local cur, max = string.match(text, "(%d+)/(%d+)") if cur and max then current = tonumber(cur) maxCap = tonumber(max) return current, maxCap end end end end end -- If still nothing, assume 0/3 return 0, 3 end -- Update the UI display local function updateInventoryDisplay() local count, maxCap = getInventoryInfo() invLabel.Text = "πŸ“¦ Inventory: " .. count .. " / " .. maxCap invLabel.TextColor3 = (count >= maxCap) and Color3.fromRGB(255, 200, 100) or Color3.fromRGB(150, 200, 255) return count, maxCap end -- ===== TEST BUTTON ===== testBtn.MouseButton1Click:Connect(function() local food, fDist = findNearestFood() if food then status("πŸ” Found food: " .. food.Name .. " (" .. math.floor(fDist) .. " studs)", true) else status("❌ No food found!", false) end local chud, cDist = findNearestChud(chudInput.Text) if chud then status("πŸ‘Ύ Found Chud: " .. chud.Name .. " (" .. math.floor(cDist) .. " studs)", true) else status("❌ No Chud named '" .. chudInput.Text .. "' found!", false) end local count, maxCap = updateInventoryDisplay() status("πŸ“Š Inventory: " .. count .. "/" .. maxCap, true) end) -- ===== MAIN LOOP ===== local isRunning = false local loopTask = nil local function startLoop() if isRunning then return end isRunning = true toggleBtn.Text = "⏹ STOP" toggleBtn.BackgroundColor3 = Color3.fromRGB(200, 60, 60) status("▢️ RUNNING", true) loopTask = task.spawn(function() while isRunning do task.wait(0.2) local count, maxCap = getInventoryInfo() invLabel.Text = "πŸ“¦ Inventory: " .. count .. " / " .. maxCap invLabel.TextColor3 = (count >= maxCap) and Color3.fromRGB(255, 200, 100) or Color3.fromRGB(150, 200, 255) -- If we have food, throw ALL if count > 0 then local chud, cDist = findNearestChud(chudInput.Text) if chud and cDist then status("πŸ• Throwing " .. count .. " food", true) teleportToTarget(chud) task.wait(0.1) for i = 1, count do pressKey(Enum.KeyCode.E) task.wait(0.08) end status("βœ… Threw all " .. count .. "!", true) task.wait(0.1) else status("πŸ” Chud not found!", false) task.wait(0.2) end end -- Refill if we have space (re-check count after throwing) count, maxCap = getInventoryInfo() if count < maxCap then local food, fDist = findNearestFood() if food and fDist then status("πŸ“₯ Teleporting to food", true) teleportToTarget(food) task.wait(0.1) pressKey(Enum.KeyCode.F) task.wait(0.1) else status("πŸ” No food available", false) task.wait(0.2) end end end status("⏸️ STOPPED", true) toggleBtn.Text = "β–Ά START" toggleBtn.BackgroundColor3 = Color3.fromRGB(60, 180, 60) end) end local function stopLoop() isRunning = false if loopTask then task.cancel(loopTask); loopTask = nil end status("⏸️ STOPPED", true) toggleBtn.Text = "β–Ά START" toggleBtn.BackgroundColor3 = Color3.fromRGB(60, 180, 60) end toggleBtn.MouseButton1Click:Connect(function() if isRunning then stopLoop() else startLoop() end end) player.CharacterAdded:Connect(function(newChar) char = newChar hrp = char:WaitForChild("HumanoidRootPart") hum = char:WaitForChild("Humanoid") if isRunning then stopLoop() end end) -- Initial check task.wait(0.5) local count, maxCap = updateInventoryDisplay() status("🟒 Ready! Detected inventory: " .. count .. "/" .. maxCap, true) print("Feed The Chud - Exact CarryLabel detected.")