#How do I make a variable that gets all the players but not the player i want

9 messages · Page 1 of 1 (latest)

low niche
#

so a table?

#

thanks for califying by removing your original message!

wraith pelican
#

mb idk how to close this thing

#

someone said how to do it

eager frigate
#
local Players = game:GetPlayers("Players")


local function getPlayersExcluding(excluded: {Player})
    local result = Players:GetPlayers()

    for _, player in excluded do
        local index = table.find(result, player)
        if index then
            table.remove(result, index)
        end
    end

    return result
end
ancient nebula
#

It can help other people

#

U can js unfollow

#

Like I’m about to do