Well so i know what is lerping and how to use it, i use it to move a gate but i have a problem with it, here is an example script:
for index = 0, 1, 0.001 do
gate.CFrame = gate.CFrame:Lerp(end_point.CFrame, index)
wait(0.0029)
end
So this is what i've seen everyone on devforums but the thing is that it does not lerp how i want it to, if i add print(index) to it, then it prints the index and when the index is at 0.1 the gate is already lerped at that position, i know the reason why because it lerps from gate's position that has already lerped bit forward but how can i fix it? I have made it so it breaks the loop when it hits 0.1 but is there any other way?
Thanks for spending time.

1 comment
Do you want the end position of the for loop to be 0.1? Your explanation is vague, and I see nothing wrong with your code.