Text not showing on new TextLabel instance created

I am not sure if this is a bug or not, but this is really weird.

Onto the point, I am trying to create a TextLabel script from inside of a LocalScript, and here is how the script looks:

local gui = script.Parent

wait(1)
local txtlabel = Instance.new("TextLabel", gui)
txtlabel.Text = "text"

Here is the result:

Im thinking that this code should work, right? No, it doesn’t work, at all. The text or background isn’t even visible at all, and if your asking if the LocalScript is inside of the gui, yes, it is.

I haven’t found any solutions and just need some help with this.
Thank you.

Edit: Neither text or the background of the text is showing, this is super weird.

Possibly the size is 0, 0, 0, 0 by default, try changing this.

Wow, didn’t know it was that simple. Roblox really makes stuff difficult sometimes, huh.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.