GetValue (Method): Difference between revisions
From Legacy Roblox Wiki
Jump to navigationJump to search
>Blocco No edit summary |
>JulienDethurens No edit summary |
||
(3 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{Locked}} | |||
<onlyinclude>{{Method | <onlyinclude>{{Method | ||
|name = GetValue | |name = GetValue | ||
|returns = | |returns = {{type|double}} | ||
|description = Returns the | |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 |
Latest revision as of 03:09, 15 February 2012
Protected:This item is protected. Attempting to use it in a Script or LocalScript will cause an error.
GetValue( ) | |
Returns | double |
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:GetValue()) --> 7
If using a Script or LocalScript...
print(game.Stats.Workspace.World.Joints:GetValue()) --> s GetValue