GetValueString (Method): Difference between revisions

From Legacy Roblox Wiki
Jump to navigationJump to search
>Emess
No edit summary
>JulienDethurens
No edit summary
Line 3: Line 3:
<onlyinclude>{{Method
<onlyinclude>{{Method
|name        = GetValueString
|name        = GetValueString
|returns    = [[String]] ''value''
|returns    = {{type|string}}
|description = Returns the [[StatsItem|StatsItems's]] value.  Its value cannot be read unless this function is used.
|description = Returns the {{type|instance=StatsItem}}'s value.  Its value cannot be read unless this function is used.
|object      = StatsItem
|object      = StatsItem
|protected  = yes
|protected  = yes
Line 12: Line 12:


{{Example|
{{Example|
If using the [[Command Bar]] or a [[CoreScript]]...
If using the [[Command Bar]] or a {{type|instance=CoreScript}}...
<pre>
<pre>
print(game.Stats.Workspace.World.Joints:GetValueString()) --> 7
print(game.Stats.Workspace.World.Joints:GetValueString()) --> 7
</pre>
</pre>
If using a [[Script]] or [[LocalScript]]...
If using a {{type|instance=Script}} or {{type|instance=LocalScript}}...
<pre>
<pre>
print(game.Stats.Workspace.World.Joints:GetValueString()) --> s GetValueString
print(game.Stats.Workspace.World.Joints:GetValueString()) --> s GetValueString

Revision as of 03:12, 15 February 2012

Protected:This item is protected. Attempting to use it in a Script or LocalScript will cause an error.
GetValueString( )
Returns string
Description: Returns the StatsItem's value. Its value cannot be read unless this function is used.
Member of: StatsItem


Example

If using the Command Bar or a CoreScript...

print(game.Stats.Workspace.World.Joints:GetValueString()) --> 7

If using a Script or LocalScript...

print(game.Stats.Workspace.World.Joints:GetValueString()) --> s GetValueString