In a script, how would I check a tag’s name? Like in a for i, v loop, how would I check if v.Name is the same as a tag’s name?
Something like
local item = --insert item path
for i, Tag in pairs(item:GetAllTags())
if Tag.Name == item.Name then
--stuff
end
end
If you’re referring to an object instead of a “tag”, you could iterate through all the objects within and check if the name is the same.
local item = --insert item path
for i, Tag in pairs(item:GetChildren())
if Tag.Name == item.Name then
--stuff
end
end
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.