AutomaticSize not working all the time

Hello!

I have been experiencing a bug concerning the use of AutomaticSize, precisely with TextLabels, let me summarize the issue:

OverheadGui System:

My system basically clones a BillboardGui inside the user’s head, changes the Text property of a TextLabel. That TextLabel has AutomaticSize for X and Y enabled, however, what I have noticed is sometimes the AutomaticSize just won’t register both on the server and on the client.

image

  • In more detail, the text has changed, however the TextBounds do not change at all and stay at (0,19) size.

  • The expected behavior is obviously that the TextBounds change upon a different Text inputted.

  • I have not been able to reproduce the issue in another game, it has been happening in this game: Furry Fandom: Hangout - Roblox

  • This does not seem to impact performance, and when I change the text property after the original text is in, it does seem to be working again after.

Here is a video showcasing the issue:

And here’s a bit of my code showcasing exactly what I am doing step by step:

local displayText = user_frame:WaitForChild("Display")
overhead_copy.Parent = head -- Adds the part to the head
CollectionService:AddTag(overhead_copy, "OverheadGui")

local s,e = pcall(function()
	displayText.Text = player.DisplayName -- Changes the text
	change_color(canvasGroup, player.TeamColor.Color) -- Changes the color of the name
	add_images(player, user_frame) -- Adds images to the frame
end)
if not s then print(e) end

I did try changing the size of the text before parenting it and it seems to have done nothing.

EDIT: It seems that the Server-Side TextBounds changed accordingly to the text inputted (became {51, 19}), however on some clients sometime that value does not replicate properly (stayed {0, 19}).

Additional note: That one player spawned considerably further away than the others, Streaming Enabled is enabled, so maybe this issue is linked to that!

Thank you.

1 Like

We’ve filed a ticket to our internal database, and we’ll follow up when we have an update!

Thanks for the report!

2 Likes