How to spawn colored objects

I’ve been trying to make a game where it spawns objects with diffrent colors but idk how too

1 Like

Hi @Matthew_Leach, search this forum for “spawning” or “copying items” - there are plenty of posts on this topic.

To set random colours, drop the random color block into the “set color of Item to color” block.

You can remix this example:

Hope that helps! Let me know if you have any further questions. If this solves your problem, please mark this post as the Solution.

Many thanks,
Geoff @ TechLeap

This would be fine enough for me, but I need to spawn the item with the “Create Item at xyz with item name”, by default I can’t select the item to change. would this need to be outside of coblocks?

Hi @PH5hundred, can you post an image of your code and provide more detail about what you’re trying to do? The create item blocks will only create basic objects.

You can programmatically create item names (e.g “torus”+number), so that it’s easy to create identifiable names for objects.