Its might be kinda a silly, but I can’t seem to get it to work. What I want is for my float to go to its new value over time, check:
var Speed : float = 0;
function Called(){
Speed = 100;
//I would like this to happen smoothly, however, I would also like to change back to say 40 if I call it later.
yield WaitForSeconds(2);
Speed = 40;
// So the first time its changed from 0 tot 100, and the second time from 100, 40, how can I make this smooooothhh?
}