Roblox Lerp Function
The lerp function will take two vectors and an alpha the last argument a number between 0 and 1 and according to the alpha will create a new vector between the two other positions.
Roblox lerp function. Roblox added a cframelerp function recently so i decided to make this. Took me about 3 minutes. Note that the lerp method short for linear interpolation only applies to cframes so youre going to be modifying the cframe property of the part instead of the position property which is a vector3. You can lerp anywhere its just a function that returns a value like any other function.
This function will trigger the events that have been connected.