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

Vector3:Lerp isn't working?

Asked by
Exsius 162
9 years ago

I'm not sure what I'm doing wrong but if you could help I would greatly appreciate!

    local Brick = script.Parent.Target
        Fract = 0.1

--wait(7)
--print"test"
        while true do
            wait()
        local Pos1 = script.Parent.Posi1.CFrame.p
        local Pos2 = script.Parent.Posi2.CFrame.p
        wait(0.1)


            NewPOS = Pos1:lerp(Pos2, Fract)
                Brick.Position = NewPOS
                --print"test2"
        end

Answer this question