Is this possible in roblox studio?

Hello you may have already saw this post in building support but i realized that i need some scripting if i want to achieve the effect right here :

Currently i only have the colorcorrectioneffect but the entire world becomes white and black and i want some object have colors like the ship (I know kinda weird ship) like in the trailer

25 Likes

I think that if you just set each part that should be black and white grey or black and white it would do the job but I’m not sure.

4 Likes

You can just use ColorCorrection, then set the Saturation level to 0, to make everything black and white.
But in the photo there is some coloring, so I guess you would have to manually set the parts to black or white.

3 Likes

Do you know how i could do that ?

4 Likes

For the ColorCorrection, you simply go to Lighting and add that in. You find the Saturation property and set it to 0.

For the parts, there is a simple equation you can use for every part. Somewhat like this:

for _,part in pairs(workspace:GetDescendants()) do
    if part:IsA("BasePart") then
        local greyScale = (part.Color3.R,part.Color3.G,part.Color3.B)/3
        part.Color3 = Color3.fromRGB(greyScale,greyScale,greyScale)
    end
end

To test this, I would spend 2-3 minutes on making a very colorful house, to show this.

3 Likes

I tried to do this but it just recolors every part into balck and i’m not sure if i need to add the red blue and green value of the part and then divide it by 3 or other operation

Here’s what i had :

Here’s the result :

3 Likes

That’s something with the ColorCorrection. Delete that.

3 Likes

It’s still the same thing even when i deleted it

2 Likes

I don’t think it’s using RGB, but rather a 0-1 color scale.

Try this:

for _,part in pairs(workspace:GetDescendants()) do
    if part:IsA("BasePart") then
        local greyScale = (part.Color3.R*255,part.Color3.G*255,part.Color3.B*255)/3
        part.Color3 = Color3.fromRGB(greyScale,greyScale,greyScale)
    end
end
1 Like

Should i add all of them (part.Color3.R*255,part.Color3.G*255,part.Color3.B*255) like this (part.Color3.R*255 + part.Color3.G*255 + part.Color3.B*255) ?

1 Like

My mistake, yeah you should add them. Sorry about that.

for _,part in pairs(workspace:GetDescendants()) do
    if part:IsA("BasePart") then
        local greyScale = (part.Color3.R+part.Color3.G+part.Color3.B)/3
        part.Color3 = Color3.fromRGB(greyScale,greyScale,greyScale)
    end
end
1 Like

It works really well

Remember not to accidentally make the parts black and white, the script will do it for you.
Make your builds colourful when making them.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.