Version (Property): Difference between revisions

From Legacy Roblox Wiki
Jump to navigationJump to search
>Tenal
No edit summary
>JulienDethurens
No edit summary
Line 1: Line 1:
{{Property
{{Property
|name = Version
|name = Version
|objects = [[CoreGui]], [[GuiService]]
|objects = {{type|instance=CoreGui}}, {{type|instance=GuiService}}
|description = A read-only version of the [[HUD]]. This number is automatically incremented every time the [[HUD]] undergoes a major change.
|description = A read-only version of the [[HUD]]. This number is automatically incremented every time the [[HUD]] undergoes a major change.
|property = [[Integer]] ''version''
type = {{type|int}}
}}
}}


{{clear floats}}
{{clear floats}}
<br>


{{Example|Get the HUD version via a LocalScript:
{{Example|Get the HUD version via a LocalScript:
<pre>
<code lua>
print(game:GetService("CoreGui").Version) --> 3
print(game:GetService("CoreGui").Version) --> 3
print(game:GetService("GuiService").Version) --> 1
print(game:GetService("GuiService").Version) --> 1
</pre>}}
</code>}}
[[Category:Properties]]
[[Category:Properties]]

Revision as of 06:48, 19 February 2012

Version
Property
Description A read-only version of the HUD. This number is automatically incremented every time the HUD undergoes a major change.

type = int

Member of CoreGui, GuiService


Example
Get the HUD version via a LocalScript:

print(game:GetService("CoreGui").Version) --> 3 print(game:GetService("GuiService").Version) --> 1