How would i make this idea work with what i have set up

To sum up what the button does, you click it and it picks a number between 1-6(like a die role). I want it to play a particle effect when it picks 6 but everything i try does not work. I have tried a few ways but failed, sometimes it will work on 6 and other times random numbers. Any help would be amazing!

This is what i have right now.

Try this:

Because you are literally printing a random number between 1 and 6. Hehe :wink: