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 = | |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. | ||
| | type = {{type|int}} | ||
}} | }} | ||
{{clear floats}} | {{clear floats}} | ||
{{Example|Get the HUD version via a LocalScript: | {{Example|Get the HUD version via a LocalScript: | ||
< | <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 | ||
</ | </code>}} | ||
[[Category:Properties]] | [[Category:Properties]] |
Revision as of 06:48, 19 February 2012
![]() | |
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