#How do I make a variable that gets all the players but not the player i want
9 messages · Page 1 of 1 (latest)
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
Don’t
It can help other people
U can js unfollow
Like I’m about to do