of     1   

Craftero
#183444912Friday, February 12, 2016 7:51 PM GMT

How can I make a Part glide from one CFrame to another? I've been experimenting with :leap(), but have not have any success yet. Any help or advise would be greatly appreciated.
Craftero
#183444956Friday, February 12, 2016 7:52 PM GMT

*...experimenting with :lerp()...
UnIikeable
#183445114Friday, February 12, 2016 7:55 PM GMT

function lerpPart(part, endPoint, frames) for i = 1, frames do part.CFrame = part.CFrame:lerp(end, i/frames) wait() end end
x_o
#183445284Friday, February 12, 2016 7:57 PM GMT

ew no local function Lerp(part, newCF, t) local rs = game:GetService("RunService").RenderStepped --.Stepped if this is on the server local startTick, startCF = tick(), part.CFrame spawn(function() repeat local alpha = math.min((tick() - lastTick) / t, 1) part.CFrame = startCF:lerp(newCF, alpha) until alpha == 1 end) end "Unfortunately, you fall into the second list." ~ eLunate
Casualist
#183447434Friday, February 12, 2016 8:30 PM GMT

local function Lerp(part, newCF, t) local rs = game:GetService("RunService").RenderStepped --.Stepped if this is on the server local startTick, startCF = tick(), part.CFrame spawn(function() repeat local alpha = math.min((tick() - startTick) / t, 1) part.CFrame = startCF:lerp(newCF, alpha) rs:wait() until alpha == 1 end) end
x_o
#183449249Friday, February 12, 2016 8:56 PM GMT

<3 "generic skids with romantic ideas about the use of OOP" ~ lordrambo
ScriptBased
#183458018Friday, February 12, 2016 10:47 PM GMT

I use for i = 50,0,-1 do Part.CFrame = Part.CFrame * CFrame.new(.1,.1,.1) wait() end
Craftero
#183500433Saturday, February 13, 2016 1:34 PM GMT

@Casualist & @DermonDarble Why does the Part flicker around the screen when using Casualist's method? The first suggestion given worked for me.DermonDarble, why don't you like the first suggestion? Is it inefficient?
x_o
#183505987Saturday, February 13, 2016 3:16 PM GMT

You have no real control over the lerp time and it slows down on slower devices "Unfortunately, you fall into the second list." ~ eLunate

    of     1