I thought :GetTextSize was made for vertical uses, but its for horizontal uses. I want to get the vertical version of :GetTextSize() for my custom chat system. Like how Robloxs Chat does it, it sizes itself automatically enough for the text to fit with no extra space. I tried switching sides with X and Y but it doesn't work for me.
I need help with this, heres my script:
game.ReplicatedStorage.SendMessageRequest.OnClientEvent:Connect(function(plays, argument)
local playerName = plays.Name
local textMessage = argument
local clone = script.Parent.Template.TextPlayerMessageBox:Clone()
local message = playerName .. ": " .. textMessage
clone.Content.Text = message
local sizeSetRaw = textService:GetTextSize(message, clone.Content.TextSize, clone.Content.Font, clone.Content.AbsoluteSize)
print(sizeSetRaw)
local sizeSet = UDim2.new(0, clone.Content.Size.X.Offset, 0, sizeSetRaw.X)
Please help
thx

1 comment
There is discussion about this here https://devforum.roblox.com/t/is-there-any-way-to-do-something-like-gettextsize-but-vertical/