local ignorelist = script.Parent.Part,script.Parent.RegionPart local center = script.Parent.Part.Position local size = script.Parent.RegionPart.Position local region = Region3.new((center - size/2),(center + size/2)) local parts = workspace:FindPartsInRegion3(region,ignorelist) while true do wait(1) print(parts) end
Im new to region3 so I dont know too much about it, but im trying to create a region3 area with a center point. and then Im trying to print whatever is inside of that region. but instead of getting a part name I get this:
table: 0000027F00EF2C40
This is the table's hexadecimal memory address. This is perfectly normal. If you want to print the elements of the table, use table.unpack
.
lua
print(unpack(parts));
There is also table.concat
:
lua
print(table.concat({'a', 'b', 'c', 'd'}, ", "));
Where ", "
is your delimiter that separates each element. It can be anything, even a semicolon (;
) for example.
But for that last solution it will not work in this case since it can error if a non-string or non-number is encountered