GetValue (Method): Difference between revisions
From Legacy Roblox Wiki
Jump to navigationJump to search
>ArceusInator redirect to GetValue (Function) |
>Blocco No edit summary |
||
Line 1: | Line 1: | ||
<onlyinclude>{{Method | |||
|name = GetValue | |||
|returns = ''value'' | |||
|description = Returns the [[StatsItem|StatsItems's]] value. Its value cannot be read unless this function is used. The value's type differs between differrent [[StatsItem|StatsItems]]. | |||
|object = StatsItem | |||
|protected = yes | |||
}}</onlyinclude> | |||
{{clear floats}} | |||
{{Example| | |||
If using the [[Command Bar]] or a [[CoreScript]]... | |||
<pre> | |||
print(game.Stats.Workspace.World.Joints:GetValue()) --> 7 | |||
</pre> | |||
If using a [[Script]] or [[LocalScript]]... | |||
<pre> | |||
print(game.Stats.Workspace.World.Joints:GetValue()) --> s GetValue | |||
</pre> | |||
}} | |||
[[Category:Methods]] |
Revision as of 20:36, 27 December 2010
GetValue( ) | |
Returns | value |
Description: | Returns the StatsItems's value. Its value cannot be read unless this function is used. The value's type differs between differrent StatsItems. |
Member of: | StatsItem |
Example
If using the Command Bar or a CoreScript...
print(game.Stats.Workspace.World.Joints:GetValue()) --> 7
If using a Script or LocalScript...
print(game.Stats.Workspace.World.Joints:GetValue()) --> s GetValue