Advertisement
Laksana

Untitled

Jan 20th, 2018
219
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 41.16 KB | None | 0 0
  1. 0), math.rad(0), math.rad(50)), .2)
  2. RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.5, 0) * angles(math.rad(60), math.rad(-40 - .01 * math.cos(sine / 25)), math.rad(-0 + 0.1 * math.cos(sine / 25))), 0.2)
  3. LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.4, -.4) * angles(math.rad(125 + 1 * math.cos(sine / 25)), math.rad(15), math.rad(-10 - 1 * math.cos(sine / 25))), 0.2)
  4. RH.C0 = clerp(RH.C0, cn(.9, -.9 - 0.1 * math.cos(sine / 25), -.6) * RHCF * angles(math.rad(-2 + 1 * math.cos(sine / 25)), math.rad(50), math.rad(4 + 2 * math.cos(sine / 25))), .2)
  5. LH.C0 = clerp(LH.C0, cn(-.9, -.9 - 0.1 * math.cos(sine / 25), .5) * LHCF * angles(math.rad(-2 + 1 * math.cos(sine / 25)), math.rad(50), math.rad(-20 + 2 * math.cos(sine / 25))), .2)
  6. GuW.C0 = clerp(GuW.C0, CFrame.new(-2,-1.3,0) * angles(math.rad(-90), math.rad(0), math.rad(90)), 0.1)
  7. DW.C0 = clerp(DW.C0, CFrame.new(3.5 + .5 * math.cos(sine / 30) ,3 + -.2 * math.cos(sine / 20), 2.5 + .5 * math.cos(sine / 40)) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.2)
  8. end
  9. end
  10.  
  11.  
  12.  
  13. for i = 0, 1, 0.4 do
  14. swait()
  15.  
  16. if Torsovelocity > 2 then
  17. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -0.05 + .1 * math.cos(sine / 3)) * angles(math.rad(5), math.rad(0) + RootPart.RotVelocity.Y / 30, math.rad(-50 - 5 * math.cos(sine / 5))), .2)
  18. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-3), math.rad(0), math.rad(50 + 5 * math.cos(sine / 5)) + RootPart.RotVelocity.Y / 9), .2)
  19. RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.5, 0) * angles(math.rad(10), math.rad(-40 - .01 * math.cos(sine / 25)), math.rad(-0 + 0.1 * math.cos(sine / 25))), 0.1)
  20. LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.4, -.4) * angles(math.rad(85 + 1 * math.cos(sine / 25)), math.rad(15), math.rad(-10 - 1 * math.cos(sine / 25))), 0.1)
  21. RH.C0 = clerp(RH.C0, cn(.9, -.9 + -.1 * math.cos(sine / 4),-.6) * RHCF * angles(math.rad(-2), math.rad(50), math.rad(50 * math.cos(sine / 4))), .3)
  22. LH.C0 = clerp(LH.C0, cn(-.9, -.9 + .1 * math.cos(sine / 4), .5) * LHCF * angles(math.rad(-2), math.rad(50), math.rad(50 * math.cos(sine / 4))), .3)
  23. GuW.C0 = clerp(GuW.C0, CFrame.new(-2,-1.3,0) * angles(math.rad(-90), math.rad(0), math.rad(90)), 0.1)
  24. DW.C0 = clerp(DW.C0, CFrame.new(3.5 + .5 * math.cos(sine / 30) ,3 + -.2 * math.cos(sine / 20), 2.5 + .5 * math.cos(sine / 40)) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.2)
  25. elseif Torsovelocity < 1 then
  26.  
  27.  
  28. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-50)), .2)
  29. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(50)), .2)
  30. RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.5, 0) * angles(math.rad(10), math.rad(-40 - .01 * math.cos(sine / 25)), math.rad(-0 + 0.1 * math.cos(sine / 25))), 0.1)
  31. LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.4, -.4) * angles(math.rad(85 + 1 * math.cos(sine / 25)), math.rad(15), math.rad(-10 - 1 * math.cos(sine / 25))), 0.1)
  32. RH.C0 = clerp(RH.C0, cn(.9, -.9 - 0.1 * math.cos(sine / 25), -.6) * RHCF * angles(math.rad(-2 + 1 * math.cos(sine / 25)), math.rad(50), math.rad(10 + 2 * math.cos(sine / 25))), .2)
  33. LH.C0 = clerp(LH.C0, cn(-.9, -.9 - 0.1 * math.cos(sine / 25), .5) * LHCF * angles(math.rad(-2 + 1 * math.cos(sine / 25)), math.rad(50), math.rad(10 + 2 * math.cos(sine / 25))), .2)
  34. GuW.C0 = clerp(GuW.C0, CFrame.new(-2,-1.3,0) * angles(math.rad(-90), math.rad(0), math.rad(90)), 0.1)
  35. DW.C0 = clerp(DW.C0, CFrame.new(3.5 + .5 * math.cos(sine / 30) ,3 + -.2 * math.cos(sine / 20), 2.5 + .5 * math.cos(sine / 40)) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.2)
  36. end
  37. end
  38. end
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47. function holding()
  48.  
  49.  
  50.  
  51.  
  52. while Rapid == true and attack==true and sentrymode == false do
  53.  
  54. attack = true
  55.  
  56.  
  57. MinShotAttackAnim1()
  58. BlockEffect(BrickColor.new("Really red"), gun1.CFrame, 1, 1, 1, 2, 2, 2, 0.1)
  59. CFuncs.Sound.Create("http://www.roblox.com/asset/?id=419268760", RootPart, 1, 1.5)
  60. shoottraildd(mouse.Hit.p, gun1, .55)
  61.  
  62. MinShotAttackAnim1()
  63. BlockEffect(BrickColor.new("Really red"), gun2.CFrame, 1, 1, 1, 2, 2, 2, 0.1)
  64. CFuncs.Sound.Create("http://www.roblox.com/asset/?id=419268760", RootPart, 1, 1.5)
  65. shoottraildd(mouse.Hit.p, gun2, .55)
  66. MinShotAttackAnim1()
  67. BlockEffect(BrickColor.new("Really red"), gun3.CFrame, 1, 1, 1, 2, 2, 2, 0.1)
  68. CFuncs.Sound.Create("http://www.roblox.com/asset/?id=419268760", RootPart, 1, 1.5)
  69. shoottraildd(mouse.Hit.p, gun3, .55)
  70. MinShotAttackAnim1()
  71. BlockEffect(BrickColor.new("Really red"), gun4.CFrame, 1, 1, 1, 2, 2, 2, 0.1)
  72. CFuncs.Sound.Create("http://www.roblox.com/asset/?id=419268760", RootPart, 1, 1.5)
  73. shoottraildd(mouse.Hit.p, gun4, .55)
  74. end
  75.  
  76.  
  77.  
  78. attack = false
  79. end
  80.  
  81. mouse.KeyUp:connect(function(k)
  82. if k == "z" and Rapid == true then
  83. CFuncs.Sound.Create("http://www.roblox.com/asset/?id=231107923", RootPart, 1, 2)
  84. Rapid = false
  85. Effects.Ring.Create (BrickColor.new("Really red"), gun1.CFrame, .1, .1, .1, .1,.1,0,0.08)
  86. Effects.Ring.Create (BrickColor.new("Really red"), gun1.CFrame, .1, .1, .1, .1,.1,0,0.1)
  87.  
  88. end
  89. end)
  90.  
  91.  
  92.  
  93. mouse.KeyDown:connect(function(k)
  94. if k == "z" and sentrymode == false and attack == false then
  95. attack = true
  96. Rapid = true
  97. CFuncs.Sound.Create("http://www.roblox.com/asset/?id=162611981", RootPart, 1, 1)
  98. MinShotAttackAnim1()
  99. MinShotAttackAnim1()
  100. for i = 0,10 do
  101. BlockEffect(BrickColor.new("Really red"), gun1.CFrame, 1, 1, 1, 2, 2, 2, 0.1)
  102. BlockEffect(BrickColor.new("Really red"), gun2.CFrame, 1, 1, 1, 2, 2, 2, 0.1)
  103. BlockEffect(BrickColor.new("Really red"), gun3.CFrame, 1, 1, 1, 2, 2, 2, 0.1)
  104. BlockEffect(BrickColor.new("Really red"), gun4.CFrame, 1, 1, 1, 2, 2, 2, 0.1)
  105. Effects.Ring.Create (BrickColor.new("Really red"), gun1.CFrame, 2.1, 2.1, .1, -.3,-.3,0,0.07)
  106. MinShotAttackAnim1()
  107. end
  108. holding()
  109. end
  110. end)
  111.  
  112.  
  113.  
  114.  
  115. mouse.KeyDown:connect(function(k)
  116.  
  117.  
  118. if attack == false and k == "x" and sentrymode == false then
  119.  
  120.  
  121.  
  122.  
  123. attack = true
  124. CFuncs.Sound.Create("http://www.roblox.com/asset/?id=316030607", LaPart, 5, 3)
  125. for i=1,5 do
  126.  
  127. BlockEffect(BrickColor.new("Really red"), gun1.CFrame, .1, .1, .1, 1, 1, 1, 0.045)
  128. BlockEffect(BrickColor.new("Really red"), gun2.CFrame, .1, .1, .1, 1, 1, 1, 0.045)
  129. BlockEffect(BrickColor.new("Really red"), gun3.CFrame, .1, .1, .1, 1, 1, 1, 0.045)
  130. BlockEffect(BrickColor.new("Really red"), gun4.CFrame, .1, .1, .1, 1, 1, 1, 0.045)
  131. ShotAttackAnim1()
  132. BlockEffect(BrickColor.new("Really red"), gun1.CFrame, .1, .1, .1, 1, 1, 1, 0.045)
  133. BlockEffect(BrickColor.new("Really red"), gun2.CFrame, .1, .1, .1, 1, 1, 1, 0.045)
  134. BlockEffect(BrickColor.new("Really red"), gun3.CFrame, .1, .1, .1, 1, 1, 1, 0.045)
  135. BlockEffect(BrickColor.new("Really red"), gun4.CFrame, .1, .1, .1, 1, 1, 1, 0.045)
  136. ShotAttackAnim1()
  137. BlockEffect(BrickColor.new("Really red"), gun1.CFrame, .1, .1, .1, 1, 1, 1, 0.045)
  138. BlockEffect(BrickColor.new("Really red"), gun2.CFrame, .1, .1, .1, 1, 1, 1, 0.045)
  139. BlockEffect(BrickColor.new("Really red"), gun3.CFrame, .1, .1, .1, 1, 1, 1, 0.045)
  140. BlockEffect(BrickColor.new("Really red"), gun4.CFrame, .1, .1, .1, 1, 1, 1, 0.045)
  141.  
  142. BlockEffect(BrickColor.new("Really red"), gun1.CFrame, 0, 0, 0, 60, 60, 60, 0.4)
  143. ShotAttackAnim1()
  144. end
  145. CFuncs.Sound.Create("http://www.roblox.com/asset/?id=633129949", LaPart, 10, 1)
  146. for i=1,2 do
  147. BlockEffect(BrickColor.new("Really red"), gun1.CFrame, 20, 20, 20, 50, 50, 50, 0.12)
  148. BlockEffect(BrickColor.new("Really red"), gun1.CFrame, 20, 20, 20, 30, 30, 30, 0.09)
  149. BlockEffect(BrickColor.new("Really red"), gun1.CFrame, 10, 10, 10, 20, 20, 20, 0.06)
  150. BlockEffect(BrickColor.new("Really black"), gun1.CFrame, 3, 3, 3, 10, 10, 10, 0.045)
  151. end
  152. BlockEffect(BrickColor.new("Really black"), gun1.CFrame, .1, .1, .1, 1, 1, 1, 0.045)
  153.  
  154.  
  155. MagniDamage(gun1, 15, 20, 69, 99, "Normal")
  156. ShotAttackAnim3()
  157.  
  158.  
  159.  
  160.  
  161. for i=1,2 do
  162. BlockEffect(BrickColor.new("Really black"), gun1.CFrame, .1, .1, .1, 1, 1, 1, 0.045)
  163. ShotAttackAnim1()
  164. BlockEffect(BrickColor.new("Really black"), gun1.CFrame, .1, .1, .1, 1, 1, 1, 0.045)
  165. ShotAttackAnim1()
  166. BlockEffect(BrickColor.new("Really black"), gun1.CFrame, .1, .1, .1, 1, 1, 1, 0.045)
  167. ShotAttackAnim1()
  168. end
  169.  
  170. attack = false
  171.  
  172. end
  173.  
  174.  
  175.  
  176. if k == "r" and attack == false then
  177. attack=true
  178. while Torsovelocity < 1 do
  179. attack=true
  180. idleanim2()
  181.  
  182.  
  183.  
  184. end
  185. attack=false
  186.  
  187. end
  188.  
  189.  
  190.  
  191.  
  192.  
  193.  
  194.  
  195.  
  196. if k == "v" and sentrymode == false and attack == false and ultwait==false then
  197. ultwait=true
  198. attack = true
  199. Humanoid.WalkSpeed = 0
  200. local Sond = Create("Sound")({Volume = 1.5, Pitch = 1.2, SoundId = "http://www.roblox.com/asset/?id=195322948", Parent = Character or workspace})
  201. wait()
  202. Sond:play()
  203.  
  204. for i = 0, 1, 0.1 do
  205. swait()
  206.  
  207.  
  208.  
  209. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-50)), .2)
  210. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(50)), .2)
  211. RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.5, 0) * angles(math.rad(10), math.rad(-40 - .01 * math.cos(sine / 25)), math.rad(-0 + 0.1 * math.cos(sine / 25))), 0.2)
  212. LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.4, -.4) * angles(math.rad(85 + 1 * math.cos(sine / 25)), math.rad(15), math.rad(-10 - 1 * math.cos(sine / 25))), 0.2)
  213. RH.C0 = clerp(RH.C0, cn(.9, -.9 - 0.0 * math.cos(sine / 25), -.6) * RHCF * angles(math.rad(-2 + 0 * math.cos(sine / 25)), math.rad(50), math.rad(10 + 0 * math.cos(sine / 25))), .2)
  214. LH.C0 = clerp(LH.C0, cn(-.9, -.9 - 0.0 * math.cos(sine / 25), .5) * LHCF * angles(math.rad(-2 + 0 * math.cos(sine / 25)), math.rad(50), math.rad(10 + 0 * math.cos(sine / 25))), .2)
  215. GuW.C0 = clerp(GuW.C0, CFrame.new(-2,-1.3,0) * angles(math.rad(-90), math.rad(0), math.rad(90)), 0.1)
  216. DW.C0 = clerp(DW.C0, CFrame.new(3.5 + .5 * math.cos(sine / 30) ,3 + -.2 * math.cos(sine / 20), 2.5 + .5 * math.cos(sine / 40)) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.2)
  217.  
  218. end
  219.  
  220.  
  221. for i = 0, 2, 0.1 do
  222. swait()
  223.  
  224. Effects.Ring.Create (BrickColor.new("Really red"), LeftArm.CFrame, .1, .1, .1, 1,1,0,0.1)
  225.  
  226.  
  227. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-50)), .2)
  228. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(10), math.rad(0), math.rad(50)), .2)
  229. RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.5, 0) * angles(math.rad(10), math.rad(-40 - .01 * math.cos(sine / 25)), math.rad(-0 + 0.1 * math.cos(sine / 25))), 0.2)
  230. LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.4, -.4) * angles(math.rad(90 + 1 * math.cos(sine / 25)), math.rad(-45), math.rad(-45 - 1 * math.cos(sine / 25))), 0.2)
  231. RH.C0 = clerp(RH.C0, cn(.9, -1 - 0.0 * math.cos(sine / 25), -.6) * RHCF * angles(math.rad(-2 + 0 * math.cos(sine / 25)), math.rad(50), math.rad(0 + 0 * math.cos(sine / 25))), .2)
  232. LH.C0 = clerp(LH.C0, cn(-.9, -1 - 0.0 * math.cos(sine / 25), .5) * LHCF * angles(math.rad(-2 + 0 * math.cos(sine / 25)), math.rad(50), math.rad(-0 + 0 * math.cos(sine / 25))), .2)
  233. GuW.C0 = clerp(GuW.C0, CFrame.new(0,-1.3,-1) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.1)
  234. DW.C0 = clerp(DW.C0, CFrame.new(3.5 + .5 * math.cos(sine / 30) ,3 + -.2 * math.cos(sine / 20), 2.5 + .5 * math.cos(sine / 40)) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.2)
  235.  
  236. end
  237.  
  238.  
  239. for i = 0, 58, 0.1 do
  240. swait()
  241. Effects.Ring.Create (BrickColor.new("Really red"), LeftArm.CFrame, .1, .1, .1, .6,.6,0,0.08)
  242. Effects.Ring.Create (BrickColor.new("Really red"), LeftArm.CFrame, .1, .1, .1, .6,.6,0,0.1)
  243. BlockEffect(BrickColor.new("Really red"), LeftArm.CFrame, 21, 41, 21, -.5, -.5, -.5, 0.1,2)
  244.  
  245. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-50)), .2)
  246. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(10), math.rad(0), math.rad(50)), .2)
  247. RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.5, 0) * angles(math.rad(10), math.rad(-40 - .01 * math.cos(sine / 25)), math.rad(-0 + 0.1 * math.cos(sine / 25))), 0.1)
  248. LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.4, -.4) * angles(math.rad(120 + 1 * math.cos(sine / 25)), math.rad(-45), math.rad(-45 - 1 * math.cos(sine / 25))), 0.1)
  249. RH.C0 = clerp(RH.C0, cn(.9, -1 - 0.0 * math.cos(sine / 25), -.6) * RHCF * angles(math.rad(-2 + 0 * math.cos(sine / 25)), math.rad(50), math.rad(0 + 0 * math.cos(sine / 25))), .1)
  250. LH.C0 = clerp(LH.C0, cn(-.9, -1 - 0.0 * math.cos(sine / 25), .5) * LHCF * angles(math.rad(-2 + 0 * math.cos(sine / 25)), math.rad(50), math.rad(-0 + 0 * math.cos(sine / 25))), .2)
  251. GuW.C0 = clerp(GuW.C0, CFrame.new(0,-1.3,-1) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.1)
  252. DW.C0 = clerp(DW.C0, CFrame.new(3.5 + .5 * math.cos(sine / 30) ,3 + -.2 * math.cos(sine / 20), 2.5 + .5 * math.cos(sine / 40)) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.2)
  253.  
  254. end
  255. BlockEffect(BrickColor.new("Really red"), LeftArm.CFrame, 0, 0, 0, 20,20,20, 0.05,1)
  256. for i = 0, 55, 0.1 do
  257. swait()
  258. Effects.Ring.Create (BrickColor.new("Really red"), LeftArm.CFrame, .1, .1, .1, 1,1,0,0.08)
  259. Effects.Ring.Create (BrickColor.new("Really red"), LeftArm.CFrame, .1, .1, .1, 1,1,0,0.1)
  260. Effects.Break.Create (BrickColor.new("Really red"), LeftArm.CFrame, 6, .1, .1)
  261. BlockEffect(BrickColor.new("Really red"), LeftArm.CFrame, 21, 41, 21, .1, .1, .1, 0.05,2)
  262. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 5) * angles(math.rad(0), math.rad(0), math.rad(-50)), .01)
  263. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(10), math.rad(0), math.rad(50)), .2)
  264. RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.5, 0) * angles(math.rad(10), math.rad(-40 - .01 * math.cos(sine / 25)), math.rad(-0 + 0.1 * math.cos(sine / 25))), 0.2)
  265. LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.4, -.4) * angles(math.rad(120 + 1 * math.cos(sine / 25)), math.rad(-0), math.rad(-45 - 1 * math.cos(sine / 25))), 0.2)
  266. RH.C0 = clerp(RH.C0, cn(.9, -.9 - 0.2 * math.cos(sine / 25), -.6) * RHCF * angles(math.rad(-2 + 0 * math.cos(sine / 25)), math.rad(50), math.rad(0 + 0 * math.cos(sine / 25))), .1)
  267. LH.C0 = clerp(LH.C0, cn(-.9, -.7 - 0.2 * math.cos(sine / 25), .5) * LHCF * angles(math.rad(-2 + 0 * math.cos(sine / 25)), math.rad(50), math.rad(10 + 0 * math.cos(sine / 25))), .2)
  268. GuW.C0 = clerp(GuW.C0, CFrame.new(0,-1.3,-1) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.1)
  269. DW.C0 = clerp(DW.C0, CFrame.new(3.5 + .5 * math.cos(sine / 30) ,3 + -.2 * math.cos(sine / 20), 2.5 + .5 * math.cos(sine / 40)) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.2)
  270.  
  271. end
  272. BlockEffect(BrickColor.new("Really red"), LeftArm.CFrame, 0, 0, 0, 30,30,30, 0.05,1)
  273. CFuncs.Sound.Create("http://www.roblox.com/asset/?id=260434750", Character, 2, .7)
  274. CFuncs.Sound.Create("http://www.roblox.com/asset/?id=209833293", Character, 2, 2)
  275. for i = 0, 10, 0.1 do
  276. swait()
  277.  
  278. Effects.Wave.Create (BrickColor.new("Really red"), Torso.CFrame, .1, .1, .1, .5,10000,.5,0.08)
  279. Effects.Ring.Create (BrickColor.new("Really red"), LeftArm.CFrame, .1, .1, .1, 17,17,0,0.08)
  280. Effects.Ring.Create (BrickColor.new("Really red"), LeftArm.CFrame, .1, .1, .1, 17,17,0,0.1)
  281. Effects.Break.Create (BrickColor.new("Really red"), LeftArm.CFrame, 76, .1, .1)
  282. BlockEffect(BrickColor.new("Really red"), LeftArm.CFrame, 40, 40, 40, 70,70,70, 0.05,1)
  283.  
  284.  
  285. MagniKILL(Torso, 80,99,99999999, 0, "Normal")
  286.  
  287. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-50)), .2)
  288. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(10), math.rad(0), math.rad(50)), .2)
  289. RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.5, 0) * angles(math.rad(10), math.rad(-40 - .01 * math.cos(sine / 25)), math.rad(-0 + 0.1 * math.cos(sine / 25))), 0.2)
  290. LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.4, -.4) * angles(math.rad(160 + 1 * math.cos(sine / 25)), math.rad(-0), math.rad(-0 - 1 * math.cos(sine / 25))), 0.2)
  291. RH.C0 = clerp(RH.C0, cn(.9, -1 - 0.0 * math.cos(sine / 25), -.6) * RHCF * angles(math.rad(-2 + 0 * math.cos(sine / 25)), math.rad(50), math.rad(0 + 0 * math.cos(sine / 25))), .1)
  292. LH.C0 = clerp(LH.C0, cn(-.9, -1 - 0.0 * math.cos(sine / 25), .5) * LHCF * angles(math.rad(-2 + 0 * math.cos(sine / 25)), math.rad(50), math.rad(-0 + 0 * math.cos(sine / 25))), .2)
  293. GuW.C0 = clerp(GuW.C0, CFrame.new(0,-1.3,-1) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.1)
  294. DW.C0 = clerp(DW.C0, CFrame.new(3.5 + .5 * math.cos(sine / 30) ,3 + -.2 * math.cos(sine / 20), 2.5 + .5 * math.cos(sine / 40)) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.2)
  295.  
  296. end
  297. CFuncs.Sound.Create("http://www.roblox.com/asset/?id=260435164", Character, 2, .7)
  298.  
  299. for i = 0, 1, 0.1 do
  300. swait()
  301.  
  302.  
  303.  
  304. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-50)), .2)
  305. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(50)), .2)
  306. RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.5, 0) * angles(math.rad(10), math.rad(-40 - .01 * math.cos(sine / 25)), math.rad(-0 + 0.1 * math.cos(sine / 25))), 0.2)
  307. LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.4, -.4) * angles(math.rad(85 + 1 * math.cos(sine / 25)), math.rad(15), math.rad(-10 - 1 * math.cos(sine / 25))), 0.2)
  308. RH.C0 = clerp(RH.C0, cn(.9, -.9 - 0.0 * math.cos(sine / 25), -.6) * RHCF * angles(math.rad(-2 + 0 * math.cos(sine / 25)), math.rad(50), math.rad(10 + 0 * math.cos(sine / 25))), .2)
  309. LH.C0 = clerp(LH.C0, cn(-.9, -.9 - 0.0 * math.cos(sine / 25), .5) * LHCF * angles(math.rad(-2 + 0 * math.cos(sine / 25)), math.rad(50), math.rad(10 + 0 * math.cos(sine / 25))), .2)
  310. GuW.C0 = clerp(GuW.C0, CFrame.new(-2,-1.3,0) * angles(math.rad(-90), math.rad(0), math.rad(90)), 0.1)
  311. DW.C0 = clerp(DW.C0, CFrame.new(3.5 + .5 * math.cos(sine / 30) ,3 + -.2 * math.cos(sine / 20), 2.5 + .5 * math.cos(sine / 40)) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.2)
  312.  
  313. end
  314. Humanoid.WalkSpeed = 16
  315. Sond:Destroy()
  316.  
  317. attack = false
  318. wait(30)
  319. ultwait=false
  320. end
  321.  
  322. if k == "e" then
  323.  
  324. if sentrymode== false then
  325. if attack == false then
  326. GlowParticle.Enabled = true
  327. CFuncs.Sound.Create("http://www.roblox.com/asset/?id=876800936", LaPart, 1.5, 1.5)
  328. sentrymode= true
  329. end
  330. else
  331. sentrymode=false
  332. GlowParticle.Enabled = false
  333. CFuncs.Sound.Create("http://www.roblox.com/asset/?id=231107923", LaPart, 3, 1.5)
  334. end
  335. end
  336.  
  337. end)
  338. mouse.Button1Down:connect(function(key)
  339. if attack == false and sentrymode == false then
  340. attack = true
  341. ShotAttackAnim2()
  342. BlockEffect(BrickColor.new("Really red"), LaPart.CFrame, 0, 0, 0, 6, 6, 6, 0.18)
  343. BlockEffect(BrickColor.new("Really red"), LaPart.CFrame, 0, 0, 0, 2, 2, 2, 0.12)
  344. CFuncs.Sound.Create("http://www.roblox.com/asset/?id=410543238", LaPart, 0.5, 1.6)
  345. bigLigLaser(mouse.Hit.p, LaPart, 0)
  346. ShotAttackAnim2()
  347. attack = false
  348. end
  349. end)
  350.  
  351. Humanoid.MaxHealth = 500
  352. wait()
  353. Humanoid.Health = Humanoid.MaxHealth
  354.  
  355.  
  356. ------------------------------------------------------------------------------------------------
  357. local HiveMind = {}
  358.  
  359. function HiveMind:new(owner)
  360. self.__index = self
  361. local o = {mind = {}, mindState = "FOLLOW", victimObject = nil}
  362. o.owner = owner
  363. setmetatable(o, self)
  364. return o
  365. end
  366.  
  367. function HiveMind:add(model, humanoid, torso)
  368. if model and humanoid and torso then
  369. table.insert(self.mind, {model = model, humanoid = humanoid,
  370. torso = torso})
  371. local hiv = self
  372. local lastJump = 0
  373. torso.Touched:connect(function(object)
  374. local hive = false
  375. if hiv.owner.Character
  376. and object:IsDescendantOf(hiv.owner.Character) == false
  377. then
  378. for i = 1, #hiv.mind do
  379. if object:IsDescendantOf(hiv.mind[i].model) then
  380. hive = true
  381. break
  382. end
  383. end
  384. if not hive then
  385. local hum = object.Parent
  386. and object.Parent:FindFirstChild("Humanoid")
  387. if hum then
  388. hum:TakeDamage(1)
  389. end
  390. elseif time() - lastJump > 2 then
  391. lastJump = time(0) + math.random()*1
  392. humanoid.Jump = true
  393. end
  394. end
  395. end)
  396. end
  397. end
  398.  
  399. function HiveMind:cleanupHive()
  400. local i = 1
  401. while i <= #self.mind do
  402. if self.mind[i].model:IsDescendantOf(game) == false
  403. or self.mind[i].humanoid.Health == 0 then
  404. table.remove(self.mind, i)
  405. else
  406. i = i + 1
  407. end
  408. end
  409. end
  410.  
  411. function HiveMind:getOrbitNumberFromUnitNumber(i)
  412. local circleNumber = 0
  413. while self:getUnitsInOrbit(circleNumber) < i do
  414. i = i - self:getUnitsInOrbit(circleNumber)
  415. circleNumber = circleNumber + 1
  416. end
  417. return circleNumber, i
  418. end
  419.  
  420. function HiveMind:getOrbitDiameter(orbitNumber)
  421. return math.pi*(orbitNumber*14)
  422. end
  423.  
  424. function HiveMind:getUnitsInOrbit(orbitNumber)
  425. return math.floor(self:getOrbitDiameter(orbitNumber)/5)
  426. end
  427.  
  428. function HiveMind:lineup(location)
  429. for i = 1, #self.mind do
  430. local row = (i - 1) % 3
  431. local column = math.floor((i - 1) / 3)
  432. local xOffset, yOffset
  433. if row == 0 then
  434. xOffset = -7
  435. elseif row == 1 then
  436. xOffset = 0
  437. else
  438. xOffset = 7
  439. end
  440. yOffset = column * 7
  441. local position = location * CFrame.new(xOffset, 0, yOffset)
  442. self.mind[i].humanoid:MoveTo(position.p, workspace.Base)
  443. end
  444. end
  445.  
  446. function HiveMind:ownerTorso()
  447. return self.owner.Character
  448. and self.owner.Character:FindFirstChild("Torso")
  449. end
  450. function HiveMind:update()
  451. self:cleanupHive()
  452. if self.owner.Character then
  453. local ownerTorso = self.owner.Character:FindFirstChild("Torso")
  454. if ownerTorso then
  455. if (self.mindState == "FOLLOW") then
  456. local hiveSpawn = ownerTorso.CFrame * CFrame.new(0, 0, 9)
  457. self:lineup(hiveSpawn)
  458. elseif (self.mindState == "CIRCLE") then
  459. self:circle(ownerTorso.Position)
  460. elseif (self.mindState == "ATTACK") then
  461. self:crowdAttack()
  462. elseif (self.mindState == "Deffend") then
  463. self:deffend()
  464. elseif (self.mindState == "GOTO") then
  465. self:pushToTarget()
  466. end
  467. end
  468. end
  469. end
  470. local me = game:GetService("Players").LocalPlayer
  471. local hiveMind = HiveMind:new(me)
  472.  
  473. ------------------------------------------------------------------------------------------------
  474.  
  475. function findNearestTorso(pos,dist2)
  476. local list = game.Workspace:children()
  477. local torso = nil
  478. if dist2 == nil then
  479. dist2=50
  480.  
  481. end
  482. local dist = dist2
  483. local temp = nil
  484. local human = nil
  485. local temp2 = nil
  486. for x = 1, #list do
  487. temp2 = list[x]
  488. if (temp2.className == "Model") and (temp2 ~= Character) then
  489. temp = temp2:findFirstChild("HumanoidRootPart")
  490. human = temp2:findFirstChild("Humanoid")
  491. if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then
  492. if (temp.Position - pos).magnitude < dist then
  493. torso = temp
  494.  
  495. dist = (temp.Position - pos).magnitude
  496. else
  497.  
  498. end
  499.  
  500.  
  501.  
  502.  
  503. end
  504. end
  505. end
  506. return torso
  507. end
  508.  
  509.  
  510. game:GetService("RunService"):BindToRenderStep("ew", 0, function()
  511.  
  512.  
  513.  
  514.  
  515.  
  516. if sentrymode == true and sonarwait == false then
  517. sonarwait = true
  518.  
  519. CFuncs.Sound.Create("http://www.roblox.com/asset/?id=752527668", LaPart, 2, 0.8)
  520.  
  521. wait(1)
  522. sonarwait = false
  523. end
  524.  
  525.  
  526.  
  527.  
  528. wait()
  529. if sentrymode == true then
  530.  
  531. local target = findNearestTorso(Character.HumanoidRootPart.Position,30)
  532. if target ~= nil then
  533. ShotAttackAnim2()
  534. if sentrywait == false then
  535. sentrywait = true
  536. attack= true
  537.  
  538.  
  539. BlockEffect(BrickColor.new("Really red"), LaPart.CFrame, 0, 0, 0, 6, 6, 6, 0.18)
  540. BlockEffect(BrickColor.new("Really red"), LaPart.CFrame, 0, 0, 0, 2, 2, 2, 0.12)
  541. CFuncs.Sound.Create("http://www.roblox.com/asset/?id=260433584", LaPart, 1.5, .8)
  542. LigLaser(target.Position, LaPart, 0)
  543. wait()
  544. attack= false
  545. sentrywait = false
  546. end
  547.  
  548.  
  549. end
  550.  
  551. end
  552. end)
  553.  
  554.  
  555. sonarwait = false
  556.  
  557.  
  558.  
  559.  
  560.  
  561.  
  562.  
  563.  
  564.  
  565.  
  566. FaceIdList = {'117930174'}
  567. FaceId = FaceIdList[math.random(1,#FaceIdList)]
  568.  
  569.  
  570.  
  571.  
  572.  
  573. local YourName = game.Players.LocalPlayer.Name
  574. Character = Player.Character
  575.  
  576.  
  577. Heartbeat = Instance.new("BindableEvent")
  578. Heartbeat.Name = "Heartbeat"
  579. Heartbeat.Parent = script
  580. frame = 0.03333333333333333
  581. tf = 0
  582.  
  583. game:GetService("RunService").Heartbeat:connect(function(s, p)
  584. tf = tf + s
  585. if tf >= frame then
  586. for i = 1, math.floor(tf / frame) do
  587. Heartbeat:Fire()
  588. end
  589. tf = tf - frame * math.floor(tf / frame)
  590. end
  591. end)
  592. local nscale = Instance.new("NumberValue")
  593. nscale.Value = 1
  594. nscale.Parent = nil
  595. nscale.Changed:connect(function()
  596. RightShoulderC0 = CFrame.new(1.5 * nscale.Value, 0.5 * nscale.Value, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  597. RightShoulderC1 = CFrame.new(0, 0.5 * nscale.Value, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  598. LeftShoulderC0 = CFrame.new(-1.5 * nscale.Value, 0.5 * nscale.Value, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  599. LeftShoulderC1 = CFrame.new(0, 0.5 * nscale.Value, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  600. RightHipC0 = CFrame.new(0.5 * nscale.Value, -1 * nscale.Value, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  601. RightHipC1 = CFrame.new(0, 1 * nscale.Value, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  602. LeftHipC0 = CFrame.new(-0.5 * nscale.Value, -1 * nscale.Value, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  603. LeftHipC1 = CFrame.new(0 * nscale.Value, 1 * nscale.Value, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  604. RootJointC0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  605. RootJointC1 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  606. NeckC0 = CFrame.new(0, 1 * nscale.Value, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  607. NeckC1 = CFrame.new(0, -0.5 * nscale.Value, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  608. end)
  609.  
  610. function makegloo(paren, co, ci, parto, parti, nam)
  611. local gloo = Instance.new("Glue")
  612. gloo.Name = nam
  613. gloo.C0 = co
  614. gloo.C1 = ci
  615. gloo.Part0 = parto
  616. gloo.Part1 = parti
  617. gloo.Parent = paren
  618. end
  619. function makejoint(paren, co, ci, parto, parti, nam)
  620. local gloo = Instance.new("Motor6D")
  621. gloo.Name = nam
  622. gloo.C0 = co
  623. gloo.C1 = ci
  624. gloo.Part0 = parto
  625. gloo.Part1 = parti
  626. gloo.Parent = paren
  627. end
  628. function maketouchy(parent, limb, cframe)
  629. local pr = Instance.new("Part")
  630. pr.Name = "touchy"
  631. pr.Size = Vector3.new(1 * nscale.Value, 1 * nscale.Value, 1 * nscale.Value)
  632. pr.Transparency = 1
  633. pr.CustomPhysicalProperties = PhysicalProperties.new(0.55, 0.3, 0.5)
  634. pr.CanCollide = true
  635. pr.Anchored = false
  636. pr.Parent = parent
  637. local w = Instance.new("Weld")
  638. w.Part0 = pr
  639. w.Part1 = limb
  640. w.C0 = cframe
  641. w.Parent = pr
  642. end
  643. --[[ function swait(num)
  644. if num == 0 or num == nil then
  645. Heartbeat.Event:wait()
  646. else
  647. for i = 1, num do
  648. Heartbeat.Event:wait()
  649. end
  650. end
  651. end
  652. --]]
  653. modz = Instance.new("Model")
  654. modz.Name = "efx"
  655. modz.Parent = Character
  656.  
  657. RSC0 = CFrame.new(1, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  658. RSC1 = CFrame.new(-0.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  659. LSC0 = CFrame.new(-1, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  660. LSC1 = CFrame.new(0.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  661. RHC0 = CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  662. RHC1 = CFrame.new(0.5, 1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  663. LHC0 = CFrame.new(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  664. RJC1 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  665. LHC1 = CFrame.new(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  666. NC0 = CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  667. NC1 = CFrame.new(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  668. RJC0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  669. local nscale = Instance.new("NumberValue")
  670. nscale.Value = 1
  671. nscale.Parent = nil
  672. RightShoulderC0 = CFrame.new(1.5 * nscale.Value, 0.5 * nscale.Value, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  673. RightShoulderC1 = CFrame.new(0, 0.5 * nscale.Value, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  674. LeftShoulderC0 = CFrame.new(-1.5 * nscale.Value, 0.5 * nscale.Value, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  675. LeftShoulderC1 = CFrame.new(0, 0.5 * nscale.Value, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  676. RightHipC0 = CFrame.new(0.5 * nscale.Value, -1 * nscale.Value, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  677. RightHipC1 = CFrame.new(0, 1 * nscale.Value, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  678. LeftHipC0 = CFrame.new(-0.5 * nscale.Value, -1 * nscale.Value, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  679. LeftHipC1 = CFrame.new(0 * nscale.Value, 1 * nscale.Value, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  680. RootJointC0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  681. RootJointC1 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  682. NeckC0 = CFrame.new(0, 1 * nscale.Value, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  683. NeckC1 = CFrame.new(0, -0.5 * nscale.Value, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  684.  
  685.  
  686.  
  687.  
  688.  
  689.  
  690.  
  691.  
  692.  
  693.  
  694.  
  695.  
  696.  
  697. sWaiting=false
  698. wait3=false
  699. shotval = 0
  700.  
  701. npcname = ""..Character.Name.."'s Combine"
  702.  
  703.  
  704. Character.ChildAdded:connect(function(object)
  705. if object.Name == npcname then
  706. hiveMind:add(object, object:WaitForChild("Humanoid"),
  707. object:WaitForChild("Torso"))
  708. end
  709. end)
  710. game:GetService("RunService").Stepped:connect(function()
  711. hiveMind:update()
  712. end)
  713.  
  714. function makenoob(cfrem, scalo, rags)
  715. nscale.Value = scalo
  716. local md = Instance.new("Model")
  717. md.Name = ""..Character.Name.."'s Combine"
  718. md.Parent = Character
  719. CFuncs.Sound.Create("http://www.roblox.com/asset/?id=220230512", md, 1, 1)
  720. wait(.5)
  721. local hu = Instance.new("Humanoid")
  722. hu.RigType = "R6"
  723. hu.MaxHealth = 150 * scalo
  724. hu.Health = 150 * scalo
  725. hu.Parent = md
  726. hu.DisplayDistanceType="Viewer"
  727. hu.HealthDisplayDistance=100
  728. hu.NameDisplayDistance=100
  729. hu.NameOcclusion="EnemyOcclusion"
  730. local anm = Instance.new("Animator")
  731. anm.Parent = hu
  732. local forthisnpcanim = npcanim:Clone()
  733. forthisnpcanim.Parent = md
  734. hu.PlatformStand = true
  735. local light = function(part)
  736. part.CustomPhysicalProperties = PhysicalProperties.new(0.35, 0.3, 0.5)
  737. end
  738. local hd = Instance.new("Part")
  739. hd.Name = "Head"
  740. hd.Size = Vector3.new(2 * nscale.Value, 1 * nscale.Value, 1 * nscale.Value)
  741. hd.TopSurface = "Smooth"
  742. hd.BottomSurface = "Inlet"
  743. hd.Locked = true
  744. hd.BrickColor = BrickColor.new("Pastel brown")
  745. hd.CanCollide = true
  746. hd.Anchored = false
  747. light(hd)
  748. hd.Parent = md
  749. local hm = Instance.new("SpecialMesh")
  750. hm.MeshType = "Head"
  751. hm.Scale = Vector3.new(1.25, 1.25, 1.25)
  752. hm.Parent = hd
  753.  
  754.  
  755.  
  756. shirt = Instance.new("Shirt", md)
  757. shirt.Name = "Shirt"
  758. pants = Instance.new("Pants", md)
  759. pants.Name = "Pants"
  760. md.Shirt.ShirtTemplate = "rbxassetid://49257392"
  761. md.Pants.PantsTemplate = "rbxassetid://49257378"
  762. function loada(anim)
  763. local loaded = md.Humanoid:LoadAnimation(anim)
  764. return loaded
  765. end
  766. IdleA = New("Animation",md,"Idle",{AnimationId = "rbxassetid://243282565"})
  767. IdleAnim = loada(IdleA)
  768.  
  769. local hf = Instance.new("Decal")
  770.  
  771.  
  772.  
  773.  
  774.  
  775.  
  776.  
  777. FaceId = FaceIdList[math.random(1,#FaceIdList)]
  778.  
  779.  
  780.  
  781.  
  782.  
  783. hf.Texture = "rbxassetid://"..FaceId
  784.  
  785. hf.Face = "Front"
  786. hf.Parent = hd
  787. local hrpa = Instance.new("Part")
  788. hrpa.Name = "HumanoidRootPart"
  789. hrpa.TopSurface, hrpa.BottomSurface = 0, 0
  790. hrpa.Size = Vector3.new(2 * nscale.Value, 2 * nscale.Value, 1 * nscale.Value)
  791. hrpa.Transparency = 1
  792. hrpa.CanCollide = false
  793. hrpa.Locked = true
  794. light(hrpa)
  795. hrpa.Parent = md
  796. local tagbomb = Instance.new("BoolValue")
  797. tagbomb.Name = "tagbomb"
  798. tagbomb.Value = false
  799. tagbomb.Parent = hrpa
  800. local learm = Instance.new("Part")
  801. learm.Name = "Left Arm"
  802. learm.BrickColor = BrickColor.new("Pastel brown")
  803. learm.CanCollide = false
  804. learm.Locked = true
  805. learm.Size = Vector3.new(1 * nscale.Value, 2 * nscale.Value, 1 * nscale.Value)
  806. light(learm)
  807. learm.Parent = md
  808. local riarm = Instance.new("Part")
  809. riarm.Name = "Right Arm"
  810. riarm.BrickColor = BrickColor.new("Pastel brown")
  811. riarm.CanCollide = false
  812. riarm.Locked = true
  813. light(riarm)
  814. riarm.Size = Vector3.new(1 * nscale.Value, 2 * nscale.Value, 1 * nscale.Value)
  815. riarm.Parent = md
  816. local leleg = Instance.new("Part")
  817. leleg.Name = "Left Leg"
  818. leleg.BrickColor = BrickColor.new("Navy blue")
  819. leleg.CanCollide = false
  820. leleg.Locked = true
  821. light(leleg)
  822. leleg.BottomSurface = 0
  823. leleg.Size = Vector3.new(1 * nscale.Value, 2 * nscale.Value, 1 * nscale.Value)
  824. leleg.Parent = md
  825. local rileg = Instance.new("Part")
  826. rileg.Name = "Right Leg"
  827. rileg.BrickColor = BrickColor.new("Navy blue")
  828. rileg.CanCollide = false
  829. rileg.Locked = true
  830. light(rileg)
  831. rileg.BottomSurface = 0
  832. rileg.Size = Vector3.new(1 * nscale.Value, 2 * nscale.Value, 1 * nscale.Value)
  833. rileg.Parent = md
  834. local tor = Instance.new("Part")
  835. tor.Name = "Torso"
  836. tor.BrickColor = BrickColor.new("Really red")
  837. tor.Locked = true
  838. light(tor)
  839. tor.Size = Vector3.new(2 * nscale.Value, 2 * nscale.Value, 1 * nscale.Value)
  840. tor.LeftSurface, tor.RightSurface = "Weld", "Weld"
  841. tor.Parent = md
  842. md.PrimaryPart = hrpa
  843. md:SetPrimaryPartCFrame(cfrem)
  844. md:makeJoints()
  845. makejoint(hrpa, RootJointC0, RootJointC1, hrpa, tor, "RootJoint")
  846. makejoint(tor, NeckC0, NeckC1, tor, hd, "Neck")
  847.  
  848. if rags == true then
  849. makegloo(tor, RightShoulderC0, RightShoulderC1, tor, riarm, "Right Shoulder")
  850. makegloo(tor, LeftShoulderC0, LeftShoulderC1, tor, learm, "Left Shoulder")
  851. makegloo(tor, RightHipC0, RightHipC1, tor, rileg, "Right Hip")
  852. makegloo(tor, LeftHipC0, LeftHipC1, tor, leleg, "Left Hip")
  853. maketouchy(riarm, riarm, CFrame.new(0, 0.5 * nscale.Value, 0))
  854. maketouchy(learm, learm, CFrame.new(0, 0.5 * nscale.Value, 0))
  855. maketouchy(leleg, leleg, CFrame.new(0, 0.5 * nscale.Value, 0))
  856. maketouchy(rileg, rileg, CFrame.new(0, 0.5 * nscale.Value, 0))
  857. elseif rags == false then
  858. makejoint(tor, RightShoulderC0, RightShoulderC1, tor, riarm, "Right Shoulder")
  859. makejoint(tor, LeftShoulderC0, LeftShoulderC1, tor, learm, "Left Shoulder")
  860. makejoint(tor, RightHipC0, RightHipC1, tor, rileg, "Right Hip")
  861. makejoint(tor, LeftHipC0, LeftHipC1, tor, leleg, "Left Hip")
  862. hu.PlatformStand = false
  863.  
  864. end
  865.  
  866.  
  867. local Solhat = Instance.new("Accessory")
  868. Solhat.AttachmentPos = Vector3.new(0, .3, 0)
  869. local SHH = Instance.new("Part",Solhat)
  870. SHH.Name = "Handle"
  871. SHH.CanCollide=false
  872. local SHHMesh = Instance.new("SpecialMesh",SHH)
  873. SHHMesh.Parent = SHH
  874. SHHMesh.MeshId = "rbxassetid://31152467"
  875. SHHMesh.TextureId = "rbxassetid://32002857"
  876. SHHMesh.Scale = Vector3.new(1, 1, 1)
  877. SHHMesh.VertexColor = Vector3.new(1, 1, 1)
  878.  
  879.  
  880.  
  881. nscale.Value = 1
  882.  
  883. wait()
  884. Solhat.Parent = md
  885. Thegun = Instance.new("Part",riarm)
  886. Thegun.CanCollide=false
  887. Thegun.Size = Vector3.new(1,1,1)
  888. ThegunW = Instance.new("Weld")
  889. ThegunW.Name = "GuW"
  890. ThegunW.Part0 = riarm
  891. ThegunW.C0 = cn(-.5, -2.4, -.4)*angles(0,0,3.2)
  892. ThegunW.C1 = cn(0, 0, 0)
  893. ThegunW.Part1 = Thegun
  894. ThegunW.Parent = riarm
  895. local ThegunMesh = Instance.new("SpecialMesh",Thegun)
  896. ThegunMesh.Parent = Thegun
  897. ThegunMesh.MeshId = "rbxassetid://477158943"
  898. ThegunMesh.TextureId = "rbxassetid://477158949"
  899. ThegunMesh.Scale = Vector3.new(0.04, 0.035, 0.04)
  900. ThegunMesh.VertexColor = Vector3.new(0.2, 0, 0)
  901. Thegun2 = Instance.new("Part",md)
  902. Thegun2.CanCollide=false
  903. Thegun2.Size = Vector3.new(.1,.1,.1)
  904. Thegun2.Name = "Shoot"
  905. ThegunW2 = Instance.new("Weld")
  906. ThegunW2.Name = "GuW"
  907. ThegunW2.Part0 = riarm
  908. ThegunW2.C0 = cn(-0.4,-4.6,-.45)*angles(0,0,0)
  909. ThegunW2.C1 = cn(0, 0, 0)
  910. ThegunW2.Part1 = Thegun2
  911. ThegunW2.Parent = riarm
  912. BlockEffect(BrickColor.new("Really black"), tor.CFrame, 160, 160, 160, -5, -5, -5, 0.04)
  913. BlockEffect(BrickColor.new("Really black"), tor.CFrame, 160, 160, 160, -5, -5, -5, 0.04)
  914.  
  915. BlockEffect(BrickColor.new("Really red"), tor.CFrame, 160, 160, 160, -14, -14, -14, 0.06)
  916. BlockEffect(BrickColor.new("Really red"), tor.CFrame, 160, 160, 160, -14, -14, -14, 0.06)
  917. wait(0.5)
  918. CFuncs.Sound.Create("http://www.roblox.com/asset/?id=183921414", tor, 1, 1)
  919. IdleAnim:Play()
  920. wait(2.5)
  921. CFuncs.Sound.Create("http://www.roblox.com/asset/?id=183953820", tor, 2, 1)
  922. game:GetService("RunService"):BindToRenderStep("ew", 0, function()
  923. if md ~= nil and hu.Health > 0 and sentrymode == false then
  924. if md ~= nil and hu.Health > 0 and sentrymode == false then
  925.  
  926. if killcom==true or sentrymode == true and sWaiting==false then
  927.  
  928. CFuncs.Sound.Create("http://www.roblox.com/asset/?id=282061033", Torso, .5, 1)
  929.  
  930.  
  931.  
  932. BlockEffect(BrickColor.new("Really black"), tor.CFrame, 160, 160, 160, -5, -5, -5, 0.04)
  933. BlockEffect(BrickColor.new("Really black"), tor.CFrame, 160, 160, 160, -5, -5, -5, 0.04)
  934.  
  935. BlockEffect(BrickColor.new("Really red"), tor.CFrame, 160, 160, 160, -14, -14, -14, 0.06)
  936. BlockEffect(BrickColor.new("Really red"), tor.CFrame, 160, 160, 160, -14, -14, -14, 0.06)
  937.  
  938.  
  939.  
  940. hu.Health = 0
  941. game:service'Debris':AddItem(md, .0);
  942. end
  943.  
  944.  
  945.  
  946.  
  947.  
  948. hu.WalkSpeed = 16.5
  949. local target2 = findNearestTorso(hrpa.Position,60)
  950. if target2 ~= nil then
  951. hu:MoveTo(target2.Position, target2)
  952.  
  953. end
  954.  
  955. local target3 = findNearestTorso(hrpa.Position,45)
  956.  
  957. if target3 ~= nil then
  958. hu.WalkSpeed = 0
  959. tor.CFrame = CFrame.new(tor.Position, target3.Position) * CFrame.Angles(0,math.rad(0),0) * CFrame.new(0,0,(dir2.s))
  960. end
  961.  
  962. if target3 ~= nil and wait3==false and sentrymode == false then
  963. wait3=true
  964.  
  965. CFuncs.Sound.Create("http://www.roblox.com/asset/?id=419268760", LaPart, 3, .7)
  966. shoottraildd2(target3.Position, Thegun2, 1)
  967. local PointLight = Instance.new("PointLight", Thegun2);
  968. PointLight.Color = Color3.new(1,0,0)
  969. PointLight.Brightness = 50;
  970. PointLight.Range = 10
  971. game:service'Debris':AddItem(PointLight, .02);
  972. wait(2.2)
  973. wait3=false
  974.  
  975.  
  976.  
  977. --Torso.CFrame = CFrame.new(Torso.Position, mouse.Hit.p) * CFrame.Angles(0,math.rad(0),0) * CFrame.new(0,0,(dir.s))
  978.  
  979.  
  980. end
  981.  
  982. end
  983.  
  984. for i,v in pairs(Character:GetChildren()) do
  985. if ""..Character.Name.."'s Combine" then
  986.  
  987.  
  988.  
  989. if hu.Health == 0 and md ~= nil and killcom==false and sWaiting==false then
  990. CFuncs.Sound.Create("http://www.roblox.com/asset/?id=160622487", Torso, .6, 1)
  991.  
  992.  
  993. game:service'Debris':AddItem(md, 3);
  994.  
  995. end
  996. end
  997. return md
  998.  
  999. end
  1000. end
  1001. end)
  1002.  
  1003.  
  1004.  
  1005. end
  1006.  
  1007.  
  1008.  
  1009.  
  1010.  
  1011.  
  1012.  
  1013.  
  1014.  
  1015.  
  1016.  
  1017.  
  1018.  
  1019.  
  1020.  
  1021. function makecircle(cfrem, scalo)
  1022. local mcir1 = Instance.new("Part")
  1023. mcir1.Anchored = true
  1024. mcir1.CanCollide = false
  1025. mcir1.Size = Vector3.new(0.2, 0.2, 0.2)
  1026. mcir1.Transparency = 1
  1027. mcir1.CFrame = cfrem
  1028. mcir1.Parent = modz
  1029. game.Debris:AddItem(mcir1, 8)
  1030. local d1 = Instance.new("Decal")
  1031. d1.Texture = "rbxassetid://0"
  1032. d1.Face = "Front"
  1033. d1.Parent = mcir1
  1034. local d2 = Instance.new("Decal")
  1035. d2.Texture = "rbxassetid://0"
  1036. d2.Face = "Back"
  1037. d2.Parent = mcir1
  1038. local bme = Instance.new("BlockMesh")
  1039. bme.Parent = mcir1
  1040. for _ = 1, 9 do
  1041. swait()
  1042. bme.Scale = bme.Scale:lerp(Vector3.new(35 * scalo, 35 * scalo, 0), 0.3)
  1043. end
  1044. coroutine.resume(coroutine.create(function()
  1045. swait(15)
  1046. for _ = 1, 12 do
  1047. swait()
  1048. d1.Transparency = d1.Transparency + 0.08
  1049. d2.Transparency = d2.Transparency + 0.08
  1050. end
  1051. mcir1:Destroy()
  1052. end))
  1053. return mcir1
  1054. end
  1055. function spawnnoob(circlecf, noobcf, scalez, ragd)
  1056. local aearae = makecircle(circlecf, scalez)
  1057. local nananb
  1058.  
  1059. nananb = makenoob(aearae.CFrame * noobcf, scalez, false)
  1060.  
  1061. return nananb
  1062. end
  1063. mouse.KeyDown:connect(function(k)
  1064. if k == "c" and attack == false and sentrymode == false then
  1065. if killcom==false then
  1066. killcom=true
  1067. else
  1068. killcom=false
  1069. spawnnoob(RootPart.CFrame * cn((math.random(-5,5)), 10, (math.random(-0,5))) * angles(mr(90), 0, 0), cn(0, 0, 0) * angles(mr(-90), 0, 0), 1, false)
  1070.  
  1071. end
  1072.  
  1073.  
  1074. end
  1075. end)
  1076.  
  1077. --[[
  1078. BlockEffect(BrickColor.new("Royal purple"), Firepart1.CFrame, 1, 1, 1, 3, 3, 3, 0.06)
  1079. BlockEffect(BrickColor.new("Eggplant"), Firepart1.CFrame, 1, 1, 1, 2.8, 2.8, 2.8, 0.06)
  1080. BlockEffect(BrickColor.new("Royal purple"), Firepart2.CFrame, 1, 1, 1, 3, 3, 3, 0.06)
  1081. BlockEffect(BrickColor.new("Eggplant"), Firepart2.CFrame, 1, 1, 1, 2.8, 2.8, 2.8, 0.06)
  1082. --]]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement