So I got text buttons that are colored and this script is in a bunch, im trying to turn the color into a brick color than turn the brick color into string and put it as a value to the player. But it doesn’t put the value in it? What am I doing wrong
EDIT: Just noticed, it is completely working, but for some reason when doing the local color, it thinks its black, 0,0,0?
script.Parent.MouseButton1Click:Connect(function()
local PlayerValue = script.Parent.Parent.Parent.Parent.Parent.Parent.HomeOwner.Value
local Player = game.Players:FindFirstChild(script.Parent.Parent.Parent.Parent.Parent.Parent.HomeOwner.Value)
local Me = script.Parent.Parent.Parent.Parent.Parent.Parent.PersonUsing.Value
local color = BrickColor.new(Color3.new(script.Parent.BackgroundColor3))
local value = tostring(BrickColor.new(Color3.new(script.Parent.BackgroundColor3)))
Player:WaitForChild("stats"):WaitForChild("InteriorWalls").Value = value
if Me == PlayerValue then
if Player then
local Children = script.Parent.Parent.Parent.Parent.Parent.Parent.Parent.Parent.Parent.Parent.InWalls:GetChildren()
for i = 1, #Children do
Children[i].Color = script.Parent.BackgroundColor3
end
end
end
end)