Advertisement
Arcaneee

rdance

Dec 16th, 2022 (edited)
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 4.98 KB | None | 0 0
  1. local Player = game.Players.LocalPlayer
  2.  
  3. function StopAnim()
  4.     game.Players.LocalPlayer.Character.Animate.Disabled = false
  5.     local animtrack = game.Players.LocalPlayer.Character.Humanoid:GetPlayingAnimationTracks()
  6.     for i, track in pairs (animtrack) do
  7.         track:Stop()
  8.     end
  9. end
  10.  
  11. local Swing1 = Instance.new('Animation', game.ReplicatedStorage)
  12. Swing1.AnimationId = 'rbxassetid://4841399916'
  13.  
  14. local Swing2 = Instance.new('Animation', game.ReplicatedStorage)
  15. Swing2.AnimationId = 'rbxassetid://4641985101'
  16.  
  17. local Swing3 = Instance.new('Animation', game.ReplicatedStorage)
  18. Swing3.AnimationId = 'rbxassetid://4406555273'
  19.  
  20. local Swing4 = Instance.new('Animation', game.ReplicatedStorage)
  21. Swing4.AnimationId = 'rbxassetid://5918726674'
  22.  
  23. local Swing5 = Instance.new('Animation', game.ReplicatedStorage)
  24. Swing5.AnimationId = 'rbxassetid://3695322025'
  25.  
  26. local Swing6 = Instance.new('Animation', game.ReplicatedStorage)
  27. Swing6.AnimationId = 'rbxassetid://6869766175'
  28.  
  29. local Swing7 = Instance.new('Animation', game.ReplicatedStorage)
  30. Swing7.AnimationId = 'rbxassetid://7422779536'
  31.  
  32. local Swing8 = Instance.new('Animation', game.ReplicatedStorage)
  33. Swing8.AnimationId = 'rbxassetid://7465997989'
  34.  
  35. local _1 = Player.Character:FindFirstChildOfClass('Humanoid'):LoadAnimation(Swing1)
  36. local _2 = Player.Character:FindFirstChildOfClass('Humanoid'):LoadAnimation(Swing2)
  37. local _3 = Player.Character:FindFirstChildOfClass('Humanoid'):LoadAnimation(Swing3)
  38. local _4 = Player.Character:FindFirstChildOfClass('Humanoid'):LoadAnimation(Swing4)
  39. local _5 = Player.Character:FindFirstChildOfClass('Humanoid'):LoadAnimation(Swing5)
  40. local _6 = Player.Character:FindFirstChildOfClass('Humanoid'):LoadAnimation(Swing6)
  41. local _7 = Player.Character:FindFirstChildOfClass('Humanoid'):LoadAnimation(Swing7)
  42. local _8 = Player.Character:FindFirstChildOfClass('Humanoid'):LoadAnimation(Swing8)
  43.  
  44.  
  45.             local Math = math.random(1,8)
  46.                 if Math == 1 then
  47.                     _2:Stop()
  48.                     _3:Stop()
  49.                     _1:Play()
  50.                     _4:Stop()
  51.                     _5:Stop()
  52.                     _6:Stop()
  53.                     _7:Stop()
  54.                     _8:Stop()
  55.                     _1:AdjustSpeed(1.6)
  56.                     wait(3.5)
  57.                     StopAnim()
  58.                 elseif Math == 2 then
  59.                     _1:Stop()
  60.                     _3:Stop()
  61.                     _2:Play()
  62.                     _4:Stop()
  63.                     _5:Stop()
  64.                     _6:Stop()
  65.                     _7:Stop()
  66.                     _8:Stop()
  67.                     _2:AdjustSpeed(1.6)
  68.                     wait(3.5)
  69.                     StopAnim()
  70.                 elseif Math == 3 then
  71.                     _1:Stop()
  72.                     _2:Stop()
  73.                     _3:Play()
  74.                     _4:Stop()
  75.                     _5:Stop()
  76.                     _6:Stop()
  77.                     _7:Stop()
  78.                     _8:Stop()
  79.                     _3:AdjustSpeed(1.6)
  80.                     wait(3.5)
  81.                     StopAnim()
  82.                 elseif Math == 4 then
  83.                     _1:Stop()
  84.                     _2:Stop()
  85.                     _3:Stop()
  86.                     _4:Play()
  87.                     _5:Stop()
  88.                     _6:Stop()
  89.                     _7:Stop()
  90.                     _8:Stop()
  91.                     _4:AdjustSpeed(1.6)
  92.                     wait(3.5)
  93.                     StopAnim()
  94.                 elseif Math == 5 then
  95.                     _1:Stop()
  96.                     _2:Stop()
  97.                     _3:Stop()
  98.                     _4:Stop()
  99.                     _6:Stop()
  100.                     _7:Stop()
  101.                     _8:Stop()
  102.                     _5:Play()
  103.                     _5:AdjustSpeed(1.6)
  104.                     wait(3.5)
  105.                     StopAnim()
  106.                 elseif Math == 6 then
  107.                     _1:Stop()
  108.                     _2:Stop()
  109.                     _3:Stop()
  110.                     _4:Stop()
  111.                     _5:Stop()
  112.                     _8:Stop()
  113.                     _7:Stop()
  114.                     _6:Play()
  115.                     _6:AdjustSpeed(1.6)
  116.                     wait(3.5)
  117.                     StopAnim()
  118.                 elseif Math == 7 then
  119.                     _1:Stop()
  120.                     _2:Stop()
  121.                     _3:Stop()
  122.                     _4:Stop()
  123.                     _5:Stop()
  124.                     _6:Stop()
  125.                     _8:Stop()
  126.                     _7:Play()
  127.                     _7:AdjustSpeed(1.6)
  128.                     wait(3.5)
  129.                     StopAnim()
  130.                 elseif Math == 8 then
  131.                     _1:Stop()
  132.                     _2:Stop()
  133.                     _3:Stop()
  134.                     _4:Stop()
  135.                     _5:Stop()
  136.                     _6:Stop()
  137.                     _7:Stop()
  138.                     _8:Play()
  139.                     _8:AdjustSpeed(1.6)
  140.                     wait(3.5)
  141.                     StopAnim()
  142.                 end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement