How to check if something is a part of a list you made in a script?
Asked by
4 years ago Edited 4 years ago
So I don't really know how to tell it but ill try my best,
I just made something for a pet system that shows f.e.
1 | if petname = = "Giant Dog" then |
It only needs to be for pets that are rarity "secret"
but this takes ages to do for every single pet so I wanted to make a list where I add all petnames too so I can then do
if petname = part of the list
But I have no idea how it works,
I have seen a script that has something that looks like the thing I need
Idk if this is it but it kinda shows the idea I put all pet names in and the check if petname is in the list
It would be amazing if someone could tell me how I make it and how to check if petname is in the list
Sry for my probably newbee question and sry for the probably bad explanation and post this is my first one.