local camera = Workspace.CurrentCamera local player = game.Players.LocalPlayer repeat wait() until player.Character local char = player.Character
while true do dist = (camera.CoordinateFrame.lookVector - game.Lighting:GetSunDirection()).magnitude if dist < 0.1 then print(player.Name .. " looked at sun.") end wait() end