well lets say I need to know the price off an item, all the information I have stored in a module script so I need to acces it but I was in a for loop so I need to v.Name how do I use V.Name for something like that?
yes theres a table in the module and tehres the price normaly I would do module.table.upgrade1.price, but I dont have upgrade 1 it could be upgrade 3 so that why its v.Name
Assuming that there is a table within the module script called table, then that should work. If not, then either the module script is failing, or the data is not being correctly stored.
Okay makes sense. You have a dictionary and that dictionary has each item like [āupgradenumā] = {[āpriceā] = {};} etcā¦ so that5 means you can use module[v.name] perfectly fine can you show your script?
local module = {
Upgrade1 = {
title = "Beginner!",
description = "Your first upgrade! This will grant you +250,000 more numbers to choose from!",
price = 500000
}
}
return module
This could be similar to finding a instance value instead of the value inside of itā¦ if your code looks like what I showed may he try title[1] insteadā¦ Iām not the most qualified person but maybe thatāll work