local W=require(script.Parent.getPlayerState)return function(w,Z,d)local a=W(w,Z)if a then return a.lastCollected[d]end end
local getPlayerState = require(script.Parent.getPlayerState)

return function(state,player, id)
    local pstate = getPlayerState(state,player)
    if pstate then
        return pstate.lastCollected[id]
    end
end