GetSunDirection (Method)
From Legacy Roblox Wiki
Jump to navigationJump to search
GetSunDirection( ) | |
Returns | Vector3 sun direction |
Description: | Returns a lookVector value of a CFrame directed at at the current position of the sun. |
Member of: | Lighting |
Example
game.Lighting.TimeOfDay = '14:00:00' game.Lighting.GeographicLatitude = 41.73 print(game.Lighting:GetSunDirection()) --> -0.474891961, 0.822537005, 0.312906593