How to chance UIGradient in script?

local ON_COLOR = ColorSequence.new(92, 239, 0, 163, 253, 28)
local OFF_COLOR = ColorSequence.new(223, 50, 116, 221, 49, 52)

The ColorSequence constructor expects an array of ColorSequenceKeypoints:

local ON_COLOR = ColorSequence.new({
    ColorSequenceKeypoint.new(0, Color3.fromRGB(92, 239, 0)),
    ColorSequenceKeypoint.new(1, Color3.fromRGB(163, 253, 28)),
}) --> notice the curly brackets

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