By touching a part the player is supposed to be inserted into the table once but the script cant verify if the player has already been inserted
printing table.find(RedTeamPlayersTable, Player.Name) gives me “nil” in the output
local RedPart = game.Workspace.RedPart
local RedTeamPlayersTable = {}
RedPart.Touched:Connect(function(Hit)
local Player = game.Players:GetPlayerFromCharacter(Hit.Parent)
if table.find(RedTeamPlayersTable, Player.Name) then
print("a")
else
table.insert(RedTeamPlayersTable, Player)
end
end)