Hello everyone I am trying to find a relationship between two tables and I am finding it very difficult.
The first table is a set of values which consist of primarily values that will be used for WalkSpeed.
local tab = {10,20,30,40,50}
The second table is a set of values which consist of values primarily for MaxHealth.
local tab2 = {5,10,15,20,25}
Is there a possible way of finding relationships between these two corresponding tables. Such as 10 and/or 20 appearing in both tables. Any help would be very much appreciated, thank you in advance.

2 comments
I think you would still need a for loop of each table, unless you’re making your own so to speak, there’s no built in function for comparing tables by contents
I think you are referring to set operations which Lua doesn't have. You can always implement them yourself though.