local l__LocalPlayer__2 = game.Players.LocalPlayer; local u3 = { "Robux", "Legendary"}; local l__ReplicatedStorage__4 = game.ReplicatedStorage; function Delete() local v1, v2, v3 = pairs(l__LocalPlayer__2:WaitForChild("Pets"):GetChildren()); while true do local v4, v5 = v1(v2, v3); if v4 then else break; end; v3 = v4; if not table.find(u3, v5: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
if not table.find(u3, v5.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:
local v1, v2, v3 = pairs(l__LocalPlayer__2:WaitForChild("Pets"):GetChildren());
and that child is rarity