ok so, i have some BADLY written code that i need some coding guru to take a look at!! I just don't understand why my gui textbuttons color keeps showing up black... Like even though i like black stuff, I don't understand why its not some other color, here is my pathetic code..
(Dont worry about the variables and all)
for _, v in pairs(game.ReplicatedStorage.Shop_Items:WaitForChild(typeC):GetChildren()) do
local new = game.ReplicatedStorage.Shop_Items.Default_Button:Clone()
new.Parent = Main.Purchase_Chest.Main
new.Name = v.Name
new.Text = v.Name
local obj = game.ReplicatedStorage.Shop_Items:WaitForChild(typeC):FindFirstChild(v.Name)
print(obj.Color)
new.BackgroundColor3 = Color3.new(obj.Color)
end
it all works except the background color doesnt change to the other color
example:
local color = workspace.Part
gui.BackgroundColor3 = Color3.new(color.Color)
In the example above i try changing the background color to whatever the parts color is but it will forever show up black, I will never understand it, help please. thx

7 comments
tried thta ^_^
i noticed it prints colors like 0 1 0 1 0 0 1
It's working fine for me, I just tested it in studio?
remember i have to set it to another color3, i cant use numbers...
I don't understand. Are you setting a GUI's color to match a part's color or is it more than that? What is the "obj" variable's class?
obj is a particle emitter, I am trying to set a gui color to a particles color
Particle emitters are a color sequence. Use ColorSequence.new() to do it. https://developer.roblox.com/api-reference/datatype/ColorSequence