Class · inherits ValueBase
StringValue
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
Changed
StringValue.Changed:Connect(function(value))Fires wheneverStringValue.Valueis changed.Fires whenever the
IntValue.Valuechanges. It runs with the new value being stored in the argument object, instead of a string representing the property being changed.Listening for the
Changedsignal can be useful in games that useStringValuesto 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.