so basically, im trying to change a part’s color with attributes. dont ask why
here is the script that im trying
local ye = script.Parent
local color2 = ye:GetAttribute("color")
ye.Color = color2
which surprisingly doesnt work. and the error says:
Workspace.Part.Script:4: invalid argument #3 (Color3 expected, got nil)
what do i do?
Are you sure attribute’s name is “color” and not “Color” and you sure you created one?
blokav
(blokav)
#3
Can you show the line where the “color” attribute is being set?
blokav
(blokav)
#5
Also it seems like Roblox doesn’t want us to be using attributes anyway:
Can’t you just store the color value in a variable?
Beta for attributes is out already, they just haven’t updated the API reference page yet or they are waiting to move it out of beta.
1 Like
if they wouldnt want us using it they wouldnt release it as a beta.
and for this
then there would be no point of having a color attributes.
He sent an image of it already.
Are you sure you added it to the correct part or sure that script is parented to the part with attribute?
2 Likes
Space is not allowed in attribute names, creating one with space in it would throw error for containing illegal characters.
1 Like
oh, my bad i accidentally added the attribute in the script instead of the part 
well uh, i thank yall for helping then 