Heyo! Currently struggling with a script that returns a table including all of the BaseParts in workspace & their transparencies. Been looking for a possible solution to this for a while, but to no avail. Any help would be appreciated
local parts = {}
for index, part in pairs(workspace:GetDescendants()) do
if part:IsA("BasePart") then
part[index] = {part, "Transparency|1|"..tostring(part.Transparency)} --// error is on this line
end
end
return parts