Roblox UtilitiesDevlHub Roblox Documentation

Class

StringValue

Inherits
ValueBase › Instance › Object
Memory category
Instances

A container object for a single string.

Stores a single Luau string. The length of the string can't be more than 200,000 characters; anything longer causes a String too long error.

If the string is too long to be displayed in the Value field within the Properties window, it shows partial string contents and an ellipsis (...).

Like all ValueBase objects, this single value is stored in the Value property. The Changed event fires with the new value being stored in the object, instead of a string representing the property being changed.

Properties 1#

ValuestringThe stored string.ReadSafe

Value: string#

ReadSafe

The stored string.

Events 2#

ChangedFires whenever StringValue.Value is changed.
changedDeprecated

Changed(value: string)#

Fires whenever the IntValue.Value changes. It runs with the new value being stored in the argument object, instead of a string representing the property being changed.

Listening for the Changed signal can be useful in games that use StringValues to track values like NPC names or item descriptions.

NameTypeDefaultDescription
valuestringThe new value after the change.

changed(value: string)#

DeprecatedDeprecated

Deprecated. This deprecated event is a variant of StringValue.Changed which should be used instead.

NameTypeDefaultDescription
valuestring

Inherited members#

Inherited from Instance 58
Inherited from Object 6
Properties (2)

ClassName, className

Events (1)

Changed