Advertisement
Aaronremmers14

cframe.lerp

May 20th, 2016
295
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. local Player = game.Players.LocalPlayer
  2. local Character = game.Workspace:WaitForChild(Player.Name)
  3. local Torso = Character:WaitForChild("Torso")
  4. local LArm = Character:WaitForChild("Left Arm")
  5. local RArm = Character:WaitForChild("Right Arm")
  6.  
  7. local Weld = Instance.new("Weld",LArm)
  8. Weld.Part0 = LArm
  9. Weld.Part1 = Torso
  10. Weld.C0 = CFrame.new(1.5,0,0)
  11.  
  12. local Target = Weld.C0 * CFrame.new(0,1,0) * CFrame.Angles(0,0,math.rad(45))
  13.  
  14. local Speed = 0.4
  15. wait(3)
  16.  
  17. game:GetService("RunService").RenderStep­ped:connect(function()
  18. Weld.C0 = Weld.C0:lerp(Target,Speed)
  19. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement