Hey guys I need help with table scripting, so I made a Class type system, and it’s detecting my values as nil
here’s the code
class.Classes = {
['Samurai'] = false,
['Arts'] = {
['Fire'] = true,
['Water'] = false,
},
['Currency'] = {
['Gold'] = 150,
['Platinum'] = 1000,
}
}
function class.ChangeArts(plr, RequestedClass)
if class.Classes.Arts[RequestedClass] then
print('Nice')
end
end)
it is not printing nice, I have another Script with the module Module.ChangeArts(plr ‘Water’)
nothing is being misspelt can someone help me with this.