local part = game.Workspace.P1 local part2 = game.Workspace.P2 function PartChange(player) task.wait(5) part2.CFrame = part.CFrame:Lerp(part.CFrame,0.75) end PartChange()
COMMUNITY QUESTION
Why is the lerp function not moving part2 too 0.75?
1 answer
Next time, please add more explanation to your description other than the title. To format your code to a code block, click the Lua button up between the Title and Description boxes. Clicking it should appear two lines of 17 tildes (~), in separate lines, and a blank line in between. In that blank line is where you paste your code. Solution
You're trying to lerp part.CFrame to itself, which will always return part.CFrame. I think you were trying to lerp part2.CFrame instead of part.CFrame.
local part = workspace.P1
local part2 = workspace.P2
function PartChange()
task.wait(5)
part2.CFrame = part2.CFrame:Lerp(part.CFrame, 0.75)
end
PartChange()
This discussion is preserved as it was. New answers, comments, and votes are closed.

1 comment
Format your code in a lua code block.