Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Color changing decal with fade effect?

Asked by
Belvari 15
9 years ago

Does anyone know how to make a script that will change the decal not by just changing like make it have a fade effect. I want to make it look as if it is changing color's by making different colored images and uploading them as decals, Then use the script to make it look as if it is changing colors! I have looked all over the wiki and google and could not find anything. I saw it at Snowies and would love to use something like it. Thanks for the help! :)

3 answers

Log in to vote
0
Answered by
Hexcede 52
9 years ago

That would take a long time to upload but simply set the decal id to the id of the image. Upload an image by creating a decal, and inserting it by id with the insertservice, then copy the image id and use that in your script as one frame. It would take a couple minutes just to upload so good luck and If you didn't understand that tell me what you didn't understand.

Answer edit: You need a lot of images and use just plain wait() You might actually be able to set the decal's saturation to 0 (black/white) one image, then set its transparency to 0.01 and create a surface gui with a frame in it of size {1, 0}, {1, 0} to fill up the brick, and set the frame's transparency to 0.5 also, then set the frame's color to Color3.new(r/255, b/255, g/255). You might need to find a way to add up 1/255 at a time and use rainbow colors, but I have never had a rainbow colors problem. Try BrickColor.new(brickcolorname).Color and use those, but have it add up from it's last values to that color. It's hard to explain but it might work.

0
Okay, I know that. The part I was struggling with is how do I make it fade, Like so it doesn't look choppy when it changes. More of a fade effect when it changes. Thanks! Belvari 15 — 9y
0
Like if you have ever been to snowies they have their logo and it fades different color's. Belvari 15 — 9y
0
If possible could you post the script for the rainbow? If Possible. Thanks! Belvari 15 — 9y
0
I will try! Hexcede 52 — 9y
0
Try this, only modify it to adjust a surface gui frame with whatever transparency (example 0.5): https://scriptinghelpers.org/questions/4753/how-do-you-make-something-fade-from-a-color-to-another-color Hexcede 52 — 9y
Ad
Log in to vote
0
Answered by 9 years ago

If you want your decal to fade look no further! Use for loops!!!

while true do
for i = 0, 1, .1 do
script.Parent.Decal.Transparency = i
wait()
end
wait(.3)
for i = 1, 0, -.1 do
script.Parent.Decal.Transparency = i
wait()
end
end

0
I'll try it! Also, Does this make it invisible then make it visible again as a new color, I'm trying to keep it visible but, fade a different color. Belvari 15 — 9y
0
No, it only makes it invisible and then back to visible but it doesnt change color.If you want an image to change color use SurfaceGuis on bricks within a ImageLabel! UltraUnitMode 419 — 9y
0
I don't know how snowies did it then. They have like a decal that fades different colors. I'd recommend taking a look at their place. It's interesting. Belvari 15 — 9y
0
How do you its a decal? UltraUnitMode 419 — 9y
View all comments (11 more)
0
I don't know I think they made like a bunch of different colored decals then added them, but, I want a fade affect without making it invisible and a choppy change. Belvari 15 — 9y
0
Oh, UltraUnitMode 419 — 9y
0
Like I said, If you could take a look at http://www.roblox.com/games/296681430/Snowies-Cafe You will notice their color changing logo on the wall. It looks really nice. I just don't know how they did it. Belvari 15 — 9y
0
I found a post on the wiki page about Re texturing Going to give it a try Belvari 15 — 9y
0
Okay, good luck! UltraUnitMode 419 — 9y
0
Okay, i think i know now. They used Surface guis and put a ImageLabel and the image is white so what they did is Color3.new() to change colors! UltraUnitMode 419 — 9y
0
Nevermind Retexturing is for mesh's. Still nothing :( Belvari 15 — 9y
0
Okay I am going to try that out I made a white decal created an image label and and added a script with, Color3.new(). Would that be all I add to the script? just Color3.new() Belvari 15 — 9y
0
@Ultra wouldn't I use ImageColor3.new() Belvari 15 — 9y
0
No... UltraUnitMode 419 — 9y
0
I'm still having issues, I sent you a friend req. Belvari 15 — 9y
Log in to vote
0
Answered by
Belvari 15
9 years ago

SOLVED!

while wait(0.1) do script.Parent.ImageColor3 = Color3.new(math.random(0, 255)/255, math.random(0, 255)/255, math.random(0, 255)/255) end

This script should go inside of the ImageLabel.

Answer this question