Hi, i'm using cloud script to calcule the player score. The thing is: i want to round the value to an int but i don't know how to do it (Using (int)value or math.round isn't working)
Example of what i'm trying to do:
function TimeScore(MatchTime) { var lerpTime = ( MatchTime - 45.0) / (360.0 - 45.0); var timeScore = 8000 + lerpTime * (2000 - 8000); return Math.round(timeScore); }
I want to convert timescore into an INT