Hey, so basically I have 3 modules. 1st one only holds a table, 2nd one writes and compares stuff in that table and the 3rd one is to do stuff based on the comparisons done by the 2nd module.
Problem is that when the 3rd module tries to use the comparing function in the 2nd module, it never works. However, using the exact same command in a simple script works, and no matter what testing I’ve done I haven’t found the reason for this exception.
Pertinent info:
Module 1:
module.plrdata = {[“Data”] = {“Data”, “Test”}} – would in theory point towards [“Data”][“Test”] in a
more complex table, prevents future problems with modifying stuff
Module 2:
data = require(script.Parent) – module 1
function module.Get(dataname)
–(uses a pcall to make sure the dataname is valid and points to a valid item in a table)
end`
Module 3:
data = require(script.Parent.DataActions) – module 2
function module.DataTest()
print(data.Get(“Data”)) – prints false, which is for if a value isn’t found.
end
So, what do I do? Also I forgot how to format the text into lua if it’s even possible
Can’t help but feel like I’m overlooking something really obvious.