Hell's Kitchen
47.4k Views
316 Executions

Script Verified auto pantry and fridge

Hell's Kitchen
Tomato
Tomato
Verified Badge
Verified User
OG
OG: invite only, given by Thunder Mods
Hall of Fame10M views
2 years ago
Please login to perform these actions:

auto pantry and fridge is a Hell's Kitchen script for Roblox, uploaded to ScriptBlox on Apr 8, 2025.

Does it work?

No reports yet

No reports yet. Tried it? Be the first to say.

Also noticed:

Description

Execute when pre-service starts or whenever, should auto collect ingredients from pantry and fridge If it stops working simply execute it again. WIP

View Raw
local LocalPlayer = game:GetService("Players").LocalPlayer
local NextSteps = LocalPlayer.PlayerGui.ScreenGui.NextSteps
local Steps = NextSteps.Steps
local CurrentAction = NextSteps.CurrentAction

local function GetCurrentTask()
    if CurrentAction.Value == 0 then return false end
    return Steps[tostring(CurrentAction.Value)]
end

warn(Action)
local function GetIngredients(CurrentTask)
    local TempIngredients = CurrentTask.Ingredients:GetChildren()
    local Ingredients = {}
    for i,v in pairs(TempIngredients) do
        if v.ClassName ~= "Frame" then continue end
        local Ingred = v.ViewportFrame:FindFirstChildWhichIsA("Model")
        if v.Name == "Ingredient" and Ingred then
            table.insert(Ingredients, Ingred.Name)
        end
    end
    return Ingredients
end
local function GatherIngredient(dum, IngredientName)
task.spawn(function()
local args = {
    [1] = IngredientName
}

game:GetService("ReplicatedStorage"):WaitForChild("LocalModules"):WaitForChild("LMKitchen"):WaitForChild("ServerRec"):WaitForChild("ObtainFood"):InvokeServer(unpack(args))
end)
end

while wait(.1) do
    local CurrentTask = GetCurrentTask()
    local Action = CurrentTask.Action.TextLabel.Text
    warn(Action)
    if Action == "Pantry" or Action == "Fridge" then
        table.foreach(GetIngredients(CurrentTask), GatherIngredient)
    end


Comments

2
Log in to join the conversation. Login
Ju1ceTheRealest's profile picture
Ju1ceTheRealest1 year ago

still working after 6 months

1
Albert_Quandale_IV's profile picture
Albert_Quandale_IV2 years ago

works exept for one food

1