if (command == "?craft") then if (string.len(payload) > 0) and (string.find(payload, ":") ~= nil) then ore = string.sub(payload, 1, (string.find(payload, ":") - 1)) style = string.sub(payload, (string.find(payload, ":") + 1)) else plyr:message("No Payload. E.X. ?craft <ore here>:<style here E.X Legging, Neck, Chest>") end if (ore == "Noobium") then plyr:message("Craft part works!") if (style == "Leggings") then plyr:message("style part works!") else plyr:message("You did not try to use a valid Style") end else plyr:message("You did not try to use a valid ore") end end