Advertisement
metilol

Untitled

Apr 11th, 2018
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.16 KB | None | 0 0
  1. wait(1/60)
  2. Effects = { }
  3. local Player = game:service'Players'.localPlayer
  4. local chara = Player.Character
  5. local Humanoid = chara:FindFirstChildOfClass("Humanoid")
  6. local Mouse = Player:GetMouse()
  7. local LeftArm = chara["Left Arm"]
  8. local RightArm = chara["Right Arm"]
  9. local LeftLeg = chara["Left Leg"]
  10. local RightLeg = chara["Right Leg"]
  11. local Head = chara.Head
  12. local Torso = chara.Torso
  13. local Camera = workspace.CurrentCamera
  14. local RootPart = chara.HumanoidRootPart
  15. local RootJoint = RootPart.RootJoint
  16. local attack = false
  17. local Anim = 'Idle'
  18. local attacktype = 1
  19. local delays = false
  20. local play = true
  21. local targetted = nil
  22. local Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  23. local velocity = RootPart.Velocity.y
  24. local sine = 0
  25. local change = 1
  26. local doe = 0
  27. local Create = LoadLibrary("RbxUtility").Create
  28. local debby = game:GetService("Debris")
  29. Humanoid.WalkSpeed = 8
  30.  
  31. Humanoid.Animator.Parent = nil
  32. chara.Animate.Parent = nil
  33.  
  34. local newMotor = function(part0, part1, c0, c1)
  35. local w = Create('Motor'){
  36. Parent = part0,
  37. Part0 = part0,
  38. Part1 = part1,
  39. C0 = c0,
  40. C1 = c1,
  41. }
  42. return w
  43. end
  44.  
  45. function clerp(a, b, t)
  46. return a:lerp(b, t)
  47. end
  48.  
  49. RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  50. NeckCF = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  51.  
  52. local RW = newMotor(Torso, RightArm, CFrame.new(1.5, 0, 0), CFrame.new(0, 0, 0))
  53. local LW = newMotor(Torso, LeftArm, CFrame.new(-1.5, 0, 0), CFrame.new(0, 0, 0))
  54. local RH = newMotor(Torso, RightLeg, CFrame.new(.5, -2, 0), CFrame.new(0, 0, 0))
  55. local LH = newMotor(Torso, LeftLeg, CFrame.new(-.5, -2, 0), CFrame.new(0, 0, 0))
  56. RootJoint.C1 = CFrame.new(0, 0, 0)
  57. RootJoint.C0 = CFrame.new(0, 0, 0)
  58. Torso.Neck.C1 = CFrame.new(0, 0, 0)
  59. Torso.Neck.C0 = CFrame.new(0, 1.5, 0)
  60.  
  61. local rarmc1 = RW.C1
  62. local larmc1 = LW.C1
  63. local rlegc1 = RH.C1
  64. local llegc1 = LH.C1
  65.  
  66. local resetc1 = false
  67.  
  68. function PlayAnimationFromTable(table, speed, bool)
  69. RootJoint.C0 = clerp(RootJoint.C0, table[1], speed)
  70. Torso.Neck.C0 = clerp(Torso.Neck.C0, table[2], speed)
  71. RW.C0 = clerp(RW.C0, table[3], speed)
  72. LW.C0 = clerp(LW.C0, table[4], speed)
  73. RH.C0 = clerp(RH.C0, table[5], speed)
  74. LH.C0 = clerp(LH.C0, table[6], speed)
  75. if bool == true then
  76. if resetc1 == false then
  77. resetc1 = true
  78. RootJoint.C1 = RootJoint.C1
  79. Torso.Neck.C1 = Torso.Neck.C1
  80. RW.C1 = rarmc1
  81. LW.C1 = larmc1
  82. RH.C1 = rlegc1
  83. LH.C1 = llegc1
  84. end
  85. end
  86. end
  87.  
  88.  
  89.  
  90. function dbshoot()
  91. attack = true
  92. so(169799883,DBarrel,1,1)
  93. for i=0,1,.1 do
  94. swait()
  95. PlayAnimationFromTable({
  96. CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  97. CFrame.new(0.0838357508, 1.42719412, -0.166348219, 0.857789159, 0.297403604, -0.419224113, -0.141315028, 0.920631945, 0.363959879, 0.49419412, -0.252958179, 0.83173573),
  98. CFrame.new(1.22406256, -0.130654663, 0.277106255, 0.941511214, 0.33170712, 0.0593906641, -0.33170709, 0.881204426, 0.336822212, 0.0593910143, -0.336822152, 0.939693391),
  99. CFrame.new(-1.43159902, 0, 0.187939197, 0.939692736, 0, 0.342019886, 0, 1, 0, -0.342019916, 0, 0.939692736),
  100. CFrame.new(0.499998897, -1.99999988, -1.49011612e-06, 0.939692736, 0, -0.342019886, 0, 1, 0, 0.342019916, 0, 0.939692736),
  101. CFrame.new(-0.500001848, -1.99999988, 1.62422657e-06, 0.939692736, 0, 0.342019886, 0, 1, 0, -0.342019916, 0, 0.939692736),
  102. }, .3, false)
  103. end
  104. Humanoid.WalkSpeed = 2
  105. DBarrel.Transparency = 0
  106. for i=0,1,.1 do
  107. swait()
  108. PlayAnimationFromTable({
  109. CFrame.new(0, 0.0149096567, 0.133909225, 1, 0, 0, 0, 0.984807849, -0.173647985, 0, 0.173647985, 0.984807849),
  110. CFrame.new(0, 1.43158329, -0.187937319, 1, 0, 0, 0, 0.939692855, 0.342019796, 0, -0.342019796, 0.939692855),
  111. CFrame.new(1.0840646, 0.399937928, -0.718070745, 0.868691146, 0.495353371, 0.000888805604, -0.0877529308, 0.15565595, -0.983905911, -0.487519473, 0.854632378, 0.17868565),
  112. CFrame.new(-1.35562694, -0.0255649146, 0.396688521, 0.939692378, -0.116977789, 0.321394831, -2.60770321e-07, 0.939692855, 0.342019856, -0.342021167, -0.321393549, 0.883021951),
  113. CFrame.new(0.499995321, -2.00755072, 0.218008161, 0.939692736, 0, -0.342019886, 0.0593910702, 0.984807849, 0.163175747, 0.33682391, -0.173647985, 0.925416768),
  114. CFrame.new(-0.499996126, -2.00755, 0.218011439, 0.939692736, 0, 0.342019886, -0.0593910702, 0.984807849, 0.163175747, -0.33682391, -0.173647985, 0.925416768),
  115. }, .3, false)
  116. end
  117. swait(5)
  118. so(132455829,DBarrel,1,1)
  119. local ref = Instance.new("Part",chara)
  120. ref.Size = Vector3.new(0,0,0)
  121. ref.Anchored = true
  122. ref.CanCollide = false
  123. ref.Transparency = 1
  124. ref.CFrame = RootPart.CFrame*CFrame.new(0,0,-6)
  125. MagnitudeDmg(ref,4,100,0,RootPart.CFrame.lookVector*12,true,"Shot",.1)
  126. Effects.Block(DBarrel.CFrame*CFrame.new(.1,.3,1.1),Vector3.new(1,1,1),Vector3.new(),Vector3.new(.1,.1,.1),"Neon","Bright yellow",true,false,.05)
  127. Effects.Block(DBarrel.CFrame*CFrame.new(-.1,.3,1.1),Vector3.new(1,1,1),Vector3.new(),Vector3.new(.1,.1,.1),"Neon","Bright yellow",true,false,.05)
  128. ref:Destroy()
  129. for i=0,1,.1 do
  130. swait()
  131. PlayAnimationFromTable({
  132. CFrame.new(0, 0.0149102025, 0.133909985, 1, 0, 0, 0, 0.984812796, -0.173648849, 0, 0.173648849, 0.984812796),
  133. CFrame.new(0, 1.43158948, 0.0120660895, 1, 0, 0, 0, 1.00000262, -1.1920929e-07, 0, 1.1920929e-07, 1.00000262),
  134. CFrame.new(1.20370889, 0.765974879, -0.570772648, 0.868689418, 0.319091678, -0.378892303, -0.0877506882, -0.653664529, -0.751683295, -0.48752436, 0.686227262, -0.539830863),
  135. CFrame.new(-1.49794042, 0.21531868, 0.355185598, 0.923031092, 0.211469814, 0.321394384, -0.321394086, 0.883024752, 0.342021078, -0.211472049, -0.418990374, 0.883024335),
  136. CFrame.new(0.499998927, -2.00757003, 0.218012124, 0.939692736, 0, -0.342019886, 0.0593913682, 0.984812796, 0.163176581, 0.336825609, -0.173648849, 0.925421476),
  137. CFrame.new(-0.500004649, -2.00756979, 0.218013197, 0.939692736, 0, 0.342019886, -0.0593913682, 0.984812796, 0.163176581, -0.336825609, -0.173648849, 0.925421476),
  138. }, .3, false)
  139. end
  140. swait(10)
  141. for i=0,1,.25 do
  142. swait()
  143. PlayAnimationFromTable({
  144. CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  145. CFrame.new(0, 1.44842434, -0.192443371, 1, 0, 0, 0, 0.939692736, 0.342019886, 0, -0.342019916, 0.939692736),
  146. CFrame.new(1.39502811, 0.908103704, 0.515749812, -0.213331953, -0.84539932, -0.489683062, 0.875778735, 0.056671422, -0.479374528, 0.433013916, -0.531119943, 0.728292942),
  147. CFrame.new(-1.5091548, 0.323206276, -0.384231716, 0.750000238, 0.433013409, -0.499999136, -0.500000179, 0.866025388, 6.10661004e-07, 0.433012158, 0.249999225, 0.866025925),
  148. CFrame.new(0.50000149, -1.99999857, -2.11596489e-06, 0.984807849, 0, -0.173647985, 0, 1, 0, 0.173647985, 0, 0.984807849),
  149. CFrame.new(-0.500000834, -1.99999857, 1.63912773e-06, 0.984807849, 0, 0.173647985, 0, 1, 0, -0.173647985, 0, 0.984807849),
  150. }, .4, false)
  151. end
  152. for i=1,2 do
  153. so(1159825801,DBarrel,1,1)
  154. local hitpt = Instance.new("Part",EffectModel)
  155. hitpt.Size = Vector3.new(0,0,.3)
  156. hitpt.CFrame = TEC9.CFrame * CFrame.Angles(math.rad(90),0,0)
  157. hitpt.Velocity = RootPart.CFrame.rightVector*10+Vector3.new(0,5,0)
  158. local hitm = Instance.new("SpecialMesh",hitpt)
  159. hitm.MeshId = "rbxassetid://94248124"
  160. hitm.TextureId = "rbxassetid://94219470"
  161. hitm.Scale = Vector3.new(1.2,1.2,1.2)
  162. coroutine.wrap(function()
  163. swait(30)
  164. for i = 0,1,.1 do
  165. swait()
  166. hitpt.Transparency = i
  167. end
  168. hitpt:Destroy()
  169. end)()
  170. swait()
  171. end
  172. swait(15)
  173. so(211134014,DBarrel,1,1)
  174. for i=0,1,.1 do
  175. swait()
  176. PlayAnimationFromTable({
  177. CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  178. CFrame.new(0.0838357508, 1.42719412, -0.166348219, 0.857789159, 0.297403604, -0.419224113, -0.141315028, 0.920631945, 0.363959879, 0.49419412, -0.252958179, 0.83173573),
  179. CFrame.new(1.22406256, -0.130654663, 0.277106255, 0.941511214, 0.33170712, 0.0593906641, -0.33170709, 0.881204426, 0.336822212, 0.0593910143, -0.336822152, 0.939693391),
  180. CFrame.new(-1.43159902, 0, 0.187939197, 0.939692736, 0, 0.342019886, 0, 1, 0, -0.342019916, 0, 0.939692736),
  181. CFrame.new(0.499998897, -1.99999988, -1.49011612e-06, 0.939692736, 0, -0.342019886, 0, 1, 0, 0.342019916, 0, 0.939692736),
  182. CFrame.new(-0.500001848, -1.99999988, 1.62422657e-06, 0.939692736, 0, 0.342019886, 0, 1, 0, -0.342019916, 0, 0.939692736),
  183. }, .3, false)
  184. end
  185. DBarrel.Transparency = 1
  186. Humanoid.WalkSpeed = 8
  187. attack = false
  188. end
  189.  
  190.  
  191. local sprintt = 0
  192. Mouse.KeyDown:connect(function(k)
  193. k = k:lower()
  194. if k == 'x' then
  195. dbshoot()
  196. end
  197. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement