Class
StringValue
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#
Valuestring | The stored string.ReadSafe |
Events 2#
| Changed | Fires whenever StringValue.Value is changed. |
| changed | Deprecated |
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.
| Name | Type | Default | Description |
|---|---|---|---|
value | string | The new value after the change. |
changed(value: string)#
DeprecatedDeprecated
Deprecated. This deprecated event is a variant of StringValue.Changed which
should be used instead.
| Name | Type | Default | Description |
|---|---|---|---|
value | string |
Inherited members#
Inherited from Instance 58
Properties (10)
Archivable, archivable, Capabilities, IsInSandbox, Name, Parent, PredictionMode, RobloxLocked, Sandboxed, UniqueId
Methods (39)
AddTag, children, ClearAllChildren, Clone, clone, Destroy, destroy, FindFirstAncestor, FindFirstAncestorOfClass, FindFirstAncestorWhichIsA, FindFirstChild, findFirstChild, FindFirstChildOfClass, FindFirstChildWhichIsA, FindFirstDescendant, GetActor, GetAttribute, GetAttributeChangedSignal, GetAttributes, GetChildren, getChildren, GetDebugId, GetDescendants, GetFullName, GetStyled, GetStyledPropertyChangedSignal, GetTags, HasTag, IsAncestorOf, IsDescendantOf, isDescendantOf, IsPropertyModified, QueryDescendants, Remove, remove, RemoveTag, ResetPropertyToDefault, SetAttribute, WaitForChild