Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

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

Asked by 1 year 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 7 — 1y

Answer this question