-
What do you want to achieve? I want to get a property of a part.
-
What is the issue? After I do object[property] it returns a number.
-
What solutions have you tried so far? I tried converting it to a string but it didn’t work.
for _, v in pairs(clonedNotification:GetDescendants()) do
for i, data in pairs(transparencyData) do -- transparencyData is a dictionary
if i == v.Name then
print(data) -- returns the correct vlaue
local TransparencyProperty = v[data]
print(type(TransparencyProperty)) -- returns a number
print(TransparencyProperty) -- returns property as a number
print(tostring(TransparencyProperty)) -- returns "1"
end
end
end
Someone please help!