How to find a child in GetChildren()?
01 | local l__LocalPlayer__ 2 = game.Players.LocalPlayer; |
02 | local u 3 = { "Robux" , "Legendary" } ; |
03 | local l__ReplicatedStorage__ 4 = game.ReplicatedStorage; |
05 | local v 1 , v 2 , v 3 = pairs (l__LocalPlayer__ 2 :WaitForChild( "Pets" ):GetChildren()); |
07 | local v 4 , v 5 = v 1 (v 2 , v 3 ); |
14 | if not table.find(u 3 , v 5 :FindFirstChild( "Rarity" )) then |
There is a String Value in every pet that contains the Rarity.
I have to change this script because originaly it worked on name and it was
1 | if not table.find(u 3 , v 5. Name) then |
Then it takes the name of the folders of the pets and looks if its not in the local u3
but now I need to change it to rarity and I can't make it work like this because I can't check the value Rarity
So I basicly need to know how to find a child of this:
1 | local v 1 , v 2 , v 3 = pairs (l__LocalPlayer__ 2 :WaitForChild( "Pets" ):GetChildren()); |
and that child is rarity