I have this module and its supposed to be pets sorted by rarities.
local module = {}
module.pets = {
["Common"] = {
{"Bunny"},
{"Mouse"},
},
["Uncommon"] = {
{"Horse"},
{"Elephant"},
},
["Rare"] = {
{"Bee"},
{"Wasp"},
},
["Epic"] = {
{"Moose"},
{"Cow"},
},
["Legendary"] = {
{"Dragon"},
{"Hydra"},
},
["Mythic"] = {
{"Dark Dragon"},
{"Guardian"},
},
}
return module
I have another script like this:
local module = require(game.ReplicatedStorage.petModule)
print(module.pets["Common"][1])
I am trying to make the script look under the “Common” category, and choose the first item(Bunny). How would i do that?