How to change the color of a unionoperation?

Hello I have this building for my game


in the game I want to allow the player to change the color of the floors and walls, etc. However, I cant because its a unionoperation.

What are some suggestions on what I should do to be able to change the color of it?

I have noticed that you are able to change the color of meshparts so perhaps I somehow turn it into a meshaprt instead of a union maybe by upladoing it to roblox?

what do you guys suggest?

1 Like

I’d suggest separating them (via the model tab) and just individually color each part however you desire to.

Like so:

Select the building in the Explorer → Go to the model tab → Click “Seperate” → Apply the colors you want

1 Like

KrimsonWolf wants the players to change colors tho.

1 Like

“in the game I want to allow the player to change the color of the floors and walls, etc. However, I cant because its a unionoperation.”

I’m a guy bruh4ngl nwelnflwewegwe

1 Like

I mean you could place a part that has a desired color wherever the player clicks (or whatever action that triggers the event you want).

I know there’s a CanvasDrawing module out, forgot what it was called.

I’m so sorry my mistake :sweat_smile::sweat_smile: but you could try getting each part and making them into a mesh, because I know that you can change colors on those.

1 Like

Its adopt me style of changing colors not bloxburg. When they change the color of the walls it changes the color of all the walls on the floor and same with floor

1 Like

Yes I already said that I was asking how I do that.

2 Likes

Import it into Blender and export it as a mesh. That’s one way I know how to make one.

1 Like

You could use a pairs loop and iterate thru the building’s children like so:

for i, child in pairs(building:GetChildren()) do
child.Color = BrickColor.new(color)
-- Your code here
end
2 Likes

You cant change the color of union operations. I am also a scripter so you dont have to send me extremely basic code.

Here I found a tutorial that doesn’t require blender to make a union into a mesh.

1 Like

I don’t use blender because they keep updating the layout which ruins all the beginner tutorials

This tutorial is one of the worst tutorials I’ve seen in my life but I assume that they uploaded it to roblox and used the assetID.

  1. no sound of any kind
  2. they leave out super important steps
  3. they dont even use like notepad for basic communication
1 Like

Yea sorry but it’s the best one I could find that matches your case. Hopefully this works atleast.

–1st: Make your mesh
–2nd: Select all the parts of your mesh
–3rd: Union them at the model tab
–4th: Right click on the Union in the explorer tab and click “export selection” at the bottom
–5th: Put the file anywhere you want
–6th: Create a mesh part
–7th: Go to its properties and click the folder with an arrow at the MeshID and wait for a few seconds
–And now you have a mesh.

they put this in the description of the video

1 Like

okay I did this but it left out a ton of important parts and stuff.

image
see it only addeed the windows

1 Like

are they all individual parts and not a group ? Because it’s best to make all the objects separate and not into one group when making them into a mesh and reposition all of them to the original build u made.