Tryng to make a smoothly color increment

Im tryng to make a smoothly color increment but I can’t make it work and I really don’t know why…

Screenshot_1

So like the neon part is on 0,0,0 but I want to increase it to 255, 255, 255 smoothly and without using tweens

It’s much easier to use TweenService for this, and you’re given a lot of options as well. Tween style, speed, etc.

local tween_service = game:GetService("TweenService")

local function Tween_To_Color(color)
local info = TweenInfo.new(.5, Enum.EasingStyle.Quad) --//First param is time, second is style.

tween_service:Create(vaultdoor.Neon, info, {Color = color}):Play()
end

Tween_To_Color(Color3.fromRGB(0, 255, 0))

EDIT

Why do you not want to use tweens? It literally makes life so much easier.

2 Likes

Well it’s because its something very basic and not something that will be very visible, also I was curious if there was any way to change the value like that, but thank you for the help, I will use tweens :slight_smile:

1 Like