I’m looping through players in game and inserting a Frame:Clone for each player into a Table. Each Frame is given the same name as the player.
From elsewhere in the script, when again looping through players in the game, how do I check if the Table already has a frame named after the player already in the table?
Thanks
I’ve tried…
if not table.find(PlayerFramesTable, plyr.Name) then
As an aside, here’s why the three things you tried didn’t work:
You were searching through the table for a string matching the player name, NOT the frame instance.
The [] operator only gets the value of a specific index, and since you presumable didnt set an index when populating the table, the indices are represented by numbers instead of strings. For example, item 1 would have an index of 1.