Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Does this seem right?

Asked by 9 years ago

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

Answer this question