Advertisement
vL4d_4eVer

Take the L dance

Apr 25th, 2018
1,224
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 4.84 KB | None | 0 0
  1. char = owner.Character
  2. musica=Instance.new("Sound",char)
  3. musica.Name = "music"
  4. musica.Volume= 1.5
  5. musica.Looped=true
  6. musica:Play()
  7. musica.SoundId="rbxassetid://1563991094"
  8. char.Animate:Destroy()
  9. char.Humanoid.Animator:Destroy()
  10. local ra = char["Right Arm"]
  11. local la = char["Left Arm"]
  12. local rl = char["Right Leg"]
  13. local ll = char["Left Leg"]
  14. local h = char.Head
  15. local t = char.Torso
  16. local rs = t["Right Shoulder"]
  17. local ls = t["Left Shoulder"]
  18. local rh = t["Right Hip"]
  19. local lh = t["Left Hip"]
  20. local nec = t.Neck
  21. local rut = char.HumanoidRootPart
  22. local rutj = rut.RootJoint
  23. rad = math.rad
  24. ArtificialHB = Instance.new("BindableEvent", script)
  25. ArtificialHB.Name = "Heartbeat"
  26.  
  27. script:WaitForChild("Heartbeat")
  28.  
  29. frame = 1 / 60
  30. tf = 0
  31. allowframeloss = false
  32. tossremainder = false
  33. lastframe = tick()
  34. script.Heartbeat:Fire()
  35.  
  36. game:GetService("RunService").Heartbeat:connect(function(s, p)
  37.     tf = tf + s
  38.     if tf >= frame then
  39.         if allowframeloss then
  40.             script.Heartbeat:Fire()
  41.             lastframe = tick()
  42.         else
  43.             for i = 1, math.floor(tf / frame) do
  44.                 script.Heartbeat:Fire()
  45.             end
  46.             lastframe = tick()
  47.         end
  48.         if tossremainder then
  49.             tf = 0
  50.         else
  51.             tf = tf - frame * math.floor(tf / frame)
  52.         end
  53.     end
  54. end)
  55.  
  56. function swait(num)
  57.     if num == 0 or num == nil then
  58.         ArtificialHB.Event:wait()
  59.     else
  60.         for i = 0, num do
  61.             ArtificialHB.Event:wait()
  62.         end
  63.     end
  64. end
  65.         while true do
  66.                 coroutine.resume(coroutine.create(function()
  67.                 for i = 0,.3,.035 do
  68.                     rutj.C0 = rutj.C0:lerp(CFrame.Angles(rad(-90),rad(5),rad(180)) * CFrame.new(0,0,-.1),i)
  69.                     rs.C0 = rs.C0:lerp(CFrame.new(.3,.7,-1.3) * CFrame.Angles(rad(0),rad(114),rad(190)) * CFrame.Angles(rad(43),rad(0),rad(0)),i)
  70.                     ls.C0 = ls.C0:lerp(CFrame.new(-1.3,.5,-.3) * CFrame.Angles(rad(0),rad(-166),rad(-40)) * CFrame.Angles(rad(23),rad(0),rad(0)),i)
  71.                     rh.C0 = rh.C0:lerp(CFrame.new(1,-.9,-.05) * CFrame.Angles(rad(0),rad(60),rad(-10)),i)
  72.                     lh.C0 = lh.C0:lerp(CFrame.new(-1,-.8,-.15) * CFrame.Angles(rad(0),rad(-45),rad(-31.5)),i)
  73.                     nec.C0 = nec.C0:lerp(CFrame.new(0,1,0) * CFrame.Angles(rad(-90),rad(0),rad(180)),i)
  74.                     swait()
  75.                 end
  76.                 end))
  77.                 wait(.07)
  78.                 for i = 0,.7,.035 do
  79.                     rutj.C0 = rutj.C0:lerp(CFrame.Angles(rad(-90),rad(5),rad(180)) * CFrame.new(0,0,-.2),i)
  80.                     rs.C0 = rs.C0:lerp(CFrame.new(.3,.7,-1.3) * CFrame.Angles(rad(0),rad(114),rad(190)) * CFrame.Angles(rad(43),rad(0),rad(0)),i)
  81.                     ls.C0 = ls.C0:lerp(CFrame.new(-1.3,.5,-.3) * CFrame.Angles(rad(0),rad(-166),rad(-40)) * CFrame.Angles(rad(23),rad(0),rad(0)),i)
  82.                     rh.C0 = rh.C0:lerp(CFrame.new(1,-.8,-.05) * CFrame.Angles(rad(0),rad(60),rad(-20)),i)
  83.                     lh.C0 = lh.C0:lerp(CFrame.new(-1,-.8,-.15) * CFrame.Angles(rad(0),rad(-45),rad(-63)),i)
  84.                     nec.C0 = nec.C0:lerp(CFrame.new(0,1,0) * CFrame.Angles(rad(-90),rad(0),rad(180)),i)
  85.                     swait()
  86.                 end
  87.                 coroutine.resume(coroutine.create(function()
  88.                 for i = 0,.3,.035 do
  89.                     rutj.C0 = rutj.C0:lerp(CFrame.Angles(rad(-90),rad(-5),rad(180)) * CFrame.new(0,0,-.1),i)
  90.                     rs.C0 = rs.C0:lerp(CFrame.new(.3,.7,-1.3) * CFrame.Angles(rad(0),rad(114),rad(190)) * CFrame.Angles(rad(43),rad(0),rad(0)),i)
  91.                     ls.C0 = ls.C0:lerp(CFrame.new(-1.3,.5,-.3) * CFrame.Angles(rad(0),rad(-166),rad(-40)) * CFrame.Angles(rad(23),rad(0),rad(0)),i)
  92.                     rh.C0 = rh.C0:lerp(CFrame.new(1,-.8,-.15) * CFrame.Angles(rad(0),rad(45),rad(31.5)),i)
  93.                     lh.C0 = lh.C0:lerp(CFrame.new(-1,-.9,-.05) * CFrame.Angles(rad(0),rad(-60),rad(20)),i)
  94.                     nec.C0 = nec.C0:lerp(CFrame.new(0,1,0) * CFrame.Angles(rad(-90),rad(0),rad(180)),i)
  95.                     swait()
  96.                 end
  97.                 end))
  98.                 wait(.07)
  99.                 for i = 0,.7,.035 do
  100.                     rutj.C0 = rutj.C0:lerp(CFrame.Angles(rad(-90),rad(-5),rad(180)) * CFrame.new(0,0,-.2),i)
  101.                     rs.C0 = rs.C0:lerp(CFrame.new(.3,.7,-1.3) * CFrame.Angles(rad(0),rad(114),rad(190)) * CFrame.Angles(rad(43),rad(0),rad(0)),i)
  102.                     ls.C0 = ls.C0:lerp(CFrame.new(-1.3,.5,-.3) * CFrame.Angles(rad(0),rad(-166),rad(-40)) * CFrame.Angles(rad(23),rad(0),rad(0)),i)
  103.                     rh.C0 = rh.C0:lerp(CFrame.new(1,-.8,-.15) * CFrame.Angles(rad(0),rad(45),rad(63)),i)
  104.                     lh.C0 = lh.C0:lerp(CFrame.new(-1,-.8,-.05) * CFrame.Angles(rad(0),rad(-60),rad(20)),i)
  105.                     nec.C0 = nec.C0:lerp(CFrame.new(0,1,0) * CFrame.Angles(rad(-90),rad(0),rad(180)),i)
  106.                     swait()
  107.                 end
  108.                 swait()
  109.             end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement