How do I trigger some of the movements that we have set? An animation will appear after the settings are completely fulfilled

I’m confused about finding the script. I’m trying to make a game and I want when everything is connected, the WIN GAME animation will appear. In fact, when one setting is correct, WIN GAME will immediately appear, whereas the other settings are still waiting to be correct. I hope someone can help me