GetMoonDirection (Method): Difference between revisions
From Legacy Roblox Wiki
Jump to navigationJump to search
m Text replacement - "</code>" to "</SyntaxHighlight>" |
m Text replacement - "<SyntaxHighlight code="lua">" to "<syntaxhighlight lang="lua">" |
||
Line 8: | Line 8: | ||
{{clear floats}} | {{clear floats}} | ||
{{Example| | {{Example| | ||
< | <syntaxhighlight lang="lua"> | ||
print(game.Lighting:GetMoonDirection()) | print(game.Lighting:GetMoonDirection()) | ||
</SyntaxHighlight> | </SyntaxHighlight> |
Revision as of 05:05, 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.