Find Parts In Region3 With IgnoreList not working with selene visual code studio

I’m using selene in visual code studio and it’s throwing this error…

ERROR: standard library field workspace.FindPartsInRegion3WithIgnoreList is not a functionselene::incorrect_standard_library_use

CODE:

function RegionForRace.OnPlayerEnter()
   --  the line below 
    local inRegion = workspace:FindPartsInRegion3WithIgnoreList(Region, IgnoreList, math.huge)

    for _, child in pairs(inRegion) do
        local Player = game.Players:GetPlayerFromCharacter(child.Parent)
        if not Player then continue end

        local PlayerFound = PlayersToTeleport.FindIndexOfPlayer(Player)
        if PlayerFound then return true end

        if Player and not PlayerFound then
            PlayersToTeleport.AddPlayer(Player)
            return true
        end

        print('Player entered region')
    end
end

Does anyone have a fix for this?

1 Like

This is because the function is deprecated and Selene does not add deprecated functions to the std.

1 Like