GetMoonDirection (Method): Difference between revisions
From Legacy Roblox Wiki
Jump to navigationJump to search
>ArceusInator No edit summary |
>SoulStealer9875 No edit summary |
||
Line 1: | Line 1: | ||
{{Method | {{Method | ||
|name=GetMoonDirection | |name=GetMoonDirection | ||
|returns=[[Vector3]] ''lookVector'' | |returns=[[Vector3]] ''[[lookVector]]'' | ||
|description=It returns the lookVector of the moon. If this lookVector were used in a [[CFrame]], the [[BasePart]] would face the moon. | |description=It returns the [[lookVector]] of the moon. If this [[lookVector]] were used in a [[CFrame]], the [[BasePart]] would face the moon. | ||
|object=Lighting}} | |object=Lighting}} | ||
{{clear floats}} | |||
<pre> | |||
print( game.Lighting:GetMoonDirection() ) | |||
</pre> | |||
Would print '0.619343221, 0.357578009, 0.698964953' if the TimeOfDay is set to 14:00:00. | |||
<noinclude>[[Category:Methods]]</noinclude> | <noinclude>[[Category:Methods]]</noinclude> |
Revision as of 08:59, 10 July 2011
![]() | |
Returns | Vector3 lookVector |
Description: | It returns the lookVector of the moon. If this lookVector were used in a CFrame, the BasePart would face the moon. |
Member of: | Lighting |
print( game.Lighting:GetMoonDirection() )
Would print '0.619343221, 0.357578009, 0.698964953' if the TimeOfDay is set to 14:00:00.