Jump to content

Recommended Posts

I just tried using Math:Lerp for the first time and get the error:

attempt to call method 'Lerp' (a nil value)

This is how I am calling it, I have also tried Math.Lerp and just Lerp, they don't work either.

local R = Math:Lerp(self.DayAmbient.x,self.NightAmbient.x,Intense)

 

As as a test I did I

for k,v in pairs(Math) do print(k,v) end

and I couldn't see Lerp anywhere in the output wacko.png

 

I understand how Lerp works and can write the function myself to get around this, I just didn't know if the documentation is wrong or I am having some kind of bug or what.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

×
×
  • Create New...