Advertisement
StarzoZero

Untitled

Feb 3rd, 2019
289
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.76 KB | None | 0 0
  1. local char = plr.Character
  2. local hum = char.Humanoid
  3. local hed = char.Head
  4. local root = char.HumanoidRootPart
  5. local rootj = root.RootJoint
  6. local tors = char.Torso
  7. local ra = char["Right Arm"]
  8. local la = char["Left Arm"]
  9. local rl = char["Right Leg"]
  10. local ll = char["Left Leg"]
  11. local neck = tors["Neck"]
  12.  
  13. attack = false
  14.  
  15. mouse.KeyDown:connect(function(key)
  16. if attack == false then
  17. if key == 'e' then
  18. icando()
  19.  
  20. end
  21.  
  22. function icando()
  23. print('>:3')
  24. attack = true
  25. hum.WalkSpeed = 0
  26. TEST:Remove()
  27. TEST:Play()
  28. repeat
  29. for i = 0,4,0.1 do
  30. swait()
  31. TEST.Parent = tors
  32. rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1* Player_Size * Cos(sine / 12)) * angles(Rad(0), Rad(0), Rad(20)), 0.15)
  33. tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(-2.5 * Sin(sine / 30)), Rad(0), Rad(-20)), 0.3)
  34. RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.9 - 0.1 * Cos(sine / 12)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(0)), 0.15)
  35. LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9 - 0.1 * Cos(sine / 12)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(0)), 0.15)
  36. RW.C0 = clerp(RW.C0, CF(1* Player_Size, 0.5 + 0.05 * Cos(sine / 12)* Player_Size, -0.4* Player_Size) * angles(Rad(90), Rad(-.6), Rad(-76)), 0.1)
  37. LW.C0 = clerp(LW.C0, CF(-1* Player_Size, 0.5 + 0.05 * Cos(sine / 12)* Player_Size, -0.4* Player_Size) * angles(Rad(90), Rad(-.6), Rad(56)), 0.1)
  38. end
  39. until TEST.Playing == false
  40. TEST:Stop()
  41. TEST:Play()
  42. TEST:Remove()
  43. print('I CAN DO ANYTHING')
  44. attack = false
  45. hum.WalkSpeed = 20
  46. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement