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

	

3 comments

0

Lerp is CFrame, not Vector3. Just change Vector3 to CFrame for your case.

0

Lerp returns a Vector3, not a CFrame when used on another Vector3 @M39a9am3R. I just tested this code, it works fine.

0

@nox7, whoops, just looked up Vector3. Apparently Lerp isn't exclusive to CFrame, my mistake.