GetMoonDirection (Method): Difference between revisions
From Legacy Roblox Wiki
Jump to navigationJump to search
m Text replacement - "<code lua>" to "<SyntaxHighlight code="lua">" Tags: mobile web edit mobile edit |
m Text replacement - "</code>" to "</SyntaxHighlight>" |
||
Line 10: | Line 10: | ||
<SyntaxHighlight code="lua"> | <SyntaxHighlight code="lua"> | ||
print(game.Lighting:GetMoonDirection()) | print(game.Lighting:GetMoonDirection()) | ||
</ | </SyntaxHighlight> | ||
Would print <samp>0.619343221, 0.357578009, 0.698964953</samp> if the [[TimeOfDay (Property)|TimeOfDay]] is set to 14:00:00. | Would print <samp>0.619343221, 0.357578009, 0.698964953</samp> if the [[TimeOfDay (Property)|TimeOfDay]] is set to 14:00:00. | ||
}} | }} | ||
<noinclude>[[Category:Methods]]</noinclude> | <noinclude>[[Category:Methods]]</noinclude> |
Revision as of 04:12, 27 April 2023
![]() | |
Returns | Vector3 |
Description: | It returns the lookVector of the moon. If this lookVector was used in a CFrame, the BasePart would face the moon. |
Member of: | Lighting |
Example
print(game.Lighting:GetMoonDirection())
Would print 0.619343221, 0.357578009, 0.698964953 if the TimeOfDay is set to 14:00:00.