local I=require(script.Parent.Parent:WaitForChild("\065\115\115\101\116\115"))local F=require(script.Parent.Parent:WaitForChild("\065\099\116\105\111\110\115"))return function(e,k)return function(c)if I.byId[k]then c:dispatch(F.ASSET_GIVE(e,k))else warn(("\065\115\115\115\101\116 \037\115 \100\111\101\115 \110\111\116 \101\120\105\115\116\033"):format(k))end end end
local Assets = require(script.Parent.Parent:WaitForChild("Assets"))
local Actions = require(script.Parent.Parent:WaitForChild("Actions"))

return function(player, assetId)
    return function(store)
        if Assets.byId[assetId] then
            store:dispatch(Actions.ASSET_GIVE(player, assetId))
        else
            warn(("Assset %s does not exist!"):format(assetId))
        end
    end
end