Hello I have attempted to get a specific value from a dictionary but failed to do so, and also it returns a different value then expected.
Module
{
["UserId"] = 2550824315,
["Tag"] = "Owner",
["Color"] = Color3.fromRGB(255, 255, 0)
},
{
["GroupId"] = 14109915,
["Rank"] = 255,
["Tag"] = "Owner",
["Color"] = Color3.fromRGB(255, 255, 0)
},
{
["GamepassId"] = 643697197,
["Tag"] = "Owner",
["Color"] = Color3.fromRGB(255, 255, 0)
}
Server
for num, data in pairs(Modules.NameTags) do
for i, tag in pairs(data) do
print(i, tag)
if table.find(data, "Color") then
print("Found color!")
end
end
end
and the output is:
10:34:33.396 Color 1, 1, 0 - Server - _MainServer:163
10:34:33.396 UserId 2550824315 - Server - _MainServer:163
10:34:33.396 Tag Owner - Server - _MainServer:163
10:34:33.397 Color 1, 1, 0 - Server - _MainServer:163
10:34:33.397 Tag Owner - Server - _MainServer:163
10:34:33.397 Rank 255 - Server - _MainServer:163
10:34:33.397 GroupId 14109915 - Server - _MainServer:163
10:34:33.397 Color 1, 1, 0 - Server - _MainServer:163
10:34:33.398 GamepassId 643697197 - Server - _MainServer:163
10:34:33.398 Tag Owner - Server - _MainServer:163
Sorry if this looks silly or dumb but it is my first time working with dictionaries, I’d be very thankful to anyone who’s able to solve this for me.