How to make randomizer pattern

Sorry about the name

sorry about the name, IDK what to call it.

So, I am making a game that uses block code to randomize what colors appear on the floor. then uses another randomizer to choose a specific color on the floor stay, and all the other colors disappear. I am having trouble because there is a chance that the floor ends up being, say, all red and green, but the color chosen to stay is blue. so then there is no floor and everyone is eliminated. any ideas? :melting_face: :melting_face: :melting_face:

Ok so I assume you know how to use block code fairly well based on the description, and it sounds like the only issue is that the game will choose a colour that is unused.

To solve this, we can just get a property, called “colours”. It should be text.

Whenever we place the colours on the floor, add the first letter of that colour to the property.

Example: adding red, green and blue might return “RRGGGRBRG” since there are multiple instances of each colour being added.

Now, when we go to choose the color to stay, just choose a random letter in that text property. This can be used with the text blocks, if you need exact help with that I can tell you.
Also clear that property afterwards.

That’s it! Hope this helps!

I have the randomizers figured out, it’s the chance that there will end up with no floor that I can’t figure out. but thanks anyway!

Ok, a little confusing but I’ll give it a shot

Yeah sorry about that. I kinda have to go, but tomorrow afternoon I can get on and try to take some screenshots for you. Have a nice night!

just make it so if it picks certain channels, it vanishes or deactivates the floor. so let’s say the numbers go from 1-10 and 3 numbers make the floor deactivate, if it picks let’s say 6, 8, 4 and two of those are right, each floor section is gonna be connected to those numbers that it picked.