local e=game:GetService("\082\101\112\108\105\099\097\116\101\100\083\116\111\114\097\103\101")local V=e:WaitForChild("\114\097\100\105\111\083\104\097\114\101\100")local l=require(V:WaitForChild("\070\117\115\105\111\110"))local t,S,o=l.New,l.Children,l.OnEvent return function(e)local V V=(t("\083\099\114\111\108\108\105\110\103\070\114\097\109\101"))({Name="\077\101\115\115\097\103\101\115";Size=UDim2.fromScale(.95,.606),BackgroundTransparency=1,AnchorPoint=Vector2.new(.5,0),Position=UDim2.fromScale(.5,.329),ScrollBarThickness=5,AutomaticCanvasSize=Enum.AutomaticSize.Y;CanvasSize=UDim2.new();BottomImage="\114\098\120\097\115\115\101\116\058\047\047\116\101\120\116\117\114\101\115\047\117\105\047\083\099\114\111\108\108\047\115\099\114\111\108\108-\109\105\100\100\108\101\046\112\110\103";MidImage="\114\098\120\097\115\115\101\116\058\047\047\116\101\120\116\117\114\101\115\047\117\105\047\083\099\114\111\108\108\047\115\099\114\111\108\108-\109\105\100\100\108\101\046\112\110\103";TopImage="\114\098\120\097\115\115\101\116\058\047\047\116\101\120\116\117\114\101\115\047\117\105\047\083\099\114\111\108\108\047\115\099\114\111\108\108-\109\105\100\100\108\101\046\112\110\103",VerticalScrollBarInset=Enum.ScrollBarInset.Always,[o("\067\104\105\108\100\065\100\100\101\100")]=function()task.wait()V.CanvasPosition=Vector2.new(0,V.AbsoluteCanvasSize.Y)end;[S]={UIListLayout=(t("\085\073\076\105\115\116\076\097\121\111\117\116"))({FillDirection=Enum.FillDirection.Vertical;SortOrder=Enum.SortOrder.LayoutOrder;VerticalAlignment=Enum.VerticalAlignment.Top;HorizontalAlignment=Enum.HorizontalAlignment.Center,Padding=UDim.new(0,5)}),e[S]}})return V end
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local shared = ReplicatedStorage:WaitForChild("radioShared")
local Fusion = require(shared:WaitForChild("Fusion"))

local New, Children, OnEvent = Fusion.New, Fusion.Children, Fusion.OnEvent

return function(props)
	local messages
	messages = New("ScrollingFrame")({
		Name = "Messages",
		Size = UDim2.fromScale(0.95, 0.606),
		BackgroundTransparency = 1,
		AnchorPoint = Vector2.new(0.5, 0),
		Position = UDim2.fromScale(0.5, 0.329),
		ScrollBarThickness = 5,
		AutomaticCanvasSize = Enum.AutomaticSize.Y,
		CanvasSize = UDim2.new(),

		BottomImage = "rbxasset://textures/ui/Scroll/scroll-middle.png",
		MidImage = "rbxasset://textures/ui/Scroll/scroll-middle.png",
		TopImage = "rbxasset://textures/ui/Scroll/scroll-middle.png",
		VerticalScrollBarInset = Enum.ScrollBarInset.Always,

		[OnEvent("ChildAdded")] = function()
			task.wait() -- Roblox!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
			messages.CanvasPosition = Vector2.new(0, messages.AbsoluteCanvasSize.Y)
		end,

		[Children] = {
			UIListLayout = New("UIListLayout")({
				FillDirection = Enum.FillDirection.Vertical,
				SortOrder = Enum.SortOrder.LayoutOrder,
				VerticalAlignment = Enum.VerticalAlignment.Top,
				HorizontalAlignment = Enum.HorizontalAlignment.Center,
				Padding = UDim.new(0, 5),
			}),

			props[Children],
		},
	})

	return messages
end
