Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- HONEYSUCKLE SIMPLE CRAFT v2.0 (FIXED)
- -- Method: Direct crafting with proper remote structure
- local Players = game:GetService("Players")
- local ReplicatedStorage = game:GetService("ReplicatedStorage")
- local CollectionService = game:GetService("CollectionService")
- local player = Players.LocalPlayer
- -- Get the correct remote
- local CraftingService = require(ReplicatedStorage.Modules.CraftingService.CraftingGlobalObjectService)
- -- Function to find workbench
- local function findWorkbench()
- for _, craftingObject in pairs(CollectionService:GetTagged("CraftingObject")) do
- if craftingObject:IsDescendantOf(workspace) and
- craftingObject:GetAttribute("CraftingObjectType") == "SeedEventWorkbench" then
- return craftingObject
- end
- end
- return nil
- end
- -- Function to get required items with UUIDs
- local function getRequiredItems()
- local backpack = player:WaitForChild("Backpack")
- local items = {}
- local found = {["Pink Lily"] = false, ["Purple Dahlia"] = false}
- for _, tool in pairs(backpack:GetChildren()) do
- if tool:IsA("Tool") then
- local itemString = tool:FindFirstChild("Item_String")
- if itemString then
- local itemName = itemString.Value
- if (itemName == "Pink Lily" or itemName == "Purple Dahlia") and not found[itemName] then
- local itemUUID = tool:GetAttribute("c") or tool:GetAttribute("ITEM_UUID")
- if itemUUID then
- table.insert(items, {
- name = itemName,
- uuid = itemUUID,
- tool = tool
- })
- found[itemName] = true
- end
- end
- end
- end
- end
- if found["Pink Lily"] and found["Purple Dahlia"] then
- return items
- else
- return nil
- end
- end
- -- SIMPLE CRAFT FUNCTION
- local function simpleCraft()
- print("🌻 Starting Simple Honeysuckle Craft...")
- -- Find workbench
- local workbench = findWorkbench()
- if not workbench then
- warn("❌ SeedEventWorkbench not found!")
- return false
- end
- -- Get items
- local items = getRequiredItems()
- if not items then
- warn("❌ Need Pink Lily + Purple Dahlia with UUIDs in backpack!")
- return false
- end
- print("✅ Found " .. #items .. " items with UUIDs")
- -- STEP 1: Set Recipe
- print("📋 Setting recipe...")
- CraftingService:SetRecipe(workbench, "SeedEventWorkbench", "Honeysuckle")
- wait(2)
- -- STEP 2: Input Items
- for i, item in ipairs(items) do
- print("📦 Inputting " .. item.name .. "...")
- CraftingService:InputItem(
- workbench,
- "SeedEventWorkbench",
- i,
- {
- ItemType = "Holdable",
- ItemData = {
- UUID = item.uuid
- }
- }
- )
- wait(1)
- end
- -- STEP 3: Start Craft
- print("🔨 Starting craft...")
- CraftingService:Craft(workbench, "SeedEventWorkbench")
- print("✅ Simple craft completed!")
- return true
- end
- -- Execute
- simpleCraft()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement