Hello everyone!
Sorry to interrupt but i think i need help in finding an object from a table using strings.
My goal is to print the match object’s value. But it keeps sending me error outputs and sometime it’s nil. Here is the code:
local object = script.Parent
local structure_array = string.split(object.Name,"_")
print(structure_array[1])
print(structure_array[2])
local extensionid = game.Workspace:FindFirstChild("folder").ExtensionID:GetChildren()
structure_array[1] = table.find(extensionid,structure_array[1]).Value
print(structure_array[1])
Alternatives: (Results Nil)
local object = script.Parent
local structure_array = string.split(object.Name,"_")
print(structure_array[1])
print(structure_array[2])
local extensionid = game.Workspace:FindFirstChild("folder").ExtensionID:GetChildren()
structure_array[1] = table.find(extensionid,structure_array[1])
structure_array[1] = structure_array.Value