I am trying to learn how to do lerps since it's similar to doing Tweening with and I need to make animations without the plugin so I need to do Lerp and I read the wiki about it however, I don't understand the way the Roblox wiki explained it I tried some of their methods I don't get how to do it but, don't worry I still gave it a shot here is my 'shot'... This might get ugly(If it isn't already)
I NEED TO MAKE THE PART SMOOTHLY TRANSITION TO THE OTHER PART!
LERP PRACTICE
script.Parent.Touched:connect(function(part)
print("Lerping")
local humanoid = part.Parent:WaitForChild("Humanoid")
if humanoid then
script.Parent.CFrame:lerp(script.Parent.Parent.ApproachingPart.CFrame, .5) --[[
ApproachingPart is in the workspace and so is the Part this script is under.
--]]
end
end)
Thank you for reading all the way I am sorry if this was ugly for you to watch.... But I need help and badly. So I hope you can help me out it would be greatly appreciated!

10 comments
This script wouldn't work due to Lua sensitivity on line 16, ':lerp' not ':Lerp'.
ffixed
Is there anyway I could use this to deal with animations? I mean :Lerp() If so can you tell me how I would do that? How would I get the specific coordinates I want the part to reach and all that...
No I don't want the part to 'teleport' to the other part...
I want that part to smoothly transition to the other part... Is that possible? If so please can you add into your answer how?
Look at the second script I posted...
just add a 'wait()' to the for loop.
Huh, I though the wait() embedded in the for loop would work. Can someone test this?
Never mind I learned how to transition it was rather simple xD I just added increments basically.... I made the wait go on the next line and made increments of .005 and I think that's really cool. Thanks for helping me out!
Just tested it. Turns out the wait embedded in the for-loop doesn't actually yield the thread :s