So i have a function in my module gui that creates a paragraph, but size of doesn’t really change , for example i have a 5 lines sentence, but only shows 1 line like it doesn’t calculate textbounds? Here’s the script .
For example , i have a sentence with 5 lines , textbounds.y is 39 , and if add another line (6 lines) it stays the same and so the size doesn’t get updated
function buttons:MakeParagraph(Text)
local TextFrame=create('Frame',{Parent=Tab_Frame,Size=UDim2.fromOffset(350,55),BackgroundTransparency=1})
local Slidestroke = create('UIStroke', {Parent = TextFrame, Color = Color3.fromRGB(230, 230, 230), Thickness = 2.6, ApplyStrokeMode = Enum.ApplyStrokeMode.Border})
local container=create('TextLabel',{TextSize=25,TextXAlignment=Enum.TextXAlignment.Left,TextYAlignment=Enum.TextYAlignment.Top,TextColor3=Color3.fromRGB(220,220,220),AnchorPoint=Vector2.new(.5,.5),Text='',TextWrapped=true,Font=Enum.Font.Michroma,Parent=TextFrame,Size=UDim2.new(.95000,0,0,20),Position=UDim2.fromScale(.5,.5),BackgroundTransparency=0})
container:GetPropertyChangedSignal'TextBounds':Connect(function()
container.Size=UDim2.new(.95000,0,0,container.TextBounds.Y)
TextFrame.Size=UDim2.new(0,350,0,container.TextBounds.Y+30)
end)
container.Text=Text
end