Advertisement
urabigfatnoob

asf

Aug 25th, 2016
159
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.53 KB | None | 0 0
  1. function lerp(startpoint,endpoint)
  2.     local part = Instance.new('Part',workspace.clerptest)
  3.     part.BrickColor = BrickColor.Random()
  4.     part.Anchored = true
  5.     part.CFrame = startpoint
  6.     while true do
  7.         for i = 0,1,.01 do
  8.             game:GetService('RunService').RenderStepped:wait()
  9.             part.CFrame = startpoint:lerp(endpoint,i)
  10.         end
  11.         for i = 0,1,.01 do
  12.             game:GetService('RunService').RenderStepped:wait()
  13.             part.CFrame = endpoint:lerp(startpoint,i)
  14.         end
  15.     end
  16. end
  17. spawn(lerp(workspace.clerptest.A.CFrame,workspace.clerptest.B.CFrame))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement