i am working on an chat system. i got the chat working great but i am having a little trouble with adding table data to an table i got in the module script?
ChatHandler = require(script.Parent.MainModule)
Admins = {
['ScripterOmega']={
['tagColor'] = ChatHandler.colors['white'],
['chatColor']=ChatHandler.colors['black']
}
}
ChatHandler.Admins = ChatHandler.Admins[Admins]
print(ChatHandler.Admins['ScripterOmega']['chatColor'])
-- tihs is the table in ChatHandler module scrtipt
ChatHandler.Admins = {
['Server']={
['tagColor'] = ChatHandler.colors['red'],
['chatColor'] = ChatHandler.colors['green']
},
['Owner']={
['tagColor'] = ChatHandler.colors['green'],
['chatColor']=ChatHandler.colors['red']
},
['Chat']={
['tagColor'] = ChatHandler.colors['blue'],
['chatColor'] = ChatHandler.colors['green']
}
}

1 comment
i did print(#Admins) and it says 0 so idk