Advertisement
suramraja1

dadwae

Jun 30th, 2025 (edited)
258
-1
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 3.29 KB | None | 0 1
  1. -- HONEYSUCKLE SIMPLE CRAFT v2.0 (FIXED)
  2. -- Method: Direct crafting with proper remote structure
  3.  
  4. local Players = game:GetService("Players")
  5. local ReplicatedStorage = game:GetService("ReplicatedStorage")
  6. local CollectionService = game:GetService("CollectionService")
  7.  
  8. local player = Players.LocalPlayer
  9.  
  10. -- Get the correct remote
  11. local CraftingService = require(ReplicatedStorage.Modules.CraftingService.CraftingGlobalObjectService)
  12.  
  13. -- Function to find workbench
  14. local function findWorkbench()
  15.     for _, craftingObject in pairs(CollectionService:GetTagged("CraftingObject")) do
  16.         if craftingObject:IsDescendantOf(workspace) and
  17.            craftingObject:GetAttribute("CraftingObjectType") == "SeedEventWorkbench" then
  18.             return craftingObject
  19.         end
  20.     end
  21.     return nil
  22. end
  23.  
  24. -- Function to get required items with UUIDs
  25. local function getRequiredItems()
  26.     local backpack = player:WaitForChild("Backpack")
  27.     local items = {}
  28.     local found = {["Pink Lily"] = false, ["Purple Dahlia"] = false}
  29.    
  30.     for _, tool in pairs(backpack:GetChildren()) do
  31.         if tool:IsA("Tool") then
  32.             local itemString = tool:FindFirstChild("Item_String")
  33.             if itemString then
  34.                 local itemName = itemString.Value
  35.                 if (itemName == "Pink Lily" or itemName == "Purple Dahlia") and not found[itemName] then
  36.                     local itemUUID = tool:GetAttribute("c") or tool:GetAttribute("ITEM_UUID")
  37.                     if itemUUID then
  38.                         table.insert(items, {
  39.                             name = itemName,
  40.                             uuid = itemUUID,
  41.                             tool = tool
  42.                         })
  43.                         found[itemName] = true
  44.                     end
  45.                 end
  46.             end
  47.         end
  48.     end
  49.    
  50.     if found["Pink Lily"] and found["Purple Dahlia"] then
  51.         return items
  52.     else
  53.         return nil
  54.     end
  55. end
  56.  
  57. -- SIMPLE CRAFT FUNCTION
  58. local function simpleCraft()
  59.     print("🌻 Starting Simple Honeysuckle Craft...")
  60.    
  61.     -- Find workbench
  62.     local workbench = findWorkbench()
  63.     if not workbench then
  64.         warn("❌ SeedEventWorkbench not found!")
  65.         return false
  66.     end
  67.    
  68.     -- Get items
  69.     local items = getRequiredItems()
  70.     if not items then
  71.         warn("❌ Need Pink Lily + Purple Dahlia with UUIDs in backpack!")
  72.         return false
  73.     end
  74.    
  75.     print("✅ Found " .. #items .. " items with UUIDs")
  76.    
  77.     -- STEP 1: Set Recipe
  78.     print("📋 Setting recipe...")
  79.     CraftingService:SetRecipe(workbench, "SeedEventWorkbench", "Honeysuckle")
  80.     wait(2)
  81.    
  82.     -- STEP 2: Input Items
  83.     for i, item in ipairs(items) do
  84.         print("📦 Inputting " .. item.name .. "...")
  85.         CraftingService:InputItem(
  86.             workbench,
  87.             "SeedEventWorkbench",
  88.             i,
  89.             {
  90.                 ItemType = "Holdable",
  91.                 ItemData = {
  92.                     UUID = item.uuid
  93.                 }
  94.             }
  95.         )
  96.         wait(1)
  97.     end
  98.    
  99.     -- STEP 3: Start Craft
  100.     print("🔨 Starting craft...")
  101.     CraftingService:Craft(workbench, "SeedEventWorkbench")
  102.    
  103.     print("✅ Simple craft completed!")
  104.     return true
  105. end
  106.  
  107. -- Execute
  108. simpleCraft()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement