function module:EquipTag(plr, name)
local p = Profiles[plr]
for _, JSONTag in pairs(p.Data.ChatTags) do
local tag = game:GetService("HttpService"):JSONDecode(JSONTag)
if tag.Content == name then
tag.Equiped = true
print('Equipped')
local newJSON = game:GetService("HttpService"):JSONEncode(tag)
JSONTag = newJSON
print("New JSONTag:", JSONTag)
print("New profile", Profiles[plr])
return
end
end
end
function module:UnequipTag(plr, name)
local p = Profiles[plr]
for _, JSONTag in pairs(p.Data.ChatTags) do
local tag = game:GetService("HttpService"):JSONDecode(JSONTag)
if tag.Content == name then
tag.Equiped = false
print('Unequipped')
local newJSON = game:GetService("HttpService"):JSONEncode(tag)
JSONTag = newJSON
print("New JSONTag:", JSONTag)
print("New profile", Profiles[plr])
return
end
end
end
Well that’s really weird I am working with massive dictionary data structures and never got this error. Can you please try it again without Encoding it with HttpService?