Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

how would you make a part slowly change to another color?

I would like to know how to do that without writing like hundreds of lines of code to get every single different hue of the colors. Is this possible? If it is, I'm pretty sure it involves tweenservice, if not tell me otherwise I guess

2 answers

✓ Accepted answer

Yes it does, could you explain more In depth however so we can understand what you’re goal is with the code below?

local TweenService = game:GetService("TweenService")

local TweenInformation = TweenInfo.new(5)
local TweenTo = {Color = Color3.fromRGB(0,0,0);}

local Part = workspace.Part

TweenService:Create(Part, TweenInformation, TweenTo):Play()

3 comments

0

so on the 3rd line, what does the 5 indicate? the color we're starting at or what

0

also, i was trying to stay pretty broad so that i could use this knowledge in any given situation that i need colors to change

0

5 is the time it takes

This discussion is preserved as it was. New answers, comments, and votes are closed.