Chat gui issue Kinda broken

So I’m making a chat system but there is 2 of them for 2 different things but it don’t want to work when I type something in the 1st one it appears on both when I type it on the 2nd one it don’t appear.



local re = game.ReplicatedStorage:WaitForChild("MessageSentRETWO")

local folder = game.ReplicatedStorage:WaitForChild("MessageFolder")


local scroller = script.Parent.MessageScroller2


local ts = game:GetService("TweenService")
local ti = TweenInfo.new(0.3, Enum.EasingStyle.Quint, Enum.EasingDirection.InOut)


local maxMsgs = 200

local messages = {}



folder.ChildAdded:Connect(function(child)
	
	
	local textLabel = script.MessageTemplate2:Clone()
	
	textLabel.Text = child.Value
	
	textLabel.TextTransparency = 1
	textLabel.BackgroundTransparency = 1
	
	textLabel.Parent = scroller
	
	ts:Create(textLabel, ti, {TextTransparency = 0, BackgroundTransparency = 0}):Play()
	
	
	table.insert(messages, {child.Value, textLabel})
	
	
	if #messages > maxMsgs then
		
		messages[1][2]:Destroy()
		table.remove(messages, 1)
	end
	
	scroller.CanvasSize = UDim2.new(0, 0, 0, scroller.UIListLayout.AbsoluteContentSize.Y)
	
	scroller.CanvasPosition = Vector2.new(0, 9999)
end)


script.Parent.ChatInput2.FocusLost:Connect(function(enterPressed)
	
	if not enterPressed then return end
	
	re:FireServer(script.Parent.ChatInput2.Text)
	
	script.Parent.ChatInput2.Text = ""
end)


game:GetService("UserInputService").InputBegan:Connect(function(inp, gameProcessed)
	
	if gameProcessed then return end
	
	if inp.KeyCode == Enum.KeyCode.Slash then
		
		wait()
		script.Parent.ChatInput2:CaptureFocus()
	end
end)```



the output says:

>Infinite yield possible on 'ReplicatedStorage:WaitForChild("MessageSentRE2")