GetMoonDirection (Method)

From Legacy Roblox Wiki
Revision as of 05:38, 27 April 2023 by Realjame (talk | contribs) (Text replacement - "</SyntaxHighlight>" to "</syntaxhighlight>")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search
GetMoonDirection( )
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.