of     1   

databrain
#141326508Thursday, July 24, 2014 12:17 AM GMT

Whenever I use TextBounds, in my local script, on my TextLabel, it returns Vector2.new(0, 0). My script is local, and my TextLabel doesn't have TextScaled set to true. Any help on this? Is TextBounds no longer supported? It doesn't seem to work in online mode.
cntkillme
#141330938Thursday, July 24, 2014 1:01 AM GMT

Try waiting before getting it so it can render
Notunknown99
#141331116Thursday, July 24, 2014 1:03 AM GMT

Give it a parent.
Notunknown99
#141331385Thursday, July 24, 2014 1:06 AM GMT

(I found this to be annoying. I am 90% certain its JUST being a descendant of a PlayerGui and being renderable, IDK if Visible affects it)
cntkillme
#141331440Thursday, July 24, 2014 1:06 AM GMT

I don't think Visible affects it but when I used to use TextBounds, adding a wait usually fixed my problem of it returning (0, 0)
Notunknown99
#141331652Thursday, July 24, 2014 1:08 AM GMT

cntkillme: Don't wait, just check TextBounds after its parented and it will function correctly (IDK if it being offscreen affects it, I know being hidden by ClipsDescendants doesn't)
cntkillme
#141331804Thursday, July 24, 2014 1:10 AM GMT

Wouldn't it already be parented if he just puts it in a GUI in StarterGui? Or are you assuming he is Instance.newing?
Notunknown99
#141332002Thursday, July 24, 2014 1:12 AM GMT

I am assuming he is cloning it from somewhere, checking TextBounds, then parenting it last.
cntkillme
#141332393Thursday, July 24, 2014 1:16 AM GMT

Probably. Anyway the scenario I was talking about (or at least it was like this a year ago) was when I had a GUI in starterGUI but I couldn't instantly check textbounds (example being: print(script.Parent.Label.TextBounds)), but after adding a wait it seemed to work. Maybe it was something wrong on my part.
Notunknown99
#141332506Thursday, July 24, 2014 1:17 AM GMT

Unless I do something wrong I never have that issue... Maybe they fixed it, but I don't remember a year ago or if I had a chat GUI a year ago (The largest use I use it for)
cntkillme
#141332745Thursday, July 24, 2014 1:19 AM GMT

I think I was using a BillboardGUI actually, parent being StarterGui and adronee'd to some part in workspace.
databrain
#141345432Thursday, July 24, 2014 3:25 AM GMT

So, it has to be parented? That's a pain. I was meaning to make it not show the text until it calculated the positions based off the text length. Allthough, if it's clipped by ClipDescendants, will it still work?
Notunknown99
#141345567Thursday, July 24, 2014 3:26 AM GMT

They wont notice, so why does it matter?

    of     1