Full error:

Players.Player1.PlayerGui.Chat.ChatBox.LocalScript:27: bad argument #3 to 'TextColor3' (Color3 expected, got nil)

wait()
local chatbox1 = script.Parent.cb1
local chatbox2 = script.Parent.cb2
local chatbox3 = script.Parent.cb3
local chatbox4 = script.Parent.cb4
local chatbox5 = script.Parent.cb5
local chatbox6 = script.Parent.cb6
local chatbox7 = script.Parent.cb7
local chatbox8 = script.Parent.cb8
game.Workspace.ChatStorage.ChildAdded:connect(function(recent)
	if chatbox1.Text ~= " " or chatbox1.Text ~= "  " or chatbox1.Text ~= "   " or chatbox1.Text ~= "    " or chatbox1.Text ~= "     " or chatbox1.Text ~= "      " then
		chatbox1.Text = chatbox2.Text
		chatbox2.Text = chatbox3.Text
		chatbox3.Text = chatbox4.Text
		chatbox4.Text = chatbox5.Text
		chatbox5.Text = chatbox6.Text
		chatbox6.Text = chatbox7.Text
		chatbox7.Text = chatbox8.Text
		chatbox8.Text = recent.Name
		chatbox1.TextColor3 = chatbox2.TextColor3
		chatbox2.TextColor3 = chatbox3.TextColor3
		chatbox3.TextColor3 = chatbox4.TextColor3
		chatbox4.TextColor3 = chatbox5.TextColor3
		chatbox5.TextColor3 = chatbox6.TextColor3
		chatbox6.TextColor3 = chatbox7.TextColor3
		chatbox7.TextColor3 = chatbox8.TextColor3
		chatbox8.TextColor3 = recent.Value.Value -- this is the error.
	end
end)

Yes, there is a value named value in the StringValue, that shouldn't be the issue.

3 comments

0

Where is recent defined?

0

@imaginaryuberlyuber In the function as the child that is added.

1

recent:FindFirstChild('Value').Value