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

Lerp script not working?

Asked by
TrollD3 105
9 years ago

Working on a kewl new intro that involves lerping but it doesn't work for some reason.. any ideas?


local FB = game.Workspace.CurrentCamera:FindFirstChild("firstblack") if FB then local start = Vector3.new(-80.094, 15.182, -39.601) local endit = Vector3.new(-73.914, 15.182, -39.601) wait(1) for i = 0, 1, .009 do wait(0.001) FB.Position = start:Lerp(endit, i) end end
0
Lerp is CFrame, not Vector3. Just change Vector3 to CFrame for your case. M39a9am3R 3210 — 9y
0
Lerp returns a Vector3, not a CFrame when used on another Vector3 @M39a9am3R. I just tested this code, it works fine. MrNicNac 855 — 9y
0
@nox7, whoops, just looked up Vector3. Apparently Lerp isn't exclusive to CFrame, my mistake. M39a9am3R 3210 — 9y

Answer this question