Ad
Log in to vote
0

I'm getting "attempt to index nil with Instance" can someone help?

Asked by 2 months ago
local Dictionary = require(script.Dictionary)

local DictionaryHandler = {}

function DictionaryHandler.find(Player, action)
    return Dictionary[action][Player] --Error
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
0
IM NO LONGER GETTING THE RROR I FOUND THE PROBLEM LiamQ926 4 — 2mo

Answer this question