Hey there everyone,
Currently I’m trying to make a CanvasGroup that resizes based off how long the textlabel inside it is, I’ve searched around the Forum but they didn’t work for me for some reason.
Here is my layout:
,
I’ve tried implementing a code like this:
HoverInfoUI.Size = UDim2.fromScale(HoverInfoUITextLabel.TextBounds.X / workspace.CurrentCamera.ViewportSize.X, HoverInfoUI.Size.Y.Scale)
But for some reason it doesn’t work because everytime I rehover over something the CanvasGroup gets a little smaller, until it becomes so small you cant see it anymore.
Help would be greatly appreciated!