Workshop.codes
Create

Create In-World Text Last updated November 26, 2024

Description

Creates in-world text visible to specific players at a specific position in the world. This text will persist until destroyed. To obtain a reference to this text, use the Last Text Id value. This action will fail if too many text elements have been created.

Snippet

Create In-World Text(All Players(All Teams), Custom String(""), Vector(0, 0, 0), 1, Clip Against Surfaces, Visible To Position And String, Color(White), Default Visibility);

Properties

Returns: Void
Parameters: Visible To, Header, Position, Scale, Clipping, Reevaluation, Text Color, Spectators

Visible To
Type: Player | Array (Player), Default: All Players
One or more players who will see the in-world text.

Header
Type: Object, Default: String
The text to be displayed.

Position
Type: Position, Default: Vector
The text's position. If this value is a player, then the text will appear above the player's head. Otherwise, the value is interpreted as a position in the world.

Scale
Type: Float, Default: Number (1)
The text's scale.

Clipping
Type: Clip, Default: Clip Against Surfaces
Specifies whether the text can be seen through walls or is instead clipped.

Reevaluation
Type: In-World Text Reevaluation, Default: Visible To Position And String
Specifies which of this action's inputs will be continuously reevaluated. The text will keep asking for and using new values from reevaluated inputs.

Text Color
Type: Color, Default: Color
Specifies the color of the in-world text to use.

Spectators
Type: Spectator Visibility, Default: Default Visibility
Whether spectators can see the text or not.

Workshop.codes