Hi, i’m trying to make calculation for lerping part, i give speed in studs per second, and a wait time is 1/60
local function Lerp(a,b,t)
return a+(b-a)*t
end
folder.Change.Changed:Connect(function()
local distance = (Finish-Start).Magnitude
local Time = distance/Speed
local startTime = tick()
for i = 0,1,factor do
local step = (Time*i)/Time
Brick.Position = Lerp(Start,Finish,step)
task.wait(0)
end
local endTime = tick()-startTime
print(endTime,Time)
problem is i don’t know how to calculate on how much i should move or wait the lerp, please help me with that