TextLabel
An in-world text label.
For examples on how to use, refer to UIService.
Functions
setText(text: string)
Sets the font of the text.
setFont(font: Font)
Sets the font of the text from the Roblox Enum for Fonts. Written as Font.Arial
.
setPosition(position: Vector3)
Sets the position of the label.
getPosition(): Vector3
Returns the position of the label.
setTextColor(color: Color3)
Sets the color of the text on the label.
setBackgroundColor(color: Color3)
Sets the color of the background of the label.
setTextTransparency(transparency: number)
Sets the transparency of the text on the label. Transparency ranges from 0 (opaque) to 1 (invisible).
setBackgroundTransparency(transparency: number)
Sets the transparency of the background of the label. Transparency ranges from 0 (opaque) to 1 (invisible).
setSize(size: UDim2)
Sets the size of the label.
setSize(): UDim2
Returns the size of the label.
setMaxDistance(distance: number)
Sets the max distance at which the label can still be seen.
destroy()
Removes the label.
Last updated