menu
Roblox Forum Archive
Home
User Search
Forums
Donate
search
settings
Home
User Search
Forums
Donate
launch
Go to User Dashboard
Forums
Scripting Helpers
How do I check if an instance is already in a table?
chevron_left
chevron_left
chevron_left
of
1
chevron_right
chevron_right
chevron_right
How do I check if an instance is already in a table?
badfitz99
Join Date: 2010-05-01
Post Count: 5854
#141154014
Tuesday, July 22, 2014 10:40 AM GMT
Do I run a loop? My legs are dangling off the edge, The bottom of the bottle is my only friend, I think I'll slit my wrists again.
Go to point in time
arrow_right
10 minutes before
5 minutes before
At time of posting
5 minutes after
10 minutes after
more_horiz
cntkillme
Join Date: 2008-04-07
Post Count: 49450
#141155194
Tuesday, July 22, 2014 11:10 AM GMT
You could run a loop or you can make the instance a key in the table. local tbl = {}; tbl[workspace.Part] = true; if tbl[workspace.Part] then print("In table"); end
Go to point in time
arrow_right
10 minutes before
5 minutes before
At time of posting
5 minutes after
10 minutes after
more_horiz
chevron_left
chevron_left
chevron_left
of
1
chevron_right
chevron_right
chevron_right