GetMoonPhase (Method): Difference between revisions

From Legacy Roblox Wiki
Jump to navigationJump to search
>SoulStealer9875
No edit summary
>JulienDethurens
No edit summary
 
(8 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<onlyinclude>{{Method
<onlyinclude>{{Method
|name = GetMoonPhase
|name = GetMoonPhase
|returns = [[Number]] ''phase''
|returns = {{type|float}} 0.75
|description = Returns the phase of the moon.
|description = Returns 0.75.
|object = Lighting
|object = Lighting
}}</onlyinclude>
}}</onlyinclude>
{{clear floats}}
{{clear floats}}
 
{{Example|You can print the current moon phase by doing this:
{{Example|<pre>
{{code and output
print( game.Lighting:GetMoonPhase() ) --> 0.75
|code=print(game.Lighting:GetMoonPhase())
</pre>}}
|output=0.75
 
}}}}
You can print the moon phase's value by doing this,
 
{{Example|<pre>
print( game.Lighting:GetMoonPhase() + 5 ) --> 5.75
</pre>}}
 
==Notes==
==Notes==
* The phase will always be 0.75.
* The phase will always be 0.75.
* You cannot change the moon's phase at current.
* The moon phase is currently unchangeable.
 
==See Also==
*[[Lighting]]
*[[File:Property Icon.png]] [[TimeOfDay (Property)|TimeOfDay]]
*[[File:Method Icon.png]] [[SetMinutesAfterMidnight (Method)|SetMinutesAfterMidnight]]
*[[File:Method Icon.png]] [[GetMinutesAfterMidnight (Method)|GetMinutesAfterMidnight]]
[[Category:Methods]]
[[Category:Methods]]

Latest revision as of 06:00, 18 February 2012

GetMoonPhase( )
Returns float 0.75
Description: Returns 0.75.
Member of: Lighting
Example
You can print the current moon phase by doing this:
print(game.Lighting:GetMoonPhase())
0.75

Notes

  • The phase will always be 0.75.
  • The moon phase is currently unchangeable.

See Also