Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function lerp(startpoint,endpoint)
- local part = Instance.new('Part',workspace.clerptest)
- part.BrickColor = BrickColor.Random()
- part.Anchored = true
- part.CFrame = startpoint
- while true do
- for i = 0,1,.01 do
- game:GetService('RunService').RenderStepped:wait()
- part.CFrame = startpoint:lerp(endpoint,i)
- end
- for i = 0,1,.01 do
- game:GetService('RunService').RenderStepped:wait()
- part.CFrame = endpoint:lerp(startpoint,i)
- end
- end
- end
- spawn(lerp(workspace.clerptest.A.CFrame,workspace.clerptest.B.CFrame))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement