This is a simple script to increase the size of the chat box and add another message. However, whenever the Canvas size increases, the messages spread further apart. Is there any way to fix this issue?
event.OnClientEvent:Connect(function(given)
print(given)
local chatted = chat.previous_message:Clone()
chatted.Text = given
chatted.Parent = chat
chat.CanvasSize = chat.CanvasSize + UDim2.new(0,0,0.264,0)
ts:Create(chatted,TweenInfo.new(1,Enum.EasingStyle.Bounce),{Position = chat.previous_message.Position + UDim2.new(0,0,0.264,0)}):Play()
wait(1)
chatted.Position = previous_message.Position + UDim2.new(0,0,0.11,0)
previous_message = chatted
end)



+