So Im trying to change my parts color in a script with a color sequens from an attribute can somehelp me
local color = game.ReplicatedStorage.Boxes:FindFirstChild(boxName):FindFirstChild(colorButtonName):GetAttribute("Color")
newButton.Color = Color3.new(color)
Sure, if you’re using an attribute with the ColorSequence value as you say you are, then you can simply do this:
local color = game.ReplicatedStorage.Boxes:FindFirstChild("boxName"):FindFirstChild(colorButtonName):GetAttribute("Color")
newButton.Color = color
However this will only work with Beams, Trails and Particle Emitters. To do this with UI, you would need a UIGradient inside of the designated UI Object, then you would simply do the same thing as above but to the UIGradient. (UIGradient Documentation)