I'm trying to make a combat system with a dictionary but there's this one error that stops the whole entire system. This is the script
local Dictionary = require(script.Dictionary)
local DictionaryHandler = {}
function DictionaryHandler.find(player, action)
return Dictionary[action][player]
end
function DictionaryHandler.add(player, action)
if not Dictionary[action][player] then
Dictionary[action][player] = true
end
end
function DictionaryHandler.remove(player, action)
if Dictionary[action][player] then
Dictionary[action][player] = nil
end
end
return DictionaryHandler
The error says it in the title so yeah