Skip to content

Class · inherits ValueBase

StringValue

Official docs ↗

A container object for a single string.

About StringValue

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

  • Value: stringThe stored string.

    The stored string.

Events 1

  • ChangedStringValue.Changed:Connect(function(value))Fires whenever StringValue.Value is changed.

    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.

StringValue also has every member of ValueBase. Deprecated and Roblox-only members are hidden.

Reference text from the Roblox Creator Documentation, licensed CC BY 4.0, reorganized by rbxtoolshub.com · Studio 0.743.0.7431133.