Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

[ Lerp ] How do I make more then one point A to B to C with a wait()?

Asked by 5 years ago

Using lerp how can I make it go to more then one part example I need the part to go to Point A to B Then wait(10) then go from B to C

local A = script.Parent.A
local B = script.Parent.B
local C = script.Parent.C



for i = 0, 1, 0.0005 do wait()
A.CFrame = A.CFrame:lerp(B.CFrame, i)
wait(10)
A.CFrame = MainPart.CFrame:lerp(C.CFrame, i)
end
0
two separate `for` loops fredfishy 833 — 5y

Answer this question