local PrimaryColor = Instance.new("BrickColorValue",Storage) PrimaryColor.Name = "PrimaryColor" PrimaryColor.Value = PrimaryColor1:GetAsync(player.UserId) or BrickColor.Random() PrimaryColor.Changed:connect(function() PrimaryColor1:SetAsync(player.UserId,PrimaryColor.Value) end)
At line 3.
the thing your doing wrong is that your using a BrickColorValue
, not a Color3Value
if there is one but BrickColors
arent numbers though words like Really red. Im not sure whats PrimaryColor1 nor Storage, but i guess its a number of some sort. I just looked at the error lol so im not sure
also the parent parameter of Instance.new()
is decaperated, set the parent last such as this:
not
local ack = Instance.new("Part", workspace) ack.Name = "hi"
this
local ack = Instance.new("Part") ack.Name = "hi" ack.Parent = workspace