Hello developers,
So i am trying to create a system that creates a table, where you can add words.
IDK how to explain but i give you examples:
local wordtable = {
["words"] = {
Cool = {Enum.KeyCode.Z},
sick = {Enum.KeyCode.V}
},
["Troll"] = {
Example1lol = {Enum.KeyCode.X},
Welp12 = {Enum.KeyCode.B,}
},
}
local table1 = {}
This is a example of 2 tables. I created a system that adds words from wordtable into table1. So i have 2 problems or 1. I want to create a way, to check what the parent from word is. So if i have Welp12, i want to get “Troll”. I also want to create a order, so if you need to use/get words in the correct order, but you can keep repeating to use from the same type (word, Troll). So an example would look like:
Troll, words
What you can say:
Example1lol, Welp12, Cool.
This will work, bc “Example1lol, Welp12” are both from Troll, and than you can say infinite words from words. So this would also be possible:
(4 times troll, than 3 times word, but its in good order so it will work)
Example1lol, Example1lol, Example1lol, Example1lol, Cool, Cool, Cool.
What wouldend be possible is:
Example1lol, Cool, Example1lol
This wouldend work bc, the order you use is “Troll”, “words”, “Troll” and not “Troll, words”
Does anyone know how i can create this, if you still don’t understabd feel free to ask.