I don't really understand how to use CFrame:lerp(), can someone explain?
My attempt that doesn't work
part = script.Parent
startCFrame = part.CFrame
endCFrame = CFrame.new(-28.8, 0.5, 31.8)
part.ClickDetector.MouseClick:connect(function()
for i = 0, 1, 0.1 do
part.CFrame = startCFrame:lerp(endCFrame)
end
end)

1 comment
Oh okay, thanks!