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

Bad Lexical Cast? ? ?

Asked by 10 years ago
daytrans = 0.01;
 coroutine.wrap(function()
    for i = 14,5,-daytrans do
     Lighting.TimeOfDay = i; 
     wait();
    end
   end)();

This gives me the error: 17:38:21.702 - bad lexical cast: source type value could not be interpreted as target

Why? Any ideas?

0
.. tyridge77 0 — 10y
0
uhh. no tyridge77 0 — 10y
0
Is this a small chunk of code, or is this the full script? TheeDeathCaster 2368 — 10y

Answer this question