DLabel

How do I get the text in a DLabel?

Ex.
[lua]
local text = vgui.Create(‘DLabel’)
text:SetText(LocalPlayer():SteamID())
text:SizeToContents()
[/lua]

Now from there how would I get the text?

Not sure if this’ll work but try text:GetValue() or you’ll have to set it like text.Text = LocalPlayer():SteamID() then use that

Should just be [lua]text:GetValue()[/lua] or [lua]tostring(text:GetValue())[/lua]

But i’m pretty sure GetValue returns a string anyways