Advertisement
Guest User

Combat Script (ROBLOX)

a guest
Nov 29th, 2016
30,704
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.87 KB | None | 0 0
  1. --By Rufus14 (One of the my best scripts)
  2. sound = Instance.new("Sound", game.Players.LocalPlayer.Character.Head)
  3. sound.SoundId = "http://roblox.com/asset?id=280667448"
  4. Instance.new("ForceField", game.Players.LocalPlayer.Character)
  5. mouse = game.Players.LocalPlayer:GetMouse()
  6. function key(key)
  7. key = key:lower()
  8. if key == "q" then
  9. for i = 1,5 do
  10. wait(0.01)
  11. plr.Torso.Neck.C1 = plr.Torso.Neck.C1 * CFrame.Angles(0,0,0.35)
  12. plr.Torso["Right Shoulder"].C1 = plr.Torso["Right Shoulder"].C1 * CFrame.Angles(0.25,0,0)
  13. plr.HumanoidRootPart.RootJoint.C1 = plr.HumanoidRootPart.RootJoint.C1 * CFrame.Angles(0,0,-0.35)
  14. end
  15. sound:Play()
  16. local hit = Instance.new("Explosion", plr["Right Arm"])
  17. hit.Position = plr["Right Arm"].Position
  18. hit.Visible = false
  19. hit.BlastPressure = 100000
  20. hit.BlastRadius = 2.5
  21. wait(0.05)
  22. for i = 1,5 do
  23. wait(0.01)
  24. plr.Torso.Neck.C1 = plr.Torso.Neck.C1 * CFrame.Angles(0,0,-0.35)
  25. plr.Torso["Right Shoulder"].C1 = plr.Torso["Right Shoulder"].C1 * CFrame.Angles(-0.25,0,0)
  26. plr.HumanoidRootPart.RootJoint.C1 = plr.HumanoidRootPart.RootJoint.C1 * CFrame.Angles(0,0,0.35)
  27. end
  28. hit:destroy()
  29. end
  30. if key == "e" then
  31. for i = 1,5 do
  32. wait(0.01)
  33. plr.Torso["Right Hip"].C1 = plr.Torso["Right Hip"].C1 * CFrame.Angles(0,0,-0.3)
  34. plr.HumanoidRootPart.RootJoint.C1 = plr.HumanoidRootPart.RootJoint.C1 * CFrame.Angles(0.05,0,0)
  35. plr.Torso["Right Shoulder"].C1 = plr.Torso["Right Shoulder"].C1 * CFrame.Angles(0,0,0.06)
  36. plr.Torso["Left Shoulder"].C1 = plr.Torso["Left Shoulder"].C1 * CFrame.Angles(0,0,0.06)
  37. sound.PlaybackSpeed = 0.7
  38. end
  39. sound:Play()
  40. local hit1 = Instance.new("Explosion", plr["Right Leg"])
  41. hit1.Position = plr["Right Leg"].Position
  42. hit1.Visible = false
  43. hit1.BlastPressure = 200000
  44. hit1.BlastRadius = 2
  45. wait(0.1)
  46. for i = 1,5 do
  47. wait(0.01)
  48. plr.Torso["Right Hip"].C1 = plr.Torso["Right Hip"].C1 * CFrame.Angles(0,0,0.3)
  49. plr.HumanoidRootPart.RootJoint.C1 = plr.HumanoidRootPart.RootJoint.C1 * CFrame.Angles(-0.05,0,0)
  50. plr.Torso["Right Shoulder"].C1 = plr.Torso["Right Shoulder"].C1 * CFrame.Angles(0,0,-0.06)
  51. plr.Torso["Left Shoulder"].C1 = plr.Torso["Left Shoulder"].C1 * CFrame.Angles(0,0,-0.06)
  52. end
  53. sound.PlaybackSpeed = 1
  54. hit1:destory()
  55. end
  56. if key == "r" then
  57. for i = 1,5 do
  58. wait(0.01)
  59. plr.Torso.Neck.C1 = plr.Torso.Neck.C1 * CFrame.Angles(0,0,-0.35)
  60. plr.Torso["Left Shoulder"].C1 = plr.Torso["Left Shoulder"].C1 * CFrame.Angles(0.25,0,0)
  61. plr.HumanoidRootPart.RootJoint.C1 = plr.HumanoidRootPart.RootJoint.C1 * CFrame.Angles(0,0,0.35)
  62. end
  63. sound:Play()
  64. local hit2 = Instance.new("Explosion", plr["Left Arm"])
  65. hit2.Position = plr["Left Arm"].Position
  66. hit2.Visible = false
  67. hit2.BlastPressure = 100000
  68. hit2.BlastRadius = 2.5
  69. wait(0.05)
  70. for i = 1,5 do
  71. wait(0.01)
  72. plr.Torso.Neck.C1 = plr.Torso.Neck.C1 * CFrame.Angles(0,0,0.35)
  73. plr.Torso["Left Shoulder"].C1 = plr.Torso["Left Shoulder"].C1 * CFrame.Angles(-0.25,0,0)
  74. plr.HumanoidRootPart.RootJoint.C1 = plr.HumanoidRootPart.RootJoint.C1 * CFrame.Angles(0,0,-0.35)
  75. end
  76. hit2:destroy()
  77. end
  78. end
  79. mouse.KeyDown:connect(key)
  80. plr = game.Players.LocalPlayer.Character
  81. sound1 = Instance.new("Sound", plr.Head)
  82. sound1.SoundId = "http://www.roblox.com/asset/?id=360202811"
  83. sound1:Play()
  84. sound1.Looped = true
  85. sound1.Volume = 20
  86. plr.HumanoidRootPart.RootJoint.C1 = plr.HumanoidRootPart.RootJoint.C1 * CFrame.Angles(-0.05,0,0)
  87. plr.Torso["Right Shoulder"].C1 = plr.Torso["Right Shoulder"].C1 * CFrame.Angles(0.1,0.1,0.1)
  88. plr.Torso["Left Shoulder"].C1 = plr.Torso["Left Shoulder"].C1 * CFrame.Angles(0.1,0.1,0.1)
  89. plr.Torso["Right Hip"].C1 = plr.Torso["Right Hip"].C1 * CFrame.Angles(0,0,-0.15)
  90. plr.Torso["Left Hip"].C1 = plr.Torso["Left Hip"].C1 * CFrame.Angles(0,0,-0.15)
  91. while true do
  92. wait(0.01)
  93. for i = 1,2 do
  94. wait(0.05)
  95. plr = game.Players.LocalPlayer.Character
  96. plr.Torso["Left Hip"].C1 = plr.Torso["Left Hip"].C1 * CFrame.Angles(0,0,-0.005)
  97. plr.Torso["Right Hip"].C1 = plr.Torso["Right Hip"].C1 * CFrame.Angles(0,0,-0.005)
  98. plr.Torso.Neck.C1 = plr.Torso.Neck.C1 * CFrame.Angles(-0.005,0,-0.005)
  99. plr.Torso["Right Shoulder"].C1 = plr.Torso["Right Shoulder"].C1 * CFrame.new(0,0.01,0)
  100. plr.Torso["Left Shoulder"].C1 = plr.Torso["Left Shoulder"].C1 * CFrame.new(0,0.01,0)
  101. end
  102. for i = 1,2 do
  103. wait(0.05)
  104. plr.Torso["Left Hip"].C1 = plr.Torso["Left Hip"].C1 * CFrame.Angles(0,0,-0.005)
  105. plr.Torso["Right Hip"].C1 = plr.Torso["Right Hip"].C1 * CFrame.Angles(0,0,-0.005)
  106. plr.Torso.Neck.C1 = plr.Torso.Neck.C1 * CFrame.Angles(-0.005,0,-0.005)
  107. plr = game.Players.LocalPlayer.Character
  108. plr.Torso["Right Shoulder"].C1 = plr.Torso["Right Shoulder"].C1 * CFrame.new(0,0.02,0)
  109. plr.Torso["Left Shoulder"].C1 = plr.Torso["Left Shoulder"].C1 * CFrame.new(0,0.02,0)
  110. end
  111. for i = 1,3 do
  112. plr.Torso.Neck.C1 = plr.Torso.Neck.C1 * CFrame.Angles(-0.005,0,-0.005)
  113. wait(0.05)
  114. plr.Torso["Left Hip"].C1 = plr.Torso["Left Hip"].C1 * CFrame.Angles(0,0,-0.005)
  115. plr.Torso["Right Hip"].C1 = plr.Torso["Right Hip"].C1 * CFrame.Angles(0,0,-0.005)
  116. plr = game.Players.LocalPlayer.Character
  117. plr.Torso["Right Shoulder"].C1 = plr.Torso["Right Shoulder"].C1 * CFrame.new(0,0.025,0)
  118. plr.Torso["Left Shoulder"].C1 = plr.Torso["Left Shoulder"].C1 * CFrame.new(0,0.025,0)
  119. end
  120. wait(1)
  121. -------------------------------------------------------------------------------------------------------
  122. for i = 1,3 do
  123. plr.Torso.Neck.C1 = plr.Torso.Neck.C1 * CFrame.Angles(0.005,0,0.005)
  124. wait(0.05)
  125. plr.Torso["Left Hip"].C1 = plr.Torso["Left Hip"].C1 * CFrame.Angles(0,0,0.005)
  126. plr.Torso["Right Hip"].C1 = plr.Torso["Right Hip"].C1 * CFrame.Angles(0,0,0.005)
  127. plr = game.Players.LocalPlayer.Character
  128. plr.Torso["Right Shoulder"].C1 = plr.Torso["Right Shoulder"].C1 * CFrame.new(0,-0.025,0)
  129. plr.Torso["Left Shoulder"].C1 = plr.Torso["Left Shoulder"].C1 * CFrame.new(0,-0.025,0)
  130.  
  131. end
  132. for i = 1,2 do
  133. plr.Torso["Right Hip"].C1 = plr.Torso["Right Hip"].C1 * CFrame.Angles(0,0,0.005)
  134. plr.Torso.Neck.C1 = plr.Torso.Neck.C1 * CFrame.Angles(0.005,0,0.005)
  135. wait(0.05)
  136. plr.Torso["Left Hip"].C1 = plr.Torso["Left Hip"].C1 * CFrame.Angles(0,0,0.005)
  137. plr = game.Players.LocalPlayer.Character
  138. plr.Torso["Right Shoulder"].C1 = plr.Torso["Right Shoulder"].C1 * CFrame.new(0,-0.02,0)
  139. plr.Torso["Left Shoulder"].C1 = plr.Torso["Left Shoulder"].C1 * CFrame.new(0,-0.02,0)
  140.  
  141. end
  142. for i = 1,2 do
  143. plr.Torso["Right Hip"].C1 = plr.Torso["Right Hip"].C1 * CFrame.Angles(0,0,0.005)
  144. plr.Torso.Neck.C1 = plr.Torso.Neck.C1 * CFrame.Angles(0.005,0,0.005)
  145. wait(0.05)
  146. plr.Torso["Left Hip"].C1 = plr.Torso["Left Hip"].C1 * CFrame.Angles(0,0,0.005)
  147. plr = game.Players.LocalPlayer.Character
  148. plr.Torso["Right Shoulder"].C1 = plr.Torso["Right Shoulder"].C1 * CFrame.new(0,-0.01,0)
  149. plr.Torso["Left Shoulder"].C1 = plr.Torso["Left Shoulder"].C1 * CFrame.new(0,-0.01,0)
  150.  
  151. end
  152. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement