loldezpasteas2

Untitled

May 27th, 2018
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 149.40 KB | None | 0 0
  1. function New(Object, Parent, Name, Data)
  2. local Object = Instance.new(Object)
  3. for Index, Value in pairs(Data or {}) do
  4. Object[Index] = Value
  5. end
  6. Object.Parent = Parent
  7. Object.Name = Name
  8. return Object
  9. end
  10. local LoPa = game:GetService("Players").LocalPlayer
  11. local C = LoPa.Character
  12. LaserMinigun = New("Model", C, "LaserMinigun", {})
  13. Gunpart = New("Model", LaserMinigun, "Gunpart", {})
  14. FrontHandle = New("Part", Gunpart, "FrontHandle", {
  15. BrickColor = BrickColor.new("Dark stone grey"),
  16. Material = Enum.Material.SmoothPlastic,
  17. Size = Vector3.new(0.334096551, 0.668193102, 0.334096551),
  18. CFrame = CFrame.new(30.8316956, 0.787470937, -52.2899971, -8.0732131E-12, 1, -9.58144665E-6, -3.50177834E-6, 9.58144665E-6, 1, 1, 4.13820089E-11, 3.50177834E-6),
  19. Anchored = true,
  20. BottomSurface = Enum.SurfaceType.Smooth,
  21. TopSurface = Enum.SurfaceType.Smooth,
  22. Color = Color3.new(0.388235, 0.372549, 0.384314)
  23. })
  24. Mesh = New("CylinderMesh", FrontHandle, "Mesh", {})
  25. FrontPart = New("Part", Gunpart, "FrontPart", {
  26. BrickColor = BrickColor.new("Really black"),
  27. Material = Enum.Material.SmoothPlastic,
  28. Size = Vector3.new(0.111365512, 0.668193102, 0.111365512),
  29. CFrame = CFrame.new(31.0544128, 0.787470937, -52.0672684, 0, 1, -9.58144665E-6, -3.50177879E-6, 9.58144665E-6, 1, 1, -7.96212211E-19, 3.50177834E-6),
  30. Anchored = true,
  31. BottomSurface = Enum.SurfaceType.Smooth,
  32. TopSurface = Enum.SurfaceType.Smooth
  33. })
  34. Mesh = New("CylinderMesh", FrontPart, "Mesh", {})
  35. FrontPart = New("Part", Gunpart, "FrontPart", {
  36. BrickColor = BrickColor.new("Really black"),
  37. Material = Enum.Material.SmoothPlastic,
  38. Size = Vector3.new(0.111365512, 0.668193102, 0.111365512),
  39. CFrame = CFrame.new(31.0544128, 0.787470937, -52.5127258, 1.30714124E-17, 1, -9.58144665E-6, -3.50178084E-6, 9.58144665E-6, 1, 1, 1.19431811E-18, 3.50177652E-6),
  40. Anchored = true,
  41. BottomSurface = Enum.SurfaceType.Smooth,
  42. TopSurface = Enum.SurfaceType.Smooth
  43. })
  44. Mesh = New("CylinderMesh", FrontPart, "Mesh", {})
  45. FrontPart = New("Part", Gunpart, "FrontPart", {
  46. BrickColor = BrickColor.new("Really black"),
  47. Material = Enum.Material.SmoothPlastic,
  48. Size = Vector3.new(0.111365512, 0.668193102, 0.111365512),
  49. CFrame = CFrame.new(31.0544128, 1.01019299, -52.2899971, 0, 1, 0, 1, 0, 0, 0, 0, -1),
  50. Anchored = true,
  51. BottomSurface = Enum.SurfaceType.Smooth,
  52. TopSurface = Enum.SurfaceType.Smooth
  53. })
  54. Mesh = New("CylinderMesh", FrontPart, "Mesh", {})
  55. FrontPart = New("Part", Gunpart, "FrontPart", {
  56. BrickColor = BrickColor.new("Really black"),
  57. Material = Enum.Material.SmoothPlastic,
  58. Size = Vector3.new(0.111365512, 0.668193102, 0.111365512),
  59. CFrame = CFrame.new(31.0544128, 0.564739823, -52.2899971, 0, 1, 0, 1, 0, 0, 0, 0, -1),
  60. Anchored = true,
  61. BottomSurface = Enum.SurfaceType.Smooth,
  62. TopSurface = Enum.SurfaceType.Smooth
  63. })
  64. Mesh = New("CylinderMesh", FrontPart, "Mesh", {})
  65. FrontPart = New("Part", Gunpart, "FrontPart", {
  66. BrickColor = BrickColor.new("Really black"),
  67. Material = Enum.Material.SmoothPlastic,
  68. Size = Vector3.new(0.445462048, 0.222731024, 0.445462048),
  69. CFrame = CFrame.new(31.2771492, 0.787470937, -52.2899971, 0, 1, 0, 1, 0, 0, 0, 0, -1),
  70. Anchored = true,
  71. BottomSurface = Enum.SurfaceType.Smooth,
  72. TopSurface = Enum.SurfaceType.Smooth
  73. })
  74. Mesh = New("CylinderMesh", FrontPart, "Mesh", {})
  75. FrontPart = New("Part", Gunpart, "FrontPart", {
  76. BrickColor = BrickColor.new("Really black"),
  77. Material = Enum.Material.SmoothPlastic,
  78. Size = Vector3.new(0.556827545, 0.111365512, 0.556827545),
  79. CFrame = CFrame.new(31.2771492, 0.787470937, -52.2899971, 0, 1, 0, 1, 0, 0, 0, 0, -1),
  80. Anchored = true,
  81. BottomSurface = Enum.SurfaceType.Smooth,
  82. TopSurface = Enum.SurfaceType.Smooth
  83. })
  84. Mesh = New("CylinderMesh", FrontPart, "Mesh", {})
  85. FrontPart = New("Part", Gunpart, "FrontPart", {
  86. BrickColor = BrickColor.new("Really black"),
  87. Material = Enum.Material.SmoothPlastic,
  88. Size = Vector3.new(0.222731024, 0.222731024, 0.222731024),
  89. CFrame = CFrame.new(31.4998779, 0.787470937, -52.0672684, 0, 1, -9.58144665E-6, -3.50177879E-6, 9.58144665E-6, 1, 1, -7.96212211E-19, 3.50177834E-6),
  90. Anchored = true,
  91. BottomSurface = Enum.SurfaceType.Smooth,
  92. TopSurface = Enum.SurfaceType.Smooth
  93. })
  94. Mesh = New("CylinderMesh", FrontPart, "Mesh", {})
  95. FrontPart = New("Part", Gunpart, "FrontPart", {
  96. BrickColor = BrickColor.new("Really black"),
  97. Material = Enum.Material.SmoothPlastic,
  98. Size = Vector3.new(0.222731024, 0.222731024, 0.222731024),
  99. CFrame = CFrame.new(31.4998779, 0.787470937, -52.5127258, 1.30714124E-17, 1, -9.58144665E-6, -3.50178084E-6, 9.58144665E-6, 1, 1, 1.19431811E-18, 3.50177652E-6),
  100. Anchored = true,
  101. BottomSurface = Enum.SurfaceType.Smooth,
  102. TopSurface = Enum.SurfaceType.Smooth
  103. })
  104. Mesh = New("CylinderMesh", FrontPart, "Mesh", {})
  105. FrontPart = New("Part", Gunpart, "FrontPart", {
  106. BrickColor = BrickColor.new("Really black"),
  107. Material = Enum.Material.SmoothPlastic,
  108. Size = Vector3.new(0.222731024, 0.222731024, 0.222731024),
  109. CFrame = CFrame.new(31.4998779, 1.01019299, -52.2899971, 0, 1, 0, 1, 0, 0, 0, 0, -1),
  110. Anchored = true,
  111. BottomSurface = Enum.SurfaceType.Smooth,
  112. TopSurface = Enum.SurfaceType.Smooth
  113. })
  114. Mesh = New("CylinderMesh", FrontPart, "Mesh", {})
  115. FrontPart = New("Part", Gunpart, "FrontPart", {
  116. BrickColor = BrickColor.new("Really black"),
  117. Material = Enum.Material.SmoothPlastic,
  118. Size = Vector3.new(0.222731024, 0.222731024, 0.222731024),
  119. CFrame = CFrame.new(31.4998779, 0.564739823, -52.2899971, 0, 1, 0, 1, 0, 0, 0, 0, -1),
  120. Anchored = true,
  121. BottomSurface = Enum.SurfaceType.Smooth,
  122. TopSurface = Enum.SurfaceType.Smooth
  123. })
  124. Mesh = New("CylinderMesh", FrontPart, "Mesh", {})
  125. gun4 = New("Part", Gunpart, "gun4", {
  126. BrickColor = BrickColor.new("Really red"),
  127. Material = Enum.Material.Neon,
  128. Size = Vector3.new(0.111365512, 0.111365512, 0.111365512),
  129. CFrame = CFrame.new(31.5666943, 0.787470937, -52.5127258, 1.30714124E-17, 1, -9.58144665E-6, -3.50178084E-6, 9.58144665E-6, 1, 1, 1.19431811E-18, 3.50177652E-6),
  130. Anchored = true,
  131. BottomSurface = Enum.SurfaceType.Smooth,
  132. TopSurface = Enum.SurfaceType.Smooth,
  133. Color = Color3.new(1, 0, 0)
  134. })
  135. Mesh = New("CylinderMesh", gun4, "Mesh", {})
  136. gun1 = New("Part", Gunpart, "gun1", {
  137. BrickColor = BrickColor.new("Really red"),
  138. Material = Enum.Material.Neon,
  139. Size = Vector3.new(0.111365512, 0.111365512, 0.111365512),
  140. CFrame = CFrame.new(31.5666943, 0.564739823, -52.2899971, 0, 1, 0, 1, 0, 0, 0, 0, -1),
  141. Anchored = true,
  142. BottomSurface = Enum.SurfaceType.Smooth,
  143. TopSurface = Enum.SurfaceType.Smooth,
  144. Color = Color3.new(1, 0, 0)
  145. })
  146. Mesh = New("CylinderMesh", gun1, "Mesh", {})
  147. gun3 = New("Part", Gunpart, "gun3", {
  148. BrickColor = BrickColor.new("Really red"),
  149. Material = Enum.Material.Neon,
  150. Size = Vector3.new(0.111365512, 0.111365512, 0.111365512),
  151. CFrame = CFrame.new(31.5666943, 1.01019299, -52.2899971, 0, 1, 0, 1, 0, 0, 0, 0, -1),
  152. Anchored = true,
  153. BottomSurface = Enum.SurfaceType.Smooth,
  154. TopSurface = Enum.SurfaceType.Smooth,
  155. Color = Color3.new(1, 0, 0)
  156. })
  157. Mesh = New("CylinderMesh", gun3, "Mesh", {})
  158. gun2 = New("Part", Gunpart, "gun2", {
  159. BrickColor = BrickColor.new("Really red"),
  160. Material = Enum.Material.Neon,
  161. Size = Vector3.new(0.111365512, 0.111365512, 0.111365512),
  162. CFrame = CFrame.new(31.5666943, 0.787470937, -52.0672684, 0, 1, -9.58144665E-6, -3.50177879E-6, 9.58144665E-6, 1, 1, -7.96212211E-19, 3.50177834E-6),
  163. Anchored = true,
  164. BottomSurface = Enum.SurfaceType.Smooth,
  165. TopSurface = Enum.SurfaceType.Smooth,
  166. Color = Color3.new(1, 0, 0)
  167. })
  168. Mesh = New("CylinderMesh", gun2, "Mesh", {})
  169. PowerHolder = New("Model", LaserMinigun, "PowerHolder", {})
  170. Part = New("Part", PowerHolder, "Part", {
  171. BrickColor = BrickColor.new("Really black"),
  172. Material = Enum.Material.SmoothPlastic,
  173. Size = Vector3.new(1.11365509, 0.222731024, 1.11365509),
  174. CFrame = CFrame.new(27.7135086, 0.787473083, -52.2899971, -8.0732131E-12, 1, -9.58144665E-6, -3.50177834E-6, 9.58144665E-6, 1, 1, 4.13820089E-11, 3.50177834E-6),
  175. Anchored = true,
  176. BottomSurface = Enum.SurfaceType.Smooth,
  177. TopSurface = Enum.SurfaceType.Smooth
  178. })
  179. Mesh = New("CylinderMesh", Part, "Mesh", {})
  180. Model = New("Model", Part, "Model", {})
  181. Part = New("Part", Model, "Part", {
  182. BrickColor = BrickColor.new("Really black"),
  183. Material = Enum.Material.SmoothPlastic,
  184. Size = Vector3.new(0.668193102, 0.222731024, 0.668193102),
  185. CFrame = CFrame.new(27.7135086, 0.787473083, -52.7354622, -8.0732131E-12, 1, -9.58144665E-6, -3.50177834E-6, 9.58144665E-6, 1, 1, 4.13820089E-11, 3.50177834E-6),
  186. Anchored = true,
  187. BottomSurface = Enum.SurfaceType.Smooth,
  188. TopSurface = Enum.SurfaceType.Smooth
  189. })
  190. Mesh = New("CylinderMesh", Part, "Mesh", {})
  191. Part = New("Part", Model, "Part", {
  192. BrickColor = BrickColor.new("Really black"),
  193. Material = Enum.Material.SmoothPlastic,
  194. Size = Vector3.new(0.668193102, 0.222731024, 0.668193102),
  195. CFrame = CFrame.new(27.7135086, 0.787473083, -51.8445435, -8.0732131E-12, 1, -9.58144665E-6, -3.50177834E-6, 9.58144665E-6, 1, 1, 4.13820089E-11, 3.50177834E-6),
  196. Anchored = true,
  197. BottomSurface = Enum.SurfaceType.Smooth,
  198. TopSurface = Enum.SurfaceType.Smooth
  199. })
  200. Mesh = New("CylinderMesh", Part, "Mesh", {})
  201. Part = New("Part", Model, "Part", {
  202. BrickColor = BrickColor.new("Really black"),
  203. Material = Enum.Material.SmoothPlastic,
  204. Size = Vector3.new(0.445462048, 0.445462048, 0.445462048),
  205. CFrame = CFrame.new(27.7135086, 1.01020408, -51.8445435, -8.0732131E-12, 1, -9.58144665E-6, -3.50177834E-6, 9.58144665E-6, 1, 1, 4.13820089E-11, 3.50177834E-6),
  206. Anchored = true,
  207. BottomSurface = Enum.SurfaceType.Smooth,
  208. TopSurface = Enum.SurfaceType.Smooth
  209. })
  210. Mesh = New("CylinderMesh", Part, "Mesh", {})
  211. Part = New("Part", Model, "Part", {
  212. BrickColor = BrickColor.new("Really black"),
  213. Material = Enum.Material.SmoothPlastic,
  214. Size = Vector3.new(0.445462048, 0.445462048, 0.445462048),
  215. CFrame = CFrame.new(27.7135086, 0.564742088, -51.8445435, -8.0732131E-12, 1, -9.58144665E-6, -3.50177834E-6, 9.58144665E-6, 1, 1, 4.13820089E-11, 3.50177834E-6),
  216. Anchored = true,
  217. BottomSurface = Enum.SurfaceType.Smooth,
  218. TopSurface = Enum.SurfaceType.Smooth
  219. })
  220. Mesh = New("CylinderMesh", Part, "Mesh", {})
  221. Part = New("Part", Model, "Part", {
  222. BrickColor = BrickColor.new("Really black"),
  223. Material = Enum.Material.SmoothPlastic,
  224. Size = Vector3.new(0.445462048, 0.445462048, 0.445462048),
  225. CFrame = CFrame.new(27.7135086, 0.564742088, -52.7354622, -8.0732131E-12, 1, -9.58144665E-6, -3.50177834E-6, 9.58144665E-6, 1, 1, 4.13820089E-11, 3.50177834E-6),
  226. Anchored = true,
  227. BottomSurface = Enum.SurfaceType.Smooth,
  228. TopSurface = Enum.SurfaceType.Smooth
  229. })
  230. Mesh = New("CylinderMesh", Part, "Mesh", {})
  231. Part = New("Part", Model, "Part", {
  232. BrickColor = BrickColor.new("Really black"),
  233. Material = Enum.Material.SmoothPlastic,
  234. Size = Vector3.new(0.445462048, 0.445462048, 0.445462048),
  235. CFrame = CFrame.new(27.7135086, 1.01020408, -52.7354622, -8.0732131E-12, 1, -9.58144665E-6, -3.50177834E-6, 9.58144665E-6, 1, 1, 4.13820089E-11, 3.50177834E-6),
  236. Anchored = true,
  237. BottomSurface = Enum.SurfaceType.Smooth,
  238. TopSurface = Enum.SurfaceType.Smooth
  239. })
  240. Mesh = New("CylinderMesh", Part, "Mesh", {})
  241. Part = New("Part", Model, "Part", {
  242. BrickColor = BrickColor.new("Really black"),
  243. Material = Enum.Material.SmoothPlastic,
  244. Size = Vector3.new(0.222731024, 0.222731024, 0.222731024),
  245. CFrame = CFrame.new(27.9362354, 0.564742088, -51.8445435, -8.0732131E-12, 1, -9.58144665E-6, -3.50177834E-6, 9.58144665E-6, 1, 1, 4.13820089E-11, 3.50177834E-6),
  246. Anchored = true,
  247. BottomSurface = Enum.SurfaceType.Smooth,
  248. TopSurface = Enum.SurfaceType.Smooth
  249. })
  250. Mesh = New("CylinderMesh", Part, "Mesh", {})
  251. Part = New("Part", Model, "Part", {
  252. BrickColor = BrickColor.new("Really black"),
  253. Material = Enum.Material.SmoothPlastic,
  254. Size = Vector3.new(0.222731024, 0.222731024, 0.222731024),
  255. CFrame = CFrame.new(27.9362354, 0.564742088, -52.7354622, -8.0732131E-12, 1, -9.58144665E-6, -3.50177834E-6, 9.58144665E-6, 1, 1, 4.13820089E-11, 3.50177834E-6),
  256. Anchored = true,
  257. BottomSurface = Enum.SurfaceType.Smooth,
  258. TopSurface = Enum.SurfaceType.Smooth
  259. })
  260. Mesh = New("CylinderMesh", Part, "Mesh", {})
  261. Part = New("Part", Model, "Part", {
  262. BrickColor = BrickColor.new("Really black"),
  263. Material = Enum.Material.SmoothPlastic,
  264. Size = Vector3.new(0.222731024, 0.222731024, 0.222731024),
  265. CFrame = CFrame.new(27.9362354, 1.01020408, -52.7354622, -8.0732131E-12, 1, -9.58144665E-6, -3.50177834E-6, 9.58144665E-6, 1, 1, 4.13820089E-11, 3.50177834E-6),
  266. Anchored = true,
  267. BottomSurface = Enum.SurfaceType.Smooth,
  268. TopSurface = Enum.SurfaceType.Smooth
  269. })
  270. Mesh = New("CylinderMesh", Part, "Mesh", {})
  271. Part = New("Part", Model, "Part", {
  272. BrickColor = BrickColor.new("Really black"),
  273. Material = Enum.Material.SmoothPlastic,
  274. Size = Vector3.new(0.222731024, 0.222731024, 0.222731024),
  275. CFrame = CFrame.new(27.9362354, 1.01020408, -51.8445435, -8.0732131E-12, 1, -9.58144665E-6, -3.50177834E-6, 9.58144665E-6, 1, 1, 4.13820089E-11, 3.50177834E-6),
  276. Anchored = true,
  277. BottomSurface = Enum.SurfaceType.Smooth,
  278. TopSurface = Enum.SurfaceType.Smooth
  279. })
  280. Mesh = New("CylinderMesh", Part, "Mesh", {})
  281. Part = New("Part", Model, "Part", {
  282. BrickColor = BrickColor.new("Really black"),
  283. Material = Enum.Material.SmoothPlastic,
  284. Size = Vector3.new(0.222731024, 0.222731024, 0.222731024),
  285. CFrame = CFrame.new(27.4907799, 0.564742088, -52.7354622, -8.0732131E-12, 1, -9.58144665E-6, -3.50177834E-6, 9.58144665E-6, 1, 1, 4.13820089E-11, 3.50177834E-6),
  286. Anchored = true,
  287. BottomSurface = Enum.SurfaceType.Smooth,
  288. TopSurface = Enum.SurfaceType.Smooth
  289. })
  290. Mesh = New("CylinderMesh", Part, "Mesh", {})
  291. Part = New("Part", Model, "Part", {
  292. BrickColor = BrickColor.new("Really black"),
  293. Material = Enum.Material.SmoothPlastic,
  294. Size = Vector3.new(0.222731024, 0.222731024, 0.222731024),
  295. CFrame = CFrame.new(27.4907799, 1.01020408, -51.8445435, -8.0732131E-12, 1, -9.58144665E-6, -3.50177834E-6, 9.58144665E-6, 1, 1, 4.13820089E-11, 3.50177834E-6),
  296. Anchored = true,
  297. BottomSurface = Enum.SurfaceType.Smooth,
  298. TopSurface = Enum.SurfaceType.Smooth
  299. })
  300. Mesh = New("CylinderMesh", Part, "Mesh", {})
  301. Part = New("Part", Model, "Part", {
  302. BrickColor = BrickColor.new("Really black"),
  303. Material = Enum.Material.SmoothPlastic,
  304. Size = Vector3.new(0.222731024, 0.222731024, 0.222731024),
  305. CFrame = CFrame.new(27.4907799, 1.01020408, -52.7354622, -8.0732131E-12, 1, -9.58144665E-6, -3.50177834E-6, 9.58144665E-6, 1, 1, 4.13820089E-11, 3.50177834E-6),
  306. Anchored = true,
  307. BottomSurface = Enum.SurfaceType.Smooth,
  308. TopSurface = Enum.SurfaceType.Smooth
  309. })
  310. Mesh = New("CylinderMesh", Part, "Mesh", {})
  311. Part = New("Part", Model, "Part", {
  312. BrickColor = BrickColor.new("Really black"),
  313. Material = Enum.Material.SmoothPlastic,
  314. Size = Vector3.new(0.222731024, 0.222731024, 0.222731024),
  315. CFrame = CFrame.new(27.4907799, 0.564742088, -51.8445435, -8.0732131E-12, 1, -9.58144665E-6, -3.50177834E-6, 9.58144665E-6, 1, 1, 4.13820089E-11, 3.50177834E-6),
  316. Anchored = true,
  317. BottomSurface = Enum.SurfaceType.Smooth,
  318. TopSurface = Enum.SurfaceType.Smooth
  319. })
  320. Mesh = New("CylinderMesh", Part, "Mesh", {})
  321. Part = New("Part", PowerHolder, "Part", {
  322. BrickColor = BrickColor.new("Really black"),
  323. Material = Enum.Material.SmoothPlastic,
  324. Size = Vector3.new(1.11365509, 0.222731024, 1.11365509),
  325. CFrame = CFrame.new(29.4953289, 0.787473083, -52.2899971, -8.0732131E-12, 1, -9.58144665E-6, -3.50177834E-6, 9.58144665E-6, 1, 1, 4.13820089E-11, 3.50177834E-6),
  326. Anchored = true,
  327. BottomSurface = Enum.SurfaceType.Smooth,
  328. TopSurface = Enum.SurfaceType.Smooth
  329. })
  330. Mesh = New("CylinderMesh", Part, "Mesh", {})
  331. Model = New("Model", Part, "Model", {})
  332. Part = New("Part", Model, "Part", {
  333. BrickColor = BrickColor.new("Really black"),
  334. Material = Enum.Material.SmoothPlastic,
  335. Size = Vector3.new(0.445462048, 0.445462048, 0.445462048),
  336. CFrame = CFrame.new(29.4953289, 1.01020408, -51.8445435, -8.0732131E-12, 1, -9.58144665E-6, -3.50177834E-6, 9.58144665E-6, 1, 1, 4.13820089E-11, 3.50177834E-6),
  337. Anchored = true,
  338. BottomSurface = Enum.SurfaceType.Smooth,
  339. TopSurface = Enum.SurfaceType.Smooth
  340. })
  341. Mesh = New("CylinderMesh", Part, "Mesh", {})
  342. Part = New("Part", Model, "Part", {
  343. BrickColor = BrickColor.new("Really black"),
  344. Material = Enum.Material.SmoothPlastic,
  345. Size = Vector3.new(0.222731024, 0.222731024, 0.222731024),
  346. CFrame = CFrame.new(29.2726021, 1.01020408, -52.7354622, -8.0732131E-12, 1, -9.58144665E-6, -3.50177834E-6, 9.58144665E-6, 1, 1, 4.13820089E-11, 3.50177834E-6),
  347. Anchored = true,
  348. BottomSurface = Enum.SurfaceType.Smooth,
  349. TopSurface = Enum.SurfaceType.Smooth
  350. })
  351. Mesh = New("CylinderMesh", Part, "Mesh", {})
  352. Part = New("Part", Model, "Part", {
  353. BrickColor = BrickColor.new("Really black"),
  354. Material = Enum.Material.SmoothPlastic,
  355. Size = Vector3.new(0.445462048, 0.445462048, 0.445462048),
  356. CFrame = CFrame.new(29.4953289, 0.564742088, -52.7354622, -8.0732131E-12, 1, -9.58144665E-6, -3.50177834E-6, 9.58144665E-6, 1, 1, 4.13820089E-11, 3.50177834E-6),
  357. Anchored = true,
  358. BottomSurface = Enum.SurfaceType.Smooth,
  359. TopSurface = Enum.SurfaceType.Smooth
  360. })
  361. Mesh = New("CylinderMesh", Part, "Mesh", {})
  362. Part = New("Part", Model, "Part", {
  363. BrickColor = BrickColor.new("Really black"),
  364. Material = Enum.Material.SmoothPlastic,
  365. Size = Vector3.new(0.222731024, 0.222731024, 0.222731024),
  366. CFrame = CFrame.new(29.7180557, 0.564742088, -51.8445435, -8.0732131E-12, 1, -9.58144665E-6, -3.50177834E-6, 9.58144665E-6, 1, 1, 4.13820089E-11, 3.50177834E-6),
  367. Anchored = true,
  368. BottomSurface = Enum.SurfaceType.Smooth,
  369. TopSurface = Enum.SurfaceType.Smooth
  370. })
  371. Mesh = New("CylinderMesh", Part, "Mesh", {})
  372. Part = New("Part", Model, "Part", {
  373. BrickColor = BrickColor.new("Really black"),
  374. Material = Enum.Material.SmoothPlastic,
  375. Size = Vector3.new(0.668193102, 0.222731024, 0.668193102),
  376. CFrame = CFrame.new(29.4953289, 0.787473083, -52.7354622, -8.0732131E-12, 1, -9.58144665E-6, -3.50177834E-6, 9.58144665E-6, 1, 1, 4.13820089E-11, 3.50177834E-6),
  377. Anchored = true,
  378. BottomSurface = Enum.SurfaceType.Smooth,
  379. TopSurface = Enum.SurfaceType.Smooth
  380. })
  381. Mesh = New("CylinderMesh", Part, "Mesh", {})
  382. Part = New("Part", Model, "Part", {
  383. BrickColor = BrickColor.new("Really black"),
  384. Material = Enum.Material.SmoothPlastic,
  385. Size = Vector3.new(0.222731024, 0.222731024, 0.222731024),
  386. CFrame = CFrame.new(29.7180557, 1.01020408, -51.8445435, -8.0732131E-12, 1, -9.58144665E-6, -3.50177834E-6, 9.58144665E-6, 1, 1, 4.13820089E-11, 3.50177834E-6),
  387. Anchored = true,
  388. BottomSurface = Enum.SurfaceType.Smooth,
  389. TopSurface = Enum.SurfaceType.Smooth
  390. })
  391. Mesh = New("CylinderMesh", Part, "Mesh", {})
  392. Part = New("Part", Model, "Part", {
  393. BrickColor = BrickColor.new("Really black"),
  394. Material = Enum.Material.SmoothPlastic,
  395. Size = Vector3.new(0.222731024, 0.222731024, 0.222731024),
  396. CFrame = CFrame.new(29.2726021, 0.564742088, -52.7354622, -8.0732131E-12, 1, -9.58144665E-6, -3.50177834E-6, 9.58144665E-6, 1, 1, 4.13820089E-11, 3.50177834E-6),
  397. Anchored = true,
  398. BottomSurface = Enum.SurfaceType.Smooth,
  399. TopSurface = Enum.SurfaceType.Smooth
  400. })
  401. Mesh = New("CylinderMesh", Part, "Mesh", {})
  402. Part = New("Part", Model, "Part", {
  403. BrickColor = BrickColor.new("Really black"),
  404. Material = Enum.Material.SmoothPlastic,
  405. Size = Vector3.new(0.445462048, 0.445462048, 0.445462048),
  406. CFrame = CFrame.new(29.4953289, 1.01020408, -52.7354622, -8.0732131E-12, 1, -9.58144665E-6, -3.50177834E-6, 9.58144665E-6, 1, 1, 4.13820089E-11, 3.50177834E-6),
  407. Anchored = true,
  408. BottomSurface = Enum.SurfaceType.Smooth,
  409. TopSurface = Enum.SurfaceType.Smooth
  410. })
  411. Mesh = New("CylinderMesh", Part, "Mesh", {})
  412. Part = New("Part", Model, "Part", {
  413. BrickColor = BrickColor.new("Really black"),
  414. Material = Enum.Material.SmoothPlastic,
  415. Size = Vector3.new(0.222731024, 0.222731024, 0.222731024),
  416. CFrame = CFrame.new(29.7180557, 0.564742088, -52.7354622, -8.0732131E-12, 1, -9.58144665E-6, -3.50177834E-6, 9.58144665E-6, 1, 1, 4.13820089E-11, 3.50177834E-6),
  417. Anchored = true,
  418. BottomSurface = Enum.SurfaceType.Smooth,
  419. TopSurface = Enum.SurfaceType.Smooth
  420. })
  421. Mesh = New("CylinderMesh", Part, "Mesh", {})
  422. Part = New("Part", Model, "Part", {
  423. BrickColor = BrickColor.new("Really black"),
  424. Material = Enum.Material.SmoothPlastic,
  425. Size = Vector3.new(0.668193102, 0.222731024, 0.668193102),
  426. CFrame = CFrame.new(29.4953289, 0.787473083, -51.8445435, -8.0732131E-12, 1, -9.58144665E-6, -3.50177834E-6, 9.58144665E-6, 1, 1, 4.13820089E-11, 3.50177834E-6),
  427. Anchored = true,
  428. BottomSurface = Enum.SurfaceType.Smooth,
  429. TopSurface = Enum.SurfaceType.Smooth
  430. })
  431. Mesh = New("CylinderMesh", Part, "Mesh", {})
  432. Part = New("Part", Model, "Part", {
  433. BrickColor = BrickColor.new("Really black"),
  434. Material = Enum.Material.SmoothPlastic,
  435. Size = Vector3.new(0.445462048, 0.445462048, 0.445462048),
  436. CFrame = CFrame.new(29.4953289, 0.564742088, -51.8445435, -8.0732131E-12, 1, -9.58144665E-6, -3.50177834E-6, 9.58144665E-6, 1, 1, 4.13820089E-11, 3.50177834E-6),
  437. Anchored = true,
  438. BottomSurface = Enum.SurfaceType.Smooth,
  439. TopSurface = Enum.SurfaceType.Smooth
  440. })
  441. Mesh = New("CylinderMesh", Part, "Mesh", {})
  442. Part = New("Part", Model, "Part", {
  443. BrickColor = BrickColor.new("Really black"),
  444. Material = Enum.Material.SmoothPlastic,
  445. Size = Vector3.new(0.222731024, 0.222731024, 0.222731024),
  446. CFrame = CFrame.new(29.7180557, 1.01020408, -52.7354622, -8.0732131E-12, 1, -9.58144665E-6, -3.50177834E-6, 9.58144665E-6, 1, 1, 4.13820089E-11, 3.50177834E-6),
  447. Anchored = true,
  448. BottomSurface = Enum.SurfaceType.Smooth,
  449. TopSurface = Enum.SurfaceType.Smooth
  450. })
  451. Mesh = New("CylinderMesh", Part, "Mesh", {})
  452. Part = New("Part", Model, "Part", {
  453. BrickColor = BrickColor.new("Really black"),
  454. Material = Enum.Material.SmoothPlastic,
  455. Size = Vector3.new(0.222731024, 0.222731024, 0.222731024),
  456. CFrame = CFrame.new(29.2726021, 1.01020408, -51.8445435, -8.0732131E-12, 1, -9.58144665E-6, -3.50177834E-6, 9.58144665E-6, 1, 1, 4.13820089E-11, 3.50177834E-6),
  457. Anchored = true,
  458. BottomSurface = Enum.SurfaceType.Smooth,
  459. TopSurface = Enum.SurfaceType.Smooth
  460. })
  461. Mesh = New("CylinderMesh", Part, "Mesh", {})
  462. Part = New("Part", Model, "Part", {
  463. BrickColor = BrickColor.new("Really black"),
  464. Material = Enum.Material.SmoothPlastic,
  465. Size = Vector3.new(0.222731024, 0.222731024, 0.222731024),
  466. CFrame = CFrame.new(29.2726021, 0.564742088, -51.8445435, -8.0732131E-12, 1, -9.58144665E-6, -3.50177834E-6, 9.58144665E-6, 1, 1, 4.13820089E-11, 3.50177834E-6),
  467. Anchored = true,
  468. BottomSurface = Enum.SurfaceType.Smooth,
  469. TopSurface = Enum.SurfaceType.Smooth
  470. })
  471. Mesh = New("CylinderMesh", Part, "Mesh", {})
  472. Part = New("Part", PowerHolder, "Part", {
  473. BrickColor = BrickColor.new("Really black"),
  474. Material = Enum.Material.SmoothPlastic,
  475. Size = Vector3.new(0.890924096, 0.222731024, 0.890924096),
  476. CFrame = CFrame.new(29.7180557, 0.787473083, -52.2899971, -8.0732131E-12, 1, -9.58144665E-6, -3.50177834E-6, 9.58144665E-6, 1, 1, 4.13820089E-11, 3.50177834E-6),
  477. Anchored = true,
  478. BottomSurface = Enum.SurfaceType.Smooth,
  479. TopSurface = Enum.SurfaceType.Smooth
  480. })
  481. Mesh = New("CylinderMesh", Part, "Mesh", {})
  482. Part = New("Part", PowerHolder, "Part", {
  483. BrickColor = BrickColor.new("Dark stone grey"),
  484. Material = Enum.Material.SmoothPlastic,
  485. Size = Vector3.new(0.111365512, 0.222731024, 0.111365512),
  486. CFrame = CFrame.new(28.1589584, 0.564742088, -51.8445435, -8.0732131E-12, 1, -9.58144665E-6, -3.50177834E-6, 9.58144665E-6, 1, 1, 4.13820089E-11, 3.50177834E-6),
  487. Anchored = true,
  488. BottomSurface = Enum.SurfaceType.Smooth,
  489. TopSurface = Enum.SurfaceType.Smooth,
  490. Color = Color3.new(0.388235, 0.372549, 0.384314)
  491. })
  492. Mesh = New("CylinderMesh", Part, "Mesh", {})
  493. Part = New("Part", PowerHolder, "Part", {
  494. BrickColor = BrickColor.new("Dark stone grey"),
  495. Material = Enum.Material.SmoothPlastic,
  496. Size = Vector3.new(0.111365512, 0.222731024, 0.111365512),
  497. CFrame = CFrame.new(28.1589584, 1.01020408, -51.8445435, -8.0732131E-12, 1, -9.58144665E-6, -3.50177834E-6, 9.58144665E-6, 1, 1, 4.13820089E-11, 3.50177834E-6),
  498. Anchored = true,
  499. BottomSurface = Enum.SurfaceType.Smooth,
  500. TopSurface = Enum.SurfaceType.Smooth,
  501. Color = Color3.new(0.388235, 0.372549, 0.384314)
  502. })
  503. Mesh = New("CylinderMesh", Part, "Mesh", {})
  504. Part = New("Part", PowerHolder, "Part", {
  505. BrickColor = BrickColor.new("Dark stone grey"),
  506. Material = Enum.Material.SmoothPlastic,
  507. Size = Vector3.new(0.111365512, 0.222731024, 0.111365512),
  508. CFrame = CFrame.new(28.1589584, 1.01020408, -52.7354622, -8.0732131E-12, 1, -9.58144665E-6, -3.50177834E-6, 9.58144665E-6, 1, 1, 4.13820089E-11, 3.50177834E-6),
  509. Anchored = true,
  510. BottomSurface = Enum.SurfaceType.Smooth,
  511. TopSurface = Enum.SurfaceType.Smooth,
  512. Color = Color3.new(0.388235, 0.372549, 0.384314)
  513. })
  514. Mesh = New("CylinderMesh", Part, "Mesh", {})
  515. Part = New("Part", PowerHolder, "Part", {
  516. BrickColor = BrickColor.new("Dark stone grey"),
  517. Material = Enum.Material.SmoothPlastic,
  518. Size = Vector3.new(0.111365512, 0.222731024, 0.111365512),
  519. CFrame = CFrame.new(28.1589584, 0.564742088, -52.7354622, -8.0732131E-12, 1, -9.58144665E-6, -3.50177834E-6, 9.58144665E-6, 1, 1, 4.13820089E-11, 3.50177834E-6),
  520. Anchored = true,
  521. BottomSurface = Enum.SurfaceType.Smooth,
  522. TopSurface = Enum.SurfaceType.Smooth,
  523. Color = Color3.new(0.388235, 0.372549, 0.384314)
  524. })
  525. Mesh = New("CylinderMesh", Part, "Mesh", {})
  526. Part = New("Part", PowerHolder, "Part", {
  527. BrickColor = BrickColor.new("Dark stone grey"),
  528. Material = Enum.Material.SmoothPlastic,
  529. Size = Vector3.new(0.111365512, 0.222731024, 0.111365512),
  530. CFrame = CFrame.new(29.0498734, 0.564742088, -52.7354622, -8.0732131E-12, 1, -9.58144665E-6, -3.50177834E-6, 9.58144665E-6, 1, 1, 4.13820089E-11, 3.50177834E-6),
  531. Anchored = true,
  532. BottomSurface = Enum.SurfaceType.Smooth,
  533. TopSurface = Enum.SurfaceType.Smooth,
  534. Color = Color3.new(0.388235, 0.372549, 0.384314)
  535. })
  536. Mesh = New("CylinderMesh", Part, "Mesh", {})
  537. Part = New("Part", PowerHolder, "Part", {
  538. BrickColor = BrickColor.new("Dark stone grey"),
  539. Material = Enum.Material.SmoothPlastic,
  540. Size = Vector3.new(0.111365512, 0.222731024, 0.111365512),
  541. CFrame = CFrame.new(29.0498734, 1.01020408, -52.7354622, -8.0732131E-12, 1, -9.58144665E-6, -3.50177834E-6, 9.58144665E-6, 1, 1, 4.13820089E-11, 3.50177834E-6),
  542. Anchored = true,
  543. BottomSurface = Enum.SurfaceType.Smooth,
  544. TopSurface = Enum.SurfaceType.Smooth,
  545. Color = Color3.new(0.388235, 0.372549, 0.384314)
  546. })
  547. Mesh = New("CylinderMesh", Part, "Mesh", {})
  548. Part = New("Part", PowerHolder, "Part", {
  549. BrickColor = BrickColor.new("Dark stone grey"),
  550. Material = Enum.Material.SmoothPlastic,
  551. Size = Vector3.new(0.111365512, 0.222731024, 0.111365512),
  552. CFrame = CFrame.new(29.0498734, 0.564742088, -51.8445435, -8.0732131E-12, 1, -9.58144665E-6, -3.50177834E-6, 9.58144665E-6, 1, 1, 4.13820089E-11, 3.50177834E-6),
  553. Anchored = true,
  554. BottomSurface = Enum.SurfaceType.Smooth,
  555. TopSurface = Enum.SurfaceType.Smooth,
  556. Color = Color3.new(0.388235, 0.372549, 0.384314)
  557. })
  558. Mesh = New("CylinderMesh", Part, "Mesh", {})
  559. Part = New("Part", PowerHolder, "Part", {
  560. BrickColor = BrickColor.new("Dark stone grey"),
  561. Material = Enum.Material.SmoothPlastic,
  562. Size = Vector3.new(0.111365512, 0.222731024, 0.111365512),
  563. CFrame = CFrame.new(29.0498734, 1.01020408, -51.8445435, -8.0732131E-12, 1, -9.58144665E-6, -3.50177834E-6, 9.58144665E-6, 1, 1, 4.13820089E-11, 3.50177834E-6),
  564. Anchored = true,
  565. BottomSurface = Enum.SurfaceType.Smooth,
  566. TopSurface = Enum.SurfaceType.Smooth,
  567. Color = Color3.new(0.388235, 0.372549, 0.384314)
  568. })
  569. Mesh = New("CylinderMesh", Part, "Mesh", {})
  570. Part = New("Part", PowerHolder, "Part", {
  571. BrickColor = BrickColor.new("Really black"),
  572. Material = Enum.Material.SmoothPlastic,
  573. Size = Vector3.new(0.890924096, 0.111365512, 0.890924096),
  574. CFrame = CFrame.new(29.9407845, 0.787473083, -52.2899971, -8.0732131E-12, 1, -9.58144665E-6, -3.50177834E-6, 9.58144665E-6, 1, 1, 4.13820089E-11, 3.50177834E-6),
  575. Anchored = true,
  576. BottomSurface = Enum.SurfaceType.Smooth,
  577. TopSurface = Enum.SurfaceType.Smooth
  578. })
  579. Mesh = New("CylinderMesh", Part, "Mesh", {})
  580. Part = New("Part", PowerHolder, "Part", {
  581. BrickColor = BrickColor.new("Really black"),
  582. Material = Enum.Material.SmoothPlastic,
  583. Size = Vector3.new(0.890924096, 0.111365512, 0.890924096),
  584. CFrame = CFrame.new(30.1635113, 0.787473083, -52.2899971, -8.0732131E-12, 1, -9.58144665E-6, -3.50177834E-6, 9.58144665E-6, 1, 1, 4.13820089E-11, 3.50177834E-6),
  585. Anchored = true,
  586. BottomSurface = Enum.SurfaceType.Smooth,
  587. TopSurface = Enum.SurfaceType.Smooth
  588. })
  589. Mesh = New("CylinderMesh", Part, "Mesh", {})
  590. Part = New("Part", PowerHolder, "Part", {
  591. BrickColor = BrickColor.new("Really black"),
  592. Material = Enum.Material.SmoothPlastic,
  593. Size = Vector3.new(0.890924096, 0.111365512, 0.890924096),
  594. CFrame = CFrame.new(30.38624, 0.787473083, -52.2899971, -8.0732131E-12, 1, -9.58144665E-6, -3.50177834E-6, 9.58144665E-6, 1, 1, 4.13820089E-11, 3.50177834E-6),
  595. Anchored = true,
  596. BottomSurface = Enum.SurfaceType.Smooth,
  597. TopSurface = Enum.SurfaceType.Smooth
  598. })
  599. Mesh = New("CylinderMesh", Part, "Mesh", {})
  600. Part = New("Part", PowerHolder, "Part", {
  601. BrickColor = BrickColor.new("Dark stone grey"),
  602. Material = Enum.Material.SmoothPlastic,
  603. Size = Vector3.new(0.445462048, 0.668193102, 0.445462048),
  604. CFrame = CFrame.new(30.1635113, 0.787473083, -52.2899971, -8.0732131E-12, 1, -9.58144665E-6, -3.50177834E-6, 9.58144665E-6, 1, 1, 4.13820089E-11, 3.50177834E-6),
  605. Anchored = true,
  606. BottomSurface = Enum.SurfaceType.Smooth,
  607. TopSurface = Enum.SurfaceType.Smooth,
  608. Color = Color3.new(0.388235, 0.372549, 0.384314)
  609. })
  610. Mesh = New("CylinderMesh", Part, "Mesh", {})
  611. Part = New("Part", PowerHolder, "Part", {
  612. BrickColor = BrickColor.new("Really black"),
  613. Material = Enum.Material.SmoothPlastic,
  614. Size = Vector3.new(0.668193102, 0.222731024, 0.668193102),
  615. CFrame = CFrame.new(30.6089668, 0.787473083, -52.2899971, -8.0732131E-12, 1, -9.58144665E-6, -3.50177834E-6, 9.58144665E-6, 1, 1, 4.13820089E-11, 3.50177834E-6),
  616. Anchored = true,
  617. BottomSurface = Enum.SurfaceType.Smooth,
  618. TopSurface = Enum.SurfaceType.Smooth
  619. })
  620. Mesh = New("CylinderMesh", Part, "Mesh", {})
  621. Part = New("Part", PowerHolder, "Part", {
  622. BrickColor = BrickColor.new("Really black"),
  623. Material = Enum.Material.SmoothPlastic,
  624. Size = Vector3.new(0.668193102, 0.222731024, 0.668193102),
  625. CFrame = CFrame.new(29.0498734, 0.787473083, -52.2899971, -8.0732131E-12, 1, -9.58144665E-6, -3.50177834E-6, 9.58144665E-6, 1, 1, 4.13820089E-11, 3.50177834E-6),
  626. Anchored = true,
  627. BottomSurface = Enum.SurfaceType.Smooth,
  628. TopSurface = Enum.SurfaceType.Smooth
  629. })
  630. Mesh = New("CylinderMesh", Part, "Mesh", {})
  631. Part = New("Part", PowerHolder, "Part", {
  632. BrickColor = BrickColor.new("Really black"),
  633. Material = Enum.Material.SmoothPlastic,
  634. Size = Vector3.new(1.11365509, 1.11365509, 0.445462048),
  635. CFrame = CFrame.new(28.6044273, 0.787477553, -52.2899971, 0, 0, -1.00000644, 0.707109809, 0.70710659, 0, 0.707112432, -0.707108617, 0),
  636. Anchored = true,
  637. BottomSurface = Enum.SurfaceType.Smooth,
  638. TopSurface = Enum.SurfaceType.Smooth
  639. })
  640. Part = New("Part", PowerHolder, "Part", {
  641. BrickColor = BrickColor.new("Really black"),
  642. Material = Enum.Material.SmoothPlastic,
  643. Size = Vector3.new(1.11365509, 2.00457907, 0.445462048),
  644. CFrame = CFrame.new(28.6044273, 0.787482023, -52.2899971, -8.0732131E-12, 1, -9.58144665E-6, -3.50177834E-6, 9.58144665E-6, 1, 1, 4.13820089E-11, 3.50177834E-6),
  645. Anchored = true,
  646. BottomSurface = Enum.SurfaceType.Smooth,
  647. TopSurface = Enum.SurfaceType.Smooth
  648. })
  649. Mesh = New("CylinderMesh", Part, "Mesh", {})
  650. Neon = New("Part", PowerHolder, "Neon", {
  651. BrickColor = BrickColor.new("Really red"),
  652. Material = Enum.Material.Neon,
  653. Size = Vector3.new(0.957743406, 0.957743406, 0.445462048),
  654. CFrame = CFrame.new(28.6044273, 0.787477553, -52.2899971, 0, 0, -1, 0.500002861, 0.866023839, 0, 0.866023839, -0.500002861, 0),
  655. Anchored = true,
  656. BottomSurface = Enum.SurfaceType.Smooth,
  657. TopSurface = Enum.SurfaceType.Smooth,
  658. Color = Color3.new(1, 0, 0)
  659. })
  660. Neon = New("Part", PowerHolder, "Neon", {
  661. BrickColor = BrickColor.new("Really red"),
  662. Material = Enum.Material.Neon,
  663. Size = Vector3.new(0.957743406, 0.957743406, 0.445462048),
  664. CFrame = CFrame.new(28.6044273, 0.787477553, -52.2899971, 0, 0, -1, 0.86602217, 0.500005305, 0, 0.500005305, -0.86602217, 0),
  665. Anchored = true,
  666. BottomSurface = Enum.SurfaceType.Smooth,
  667. TopSurface = Enum.SurfaceType.Smooth,
  668. Color = Color3.new(1, 0, 0)
  669. })
  670. Neon = New("Part", PowerHolder, "Neon", {
  671. BrickColor = BrickColor.new("Really red"),
  672. Material = Enum.Material.Neon,
  673. Size = Vector3.new(0.957743406, 0.957743406, 0.445462048),
  674. CFrame = CFrame.new(28.6044273, 0.787477553, -52.2899971, 0, 0, -1, 0.965924263, 0.258825034, 0, 0.258825064, -0.965924263, 0),
  675. Anchored = true,
  676. BottomSurface = Enum.SurfaceType.Smooth,
  677. TopSurface = Enum.SurfaceType.Smooth,
  678. Color = Color3.new(1, 0, 0)
  679. })
  680. Neon = New("Part", PowerHolder, "Neon", {
  681. BrickColor = BrickColor.new("Really red"),
  682. Material = Enum.Material.Neon,
  683. Size = Vector3.new(0.957743406, 0.957743406, 0.445462048),
  684. CFrame = CFrame.new(28.6044273, 0.787477553, -52.2899971, 0, 0, -1, 0.25882262, 0.965924919, 0, 0.965924919, -0.25882262, 0),
  685. Anchored = true,
  686. BottomSurface = Enum.SurfaceType.Smooth,
  687. TopSurface = Enum.SurfaceType.Smooth,
  688. Color = Color3.new(1, 0, 0)
  689. })
  690. Part = New("Part", PowerHolder, "Part", {
  691. BrickColor = BrickColor.new("Really black"),
  692. Material = Enum.Material.SmoothPlastic,
  693. Size = Vector3.new(1.11365509, 1.11365509, 0.445462048),
  694. CFrame = CFrame.new(28.6044273, 0.787477553, -52.2899971, 0, 0, -1.00000024, 0, 1, 0, 1.00000024, 0, 0),
  695. Anchored = true,
  696. BottomSurface = Enum.SurfaceType.Smooth,
  697. TopSurface = Enum.SurfaceType.Smooth
  698. })
  699. Part = New("Part", PowerHolder, "Part", {
  700. BrickColor = BrickColor.new("Really black"),
  701. Material = Enum.Material.SmoothPlastic,
  702. Size = Vector3.new(1.3363862, 0.222731024, 1.3363862),
  703. CFrame = CFrame.new(28.8271465, 0.787473083, -52.2899971, -8.0732131E-12, 1, -9.58144665E-6, -3.50177834E-6, 9.58144665E-6, 1, 1, 4.13820089E-11, 3.50177834E-6),
  704. Anchored = true,
  705. BottomSurface = Enum.SurfaceType.Smooth,
  706. TopSurface = Enum.SurfaceType.Smooth
  707. })
  708. Mesh = New("CylinderMesh", Part, "Mesh", {})
  709. Part = New("Part", PowerHolder, "Part", {
  710. BrickColor = BrickColor.new("Really black"),
  711. Material = Enum.Material.SmoothPlastic,
  712. Size = Vector3.new(1.3363862, 0.222731024, 1.3363862),
  713. CFrame = CFrame.new(28.381691, 0.787473083, -52.2899971, -8.0732131E-12, 1, -9.58144665E-6, -3.50177834E-6, 9.58144665E-6, 1, 1, 4.13820089E-11, 3.50177834E-6),
  714. Anchored = true,
  715. BottomSurface = Enum.SurfaceType.Smooth,
  716. TopSurface = Enum.SurfaceType.Smooth
  717. })
  718. Mesh = New("CylinderMesh", Part, "Mesh", {})
  719. Part = New("Part", PowerHolder, "Part", {
  720. BrickColor = BrickColor.new("Really black"),
  721. Material = Enum.Material.SmoothPlastic,
  722. Size = Vector3.new(0.668193102, 0.222731024, 0.668193102),
  723. CFrame = CFrame.new(28.1589584, 0.787473083, -52.2899971, -8.0732131E-12, 1, -9.58144665E-6, -3.50177834E-6, 9.58144665E-6, 1, 1, 4.13820089E-11, 3.50177834E-6),
  724. Anchored = true,
  725. BottomSurface = Enum.SurfaceType.Smooth,
  726. TopSurface = Enum.SurfaceType.Smooth
  727. })
  728. Mesh = New("CylinderMesh", Part, "Mesh", {})
  729. Part = New("Part", PowerHolder, "Part", {
  730. BrickColor = BrickColor.new("Really black"),
  731. Material = Enum.Material.SmoothPlastic,
  732. Size = Vector3.new(0.222731024, 0.668193102, 0.222731024),
  733. CFrame = CFrame.new(26.9784832, 0.787473083, -52.2899971, -5.52762662E-11, 1.00582838E-5, 1.00000024, -3.50170376E-6, -1.00000024, 1.00582838E-5, 1, -3.50170421E-6, 9.06084097E-11),
  734. Anchored = true,
  735. BottomSurface = Enum.SurfaceType.Smooth,
  736. TopSurface = Enum.SurfaceType.Smooth
  737. })
  738. Part = New("Part", PowerHolder, "Part", {
  739. BrickColor = BrickColor.new("Really black"),
  740. Material = Enum.Material.SmoothPlastic,
  741. Size = Vector3.new(0.222731024, 0.512281358, 0.111365512),
  742. CFrame = CFrame.new(26.7446499, 1.07702565, -52.2899971, -2.95597852E-11, 1, -9.58144665E-6, -3.50171308E-6, 9.58144665E-6, 1, 1, 6.30961949E-11, 3.50171308E-6),
  743. Anchored = true,
  744. BottomSurface = Enum.SurfaceType.Smooth,
  745. TopSurface = Enum.SurfaceType.Smooth
  746. })
  747. Part = New("Part", PowerHolder, "Part", {
  748. BrickColor = BrickColor.new("Dark stone grey"),
  749. Material = Enum.Material.SmoothPlastic,
  750. Size = Vector3.new(0.111365512, 0.668193102, 0.111365512),
  751. CFrame = CFrame.new(26.7111912, 0.787473083, -52.2899971, -5.53331096E-11, -0.258809268, 0.965928495, -3.50170376E-6, -0.965928495, -0.258809268, 1, -3.38240966E-6, -9.06219896E-7),
  752. Anchored = true,
  753. BottomSurface = Enum.SurfaceType.Smooth,
  754. TopSurface = Enum.SurfaceType.Smooth,
  755. Color = Color3.new(0.388235, 0.372549, 0.384314)
  756. })
  757. Part = New("Part", PowerHolder, "Part", {
  758. BrickColor = BrickColor.new("Really black"),
  759. Material = Enum.Material.SmoothPlastic,
  760. Size = Vector3.new(0.222731024, 0.668193102, 0.111365512),
  761. CFrame = CFrame.new(26.6666946, 0.475645214, -52.2899971, -2.95597852E-11, 1, -9.58144665E-6, -3.50171308E-6, 9.58144665E-6, 1, 1, 6.30961949E-11, 3.50171308E-6),
  762. Anchored = true,
  763. BottomSurface = Enum.SurfaceType.Smooth,
  764. TopSurface = Enum.SurfaceType.Smooth
  765. })
  766. Part = New("Part", PowerHolder, "Part", {
  767. BrickColor = BrickColor.new("Really black"),
  768. Material = Enum.Material.SmoothPlastic,
  769. Size = Vector3.new(0.222731024, 0.579100668, 0.111365512),
  770. CFrame = CFrame.new(26.4769592, 0.766716778, -52.2899971, -5.52867474E-11, -0.258809447, 0.96592921, -3.50170421E-6, -0.96592921, -0.258809447, 1, -3.38241125E-6, -9.06220293E-7),
  771. Anchored = true,
  772. BottomSurface = Enum.SurfaceType.Smooth,
  773. TopSurface = Enum.SurfaceType.Smooth
  774. })
  775. Part = New("Part", PowerHolder, "Part", {
  776. BrickColor = BrickColor.new("Dark stone grey"),
  777. Material = Enum.Material.SmoothPlastic,
  778. Size = Vector3.new(0.111365512, 0.289550334, 0.111365512),
  779. CFrame = CFrame.new(26.8782501, 0.787470937, -52.2899971, -5.69528105E-11, -1, 1.04902101E-5, -3.50170967E-6, -1.04902101E-5, -1, 1, -9.36864822E-11, -3.50170967E-6),
  780. Anchored = true,
  781. BottomSurface = Enum.SurfaceType.Smooth,
  782. TopSurface = Enum.SurfaceType.Smooth,
  783. Color = Color3.new(0.388235, 0.372549, 0.384314)
  784. })
  785. Mesh = New("CylinderMesh", Part, "Mesh", {})
  786. Part = New("Part", PowerHolder, "Part", {
  787. BrickColor = BrickColor.new("Really black"),
  788. Material = Enum.Material.SmoothPlastic,
  789. Size = Vector3.new(0.111365512, 0.668193102, 0.111365512),
  790. CFrame = CFrame.new(29.4953289, 1.41111994, -52.7354622, -5.50513524E-11, 0.258828878, 0.965923965, -3.50170421E-6, -0.965923965, 0.258828878, 1, -3.38236441E-6, 9.06395599E-7),
  791. Anchored = true,
  792. BottomSurface = Enum.SurfaceType.Smooth,
  793. TopSurface = Enum.SurfaceType.Smooth
  794. })
  795. Part = New("Part", PowerHolder, "Part", {
  796. BrickColor = BrickColor.new("Really black"),
  797. Material = Enum.Material.SmoothPlastic,
  798. Size = Vector3.new(0.111365512, 0.668193102, 0.111365512),
  799. CFrame = CFrame.new(29.4953289, 1.41111994, -51.8445435, -5.50513524E-11, 0.258828878, 0.965923965, -3.50170421E-6, -0.965923965, 0.258828878, 1, -3.38236441E-6, 9.06395599E-7),
  800. Anchored = true,
  801. BottomSurface = Enum.SurfaceType.Smooth,
  802. TopSurface = Enum.SurfaceType.Smooth
  803. })
  804. Part = New("Part", PowerHolder, "Part", {
  805. BrickColor = BrickColor.new("Really black"),
  806. Material = Enum.Material.SmoothPlastic,
  807. Size = Vector3.new(0.178184807, 0.890924096, 0.178184807),
  808. CFrame = CFrame.new(29.4285202, 1.67839265, -52.2899971, 0.258829474, -8.57335749E-7, 0.96592164, -0.965925694, 6.97467476E-6, 0.258828104, -7.9870224E-6, -0.999998629, 8.24248048E-7),
  809. Anchored = true,
  810. BottomSurface = Enum.SurfaceType.Smooth,
  811. TopSurface = Enum.SurfaceType.Smooth
  812. })
  813. Mesh = New("CylinderMesh", Part, "Mesh", {})
  814. Part = New("Part", PowerHolder, "Part", {
  815. BrickColor = BrickColor.new("Really black"),
  816. Material = Enum.Material.SmoothPlastic,
  817. Size = Vector3.new(0.111365512, 0.445462048, 0.111365512),
  818. CFrame = CFrame.new(29.4285202, 1.67839265, -51.9559135, 0.258829474, -8.57335749E-7, 0.96592164, -0.965925694, 6.97467476E-6, 0.258828104, -7.9870224E-6, -0.999998629, 8.24248048E-7),
  819. Anchored = true,
  820. BottomSurface = Enum.SurfaceType.Smooth,
  821. TopSurface = Enum.SurfaceType.Smooth
  822. })
  823. Mesh = New("CylinderMesh", Part, "Mesh", {})
  824. Part = New("Part", PowerHolder, "Part", {
  825. BrickColor = BrickColor.new("Really black"),
  826. Material = Enum.Material.SmoothPlastic,
  827. Size = Vector3.new(0.111365512, 0.445462048, 0.111365512),
  828. CFrame = CFrame.new(29.4285202, 1.67839265, -52.6240959, 0.258829474, -8.57335749E-7, 0.96592164, -0.965925694, 6.97467476E-6, 0.258828104, -7.9870224E-6, -0.999998629, 8.24248048E-7),
  829. Anchored = true,
  830. BottomSurface = Enum.SurfaceType.Smooth,
  831. TopSurface = Enum.SurfaceType.Smooth
  832. })
  833. Mesh = New("CylinderMesh", Part, "Mesh", {})
  834. Part = New("Part", PowerHolder, "Part", {
  835. BrickColor = BrickColor.new("Really black"),
  836. Material = Enum.Material.SmoothPlastic,
  837. Size = Vector3.new(0.222731024, 0.779558599, 0.222731024),
  838. CFrame = CFrame.new(29.4285202, 1.67839491, -52.2900124, 0.258829474, -8.57335749E-7, 0.96592164, -0.965925694, 6.97467476E-6, 0.258828104, -7.9870224E-6, -0.999998629, 8.24248048E-7),
  839. Anchored = true,
  840. BottomSurface = Enum.SurfaceType.Smooth,
  841. TopSurface = Enum.SurfaceType.Smooth
  842. })
  843. Mesh = New("CylinderMesh", Part, "Mesh", {})
  844. Part = New("Part", PowerHolder, "Part", {
  845. BrickColor = BrickColor.new("Dark stone grey"),
  846. Material = Enum.Material.SmoothPlastic,
  847. Size = Vector3.new(0.111365512, 0.668193102, 0.111365512),
  848. CFrame = CFrame.new(27.4907551, 0.787473083, -52.2899971, -8.0732131E-12, 1, -9.58144665E-6, -3.50177834E-6, 9.58144665E-6, 1, 1, 4.13820089E-11, 3.50177834E-6),
  849. Anchored = true,
  850. BottomSurface = Enum.SurfaceType.Smooth,
  851. TopSurface = Enum.SurfaceType.Smooth,
  852. Color = Color3.new(0.388235, 0.372549, 0.384314)
  853. })
  854. Mesh = New("CylinderMesh", Part, "Mesh", {})
  855. Part = New("Part", PowerHolder, "Part", {
  856. BrickColor = BrickColor.new("Really black"),
  857. Material = Enum.Material.SmoothPlastic,
  858. Size = Vector3.new(0.111365512, 0.668193102, 0.111365512),
  859. CFrame = CFrame.new(27.2680531, 0.564739823, -52.5127258, -8.0732131E-12, 1, -9.58144665E-6, -3.50177834E-6, 9.58144665E-6, 1, 1, 4.13820089E-11, 3.50177834E-6),
  860. Anchored = true,
  861. BottomSurface = Enum.SurfaceType.Smooth,
  862. TopSurface = Enum.SurfaceType.Smooth
  863. })
  864. Part = New("Part", PowerHolder, "Part", {
  865. BrickColor = BrickColor.new("Really black"),
  866. Material = Enum.Material.SmoothPlastic,
  867. Size = Vector3.new(0.111365512, 0.668193102, 0.111365512),
  868. CFrame = CFrame.new(27.2680531, 1.01020193, -52.5127258, -8.0732131E-12, 1, -9.58144665E-6, -3.50177834E-6, 9.58144665E-6, 1, 1, 4.13820089E-11, 3.50177834E-6),
  869. Anchored = true,
  870. BottomSurface = Enum.SurfaceType.Smooth,
  871. TopSurface = Enum.SurfaceType.Smooth
  872. })
  873. Part = New("Part", PowerHolder, "Part", {
  874. BrickColor = BrickColor.new("Really black"),
  875. Material = Enum.Material.SmoothPlastic,
  876. Size = Vector3.new(0.111365512, 0.668193102, 0.111365512),
  877. CFrame = CFrame.new(27.2680531, 1.01020193, -52.0672684, -8.0732131E-12, 1, -9.58144665E-6, -3.50177834E-6, 9.58144665E-6, 1, 1, 4.13820089E-11, 3.50177834E-6),
  878. Anchored = true,
  879. BottomSurface = Enum.SurfaceType.Smooth,
  880. TopSurface = Enum.SurfaceType.Smooth
  881. })
  882. Part = New("Part", PowerHolder, "Part", {
  883. BrickColor = BrickColor.new("Really black"),
  884. Material = Enum.Material.SmoothPlastic,
  885. Size = Vector3.new(0.111365512, 0.668193102, 0.111365512),
  886. CFrame = CFrame.new(27.2680531, 0.564739823, -52.0672684, -8.0732131E-12, 1, -9.58144665E-6, -3.50177834E-6, 9.58144665E-6, 1, 1, 4.13820089E-11, 3.50177834E-6),
  887. Anchored = true,
  888. BottomSurface = Enum.SurfaceType.Smooth,
  889. TopSurface = Enum.SurfaceType.Smooth
  890. })
  891. Part = New("Part", PowerHolder, "Part", {
  892. BrickColor = BrickColor.new("Really black"),
  893. Material = Enum.Material.SmoothPlastic,
  894. Size = Vector3.new(0.133638605, 0.445462048, 0.133638605),
  895. CFrame = CFrame.new(27.2680531, 0.564739823, -52.5127258, -8.0732131E-12, 1, -9.58144665E-6, -3.50177834E-6, 9.58144665E-6, 1, 1, 4.13820089E-11, 3.50177834E-6),
  896. Anchored = true,
  897. BottomSurface = Enum.SurfaceType.Smooth,
  898. TopSurface = Enum.SurfaceType.Smooth
  899. })
  900. Part = New("Part", PowerHolder, "Part", {
  901. BrickColor = BrickColor.new("Really black"),
  902. Material = Enum.Material.SmoothPlastic,
  903. Size = Vector3.new(0.133638605, 0.445462048, 0.133638605),
  904. CFrame = CFrame.new(27.2680531, 1.01020193, -52.5127258, -8.0732131E-12, 1, -9.58144665E-6, -3.50177834E-6, 9.58144665E-6, 1, 1, 4.13820089E-11, 3.50177834E-6),
  905. Anchored = true,
  906. BottomSurface = Enum.SurfaceType.Smooth,
  907. TopSurface = Enum.SurfaceType.Smooth
  908. })
  909. Part = New("Part", PowerHolder, "Part", {
  910. BrickColor = BrickColor.new("Really black"),
  911. Material = Enum.Material.SmoothPlastic,
  912. Size = Vector3.new(0.133638605, 0.445462048, 0.133638605),
  913. CFrame = CFrame.new(27.2680531, 1.01020193, -52.0672684, -8.0732131E-12, 1, -9.58144665E-6, -3.50177834E-6, 9.58144665E-6, 1, 1, 4.13820089E-11, 3.50177834E-6),
  914. Anchored = true,
  915. BottomSurface = Enum.SurfaceType.Smooth,
  916. TopSurface = Enum.SurfaceType.Smooth
  917. })
  918. Part = New("Part", PowerHolder, "Part", {
  919. BrickColor = BrickColor.new("Really black"),
  920. Material = Enum.Material.SmoothPlastic,
  921. Size = Vector3.new(0.133638605, 0.445462048, 0.133638605),
  922. CFrame = CFrame.new(27.2680531, 0.564739823, -52.0672684, -8.0732131E-12, 1, -9.58144665E-6, -3.50177834E-6, 9.58144665E-6, 1, 1, 4.13820089E-11, 3.50177834E-6),
  923. Anchored = true,
  924. BottomSurface = Enum.SurfaceType.Smooth,
  925. TopSurface = Enum.SurfaceType.Smooth
  926. })
  927. Part = New("Part", PowerHolder, "Part", {
  928. BrickColor = BrickColor.new("Really black"),
  929. Material = Enum.Material.SmoothPlastic,
  930. Size = Vector3.new(0.890924096, 0.111365512, 0.890924096),
  931. CFrame = CFrame.new(27.0452919, 0.787473083, -52.2899971, -8.0732131E-12, 1, -9.58144665E-6, -3.50177834E-6, 9.58144665E-6, 1, 1, 4.13820089E-11, 3.50177834E-6),
  932. Anchored = true,
  933. BottomSurface = Enum.SurfaceType.Smooth,
  934. TopSurface = Enum.SurfaceType.Smooth
  935. })
  936. Mesh = New("CylinderMesh", Part, "Mesh", {})
  937. Part = New("Part", PowerHolder, "Part", {
  938. BrickColor = BrickColor.new("Really black"),
  939. Material = Enum.Material.SmoothPlastic,
  940. Size = Vector3.new(0.445462048, 0.222731024, 0.445462048),
  941. CFrame = CFrame.new(27.0452919, 0.787473083, -52.2899971, -8.0732131E-12, 1, -9.58144665E-6, -3.50177834E-6, 9.58144665E-6, 1, 1, 4.13820089E-11, 3.50177834E-6),
  942. Anchored = true,
  943. BottomSurface = Enum.SurfaceType.Smooth,
  944. TopSurface = Enum.SurfaceType.Smooth
  945. })
  946. Mesh = New("CylinderMesh", Part, "Mesh", {})
  947. Handle = New("Part", LaserMinigun, "Handle", {
  948. BrickColor = BrickColor.new("Really black"),
  949. Material = Enum.Material.SmoothPlastic,
  950. Transparency = 1,
  951. Transparency = 1,
  952. Size = Vector3.new(1.22300005, 4.51200008, 1.11099994),
  953. CFrame = CFrame.new(28.6618481, 0.8217237, -52.2899971, -2.95597852E-11, 1, -9.58144665E-6, -3.50171308E-6, 9.58144665E-6, 1, 1, 6.30961949E-11, 3.50171308E-6),
  954. Anchored = true,
  955. BottomSurface = Enum.SurfaceType.Smooth,
  956. TopSurface = Enum.SurfaceType.Smooth
  957. })
  958. MiniDroid = New("Model", C, "MiniDroid", {})
  959. armor = New("Model", MiniDroid, "armor", {})
  960. Main = New("Model", armor, "Main", {})
  961. Part = New("Part", Main, "Part", {
  962. BrickColor = BrickColor.new("Really black"),
  963. Material = Enum.Material.SmoothPlastic,
  964. Size = Vector3.new(0.100000001, 0.800000012, 0.800000012),
  965. CFrame = CFrame.new(30.9500008, 1.7000351, -103.050003, 0, 0, 1, -1, 0, 0, 0, -1, 0),
  966. Anchored = true,
  967. BottomSurface = Enum.SurfaceType.Smooth,
  968. TopSurface = Enum.SurfaceType.Smooth,
  969. Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  970. })
  971. Part = New("Part", armor, "Part", {
  972. BrickColor = BrickColor.new("black"),
  973. Material = Enum.Material.SmoothPlastic,
  974. Size = Vector3.new(0.899999976, 0.699999988, 0.899999976),
  975. CFrame = CFrame.new(30.9499989, 1.80003405, -103.050003, 0, 0, 1, 0, -1.00000024, 0, 1.00000024, 0, 0),
  976. Anchored = true,
  977. BottomSurface = Enum.SurfaceType.Smooth,
  978. TopSurface = Enum.SurfaceType.Smooth,
  979. Color = Color3.new(0.105882, 0.164706, 0.207843)
  980. })
  981. Mesh = New("SpecialMesh", Part, "Mesh", {})
  982. Part = New("Part", armor, "Part", {
  983. BrickColor = BrickColor.new("Really black"),
  984. Material = Enum.Material.SmoothPlastic,
  985. Size = Vector3.new(1, 0.50999999, 1),
  986. CFrame = CFrame.new(30.9499989, 1.90003407, -103.050003, 0, 0, 1, 0, -1.00000024, 0, 1.00000024, 0, 0),
  987. Anchored = true,
  988. BottomSurface = Enum.SurfaceType.Smooth,
  989. TopSurface = Enum.SurfaceType.Smooth,
  990. Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  991. })
  992. Mesh = New("SpecialMesh", Part, "Mesh", {})
  993. Part = New("Part", armor, "Part", {
  994. BrickColor = BrickColor.new("Really black"),
  995. Material = Enum.Material.SmoothPlastic,
  996. Size = Vector3.new(1, 0.5, 1),
  997. CFrame = CFrame.new(30.9499989, 1.70003402, -103.050003, 0, 0, 1, 0, -1.00000024, 0, 1.00000024, 0, 0),
  998. Anchored = true,
  999. BottomSurface = Enum.SurfaceType.Smooth,
  1000. TopSurface = Enum.SurfaceType.Smooth,
  1001. Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  1002. })
  1003. Mesh = New("SpecialMesh", Part, "Mesh", {})
  1004. Neon = New("Model", MiniDroid, "Neon", {})
  1005. LaPart = New("Part", Neon, "LaPart", {
  1006. BrickColor = BrickColor.new("Really red"),
  1007. Material = Enum.Material.Neon,
  1008. Shape = Enum.PartType.Cylinder,
  1009. Size = Vector3.new(0.100000001, 0.949999988, 0.949999988),
  1010. CFrame = CFrame.new(30.9500008, 1.80000031, -103.050003, 0, 0, 1, -1, 0, 0, 0, -1, 0),
  1011. Anchored = true,
  1012. BottomSurface = Enum.SurfaceType.Smooth,
  1013. TopSurface = Enum.SurfaceType.Smooth,
  1014. Color = Color3.new(1, 0, 0)
  1015. })
  1016. FirePart = New("Part", Neon, "FirePart", {
  1017. BrickColor = BrickColor.new("Really red"),
  1018. Material = Enum.Material.Neon,
  1019. Transparency = 0.5,
  1020. Shape = Enum.PartType.Ball,
  1021. Size = Vector3.new(0.5, 0.5, 0.5),
  1022. CFrame = CFrame.new(30.9499989, 1.65004444, -103.050003, 0, 0, 1, 0, -1.00000024, 0, 1.00000024, 0, 0),
  1023. Anchored = true,
  1024. BottomSurface = Enum.SurfaceType.Smooth,
  1025. TopSurface = Enum.SurfaceType.Smooth,
  1026. Color = Color3.new(1, 0, 0)
  1027. })
  1028. miniHandle = New("Part", MiniDroid, "Handle", {
  1029. BrickColor = BrickColor.new("Really black"),
  1030. Material = Enum.Material.SmoothPlastic,
  1031. Transparency = 1,
  1032. Transparency = 1,
  1033. Size = Vector3.new(1, 1, 1),
  1034. CFrame = CFrame.new(30.9500008, 1.80504608, -103.050003, 0, 0, 1, -1, 0, 0, 0, -1, 0),
  1035. Anchored = true,
  1036. BottomSurface = Enum.SurfaceType.Smooth,
  1037. TopSurface = Enum.SurfaceType.Smooth,
  1038. Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  1039. })
  1040. Glow1 = Color3.new(1, 0, 0)
  1041. Glow2 = Color3.new(0, 0, 0)
  1042. GlowParticle = Instance.new("ParticleEmitter", FirePart)
  1043. GlowParticle.LightEmission = 1
  1044. GlowParticle.Color = ColorSequence.new(Glow1, Glow2)
  1045. GlowParticle.Size = NumberSequence.new(0, 20)
  1046. GlowParticle.Texture = "http://www.roblox.com/asset/?id=52620985"
  1047. GlowParticle.Transparency = NumberSequence.new(0, 1)
  1048. GlowParticle.LockedToPart = true
  1049. GlowParticle.Lifetime = NumberRange.new(1)
  1050. GlowParticle.Rate = 1
  1051. GlowParticle.Speed = NumberRange.new(0)
  1052. GlowParticle.Enabled = false
  1053. GlowParticle2 = Instance.new("ParticleEmitter", FirePart)
  1054. GlowParticle2.LightEmission = 0.7
  1055. GlowParticle2.Color = ColorSequence.new(Glow1, Glow2)
  1056. GlowParticle2.Size = NumberSequence.new(0, 1)
  1057. GlowParticle2.Texture = "http://www.roblox.com/asset/?id=589325350"
  1058. GlowParticle2.Transparency = NumberSequence.new(0, 1)
  1059. GlowParticle2.LockedToPart = false
  1060. GlowParticle2.Lifetime = NumberRange.new(0.2)
  1061. GlowParticle2.Rate = 150
  1062. GlowParticle2.Speed = NumberRange.new(3)
  1063. GlowParticle2.Acceleration = Vector3.new(0, -10.5, 0)
  1064. local all, last = {}, nil
  1065. function scan(p)
  1066. for _, v in pairs(p:GetChildren()) do
  1067. if v:IsA("BasePart") then
  1068. if last then
  1069. local w = Instance.new("Weld")
  1070. w.Part0, w.Part1 = last, v
  1071. w.C0 = v.CFrame:toObjectSpace(last.CFrame):inverse()
  1072. w.Parent = last
  1073. end
  1074. table.insert(all, v)
  1075. last = v
  1076. end
  1077. scan(v)
  1078. end
  1079. end
  1080. scan(LaserMinigun)
  1081. scan(MiniDroid)
  1082. for _, v in pairs(all) do
  1083. v.Anchored = false
  1084. v.CanCollide = false
  1085. end
  1086. MiniDroid.Parent = C
  1087. LaserMinigun.Parent = C
  1088. Main:Destroy()
  1089. Effects = {}
  1090. Rapid = false
  1091. local Player = game.Players.localPlayer
  1092. local Character = Player.Character
  1093. local Humanoid = Character.Humanoid
  1094. local mouse = Player:GetMouse()
  1095. local LeftArm = Character["Left Arm"]
  1096. local RightArm = Character["Right Arm"]
  1097. local LeftLeg = Character["Left Leg"]
  1098. local RightLeg = Character["Right Leg"]
  1099. local Head = Character.Head
  1100. local Torso = Character.Torso
  1101. local cam = game.Workspace.CurrentCamera
  1102. local RootPart = Character.HumanoidRootPart
  1103. local RootJoint = RootPart.RootJoint
  1104. local equipped = false
  1105. local attack = false
  1106. local Anim = "Idle"
  1107. local idle = 0
  1108. local attacktype = 1
  1109. local Torsovelocity = RootPart.Velocity * Vector3.new(1, 0, 1).magnitude
  1110. local velocity = RootPart.Velocity.y
  1111. local sine = 0
  1112. local change = 1
  1113. local grabbed = false
  1114. local cn = CFrame.new
  1115. local mr = math.rad
  1116. local angles = CFrame.Angles
  1117. local ud = UDim2.new
  1118. local c3 = Color3.new
  1119. local slashDamage = 15
  1120. local dir = {
  1121. w = 0,
  1122. s = 0,
  1123. a = 0,
  1124. d = 0
  1125. }
  1126. local dir2 = {
  1127. w = 0,
  1128. s = 0,
  1129. a = 0,
  1130. d = 0
  1131. }
  1132. killcom = true
  1133. trans = 1
  1134. sentrymode = false
  1135. sentrywait = false
  1136. local LightMod = Instance.new("Model", Character)
  1137. local NeckCF = cn(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  1138. Humanoid.Animator:Destroy()
  1139. npcanim = Character.Animate:Clone()
  1140. ultwait = false
  1141. Character.Animate:Destroy()
  1142. local makeLightning = function(Par, Start, End, Width, Length, RandomScale, ArcScale, Num1)
  1143. local oldParts = {}
  1144. for _, v in pairs(Par:GetChildren()) do
  1145. v.CFrame = CFrame.new(500000, 500000, 500000)
  1146. table.insert(oldParts, v)
  1147. end
  1148. local Distance = (Start - End).Magnitude
  1149. local ArcScale = ArcScale or 1
  1150. local RandomScale = RandomScale or 0
  1151. local Last = Start
  1152. local IterNum = 0
  1153. while Par.Parent do
  1154. IterNum = IterNum + 1
  1155. local New
  1156. if Length == (Last - End).Magnitude then
  1157. New = CFrame.new(End)
  1158. else
  1159. if (End - Last).Magnitude < Length * 2 then
  1160. RandomScale = RandomScale * 0.1
  1161. ArcScale = ArcScale * 0.5
  1162. end
  1163. local Direct = CFrame.new(Last, End)
  1164. New = Direct * CFrame.Angles(math.rad(math.random(-RandomScale / 4, RandomScale * ArcScale)), math.rad(math.random(-RandomScale, RandomScale)), math.rad(math.random(-RandomScale, RandomScale)))
  1165. New = New * CFrame.new(0, 0, -Length)
  1166. end
  1167. local Trail
  1168. if oldParts[IterNum] then
  1169. Trail = oldParts[IterNum]
  1170. if Num1 % 2 ~= 0 or not BrickColor.new("Really red") then
  1171. end
  1172. Trail.BrickColor = BrickColor.new("Really red")
  1173. Trail.Size = Vector3.new(Width, Last - New.p.Magnitude, Width)
  1174. Trail.CFrame = CFrame.new(New.p, Last) * CFrame.Angles(math.rad(90), 0, 0) * CFrame.new(0, -Last - New.p.Magnitude / 2, 0)
  1175. oldParts[IterNum] = nil
  1176. game:GetService("Debris"):AddItem(Trail, 0.03)
  1177. else
  1178. Trail = Instance.new("Part")
  1179. Trail.Name = "Part"
  1180. Trail.FormFactor = "Custom"
  1181. if Num1 % 2 ~= 0 or not BrickColor.new("Really red") then
  1182. end
  1183. Trail.BrickColor = BrickColor.new("Really red")
  1184. Trail.Transparency = 0
  1185. Trail.Anchored = true
  1186. Trail.CanCollide = false
  1187. Trail.Locked = true
  1188. Trail.BackSurface = "SmoothNoOutlines"
  1189. Trail.BottomSurface = "SmoothNoOutlines"
  1190. Trail.FrontSurface = "SmoothNoOutlines"
  1191. Trail.LeftSurface = "SmoothNoOutlines"
  1192. Trail.RightSurface = "SmoothNoOutlines"
  1193. Trail.TopSurface = "SmoothNoOutlines"
  1194. Trail.Material = "Neon"
  1195. Trail.Size = Vector3.new(Width, (Last - New.p).Magnitude, Width)
  1196. Trail.CFrame = CFrame.new(New.p, Last) * CFrame.Angles(math.rad(90), 0, 0) * CFrame.new(0, -Last - New.p.Magnitude / 2, 0)
  1197. Trail.Parent = Par
  1198. game:GetService("Debris"):AddItem(Trail, 0.03)
  1199. end
  1200. Last = New.p
  1201. if Last - End.Magnitude < 1 then
  1202. break
  1203. end
  1204. end
  1205. for _, v in pairs(oldParts) do
  1206. v:Destroy()
  1207. end
  1208. end
  1209. local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  1210. local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0)
  1211. local LHCF = CFrame.fromEulerAnglesXYZ(0, -1.6, 0)
  1212. RSH, LSH = nil, nil
  1213. DW = Instance.new("Weld")
  1214. DW.Name = "GuW"
  1215. DW.Part0 = Torso
  1216. DW.C0 = cn(0, 50, 0)
  1217. DW.C1 = cn(0, 0, 0)
  1218. DW.Part1 = miniHandle
  1219. DW.Parent = Torso
  1220. GuW = Instance.new("Weld")
  1221. GuW.Name = "GuW"
  1222. GuW.Part0 = RightArm
  1223. GuW.C0 = cn(0, -1, -1)
  1224. GuW.C1 = cn(0, 0, 0)
  1225. GuW.Part1 = Handle
  1226. GuW.Parent = RightArm
  1227. RW = Instance.new("Weld")
  1228. LW = Instance.new("Weld")
  1229. RH = Torso["Right Hip"]
  1230. LH = Torso["Left Hip"]
  1231. RSH = Torso["Right Shoulder"]
  1232. LSH = Torso["Left Shoulder"]
  1233. RSH.Parent = nil
  1234. LSH.Parent = nil
  1235. RW.Name = "RW"
  1236. RW.Part0 = Torso
  1237. RW.C0 = cn(1.5, 0.5, 0)
  1238. RW.C1 = cn(0, 0.5, 0)
  1239. RW.Part1 = RightArm
  1240. RW.Parent = Torso
  1241. LW.Name = "LW"
  1242. LW.Part0 = Torso
  1243. LW.C0 = cn(-1.5, 0.5, 0)
  1244. LW.C1 = cn(0, 0.5, 0)
  1245. LW.Part1 = LeftArm
  1246. LW.Parent = Torso
  1247. function clerp(a, b, t)
  1248. local qa = {
  1249. QuaternionFromCFrame(a)
  1250. }
  1251. local qb = {
  1252. QuaternionFromCFrame(b)
  1253. }
  1254. local ax, ay, az = a.x, a.y, a.z
  1255. local bx, by, bz = b.x, b.y, b.z
  1256. local _t = 1 - t
  1257. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  1258. end
  1259. function QuaternionFromCFrame(cf)
  1260. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  1261. local trace = m00 + m11 + m22
  1262. if trace > 0 then
  1263. local s = math.sqrt(1 + trace)
  1264. local recip = 0.5 / s
  1265. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  1266. else
  1267. local i = 0
  1268. if m00 < m11 then
  1269. i = 1
  1270. end
  1271. if m22 > (i == 0 and m00 or m11) then
  1272. i = 2
  1273. end
  1274. if i == 0 then
  1275. local s = math.sqrt(m00 - m11 - m22 + 1)
  1276. local recip = 0.5 / s
  1277. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  1278. elseif i == 1 then
  1279. local s = math.sqrt(m11 - m22 - m00 + 1)
  1280. local recip = 0.5 / s
  1281. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  1282. elseif i == 2 then
  1283. local s = math.sqrt(m22 - m00 - m11 + 1)
  1284. local recip = 0.5 / s
  1285. return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  1286. end
  1287. end
  1288. end
  1289. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  1290. local xs, ys, zs = x + x, y + y, z + z
  1291. local wx, wy, wz = w * xs, w * ys, w * zs
  1292. local xx = x * xs
  1293. local xy = x * ys
  1294. local xz = x * zs
  1295. local yy = y * ys
  1296. local yz = y * zs
  1297. local zz = z * zs
  1298. return CFrame.new(px, py, pz, 1 - (yy + zz), xy - wz, xz + wy, xy + wz, 1 - (xx + zz), yz - wx, xz - wy, yz + wx, 1 - (xx + yy))
  1299. end
  1300. function QuaternionSlerp(a, b, t)
  1301. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  1302. local startInterp, finishInterp
  1303. if cosTheta >= 1.0E-4 then
  1304. if 1 - cosTheta > 1.0E-4 then
  1305. local theta = math.acos(cosTheta)
  1306. local invSinTheta = 1 / math.sin(theta)
  1307. startInterp = math.sin((1 - t) * theta) * invSinTheta
  1308. finishInterp = math.sin(t * theta) * invSinTheta
  1309. else
  1310. startInterp = 1 - t
  1311. finishInterp = t
  1312. end
  1313. elseif 1 + cosTheta > 1.0E-4 then
  1314. local theta = math.acos(-cosTheta)
  1315. local invSinTheta = 1 / math.sin(theta)
  1316. startInterp = math.sin((t - 1) * theta) * invSinTheta
  1317. finishInterp = math.sin(t * theta) * invSinTheta
  1318. else
  1319. startInterp = t - 1
  1320. finishInterp = t
  1321. end
  1322. return a[1] * startInterp + b[1] * finishInterp, a[2] * startInterp + b[2] * finishInterp, a[3] * startInterp + b[3] * finishInterp, a[4] * startInterp + b[4] * finishInterp
  1323. end
  1324. function swait(num)
  1325. if num == 0 or num == nil then
  1326. game:service("RunService").RenderStepped:wait(0)
  1327. else
  1328. for i = 0, num do
  1329. game:service("RunService").RenderStepped:wait(0)
  1330. end
  1331. end
  1332. end
  1333. local RbxUtility = LoadLibrary("RbxUtility")
  1334. local Create = RbxUtility.Create
  1335. function RemoveOutlines(part)
  1336. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  1337. end
  1338. function CreatePart(FormFactor, Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  1339. local Part = Create("Part")({
  1340. formFactor = FormFactor,
  1341. Parent = Parent,
  1342. Reflectance = Reflectance,
  1343. Transparency = Transparency,
  1344. CanCollide = false,
  1345. Locked = true,
  1346. BrickColor = BrickColor.new(tostring(BColor)),
  1347. Name = Name,
  1348. Size = Size,
  1349. Material = Material
  1350. })
  1351. RemoveOutlines(Part)
  1352. return Part
  1353. end
  1354. function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  1355. local Msh = Create(Mesh)({
  1356. Parent = Part,
  1357. Offset = OffSet,
  1358. Scale = Scale
  1359. })
  1360. if Mesh == "SpecialMesh" then
  1361. Msh.MeshType = MeshType
  1362. Msh.MeshId = MeshId
  1363. end
  1364. return Msh
  1365. end
  1366. function CreateWeld(Parent, Part0, Part1, C0, C1)
  1367. local Weld = Create("Weld")({
  1368. Parent = Parent,
  1369. Part0 = Part0,
  1370. Part1 = Part1,
  1371. C0 = C0,
  1372. C1 = C1
  1373. })
  1374. return Weld
  1375. end
  1376. function rayCast(Position, Direction, Range, Ignore)
  1377. return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  1378. end
  1379. function CreateSound(id, par, vol, pit)
  1380. coroutine.resume(coroutine.create(function()
  1381. local sou = Instance.new("Sound", par or workspace)
  1382. sou.Volume = vol
  1383. sou.Pitch = pit or 1
  1384. sou.SoundId = id
  1385. wait()
  1386. sou:play()
  1387. game:GetService("Debris"):AddItem(sou, 6)
  1388. end))
  1389. end
  1390. local function getclosest(obj, distance)
  1391. local last, lastx = distance + 1, nil
  1392. for i, v in pairs(workspace:GetChildren()) do
  1393. if v:IsA("Model") and v ~= Character and v:findFirstChild("Humanoid") and v:findFirstChild("Torso") and v:findFirstChild("Humanoid").Health > 0 then
  1394. local t = v.Torso
  1395. local dist = t.Position - obj.Position.magnitude
  1396. if distance >= dist and last > dist then
  1397. last = dist
  1398. lastx = v
  1399. end
  1400. end
  1401. end
  1402. return lastx
  1403. end
  1404. function BlockEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
  1405. local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  1406. prt.Anchored = true
  1407. prt.CFrame = cframe
  1408. local msh = CreateMesh("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1409. game:GetService("Debris"):AddItem(prt, 10)
  1410. if Type == 1 or Type == nil then
  1411. table.insert(Effects, {
  1412. prt,
  1413. "Block1",
  1414. delay,
  1415. x3,
  1416. y3,
  1417. z3,
  1418. msh
  1419. })
  1420. elseif Type == 2 then
  1421. table.insert(Effects, {
  1422. prt,
  1423. "Block2",
  1424. delay,
  1425. x3,
  1426. y3,
  1427. z3,
  1428. msh
  1429. })
  1430. end
  1431. end
  1432. function SphereEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1433. local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  1434. prt.Anchored = true
  1435. prt.CFrame = cframe
  1436. local msh = CreateMesh("SpecialMesh", prt, "Sphere", "nil", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1437. game:GetService("Debris"):AddItem(prt, 10)
  1438. table.insert(Effects, {
  1439. prt,
  1440. "Cylinder",
  1441. delay,
  1442. x3,
  1443. y3,
  1444. z3,
  1445. msh
  1446. })
  1447. end
  1448. function RingEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1449. local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  1450. prt.Anchored = true
  1451. prt.CFrame = cframe * CFrame.new(x1, y1, z1)
  1452. local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "3270017", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1453. game:GetService("Debris"):AddItem(prt, 10)
  1454. table.insert(Effects, {
  1455. prt,
  1456. "Cylinder",
  1457. delay,
  1458. x3,
  1459. y3,
  1460. z3,
  1461. msh
  1462. })
  1463. end
  1464. function CylinderEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1465. local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  1466. prt.Anchored = true
  1467. prt.CFrame = cframe
  1468. local msh = CreateMesh("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1469. game:GetService("Debris"):AddItem(prt, 10)
  1470. table.insert(Effects, {
  1471. prt,
  1472. "Cylinder",
  1473. delay,
  1474. x3,
  1475. y3,
  1476. z3,
  1477. msh
  1478. })
  1479. end
  1480. function WaveEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1481. local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  1482. prt.Anchored = true
  1483. prt.CFrame = cframe
  1484. local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "20329976", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1485. game:GetService("Debris"):AddItem(prt, 10)
  1486. table.insert(Effects, {
  1487. prt,
  1488. "Cylinder",
  1489. delay,
  1490. x3,
  1491. y3,
  1492. z3,
  1493. msh
  1494. })
  1495. end
  1496. function SpecialEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1497. local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  1498. prt.Anchored = true
  1499. prt.CFrame = cframe
  1500. local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "24388358", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1501. game:GetService("Debris"):AddItem(prt, 10)
  1502. table.insert(Effects, {
  1503. prt,
  1504. "Cylinder",
  1505. delay,
  1506. x3,
  1507. y3,
  1508. z3,
  1509. msh
  1510. })
  1511. end
  1512. function BreakEffect(brickcolor, cframe, x1, y1, z1)
  1513. local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  1514. prt.Anchored = true
  1515. prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1516. local msh = CreateMesh("SpecialMesh", prt, "Sphere", "nil", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1517. local num = math.random(10, 50) / 1000
  1518. game:GetService("Debris"):AddItem(prt, 10)
  1519. table.insert(Effects, {
  1520. prt,
  1521. "Shatter",
  1522. num,
  1523. prt.CFrame,
  1524. math.random() - math.random(),
  1525. 0,
  1526. math.random(50, 100) / 100
  1527. })
  1528. end
  1529. for i = 0, 1, 0.05 do
  1530. swait()
  1531. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.1)
  1532. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(5), math.rad(0), math.rad(0)), 0.1)
  1533. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -0.1) * angles(math.rad(5), math.rad(0), math.rad(5)), 0.1)
  1534. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(-10)), 0.3)
  1535. if Torsovelocity == 2 then
  1536. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-50 * math.cos(sine / 4)), math.rad(0), math.rad(4 * math.cos(sine / 4))), 0.2)
  1537. RH.C0 = clerp(RH.C0, cn(1, -1 + 0.1 * math.cos(sine / 5), 0) * RHCF * angles(math.rad(-2), math.rad(0), math.rad(30 * math.cos(sine / 4))), 0.3)
  1538. LH.C0 = clerp(LH.C0, cn(-1, -1 + 0.1 * math.cos(sine / 5), 0) * LHCF * angles(math.rad(-2), math.rad(0), math.rad(30 * math.cos(sine / 4))), 0.3)
  1539. elseif Torsovelocity == 1 then
  1540. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -0.1) * angles(math.rad(5), math.rad(0), math.rad(5)), 0.1)
  1541. RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-2), math.rad(5), math.rad(0)), 0.1)
  1542. LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(-2), math.rad(5), math.rad(0)), 0.1)
  1543. end
  1544. end
  1545. attack = false
  1546. game:GetService("RunService").Stepped:connect(function()
  1547. Torsovelocity = RootPart.Velocity * Vector3.new(1, 0, 1).magnitude
  1548. velocity = RootPart.Velocity.y
  1549. sine = sine + change
  1550. local hit, pos = rayCast(RootPart.Position, CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0)).lookVector, 4, Character)
  1551. if equipped == true or equipped == false then
  1552. if 1 < RootPart.Velocity.y and hit == nil then
  1553. Anim = "Jump"
  1554. if attack == false then
  1555. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(-5), math.rad(0), math.rad(0)), 0.1)
  1556. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(10), math.rad(0), math.rad(0)), 0.1)
  1557. RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.5 - -0.1 * math.cos(sine / 25), 0) * angles(math.rad(25), math.rad(0), math.rad(5 + 3 * math.cos(sine / 25))), 0.1)
  1558. LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.5 + -0.1 * math.cos(sine / 25), 0) * angles(math.rad(15 + 3 * math.cos(sine / 25)), math.rad(0), math.rad(-25 + 3 * math.cos(sine / 25))), 0.1)
  1559. RH.C0 = clerp(RH.C0, cn(1, -0.9, -0.3) * RHCF * angles(math.rad(3), math.rad(0), math.rad(0)), 0.1)
  1560. LH.C0 = clerp(LH.C0, cn(-1, -0.7, -0.5) * LHCF * angles(math.rad(-3), math.rad(0), math.rad(0)), 0.1)
  1561. GuW.C0 = clerp(GuW.C0, CFrame.new(-2, -1.3, 0) * angles(math.rad(-90), math.rad(-5), math.rad(90)), 0.1)
  1562. DW.C0 = clerp(DW.C0, CFrame.new(1 + 0.5 * math.cos(sine / 30), 0 + -0.2 * math.cos(sine / 20), 2.5 + 0.5 * math.cos(sine / 40)) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.05)
  1563. end
  1564. elseif 1 > RootPart.Velocity.y and hit == nil then
  1565. Anim = "Fall"
  1566. if attack == false then
  1567. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(0)), 0.1)
  1568. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(10), math.rad(0), math.rad(0)), 0.1)
  1569. RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.5 - -0.1 * math.cos(sine / 25), 0) * angles(math.rad(65), math.rad(0), math.rad(5 + 3 * math.cos(sine / 25))), 0.1)
  1570. LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.5 + -0.1 * math.cos(sine / 25), 0) * angles(math.rad(55 + 3 * math.cos(sine / 25)), math.rad(0), math.rad(-25 + 3 * math.cos(sine / 25))), 0.1)
  1571. RH.C0 = clerp(RH.C0, cn(1, -1, -0.3) * RHCF * angles(math.rad(-5), math.rad(0), math.rad(0)), 0.1)
  1572. LH.C0 = clerp(LH.C0, cn(-1, -0.8, -0.3) * LHCF * angles(math.rad(-5), math.rad(0), math.rad(0)), 0.1)
  1573. GuW.C0 = clerp(GuW.C0, CFrame.new(-2, -1.3, 0) * angles(math.rad(-90), math.rad(-5), math.rad(90)), 0.1)
  1574. DW.C0 = clerp(DW.C0, CFrame.new(1 + 0.5 * math.cos(sine / 30), 8 + -0.2 * math.cos(sine / 20), 2.5 + 0.5 * math.cos(sine / 40)) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.05)
  1575. end
  1576. elseif Torsovelocity == 1 and hit ~= nil then
  1577. Anim = "Idle"
  1578. if attack == false then
  1579. change = 1
  1580. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -0.1 + 0.1 * math.cos(sine / 25)) * angles(math.rad(0), math.rad(0), math.rad(5)), 0.1)
  1581. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(5 - 2 * math.cos(sine / 25)), math.rad(0), math.rad(-5)), 0.1)
  1582. RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.5 - -0.1 * math.cos(sine / 25), 0) * angles(math.rad(25), math.rad(0), math.rad(5 + 3 * math.cos(sine / 25))), 0.1)
  1583. LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.5 + -0.1 * math.cos(sine / 25), 0) * angles(math.rad(15 + 3 * math.cos(sine / 25)), math.rad(0), math.rad(-25 + 3 * math.cos(sine / 25))), 0.1)
  1584. RH.C0 = clerp(RH.C0, cn(1, -0.9 - 0.1 * math.cos(sine / 25), 0) * RHCF * angles(math.rad(-2 + 1 * math.cos(sine / 25)), math.rad(-5), math.rad(0 + 2 * math.cos(sine / 25))), 0.1)
  1585. LH.C0 = clerp(LH.C0, cn(-1, -0.9 - 0.1 * math.cos(sine / 25), 0) * LHCF * angles(math.rad(-2 + 1 * math.cos(sine / 25)), math.rad(-5), math.rad(0 + 2 * math.cos(sine / 25))), 0.1)
  1586. GuW.C0 = clerp(GuW.C0, CFrame.new(-2, -1.3, 0) * angles(math.rad(-90), math.rad(-5), math.rad(90)), 0.1)
  1587. DW.C0 = clerp(DW.C0, CFrame.new(1 + 0.5 * math.cos(sine / 30), 3 + -0.2 * math.cos(sine / 20), 2.5 + 0.5 * math.cos(sine / 40)) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.05)
  1588. end
  1589. elseif Torsovelocity == 1 and hit ~= nil then
  1590. Anim = "Walk"
  1591. if attack == false then
  1592. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -0.05 + 0.1 * math.cos(sine / 3)) * angles(math.rad(5), math.rad(0) + RootPart.RotVelocity.Y / 30, math.rad(-45 + 5 * math.cos(sine / 5))), 0.2)
  1593. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(5), math.rad(5), math.rad(45 + -5 * math.cos(sine / 5)) + RootPart.RotVelocity.Y / 12), 0.2)
  1594. RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.5 - -0.1 * math.cos(sine / 4), 0) * angles(math.rad(25), math.rad(0), math.rad(5 + 3 * math.cos(sine / 4))), 0.3)
  1595. LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.5 + -0.1 * math.cos(sine / 4), 0) * angles(math.rad(15 + 3 * math.cos(sine / 4)), math.rad(0), math.rad(-25 + 3 * math.cos(sine / 4))), 0.2)
  1596. RH.C0 = clerp(RH.C0, cn(0.9, -0.9 + -0.1 * math.cos(sine / 4), -0.6) * RHCF * angles(math.rad(-2), math.rad(50), math.rad(50 * math.cos(sine / 4))), 0.3)
  1597. LH.C0 = clerp(LH.C0, cn(-0.9, -0.9 + 0.1 * math.cos(sine / 4), 0.5) * LHCF * angles(math.rad(-2), math.rad(50), math.rad(50 * math.cos(sine / 4))), 0.3)
  1598. GuW.C0 = clerp(GuW.C0, CFrame.new(-2, -1.3, 0) * angles(math.rad(-90), math.rad(0), math.rad(90)), 0.1)
  1599. DW.C0 = clerp(DW.C0, CFrame.new(3 + 0.1 * math.cos(sine / 5), 3.05 - 0.1 * math.cos(sine / 3), 2.5 + 0.5 * math.cos(sine / 6)) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.05)
  1600. end
  1601. end
  1602. end
  1603. if 0 < #Effects then
  1604. for e = 1, #Effects do
  1605. if Effects[e] ~= nil then
  1606. local Thing = Effects[e]
  1607. if Thing ~= nil then
  1608. local Part = Thing[1]
  1609. local Mode = Thing[2]
  1610. local Delay = Thing[3]
  1611. local IncX = Thing[4]
  1612. local IncY = Thing[5]
  1613. local IncZ = Thing[6]
  1614. if 1 >= Thing[1].Transparency then
  1615. if Thing[2] == "Block1" then
  1616. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1617. local Mesh = Thing[1].Mesh
  1618. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1619. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1620. elseif Thing[2] == "Block2" then
  1621. Thing[1].CFrame = Thing[1].CFrame
  1622. local Mesh = Thing[7]
  1623. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1624. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1625. elseif Thing[2] == "Cylinder" then
  1626. local Mesh = Thing[1].Mesh
  1627. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1628. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1629. elseif Thing[2] == "Blood" then
  1630. local Mesh = Thing[7]
  1631. Thing[1].CFrame = Thing[1].CFrame * Vector3.new(0, 0.5, 0)
  1632. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1633. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1634. elseif Thing[2] == "Elec" then
  1635. local Mesh = Thing[1].Mesh
  1636. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9])
  1637. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1638. elseif Thing[2] == "Disappear" then
  1639. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1640. elseif Thing[2] == "Shatter" then
  1641. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1642. Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0)
  1643. Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0)
  1644. Thing[6] = Thing[6] + Thing[5]
  1645. end
  1646. else
  1647. Part.Parent = nil
  1648. table.remove(Effects, e)
  1649. end
  1650. end
  1651. end
  1652. end
  1653. end
  1654. end)
  1655. function RemoveOutlines(part)
  1656. part.TopSurface = 10
  1657. end
  1658. function CreatePart(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  1659. local Part = Create("Part")({
  1660. Parent = Parent,
  1661. Reflectance = Reflectance,
  1662. Transparency = Transparency,
  1663. CanCollide = false,
  1664. Locked = true,
  1665. BrickColor = BrickColor.new(tostring(BColor)),
  1666. Name = Name,
  1667. Size = Size,
  1668. Material = Material
  1669. })
  1670. RemoveOutlines(Part)
  1671. return Part
  1672. end
  1673. function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  1674. local Msh = Create(Mesh)({
  1675. Parent = Part,
  1676. Offset = OffSet,
  1677. Scale = Scale
  1678. })
  1679. if Mesh == "SpecialMesh" then
  1680. Msh.MeshType = MeshType
  1681. Msh.MeshId = MeshId
  1682. end
  1683. return Msh
  1684. end
  1685. function CreateWeld(Parent, Part0, Part1, C0, C1)
  1686. local Weld = Create("Weld")({
  1687. Parent = Parent,
  1688. Part0 = Part0,
  1689. Part1 = Part1,
  1690. C0 = C0,
  1691. C1 = C1
  1692. })
  1693. return Weld
  1694. end
  1695. CFuncs = {
  1696. Part = {
  1697. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  1698. local Part = Create("Part")({
  1699. Parent = Parent,
  1700. Reflectance = Reflectance,
  1701. Transparency = Transparency,
  1702. CanCollide = false,
  1703. Locked = true,
  1704. BrickColor = BrickColor.new(tostring(BColor)),
  1705. Name = Name,
  1706. Size = Size,
  1707. Material = Material
  1708. })
  1709. RemoveOutlines(Part)
  1710. return Part
  1711. end
  1712. },
  1713. Mesh = {
  1714. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  1715. local Msh = Create(Mesh)({
  1716. Parent = Part,
  1717. Offset = OffSet,
  1718. Scale = Scale
  1719. })
  1720. if Mesh == "SpecialMesh" then
  1721. Msh.MeshType = MeshType
  1722. Msh.MeshId = MeshId
  1723. end
  1724. return Msh
  1725. end
  1726. },
  1727. Mesh = {
  1728. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  1729. local Msh = Create(Mesh)({
  1730. Parent = Part,
  1731. Offset = OffSet,
  1732. Scale = Scale
  1733. })
  1734. if Mesh == "SpecialMesh" then
  1735. Msh.MeshType = MeshType
  1736. Msh.MeshId = MeshId
  1737. end
  1738. return Msh
  1739. end
  1740. },
  1741. Weld = {
  1742. Create = function(Parent, Part0, Part1, C0, C1)
  1743. local Weld = Create("Weld")({
  1744. Parent = Parent,
  1745. Part0 = Part0,
  1746. Part1 = Part1,
  1747. C0 = C0,
  1748. C1 = C1
  1749. })
  1750. return Weld
  1751. end
  1752. },
  1753. Sound = {
  1754. Create = function(id, par, vol, pit)
  1755. coroutine.resume(coroutine.create(function()
  1756. local S = Create("Sound")({
  1757. Volume = vol,
  1758. Pitch = pit or 1,
  1759. SoundId = id,
  1760. Parent = par or workspace
  1761. })
  1762. wait()
  1763. S:play()
  1764. game:GetService("Debris"):AddItem(S, 6)
  1765. end))
  1766. end
  1767. },
  1768. articleEmitter = {
  1769. Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  1770. local fp = Create("ParticleEmitter")({
  1771. Parent = Parent,
  1772. Color = ColorSequence.new(Color1, Color2),
  1773. LightEmission = LightEmission,
  1774. Size = Size,
  1775. Texture = Texture,
  1776. Transparency = Transparency,
  1777. ZOffset = ZOffset,
  1778. Acceleration = Accel,
  1779. Drag = Drag,
  1780. LockedToPart = LockedToPart,
  1781. VelocityInheritance = VelocityInheritance,
  1782. EmissionDirection = EmissionDirection,
  1783. Enabled = Enabled,
  1784. Lifetime = LifeTime,
  1785. Rate = Rate,
  1786. Rotation = Rotation,
  1787. RotSpeed = RotSpeed,
  1788. Speed = Speed,
  1789. VelocitySpread = VelocitySpread
  1790. })
  1791. return fp
  1792. end
  1793. }
  1794. }
  1795. function Damagefunc(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  1796. if hit.Parent == nil then
  1797. return
  1798. end
  1799. local h = hit.Parent:FindFirstChild("Humanoid")
  1800. for _, v in pairs(hit.Parent:children()) do
  1801. if v:IsA("Humanoid") then
  1802. h = v
  1803. end
  1804. end
  1805. if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("HumanoidRootPart") ~= nil then
  1806. if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then
  1807. return
  1808. end
  1809. local c = Create("ObjectValue")({
  1810. Name = "creator",
  1811. Value = game:service("Players").LocalPlayer,
  1812. Parent = h
  1813. })
  1814. game:GetService("Debris"):AddItem(c, 0.5)
  1815. if HitSound ~= nil and HitPitch ~= nil then
  1816. CreateSound(HitSound, hit, 1, HitPitch)
  1817. end
  1818. local Damage = math.random(minim, maxim)
  1819. local blocked = false
  1820. local block = hit.Parent:findFirstChild("Block")
  1821. if block ~= nil and block.className == "IntValue" and block.Value > 0 then
  1822. blocked = true
  1823. block.Value = block.Value - 1
  1824. print(block.Value)
  1825. end
  1826. if blocked == false then
  1827. h.Health = h.Health - Damage
  1828. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  1829. else
  1830. h.Health = h.Health - Damage / 2
  1831. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  1832. end
  1833. if Type == "Knockdown" then
  1834. local hum = hit.Parent.Humanoid
  1835. hum.PlatformStand = true
  1836. coroutine.resume(coroutine.create(function(HHumanoid)
  1837. swait(1)
  1838. HHumanoid.PlatformStand = false
  1839. end), hum)
  1840. local angle = hit.Position - Property.Position + Vector3.new(0, 0, 0).unit
  1841. local bodvol = Create("BodyVelocity")({
  1842. velocity = angle * knockback,
  1843. P = 5000,
  1844. maxForce = Vector3.new(8000, 8000, 8000),
  1845. Parent = hit
  1846. })
  1847. local rl = Create("BodyAngularVelocity")({
  1848. P = 3000,
  1849. maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
  1850. angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
  1851. Parent = hit
  1852. })
  1853. game:GetService("Debris"):AddItem(bodvol, 0.5)
  1854. game:GetService("Debris"):AddItem(rl, 0.5)
  1855. elseif Type == "Normal" then
  1856. local vp = Create("BodyVelocity")({
  1857. P = 500,
  1858. maxForce = Vector3.new(math.huge, 0, math.huge),
  1859. velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05
  1860. })
  1861. if knockback > 0 then
  1862. vp.Parent = hit.Parent.HumanoidRootPart
  1863. end
  1864. game:GetService("Debris"):AddItem(vp, 0.5)
  1865. elseif Type == "Up" then
  1866. local bodyVelocity = Create("BodyVelocity")({
  1867. velocity = Vector3.new(0, 20, 0),
  1868. P = 5000,
  1869. maxForce = Vector3.new(8000, 8000, 8000),
  1870. Parent = hit
  1871. })
  1872. game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
  1873. local bodyVelocity = Create("BodyVelocity")({
  1874. velocity = Vector3.new(0, 20, 0),
  1875. P = 5000,
  1876. maxForce = Vector3.new(8000, 8000, 8000),
  1877. Parent = hit
  1878. })
  1879. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  1880. elseif Type == "Snare" then
  1881. local angle = hit.Position - Property.Position + Vector3.new(0, 0, 0).unit
  1882. local bp = Create("BodyPosition")({
  1883. P = 200,
  1884. D = 100,
  1885. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1886. position = hit.Parent.HumanoidRootPart.Position + Vector3.new(0, -5, 0),
  1887. Parent = hit.Parent.HumanoidRootPart
  1888. })
  1889. local rl2 = Create("BodyAngularVelocity")({
  1890. P = 3000,
  1891. maxTorque = Vector3.new(500, 500, 500) * 10,
  1892. angularvelocity = Vector3.new(math.random(-15, 15), math.random(0, 0), math.random(-15, 15)),
  1893. Parent = hit
  1894. })
  1895. game:GetService("Debris"):AddItem(rl2, 0.01)
  1896. game:GetService("Debris"):AddItem(bp, 0.1)
  1897. hit.Parent.Humanoid.PlatformStand = true
  1898. wait(0.1)
  1899. hit.Parent.Humanoid.PlatformStand = false
  1900. elseif Type == "Freeze" then
  1901. local BodPos = Create("BodyPosition")({
  1902. P = 50000,
  1903. D = 1000,
  1904. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1905. position = hit.Parent.HumanoidRootPart.Position,
  1906. Parent = hit.Parent.HumanoidRootPart
  1907. })
  1908. local BodGy = Create("BodyGyro")({
  1909. maxTorque = Vector3.new(400000, 400000, 400000) * math.huge,
  1910. P = 20000,
  1911. Parent = hit.Parent.HumanoidRootPart,
  1912. cframe = hit.Parent.HumanoidRootPart.CFrame
  1913. })
  1914. hit.Parent.HumanoidRootPart.Anchored = true
  1915. coroutine.resume(coroutine.create(function(Part)
  1916. swait(1.5)
  1917. Part.Anchored = false
  1918. end), hit.Parent.HumanoidRootPart)
  1919. game:GetService("Debris"):AddItem(BodPos, 3)
  1920. game:GetService("Debris"):AddItem(BodGy, 3)
  1921. end
  1922. local debounce = Create("BoolValue")({
  1923. Name = "DebounceHit",
  1924. Parent = hit.Parent,
  1925. Value = true
  1926. })
  1927. game:GetService("Debris"):AddItem(debounce, Delay)
  1928. c = Instance.new("ObjectValue")
  1929. c.Name = "creator"
  1930. c.Value = Player
  1931. c.Parent = h
  1932. game:GetService("Debris"):AddItem(c, 0.5)
  1933. end
  1934. end
  1935. function ShowDamage(Pos, Text, Time, Color)
  1936. local Rate = 0.033333333333333
  1937. if not Pos then
  1938. local Pos = Vector3.new(0, 0, 0)
  1939. end
  1940. local Text = Text or ""
  1941. local Time = Time or 2
  1942. if not Color then
  1943. local Color = Color3.new(1, 0, 1)
  1944. end
  1945. local EffectPart = CreatePart(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
  1946. EffectPart.Anchored = true
  1947. local BillboardGui = Create("BillboardGui")({
  1948. Size = UDim2.new(3, 0, 3, 0),
  1949. Adornee = EffectPart,
  1950. Parent = EffectPart
  1951. })
  1952. local TextLabel = Create("TextLabel")({
  1953. BackgroundTransparency = 1,
  1954. Size = UDim2.new(1, 0, 1, 0),
  1955. Text = Text,
  1956. TextColor3 = Color,
  1957. TextScaled = true,
  1958. Font = Enum.Font.ArialBold,
  1959. Parent = BillboardGui
  1960. })
  1961. game.Debris:AddItem(EffectPart, Time + 0.1)
  1962. EffectPart.Parent = game:GetService("Workspace")
  1963. delay(0, function()
  1964. local Frames = Time / Rate
  1965. for Frame = 1, Frames do
  1966. wait(Rate)
  1967. local Percent = Frame / Frames
  1968. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  1969. TextLabel.TextTransparency = Percent
  1970. end
  1971. if EffectPart and EffectPart.Parent then
  1972. EffectPart:Destroy()
  1973. end
  1974. end)
  1975. end
  1976. function MagniDamage(Part, magni, mindam, maxdam, knock, Type)
  1977. for _, c in pairs(workspace:children()) do
  1978. local hum = c:findFirstChild("Humanoid")
  1979. if hum ~= nil then
  1980. local head = c:findFirstChild("HumanoidRootPart")
  1981. if head ~= nil then
  1982. local targ = head.Position - Part.Position
  1983. local mag = targ.magnitude
  1984. if magni >= mag and c.Name ~= Player.Name then
  1985. Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "http://www.roblox.com/asset/?id=231917784", 1)
  1986. end
  1987. end
  1988. end
  1989. end
  1990. end
  1991. function MagniKILL(Part, magni, knock, Type)
  1992. for _, c in pairs(workspace:children()) do
  1993. local hum = c:findFirstChild("Humanoid")
  1994. if hum ~= nil then
  1995. local head = c:findFirstChild("Head")
  1996. if head ~= nil then
  1997. local targ = head.Position - Part.Position
  1998. local mag = targ.magnitude
  1999. if magni >= mag and c.Name ~= Player.Name then
  2000. hum.Health = 0
  2001. end
  2002. end
  2003. end
  2004. end
  2005. end
  2006. EffectModel = Instance.new("Model", Character)
  2007. EffectModel.Name = "Effects"
  2008. Effects = {
  2009. Block = {
  2010. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
  2011. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  2012. prt.Anchored = true
  2013. prt.CFrame = cframe
  2014. local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  2015. game:GetService("Debris"):AddItem(prt, 10)
  2016. if Type == 1 or Type == nil then
  2017. table.insert(Effects, {
  2018. prt,
  2019. "Block1",
  2020. delay,
  2021. x3,
  2022. y3,
  2023. z3,
  2024. msh
  2025. })
  2026. elseif Type == 2 then
  2027. table.insert(Effects, {
  2028. prt,
  2029. "Block2",
  2030. delay,
  2031. x3,
  2032. y3,
  2033. z3,
  2034. msh
  2035. })
  2036. end
  2037. end
  2038. },
  2039. Sphere = {
  2040. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  2041. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  2042. prt.Anchored = true
  2043. prt.CFrame = cframe
  2044. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  2045. game:GetService("Debris"):AddItem(prt, 10)
  2046. table.insert(Effects, {
  2047. prt,
  2048. "Cylinder",
  2049. delay,
  2050. x3,
  2051. y3,
  2052. z3,
  2053. msh
  2054. })
  2055. end
  2056. },
  2057. Cylinder = {
  2058. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  2059. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  2060. prt.Anchored = true
  2061. prt.CFrame = cframe
  2062. local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  2063. game:GetService("Debris"):AddItem(prt, 10)
  2064. table.insert(Effects, {
  2065. prt,
  2066. "Cylinder",
  2067. delay,
  2068. x3,
  2069. y3,
  2070. z3,
  2071. msh
  2072. })
  2073. end
  2074. },
  2075. Wave = {
  2076. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  2077. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  2078. prt.Anchored = true
  2079. prt.CFrame = cframe
  2080. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  2081. game:GetService("Debris"):AddItem(prt, 10)
  2082. table.insert(Effects, {
  2083. prt,
  2084. "Cylinder",
  2085. delay,
  2086. x3,
  2087. y3,
  2088. z3,
  2089. msh
  2090. })
  2091. end
  2092. },
  2093. Ring = {
  2094. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  2095. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  2096. prt.Anchored = true
  2097. prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  2098. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://3270017", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  2099. game:GetService("Debris"):AddItem(prt, 10)
  2100. table.insert(Effects, {
  2101. prt,
  2102. "Cylinder",
  2103. delay,
  2104. x3,
  2105. y3,
  2106. z3,
  2107. msh
  2108. })
  2109. end
  2110. },
  2111. Break = {
  2112. Create = function(brickcolor, cframe, x1, y1, z1)
  2113. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  2114. prt.Anchored = true
  2115. prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  2116. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  2117. local num = math.random(10, 50) / 1000
  2118. game:GetService("Debris"):AddItem(prt, 10)
  2119. table.insert(Effects, {
  2120. prt,
  2121. "Shatter",
  2122. num,
  2123. prt.CFrame,
  2124. math.random() - math.random(),
  2125. 0,
  2126. math.random(50, 100) / 100
  2127. })
  2128. end
  2129. }
  2130. }
  2131. function BlockEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
  2132. local prt = CreatePart(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  2133. prt.Anchored = true
  2134. prt.CFrame = cframe
  2135. local msh = CreateMesh("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  2136. game:GetService("Debris"):AddItem(prt, 10)
  2137. if Type == 1 or Type == nil then
  2138. table.insert(Effects, {
  2139. prt,
  2140. "Block1",
  2141. delay,
  2142. x3,
  2143. y3,
  2144. z3,
  2145. msh
  2146. })
  2147. elseif Type == 2 then
  2148. table.insert(Effects, {
  2149. prt,
  2150. "Block2",
  2151. delay,
  2152. x3,
  2153. y3,
  2154. z3,
  2155. msh
  2156. })
  2157. end
  2158. end
  2159. function CreateSound(id, par, vol, pit)
  2160. coroutine.resume(coroutine.create(function()
  2161. local sou = Instance.new("Sound", par or workspace)
  2162. sou.Volume = vol
  2163. sou.Pitch = pit or 1
  2164. sou.SoundId = id
  2165. swait()
  2166. sou:play()
  2167. game:GetService("Debris"):AddItem(sou, 6)
  2168. end))
  2169. end
  2170. function Laser(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  2171. local prt = CreatePart(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  2172. prt.Anchored = true
  2173. prt.CFrame = cframe
  2174. prt.Material = "Neon"
  2175. local msh = CreateMesh("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  2176. game:GetService("Debris"):AddItem(prt, 10)
  2177. coroutine.resume(coroutine.create(function(Part, Mesh)
  2178. for i = 0, 6, delay do
  2179. swait()
  2180. Part.Transparency = i
  2181. Mesh.Scale = Mesh.Scale + Vector3.new(x3, y3, z3)
  2182. end
  2183. Part.Parent = nil
  2184. end), prt, msh)
  2185. end
  2186. function LigLaser(mouse, partt, SpreadAmount)
  2187. local SpreadVectors = Vector3.new(math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount, SpreadAmount))
  2188. local MainPos = partt.Position
  2189. local MainPos2 = mouse + SpreadVectors
  2190. local MouseLook = CFrame.new((MainPos + MainPos2) / 2, MainPos2)
  2191. local speed = 1000
  2192. local num = 1
  2193. coroutine.resume(coroutine.create(function()
  2194. repeat
  2195. swait()
  2196. local hit, pos = rayCast(MainPos, MouseLook.lookVector, speed, RootPart.Parent)
  2197. local mag = MainPos - pos.magnitude
  2198. MainPos = MainPos + MouseLook.lookVector * speed
  2199. num = num - 1
  2200. MouseLook = MouseLook * angles(math.rad(-1), 0, 0)
  2201. if hit ~= nil then
  2202. num = 0
  2203. local refpart = CreatePart(EffectModel, "SmoothPlastic", 0, 1, BrickColor.new("Really black"), "Effect", Vector3.new())
  2204. refpart.Anchored = true
  2205. refpart.CFrame = CFrame.new(pos)
  2206. game:GetService("Debris"):AddItem(refpart, 2)
  2207. end
  2208. if num <= 0 then
  2209. local refpart = CreatePart(EffectModel, "SmoothPlastic", 0, 1, BrickColor.new("Really black"), "Effect", Vector3.new())
  2210. refpart.Anchored = true
  2211. refpart.CFrame = CFrame.new(pos)
  2212. if hit ~= nil then
  2213. for i = 0, 5 do
  2214. makeLightning(LightMod, partt.Position, refpart.Position, 0.17, 4, 30, 1, 10)
  2215. CreateSound("http://www.roblox.com/asset/?id=514867425", refpart, 1, 1)
  2216. BlockEffect(BrickColor.new("Really red"), refpart.CFrame, 1, 1, 1, 4, 4, 4, 0.2)
  2217. BlockEffect(BrickColor.new("Really red"), refpart.CFrame, 1, 1, 1, 4, 4, 4, 0.2)
  2218. MagniDamage(refpart, 3, 0.05, 0.2, 6, "Normal")
  2219. swait()
  2220. end
  2221. end
  2222. game:GetService("Debris"):AddItem(refpart, 0)
  2223. end
  2224. until num <= 0
  2225. end))
  2226. end
  2227. function bigLigLaser(mouse, partt, SpreadAmount)
  2228. local SpreadVectors = Vector3.new(math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount, SpreadAmount))
  2229. local MainPos = partt.Position
  2230. local MainPos2 = mouse + SpreadVectors
  2231. local MouseLook = CFrame.new((MainPos + MainPos2) / 2, MainPos2)
  2232. local speed = 1000
  2233. local num = 1
  2234. coroutine.resume(coroutine.create(function()
  2235. repeat
  2236. swait()
  2237. local hit, pos = rayCast(MainPos, MouseLook.lookVector, speed, RootPart.Parent)
  2238. local mag = (MainPos - pos).magnitude
  2239. MainPos = MainPos + MouseLook.lookVector * speed
  2240. num = num - 1
  2241. MouseLook = MouseLook * angles(math.rad(-1), 0, 0)
  2242. if hit ~= nil then
  2243. num = 0
  2244. local refpart = CreatePart(EffectModel, "SmoothPlastic", 0, 1, BrickColor.new("Really black"), "Effect", Vector3.new())
  2245. refpart.Anchored = true
  2246. refpart.CFrame = CFrame.new(pos)
  2247. game:GetService("Debris"):AddItem(refpart, 2)
  2248. end
  2249. if num <= 0 then
  2250. local refpart = CreatePart(EffectModel, "SmoothPlastic", 0, 1, BrickColor.new("Really black"), "Effect", Vector3.new())
  2251. refpart.Anchored = true
  2252. refpart.CFrame = CFrame.new(pos)
  2253. if hit ~= nil then
  2254. for i = 0, 1 do
  2255. makeLightning(LightMod, partt.Position, refpart.Position, 0.3, 4, 20, 1, 10)
  2256. CreateSound("http://www.roblox.com/asset/?id=514867425", refpart, 1, 1)
  2257. BlockEffect(BrickColor.new("Really red"), refpart.CFrame, 1, 1, 1, 7, 7, 7, 0.2)
  2258. BlockEffect(BrickColor.new("Really red"), refpart.CFrame, 1, 1, 1, 7, 7, 7, 0.2)
  2259. MagniDamage(refpart, 3, 5, 10, 8, "Snare")
  2260. swait()
  2261. end
  2262. end
  2263. game:GetService("Debris"):AddItem(refpart, 0)
  2264. end
  2265. until num <= 0
  2266. end))
  2267. end
  2268. function shoottraildd(mouse, partt, SpreadAmount)
  2269. local SpreadVectors = Vector3.new(math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount, SpreadAmount))
  2270. local MainPos = partt.Position
  2271. local MainPos2 = mouse + SpreadVectors
  2272. local MouseLook = CFrame.new((MainPos + MainPos2) / 2, MainPos2)
  2273. local speed = 1000
  2274. local num = 1
  2275. coroutine.resume(coroutine.create(function()
  2276. repeat
  2277. swait()
  2278. local hit, pos = rayCast(MainPos, MouseLook.lookVector, speed, RootPart.Parent)
  2279. local mag = (MainPos - pos).magnitude
  2280. Laser(BrickColor.new("Really red"), CFrame.new((MainPos + pos) / 2, pos) * angles(1.57, 0, 0), 1, mag * (speed / (speed / 2)), 1, -0.195, 0, -0.195, 0.15)
  2281. MainPos = MainPos + MouseLook.lookVector * speed
  2282. num = num - 1
  2283. MouseLook = MouseLook * angles(math.rad(-1), 0, 0)
  2284. if hit ~= nil then
  2285. num = 0
  2286. local refpart = CreatePart(EffectModel, "SmoothPlastic", 0, 1, BrickColor.new("Really black"), "Effect", Vector3.new())
  2287. refpart.Anchored = true
  2288. refpart.CFrame = CFrame.new(pos)
  2289. game:GetService("Debris"):AddItem(refpart, 2)
  2290. end
  2291. if num <= 0 then
  2292. local refpart = CreatePart(EffectModel, "SmoothPlastic", 0, 1, BrickColor.new("Really black"), "Effect", Vector3.new())
  2293. refpart.Anchored = true
  2294. refpart.CFrame = CFrame.new(pos)
  2295. if hit ~= nil then
  2296. CreateSound("http://www.roblox.com/asset/?id=514867425", refpart, 1, 1)
  2297. BlockEffect(BrickColor.new("Really red"), refpart.CFrame, 1, 1, 1, 4, 4, 4, 0.1)
  2298. BlockEffect(BrickColor.new("Really red"), refpart.CFrame, 1, 1, 1, 4, 4, 4, 0.1)
  2299. MagniDamage(refpart, 3, 10, 15, 0, "Normal")
  2300. end
  2301. game:GetService("Debris"):AddItem(refpart, 0)
  2302. end
  2303. until num <= 0
  2304. end))
  2305. end
  2306. function shoottraildd2(mouse, partt, SpreadAmount)
  2307. local SpreadVectors = Vector3.new(math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount, SpreadAmount))
  2308. local MainPos = partt.Position
  2309. local MainPos2 = mouse + SpreadVectors
  2310. local MouseLook = CFrame.new((MainPos + MainPos2) / 2, MainPos2)
  2311. local speed = 1000
  2312. local num = 1
  2313. coroutine.resume(coroutine.create(function()
  2314. repeat
  2315. swait()
  2316. local hit, pos = rayCast(MainPos, MouseLook.lookVector, speed, RootPart.Parent)
  2317. local mag = MainPos - pos.magnitude
  2318. Laser(BrickColor.new("Really red"), CFrame.new((MainPos + pos) / 2, pos) * angles(1.57, 0, 0), 1, mag * (speed / (speed / 2)), 1, -0.5, 0, -0.5, 0.5)
  2319. MainPos = MainPos + MouseLook.lookVector * speed
  2320. num = num - 1
  2321. MouseLook = MouseLook * angles(math.rad(-1), 0, 0)
  2322. if hit ~= nil then
  2323. num = 0
  2324. local refpart = CreatePart(EffectModel, "SmoothPlastic", 0, 1, BrickColor.new("Really black"), "Effect", Vector3.new())
  2325. refpart.Anchored = true
  2326. refpart.CFrame = CFrame.new(pos)
  2327. game:GetService("Debris"):AddItem(refpart, 2)
  2328. end
  2329. if num <= 0 then
  2330. local refpart = CreatePart(EffectModel, "SmoothPlastic", 0, 1, BrickColor.new("Really black"), "Effect", Vector3.new())
  2331. refpart.Anchored = true
  2332. refpart.CFrame = CFrame.new(pos)
  2333. if hit ~= nil then
  2334. CreateSound("http://www.roblox.com/asset/?id=514867425", refpart, 1, 1)
  2335. BlockEffect(BrickColor.new("Really red"), refpart.CFrame, 1, 1, 1, 4, 4, 4, 0.1)
  2336. BlockEffect(BrickColor.new("Really red"), refpart.CFrame, 1, 1, 1, 4, 4, 4, 0.1)
  2337. MagniDamage(refpart, 3, 20, 40, 0, "Snare")
  2338. end
  2339. game:GetService("Debris"):AddItem(refpart, 0)
  2340. end
  2341. until num <= 0
  2342. end))
  2343. end
  2344. function idleanim2()
  2345. for i = 0, 1, 0.1 do
  2346. swait()
  2347. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -1) * angles(math.rad(0), math.rad(0), math.rad(10)), 0.2)
  2348. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0 + 0.7 * math.cos(sine / 25)), math.rad(0), math.rad(-10)), 0.2)
  2349. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0 - 0.01 * math.cos(sine / 25)), math.rad(0 + 0.1 * math.cos(sine / 25))), 0.2)
  2350. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0 + 1 * math.cos(sine / 25)), math.rad(0), math.rad(0 - 1 * math.cos(sine / 25))), 0.2)
  2351. RH.C0 = clerp(RH.C0, cn(1, -0.7 - 0 * math.cos(sine / 25), -0.3) * RHCF * angles(math.rad(-2 + 0 * math.cos(sine / 25)), math.rad(0), math.rad(50 + 1.1 * math.cos(sine / 25))), 0.2)
  2352. LH.C0 = clerp(LH.C0, cn(-1, -0.6 - 0 * math.cos(sine / 25), -0.3) * LHCF * angles(math.rad(-2 + 0 * math.cos(sine / 25)), math.rad(0), math.rad(-40 + 1.1 * math.cos(sine / 25))), 0.2)
  2353. GuW.C0 = clerp(GuW.C0, CFrame.new(-1.4, -1.5, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.1)
  2354. DW.C0 = clerp(DW.C0, CFrame.new(3.5 + 0.5 * math.cos(sine / 30), 3 + -0.2 * math.cos(sine / 20), 2.5 + 0.5 * math.cos(sine / 40)) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.2)
  2355. end
  2356. end
  2357. function MinShotAttackAnim1()
  2358. for i = 0, 1, 0.3 do
  2359. Torso.CFrame = CFrame.new(Torso.Position, Vector3.new(mouse.hit.p.x, Torso.Position.y, mouse.hit.p.z))
  2360. swait()
  2361. if Torsovelocity == 1 then
  2362. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -0.05 + 0.1 * math.cos(sine / 3)) * angles(math.rad(5), math.rad(0), math.rad(-50 - 5 * math.cos(sine / 5))), 0.2)
  2363. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-3), math.rad(0), math.rad(50 + 5 * math.cos(sine / 5))), 0.2)
  2364. RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.5, 0) * angles(math.rad(10), math.rad(-40 - 0.01 * math.cos(sine / 25)), math.rad(0 + 0.1 * math.cos(sine / 25))), 0.2)
  2365. LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.4, -0.4) * angles(math.rad(85 + 1 * math.cos(sine / 25)), math.rad(15), math.rad(-10 - 1 * math.cos(sine / 25))), 0.2)
  2366. RH.C0 = clerp(RH.C0, cn(0.9, -0.9 + -0.1 * math.cos(sine / 4), -0.6) * RHCF * angles(math.rad(-2), math.rad(50) + RootPart.RotVelocity.Y / 70, math.rad(50 * math.cos(sine / 4) + RootPart.RotVelocity.Y / 10)), 0.3)
  2367. LH.C0 = clerp(LH.C0, cn(-0.9, -0.9 + 0.1 * math.cos(sine / 4), 0.5) * LHCF * angles(math.rad(-2), math.rad(50) + RootPart.RotVelocity.Y / 70, math.rad(50 * math.cos(sine / 4))), 0.3)
  2368. GuW.C0 = clerp(GuW.C0, CFrame.new(-2, -1.3, 0) * angles(math.rad(-90), math.rad(0), math.rad(90)), 0.1)
  2369. DW.C0 = clerp(DW.C0, CFrame.new(3.5 + 0.5 * math.cos(sine / 30), 3 + -0.2 * math.cos(sine / 20), 2.5 + 0.5 * math.cos(sine / 40)) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.2)
  2370. elseif Torsovelocity == 1 then
  2371. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-50)), 0.2)
  2372. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(50)), 0.2)
  2373. RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.5, 0) * angles(math.rad(10), math.rad(-40 - 0.01 * math.cos(sine / 25)), math.rad(0 + 0.1 * math.cos(sine / 25))), 0.2)
  2374. LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.4, -0.4) * angles(math.rad(85 + 1 * math.cos(sine / 25)), math.rad(15), math.rad(-10 - 1 * math.cos(sine / 25))), 0.2)
  2375. RH.C0 = clerp(RH.C0, cn(0.9, -0.9 - 0 * math.cos(sine / 25), -0.6) * RHCF * angles(math.rad(-2 + 0 * math.cos(sine / 25)), math.rad(50), math.rad(10 + 0 * math.cos(sine / 25))), 0.2)
  2376. LH.C0 = clerp(LH.C0, cn(-0.9, -0.9 - 0 * math.cos(sine / 25), 0.5) * LHCF * angles(math.rad(-2 + 0 * math.cos(sine / 25)), math.rad(50), math.rad(10 + 0 * math.cos(sine / 25))), 0.2)
  2377. GuW.C0 = clerp(GuW.C0, CFrame.new(-2, -1.3, 0) * angles(math.rad(-90), math.rad(0), math.rad(90)), 0.1)
  2378. DW.C0 = clerp(DW.C0, CFrame.new(3.5 + 0.5 * math.cos(sine / 30), 3 + -0.2 * math.cos(sine / 20), 2.5 + 0.5 * math.cos(sine / 40)) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.2)
  2379. end
  2380. end
  2381. end
  2382. function ShotAttackAnim1()
  2383. for i = 0, 1, 0.3 do
  2384. swait()
  2385. if Torsovelocity == 1 then
  2386. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -0.05 + 0.1 * math.cos(sine / 3)) * angles(math.rad(5), math.rad(0) + RootPart.RotVelocity.Y / 30, math.rad(-50 - 5 * math.cos(sine / 5))), 0.2)
  2387. 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 / 12), 0.2)
  2388. RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.5, 0) * angles(math.rad(10), math.rad(-40 - 0.01 * math.cos(sine / 25)), math.rad(0 + 0.1 * math.cos(sine / 25))), 0.2)
  2389. LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.4, -0.4) * angles(math.rad(85 + 1 * math.cos(sine / 25)), math.rad(15), math.rad(-10 - 1 * math.cos(sine / 25))), 0.2)
  2390. RH.C0 = clerp(RH.C0, cn(0.9, -0.9 + -0.1 * math.cos(sine / 4), -0.6) * RHCF * angles(math.rad(-2), math.rad(50), math.rad(50 * math.cos(sine / 4))), 0.3)
  2391. LH.C0 = clerp(LH.C0, cn(-0.9, -0.9 + 0.1 * math.cos(sine / 4), 0.5) * LHCF * angles(math.rad(-2), math.rad(50), math.rad(50 * math.cos(sine / 4))), 0.3)
  2392. GuW.C0 = clerp(GuW.C0, CFrame.new(-2, -1.3, 0) * angles(math.rad(-90), math.rad(0), math.rad(90)), 0.1)
  2393. DW.C0 = clerp(DW.C0, CFrame.new(3.5 + 0.5 * math.cos(sine / 30), 3 + -0.2 * math.cos(sine / 20), 2.5 + 0.5 * math.cos(sine / 40)) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.2)
  2394. elseif Torsovelocity == 1 then
  2395. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-50)), 0.2)
  2396. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(50)), 0.2)
  2397. RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.5, 0) * angles(math.rad(10), math.rad(-40 - 0.01 * math.cos(sine / 25)), math.rad(0 + 0.1 * math.cos(sine / 25))), 0.2)
  2398. LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.4, -0.4) * angles(math.rad(85 + 1 * math.cos(sine / 25)), math.rad(15), math.rad(-10 - 1 * math.cos(sine / 25))), 0.2)
  2399. RH.C0 = clerp(RH.C0, cn(0.9, -0.9 - 0 * math.cos(sine / 25), -0.6) * RHCF * angles(math.rad(-2 + 0 * math.cos(sine / 25)), math.rad(50), math.rad(10 + 0 * math.cos(sine / 25))), 0.2)
  2400. LH.C0 = clerp(LH.C0, cn(-0.9, -0.9 - 0 * math.cos(sine / 25), 0.5) * LHCF * angles(math.rad(-2 + 0 * math.cos(sine / 25)), math.rad(50), math.rad(10 + 0 * math.cos(sine / 25))), 0.2)
  2401. GuW.C0 = clerp(GuW.C0, CFrame.new(-2, -1.3, 0) * angles(math.rad(-90), math.rad(0), math.rad(90)), 0.1)
  2402. DW.C0 = clerp(DW.C0, CFrame.new(3.5 + 0.5 * math.cos(sine / 30), 3 + -0.2 * math.cos(sine / 20), 2.5 + 0.5 * math.cos(sine / 40)) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.2)
  2403. end
  2404. end
  2405. end
  2406. function ShotAttackAnim2()
  2407. for i = 0, 2, 0.1 do
  2408. swait()
  2409. if Torsovelocity == 2 then
  2410. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -0.05 + 0.1 * math.cos(sine / 3)) * angles(math.rad(5), math.rad(0) + RootPart.RotVelocity.Y / 30, math.rad(-45 + 5 * math.cos(sine / 5))), 0.2)
  2411. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(5), math.rad(5), math.rad(45 + -5 * math.cos(sine / 5)) + RootPart.RotVelocity.Y / 9), 0.2)
  2412. RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.5 - -0.1 * math.cos(sine / 4), 0) * angles(math.rad(25), math.rad(0), math.rad(5 + 3 * math.cos(sine / 4))), 0.3)
  2413. LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.5 + -0.1 * math.cos(sine / 4), 0) * angles(math.rad(15 + 3 * math.cos(sine / 4)), math.rad(0), math.rad(-25 + 3 * math.cos(sine / 4))), 0.2)
  2414. RH.C0 = clerp(RH.C0, cn(0.9, -0.9 + -0.1 * math.cos(sine / 4), -0.6) * RHCF * angles(math.rad(-2), math.rad(50), math.rad(50 * math.cos(sine / 4))), 0.3)
  2415. LH.C0 = clerp(LH.C0, cn(-0.9, -0.9 + 0.1 * math.cos(sine / 4), 0.5) * LHCF * angles(math.rad(-2), math.rad(50), math.rad(50 * math.cos(sine / 4))), 0.3)
  2416. GuW.C0 = clerp(GuW.C0, CFrame.new(-2, -1.3, 0) * angles(math.rad(-90), math.rad(0), math.rad(90)), 0.1)
  2417. DW.C0 = clerp(DW.C0, CFrame.new(4 + 0.1 * math.cos(sine / 5), 7.05 - 0.1 * math.cos(sine / 3), 2.5 + 0.1 * math.cos(sine / 6)) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.05)
  2418. elseif Torsovelocity == 1 then
  2419. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -0.1 + 0.1 * math.cos(sine / 25)) * angles(math.rad(0), math.rad(0), math.rad(5)), 0.1)
  2420. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(5 - 2 * math.cos(sine / 25)), math.rad(0), math.rad(-5)), 0.1)
  2421. RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.5 - -0.1 * math.cos(sine / 25), 0) * angles(math.rad(25), math.rad(0), math.rad(5 + 3 * math.cos(sine / 25))), 0.1)
  2422. LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.5 + -0.1 * math.cos(sine / 25), 0) * angles(math.rad(15 + 3 * math.cos(sine / 25)), math.rad(0), math.rad(-25 + 3 * math.cos(sine / 25))), 0.1)
  2423. RH.C0 = clerp(RH.C0, cn(1, -0.9 - 0.1 * math.cos(sine / 25), 0) * RHCF * angles(math.rad(-2 + 1 * math.cos(sine / 25)), math.rad(-5), math.rad(0 + 2 * math.cos(sine / 25))), 0.1)
  2424. LH.C0 = clerp(LH.C0, cn(-1, -0.9 - 0.1 * math.cos(sine / 25), 0) * LHCF * angles(math.rad(-2 + 1 * math.cos(sine / 25)), math.rad(-5), math.rad(0 + 2 * math.cos(sine / 25))), 0.1)
  2425. GuW.C0 = clerp(GuW.C0, CFrame.new(-2, -1.3, 0) * angles(math.rad(-90), math.rad(-5), math.rad(90)), 0.1)
  2426. DW.C0 = clerp(DW.C0, CFrame.new(2 + 0.1 * math.cos(sine / 5), 7 + -0.2 * math.cos(sine / 20), 0 + 0.1 * math.cos(sine / 5)) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.05)
  2427. end
  2428. end
  2429. end
  2430. function ShotAttackAnim3()
  2431. for i = 0, 2, 0.1 do
  2432. swait()
  2433. if Torsovelocity == 2 then
  2434. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 1, -0.05 + 0.1 * math.cos(sine / 3)) * angles(math.rad(5), math.rad(0) + RootPart.RotVelocity.Y / 30, math.rad(-50 - 5 * math.cos(sine / 5))), 0.2)
  2435. 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), 0.2)
  2436. RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.5, 0) * angles(math.rad(60), math.rad(-40 - 0.01 * math.cos(sine / 25)), math.rad(0 + 0.1 * math.cos(sine / 25))), 0.2)
  2437. LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.4, -0.4) * angles(math.rad(125 + 1 * math.cos(sine / 25)), math.rad(15), math.rad(-10 - 1 * math.cos(sine / 25))), 0.2)
  2438. RH.C0 = clerp(RH.C0, cn(0.9, -0.9 + -0.1 * math.cos(sine / 4), -0.6) * RHCF * angles(math.rad(-2), math.rad(50), math.rad(50 * math.cos(sine / 4))), 0.3)
  2439. LH.C0 = clerp(LH.C0, cn(-0.9, -0.9 + 0.1 * math.cos(sine / 4), 0.5) * LHCF * angles(math.rad(-2), math.rad(50), math.rad(50 * math.cos(sine / 4))), 0.3)
  2440. GuW.C0 = clerp(GuW.C0, CFrame.new(-2, -1.3, 0) * angles(math.rad(-90), math.rad(0), math.rad(90)), 0.1)
  2441. DW.C0 = clerp(DW.C0, CFrame.new(3.5 + 0.5 * math.cos(sine / 30), 3 + -0.2 * math.cos(sine / 20), 2.5 + 0.5 * math.cos(sine / 40)) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.2)
  2442. elseif Torsovelocity == 1 then
  2443. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 1, 0) * angles(math.rad(0), math.rad(0), math.rad(-50)), 0.2)
  2444. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(50)), 0.2)
  2445. RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.5, 0) * angles(math.rad(60), math.rad(-40 - 0.01 * math.cos(sine / 25)), math.rad(0 + 0.1 * math.cos(sine / 25))), 0.2)
  2446. LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.4, -0.4) * angles(math.rad(125 + 1 * math.cos(sine / 25)), math.rad(15), math.rad(-10 - 1 * math.cos(sine / 25))), 0.2)
  2447. RH.C0 = clerp(RH.C0, cn(0.9, -0.9 - 0.1 * math.cos(sine / 25), -0.6) * RHCF * angles(math.rad(-2 + 1 * math.cos(sine / 25)), math.rad(50), math.rad(4 + 2 * math.cos(sine / 25))), 0.2)
  2448. LH.C0 = clerp(LH.C0, cn(-0.9, -0.9 - 0.1 * math.cos(sine / 25), 0.5) * LHCF * angles(math.rad(-2 + 1 * math.cos(sine / 25)), math.rad(50), math.rad(-20 + 2 * math.cos(sine / 25))), 0.2)
  2449. GuW.C0 = clerp(GuW.C0, CFrame.new(-2, -1.3, 0) * angles(math.rad(-90), math.rad(0), math.rad(90)), 0.1)
  2450. DW.C0 = clerp(DW.C0, CFrame.new(3.5 + 0.5 * math.cos(sine / 30), 3 + -0.2 * math.cos(sine / 20), 2.5 + 0.5 * math.cos(sine / 40)) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.2)
  2451. end
  2452. end
  2453. for i = 0, 1, 0.4 do
  2454. swait()
  2455. if Torsovelocity == 2 then
  2456. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -0.05 + 0.1 * math.cos(sine / 3)) * angles(math.rad(5), math.rad(0) + RootPart.RotVelocity.Y / 30, math.rad(-50 - 5 * math.cos(sine / 5))), 0.2)
  2457. 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), 0.2)
  2458. RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.5, 0) * angles(math.rad(10), math.rad(-40 - 0.01 * math.cos(sine / 25)), math.rad(0 + 0.1 * math.cos(sine / 25))), 0.1)
  2459. LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.4, -0.4) * angles(math.rad(85 + 1 * math.cos(sine / 25)), math.rad(15), math.rad(-10 - 1 * math.cos(sine / 25))), 0.1)
  2460. RH.C0 = clerp(RH.C0, cn(0.9, -0.9 + -0.1 * math.cos(sine / 4), -0.6) * RHCF * angles(math.rad(-2), math.rad(50), math.rad(50 * math.cos(sine / 4))), 0.3)
  2461. LH.C0 = clerp(LH.C0, cn(-0.9, -0.9 + 0.1 * math.cos(sine / 4), 0.5) * LHCF * angles(math.rad(-2), math.rad(50), math.rad(50 * math.cos(sine / 4))), 0.3)
  2462. GuW.C0 = clerp(GuW.C0, CFrame.new(-2, -1.3, 0) * angles(math.rad(-90), math.rad(0), math.rad(90)), 0.1)
  2463. DW.C0 = clerp(DW.C0, CFrame.new(3.5 + 0.5 * math.cos(sine / 30), 3 + -0.2 * math.cos(sine / 20), 2.5 + 0.5 * math.cos(sine / 40)) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.2)
  2464. elseif Torsovelocity == 1 then
  2465. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-50)), 0.2)
  2466. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(50)), 0.2)
  2467. RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.5, 0) * angles(math.rad(10), math.rad(-40 - 0.01 * math.cos(sine / 25)), math.rad(0 + 0.1 * math.cos(sine / 25))), 0.1)
  2468. LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.4, -0.4) * angles(math.rad(85 + 1 * math.cos(sine / 25)), math.rad(15), math.rad(-10 - 1 * math.cos(sine / 25))), 0.1)
  2469. RH.C0 = clerp(RH.C0, cn(0.9, -0.9 - 0.1 * math.cos(sine / 25), -0.6) * RHCF * angles(math.rad(-2 + 1 * math.cos(sine / 25)), math.rad(50), math.rad(10 + 2 * math.cos(sine / 25))), 0.2)
  2470. LH.C0 = clerp(LH.C0, cn(-0.9, -0.9 - 0.1 * math.cos(sine / 25), 0.5) * LHCF * angles(math.rad(-2 + 1 * math.cos(sine / 25)), math.rad(50), math.rad(10 + 2 * math.cos(sine / 25))), 0.2)
  2471. GuW.C0 = clerp(GuW.C0, CFrame.new(-2, -1.3, 0) * angles(math.rad(-90), math.rad(0), math.rad(90)), 0.1)
  2472. DW.C0 = clerp(DW.C0, CFrame.new(3.5 + 0.5 * math.cos(sine / 30), 3 + -0.2 * math.cos(sine / 20), 2.5 + 0.5 * math.cos(sine / 40)) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.2)
  2473. end
  2474. end
  2475. end
  2476. function holding()
  2477. while Rapid == true and attack == true and sentrymode == false do
  2478. attack = true
  2479. MinShotAttackAnim1()
  2480. BlockEffect(BrickColor.new("Really red"), gun1.CFrame, 1, 1, 1, 2, 2, 2, 0.1)
  2481. CFuncs.Sound.Create("http://www.roblox.com/asset/?id=419268760", RootPart, 1, 1.5)
  2482. shoottraildd(mouse.Hit.p, gun1, 0.55)
  2483. MinShotAttackAnim1()
  2484. BlockEffect(BrickColor.new("Really red"), gun2.CFrame, 1, 1, 1, 2, 2, 2, 0.1)
  2485. CFuncs.Sound.Create("http://www.roblox.com/asset/?id=419268760", RootPart, 1, 1.5)
  2486. shoottraildd(mouse.Hit.p, gun2, 0.55)
  2487. MinShotAttackAnim1()
  2488. BlockEffect(BrickColor.new("Really red"), gun3.CFrame, 1, 1, 1, 2, 2, 2, 0.1)
  2489. CFuncs.Sound.Create("http://www.roblox.com/asset/?id=419268760", RootPart, 1, 1.5)
  2490. shoottraildd(mouse.Hit.p, gun3, 0.55)
  2491. MinShotAttackAnim1()
  2492. BlockEffect(BrickColor.new("Really red"), gun4.CFrame, 1, 1, 1, 2, 2, 2, 0.1)
  2493. CFuncs.Sound.Create("http://www.roblox.com/asset/?id=419268760", RootPart, 1, 1.5)
  2494. shoottraildd(mouse.Hit.p, gun4, 0.55)
  2495. end
  2496. attack = false
  2497. end
  2498. mouse.KeyUp:connect(function(k)
  2499. if k == "z" and Rapid == true then
  2500. CFuncs.Sound.Create("http://www.roblox.com/asset/?id=231107923", RootPart, 1, 2)
  2501. Rapid = false
  2502. Effects.Ring.Create(BrickColor.new("Really red"), gun1.CFrame, 0.1, 0.1, 0.1, 0.1, 0.1, 0, 0.08)
  2503. Effects.Ring.Create(BrickColor.new("Really red"), gun1.CFrame, 0.1, 0.1, 0.1, 0.1, 0.1, 0, 0.1)
  2504. end
  2505. end)
  2506. mouse.KeyDown:connect(function(k)
  2507. if k == "z" and sentrymode == false and attack == false then
  2508. attack = true
  2509. Rapid = true
  2510. CFuncs.Sound.Create("http://www.roblox.com/asset/?id=162611981", RootPart, 1, 1)
  2511. MinShotAttackAnim1()
  2512. MinShotAttackAnim1()
  2513. for i = 0, 10 do
  2514. BlockEffect(BrickColor.new("Really red"), gun1.CFrame, 1, 1, 1, 2, 2, 2, 0.1)
  2515. BlockEffect(BrickColor.new("Really red"), gun2.CFrame, 1, 1, 1, 2, 2, 2, 0.1)
  2516. BlockEffect(BrickColor.new("Really red"), gun3.CFrame, 1, 1, 1, 2, 2, 2, 0.1)
  2517. BlockEffect(BrickColor.new("Really red"), gun4.CFrame, 1, 1, 1, 2, 2, 2, 0.1)
  2518. Effects.Ring.Create(BrickColor.new("Really red"), gun1.CFrame, 2.1, 2.1, 0.1, -0.3, -0.3, 0, 0.07)
  2519. MinShotAttackAnim1()
  2520. end
  2521. holding()
  2522. end
  2523. end)
  2524. mouse.KeyDown:connect(function(k)
  2525. if attack == false and k == "x" and sentrymode == false then
  2526. attack = true
  2527. CFuncs.Sound.Create("http://www.roblox.com/asset/?id=316030607", LaPart, 5, 3)
  2528. for i = 1, 5 do
  2529. BlockEffect(BrickColor.new("Really red"), gun1.CFrame, 0.1, 0.1, 0.1, 1, 1, 1, 0.045)
  2530. BlockEffect(BrickColor.new("Really red"), gun2.CFrame, 0.1, 0.1, 0.1, 1, 1, 1, 0.045)
  2531. BlockEffect(BrickColor.new("Really red"), gun3.CFrame, 0.1, 0.1, 0.1, 1, 1, 1, 0.045)
  2532. BlockEffect(BrickColor.new("Really red"), gun4.CFrame, 0.1, 0.1, 0.1, 1, 1, 1, 0.045)
  2533. ShotAttackAnim1()
  2534. BlockEffect(BrickColor.new("Really red"), gun1.CFrame, 0.1, 0.1, 0.1, 1, 1, 1, 0.045)
  2535. BlockEffect(BrickColor.new("Really red"), gun2.CFrame, 0.1, 0.1, 0.1, 1, 1, 1, 0.045)
  2536. BlockEffect(BrickColor.new("Really red"), gun3.CFrame, 0.1, 0.1, 0.1, 1, 1, 1, 0.045)
  2537. BlockEffect(BrickColor.new("Really red"), gun4.CFrame, 0.1, 0.1, 0.1, 1, 1, 1, 0.045)
  2538. ShotAttackAnim1()
  2539. BlockEffect(BrickColor.new("Really red"), gun1.CFrame, 0.1, 0.1, 0.1, 1, 1, 1, 0.045)
  2540. BlockEffect(BrickColor.new("Really red"), gun2.CFrame, 0.1, 0.1, 0.1, 1, 1, 1, 0.045)
  2541. BlockEffect(BrickColor.new("Really red"), gun3.CFrame, 0.1, 0.1, 0.1, 1, 1, 1, 0.045)
  2542. BlockEffect(BrickColor.new("Really red"), gun4.CFrame, 0.1, 0.1, 0.1, 1, 1, 1, 0.045)
  2543. BlockEffect(BrickColor.new("Really red"), gun1.CFrame, 0, 0, 0, 60, 60, 60, 0.4)
  2544. ShotAttackAnim1()
  2545. end
  2546. CFuncs.Sound.Create("http://www.roblox.com/asset/?id=633129949", LaPart, 10, 1)
  2547. for i = 1, 2 do
  2548. BlockEffect(BrickColor.new("Really red"), gun1.CFrame, 20, 20, 20, 50, 50, 50, 0.12)
  2549. BlockEffect(BrickColor.new("Really red"), gun1.CFrame, 20, 20, 20, 30, 30, 30, 0.09)
  2550. BlockEffect(BrickColor.new("Really red"), gun1.CFrame, 10, 10, 10, 20, 20, 20, 0.06)
  2551. BlockEffect(BrickColor.new("Really black"), gun1.CFrame, 3, 3, 3, 10, 10, 10, 0.045)
  2552. end
  2553. BlockEffect(BrickColor.new("Really black"), gun1.CFrame, 0.1, 0.1, 0.1, 1, 1, 1, 0.045)
  2554. MagniDamage(gun1, 15, 20, 69, 99, "Normal")
  2555. ShotAttackAnim3()
  2556. for i = 1, 2 do
  2557. BlockEffect(BrickColor.new("Really black"), gun1.CFrame, 0.1, 0.1, 0.1, 1, 1, 1, 0.045)
  2558. ShotAttackAnim1()
  2559. BlockEffect(BrickColor.new("Really black"), gun1.CFrame, 0.1, 0.1, 0.1, 1, 1, 1, 0.045)
  2560. ShotAttackAnim1()
  2561. BlockEffect(BrickColor.new("Really black"), gun1.CFrame, 0.1, 0.1, 0.1, 1, 1, 1, 0.045)
  2562. ShotAttackAnim1()
  2563. end
  2564. attack = false
  2565. end
  2566. if k == "r" and attack == false then
  2567. attack = true
  2568. while Torsovelocity == 1 do
  2569. attack = true
  2570. idleanim2()
  2571. end
  2572. attack = false
  2573. end
  2574. if k == "v" and sentrymode == false and attack == false and ultwait == false then
  2575. ultwait = true
  2576. attack = true
  2577. Humanoid.WalkSpeed = 0
  2578. local Sond = Create("Sound")({
  2579. Volume = 1.5,
  2580. Pitch = 1.2,
  2581. SoundId = "http://www.roblox.com/asset/?id=195322948",
  2582. Parent = Character or workspace
  2583. })
  2584. wait()
  2585. Sond:play()
  2586. for i = 0, 1, 0.1 do
  2587. swait()
  2588. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-50)), 0.2)
  2589. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(50)), 0.2)
  2590. RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.5, 0) * angles(math.rad(10), math.rad(-40 - 0.01 * math.cos(sine / 25)), math.rad(0 + 0.1 * math.cos(sine / 25))), 0.2)
  2591. LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.4, -0.4) * angles(math.rad(85 + 1 * math.cos(sine / 25)), math.rad(15), math.rad(-10 - 1 * math.cos(sine / 25))), 0.2)
  2592. RH.C0 = clerp(RH.C0, cn(0.9, -0.9 - 0 * math.cos(sine / 25), -0.6) * RHCF * angles(math.rad(-2 + 0 * math.cos(sine / 25)), math.rad(50), math.rad(10 + 0 * math.cos(sine / 25))), 0.2)
  2593. LH.C0 = clerp(LH.C0, cn(-0.9, -0.9 - 0 * math.cos(sine / 25), 0.5) * LHCF * angles(math.rad(-2 + 0 * math.cos(sine / 25)), math.rad(50), math.rad(10 + 0 * math.cos(sine / 25))), 0.2)
  2594. GuW.C0 = clerp(GuW.C0, CFrame.new(-2, -1.3, 0) * angles(math.rad(-90), math.rad(0), math.rad(90)), 0.1)
  2595. DW.C0 = clerp(DW.C0, CFrame.new(3.5 + 0.5 * math.cos(sine / 30), 3 + -0.2 * math.cos(sine / 20), 2.5 + 0.5 * math.cos(sine / 40)) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.2)
  2596. end
  2597. for i = 0, 2, 0.1 do
  2598. swait()
  2599. Effects.Ring.Create(BrickColor.new("Really red"), LeftArm.CFrame, 0.1, 0.1, 0.1, 1, 1, 0, 0.1)
  2600. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-50)), 0.2)
  2601. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(10), math.rad(0), math.rad(50)), 0.2)
  2602. RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.5, 0) * angles(math.rad(10), math.rad(-40 - 0.01 * math.cos(sine / 25)), math.rad(0 + 0.1 * math.cos(sine / 25))), 0.2)
  2603. LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.4, -0.4) * angles(math.rad(90 + 1 * math.cos(sine / 25)), math.rad(-45), math.rad(-45 - 1 * math.cos(sine / 25))), 0.2)
  2604. RH.C0 = clerp(RH.C0, cn(0.9, -1 - 0 * math.cos(sine / 25), -0.6) * RHCF * angles(math.rad(-2 + 0 * math.cos(sine / 25)), math.rad(50), math.rad(0 + 0 * math.cos(sine / 25))), 0.2)
  2605. LH.C0 = clerp(LH.C0, cn(-0.9, -1 - 0 * math.cos(sine / 25), 0.5) * LHCF * angles(math.rad(-2 + 0 * math.cos(sine / 25)), math.rad(50), math.rad(0 + 0 * math.cos(sine / 25))), 0.2)
  2606. GuW.C0 = clerp(GuW.C0, CFrame.new(0, -1.3, -1) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.1)
  2607. DW.C0 = clerp(DW.C0, CFrame.new(3.5 + 0.5 * math.cos(sine / 30), 3 + -0.2 * math.cos(sine / 20), 2.5 + 0.5 * math.cos(sine / 40)) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.2)
  2608. end
  2609. for i = 0, 58, 0.1 do
  2610. swait()
  2611. Effects.Ring.Create(BrickColor.new("Really red"), LeftArm.CFrame, 0.1, 0.1, 0.1, 0.6, 0.6, 0, 0.08)
  2612. Effects.Ring.Create(BrickColor.new("Really red"), LeftArm.CFrame, 0.1, 0.1, 0.1, 0.6, 0.6, 0, 0.1)
  2613. BlockEffect(BrickColor.new("Really red"), LeftArm.CFrame, 21, 41, 21, -0.5, -0.5, -0.5, 0.1, 2)
  2614. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-50)), 0.2)
  2615. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(10), math.rad(0), math.rad(50)), 0.2)
  2616. RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.5, 0) * angles(math.rad(10), math.rad(-40 - 0.01 * math.cos(sine / 25)), math.rad(0 + 0.1 * math.cos(sine / 25))), 0.1)
  2617. LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.4, -0.4) * angles(math.rad(120 + 1 * math.cos(sine / 25)), math.rad(-45), math.rad(-45 - 1 * math.cos(sine / 25))), 0.1)
  2618. RH.C0 = clerp(RH.C0, cn(0.9, -1 - 0 * math.cos(sine / 25), -0.6) * RHCF * angles(math.rad(-2 + 0 * math.cos(sine / 25)), math.rad(50), math.rad(0 + 0 * math.cos(sine / 25))), 0.1)
  2619. LH.C0 = clerp(LH.C0, cn(-0.9, -1 - 0 * math.cos(sine / 25), 0.5) * LHCF * angles(math.rad(-2 + 0 * math.cos(sine / 25)), math.rad(50), math.rad(0 + 0 * math.cos(sine / 25))), 0.2)
  2620. GuW.C0 = clerp(GuW.C0, CFrame.new(0, -1.3, -1) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.1)
  2621. DW.C0 = clerp(DW.C0, CFrame.new(3.5 + 0.5 * math.cos(sine / 30), 3 + -0.2 * math.cos(sine / 20), 2.5 + 0.5 * math.cos(sine / 40)) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.2)
  2622. end
  2623. BlockEffect(BrickColor.new("Really red"), LeftArm.CFrame, 0, 0, 0, 20, 20, 20, 0.05, 1)
  2624. for i = 0, 55, 0.1 do
  2625. swait()
  2626. Effects.Ring.Create(BrickColor.new("Really red"), LeftArm.CFrame, 0.1, 0.1, 0.1, 1, 1, 0, 0.08)
  2627. Effects.Ring.Create(BrickColor.new("Really red"), LeftArm.CFrame, 0.1, 0.1, 0.1, 1, 1, 0, 0.1)
  2628. Effects.Break.Create(BrickColor.new("Really red"), LeftArm.CFrame, 6, 0.1, 0.1)
  2629. BlockEffect(BrickColor.new("Really red"), LeftArm.CFrame, 21, 41, 21, 0.1, 0.1, 0.1, 0.05, 2)
  2630. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 5) * angles(math.rad(0), math.rad(0), math.rad(-50)), 0.01)
  2631. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(10), math.rad(0), math.rad(50)), 0.2)
  2632. RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.5, 0) * angles(math.rad(10), math.rad(-40 - 0.01 * math.cos(sine / 25)), math.rad(0 + 0.1 * math.cos(sine / 25))), 0.2)
  2633. LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.4, -0.4) * angles(math.rad(120 + 1 * math.cos(sine / 25)), math.rad(0), math.rad(-45 - 1 * math.cos(sine / 25))), 0.2)
  2634. RH.C0 = clerp(RH.C0, cn(0.9, -0.9 - 0.2 * math.cos(sine / 25), -0.6) * RHCF * angles(math.rad(-2 + 0 * math.cos(sine / 25)), math.rad(50), math.rad(0 + 0 * math.cos(sine / 25))), 0.1)
  2635. LH.C0 = clerp(LH.C0, cn(-0.9, -0.7 - 0.2 * math.cos(sine / 25), 0.5) * LHCF * angles(math.rad(-2 + 0 * math.cos(sine / 25)), math.rad(50), math.rad(10 + 0 * math.cos(sine / 25))), 0.2)
  2636. GuW.C0 = clerp(GuW.C0, CFrame.new(0, -1.3, -1) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.1)
  2637. DW.C0 = clerp(DW.C0, CFrame.new(3.5 + 0.5 * math.cos(sine / 30), 3 + -0.2 * math.cos(sine / 20), 2.5 + 0.5 * math.cos(sine / 40)) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.2)
  2638. end
  2639. BlockEffect(BrickColor.new("Really red"), LeftArm.CFrame, 0, 0, 0, 30, 30, 30, 0.05, 1)
  2640. CFuncs.Sound.Create("http://www.roblox.com/asset/?id=260434750", Character, 2, 0.7)
  2641. CFuncs.Sound.Create("http://www.roblox.com/asset/?id=209833293", Character, 2, 2)
  2642. for i = 0, 10, 0.1 do
  2643. swait()
  2644. Effects.Wave.Create(BrickColor.new("Really red"), Torso.CFrame, 0.1, 0.1, 0.1, 0.5, 10000, 0.5, 0.08)
  2645. Effects.Ring.Create(BrickColor.new("Really red"), LeftArm.CFrame, 0.1, 0.1, 0.1, 17, 17, 0, 0.08)
  2646. Effects.Ring.Create(BrickColor.new("Really red"), LeftArm.CFrame, 0.1, 0.1, 0.1, 17, 17, 0, 0.1)
  2647. Effects.Break.Create(BrickColor.new("Really red"), LeftArm.CFrame, 76, 0.1, 0.1)
  2648. BlockEffect(BrickColor.new("Really red"), LeftArm.CFrame, 40, 40, 40, 70, 70, 70, 0.05, 1)
  2649. MagniKILL(Torso, 80, 99, 99999999, 0, "Normal")
  2650. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-50)), 0.2)
  2651. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(10), math.rad(0), math.rad(50)), 0.2)
  2652. RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.5, 0) * angles(math.rad(10), math.rad(-40 - 0.01 * math.cos(sine / 25)), math.rad(0 + 0.1 * math.cos(sine / 25))), 0.2)
  2653. LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.4, -0.4) * angles(math.rad(160 + 1 * math.cos(sine / 25)), math.rad(0), math.rad(0 - 1 * math.cos(sine / 25))), 0.2)
  2654. RH.C0 = clerp(RH.C0, cn(0.9, -1 - 0 * math.cos(sine / 25), -0.6) * RHCF * angles(math.rad(-2 + 0 * math.cos(sine / 25)), math.rad(50), math.rad(0 + 0 * math.cos(sine / 25))), 0.1)
  2655. LH.C0 = clerp(LH.C0, cn(-0.9, -1 - 0 * math.cos(sine / 25), 0.5) * LHCF * angles(math.rad(-2 + 0 * math.cos(sine / 25)), math.rad(50), math.rad(0 + 0 * math.cos(sine / 25))), 0.2)
  2656. GuW.C0 = clerp(GuW.C0, CFrame.new(0, -1.3, -1) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.1)
  2657. DW.C0 = clerp(DW.C0, CFrame.new(3.5 + 0.5 * math.cos(sine / 30), 3 + -0.2 * math.cos(sine / 20), 2.5 + 0.5 * math.cos(sine / 40)) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.2)
  2658. end
  2659. CFuncs.Sound.Create("http://www.roblox.com/asset/?id=260435164", Character, 2, 0.7)
  2660. for i = 0, 1, 0.1 do
  2661. swait()
  2662. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-50)), 0.2)
  2663. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(50)), 0.2)
  2664. RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.5, 0) * angles(math.rad(10), math.rad(-40 - 0.01 * math.cos(sine / 25)), math.rad(0 + 0.1 * math.cos(sine / 25))), 0.2)
  2665. LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.4, -0.4) * angles(math.rad(85 + 1 * math.cos(sine / 25)), math.rad(15), math.rad(-10 - 1 * math.cos(sine / 25))), 0.2)
  2666. RH.C0 = clerp(RH.C0, cn(0.9, -0.9 - 0 * math.cos(sine / 25), -0.6) * RHCF * angles(math.rad(-2 + 0 * math.cos(sine / 25)), math.rad(50), math.rad(10 + 0 * math.cos(sine / 25))), 0.2)
  2667. LH.C0 = clerp(LH.C0, cn(-0.9, -0.9 - 0 * math.cos(sine / 25), 0.5) * LHCF * angles(math.rad(-2 + 0 * math.cos(sine / 25)), math.rad(50), math.rad(10 + 0 * math.cos(sine / 25))), 0.2)
  2668. GuW.C0 = clerp(GuW.C0, CFrame.new(-2, -1.3, 0) * angles(math.rad(-90), math.rad(0), math.rad(90)), 0.1)
  2669. DW.C0 = clerp(DW.C0, CFrame.new(3.5 + 0.5 * math.cos(sine / 30), 3 + -0.2 * math.cos(sine / 20), 2.5 + 0.5 * math.cos(sine / 40)) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.2)
  2670. end
  2671. Humanoid.WalkSpeed = 16
  2672. Sond:Destroy()
  2673. attack = false
  2674. wait(30)
  2675. ultwait = false
  2676. end
  2677. if k == "e" then
  2678. if sentrymode == false then
  2679. if attack == false then
  2680. GlowParticle.Enabled = true
  2681. CFuncs.Sound.Create("http://www.roblox.com/asset/?id=876800936", LaPart, 1.5, 1.5)
  2682. sentrymode = true
  2683. end
  2684. else
  2685. sentrymode = false
  2686. GlowParticle.Enabled = false
  2687. CFuncs.Sound.Create("http://www.roblox.com/asset/?id=231107923", LaPart, 3, 1.5)
  2688. end
  2689. end
  2690. end)
  2691. mouse.Button1Down:connect(function(key)
  2692. if attack == false and sentrymode == false then
  2693. attack = true
  2694. ShotAttackAnim2()
  2695. BlockEffect(BrickColor.new("Really red"), LaPart.CFrame, 0, 0, 0, 6, 6, 6, 0.18)
  2696. BlockEffect(BrickColor.new("Really red"), LaPart.CFrame, 0, 0, 0, 2, 2, 2, 0.12)
  2697. CFuncs.Sound.Create("http://www.roblox.com/asset/?id=410543238", LaPart, 0.5, 1.6)
  2698. bigLigLaser(mouse.Hit.p, LaPart, 0)
  2699. ShotAttackAnim2()
  2700. attack = false
  2701. end
  2702. end)
  2703. Humanoid.MaxHealth = 500
  2704. wait()
  2705. Humanoid.Health = Humanoid.MaxHealth
  2706. local HiveMind = {}
  2707. function HiveMind:new(owner)
  2708. self.__index = self
  2709. local o = {
  2710. mind = {},
  2711. mindState = "FOLLOW",
  2712. victimObject = nil
  2713. }
  2714. o.owner = owner
  2715. setmetatable(o, self)
  2716. return o
  2717. end
  2718. function HiveMind:add(model, humanoid, torso)
  2719. if model and humanoid and torso then
  2720. table.insert(self.mind, {
  2721. model = model,
  2722. humanoid = humanoid,
  2723. torso = torso
  2724. })
  2725. do
  2726. local hiv = self
  2727. local lastJump = 0
  2728. torso.Touched:connect(function(object)
  2729. local hive = false
  2730. if hiv.owner.Character and object:IsDescendantOf(hiv.owner.Character) == false then
  2731. for i = 1, #hiv.mind do
  2732. if object:IsDescendantOf(hiv.mind[i].model) then
  2733. hive = true
  2734. break
  2735. end
  2736. end
  2737. if not hive then
  2738. local hum = object.Parent and object.Parent:FindFirstChild("Humanoid")
  2739. if hum then
  2740. hum:TakeDamage(1)
  2741. end
  2742. elseif time() - lastJump > 2 then
  2743. lastJump = time(0) + math.random() * 1
  2744. humanoid.Jump = true
  2745. end
  2746. end
  2747. end)
  2748. end
  2749. end
  2750. end
  2751. function HiveMind:cleanupHive()
  2752. local i = 1
  2753. while i <= #self.mind do
  2754. if self.mind[i].model:IsDescendantOf(game) == false or self.mind[i].humanoid.Health == 0 then
  2755. table.remove(self.mind, i)
  2756. else
  2757. i = i + 1
  2758. end
  2759. end
  2760. end
  2761. function HiveMind:getOrbitNumberFromUnitNumber(i)
  2762. local circleNumber = 0
  2763. while i > self:getUnitsInOrbit(circleNumber) do
  2764. i = i - self:getUnitsInOrbit(circleNumber)
  2765. circleNumber = circleNumber + 1
  2766. end
  2767. return circleNumber, i
  2768. end
  2769. function HiveMind:getOrbitDiameter(orbitNumber)
  2770. return math.pi * (orbitNumber * 14)
  2771. end
  2772. function HiveMind:getUnitsInOrbit(orbitNumber)
  2773. return math.floor(self:getOrbitDiameter(orbitNumber) / 5)
  2774. end
  2775. function HiveMind:lineup(location)
  2776. for i = 1, #self.mind do
  2777. local row = (i - 1) % 3
  2778. local column = math.floor((i - 1) / 3)
  2779. local xOffset, yOffset
  2780. if row == 0 then
  2781. xOffset = -7
  2782. elseif row == 1 then
  2783. xOffset = 0
  2784. else
  2785. xOffset = 7
  2786. end
  2787. yOffset = column * 7
  2788. local position = location * CFrame.new(xOffset, 0, yOffset)
  2789. self.mind[i].humanoid:MoveTo(position.p, workspace.Base)
  2790. end
  2791. end
  2792. function HiveMind:ownerTorso()
  2793. return self.owner.Character and self.owner.Character:FindFirstChild("Torso")
  2794. end
  2795. function HiveMind:update()
  2796. self:cleanupHive()
  2797. if self.owner.Character then
  2798. local ownerTorso = self.owner.Character:FindFirstChild("Torso")
  2799. if ownerTorso then
  2800. if self.mindState == "FOLLOW" then
  2801. local hiveSpawn = ownerTorso.CFrame * CFrame.new(0, 0, 9)
  2802. self:lineup(hiveSpawn)
  2803. elseif self.mindState == "CIRCLE" then
  2804. self:circle(ownerTorso.Position)
  2805. elseif self.mindState == "ATTACK" then
  2806. self:crowdAttack()
  2807. elseif self.mindState == "Deffend" then
  2808. self:deffend()
  2809. elseif self.mindState == "GOTO" then
  2810. self:pushToTarget()
  2811. end
  2812. end
  2813. end
  2814. end
  2815. local me = game:GetService("Players").LocalPlayer
  2816. local hiveMind = HiveMind:new(me)
  2817. function findNearestTorso(pos, dist2)
  2818. local list = game.Workspace:children()
  2819. local torso
  2820. if dist2 == nil then
  2821. dist2 = 50
  2822. end
  2823. local dist = dist2
  2824. local temp, human, temp2
  2825. for x = 1, #list do
  2826. temp2 = list[x]
  2827. if temp2.className == "Model" and temp2 ~= Character then
  2828. temp = temp2:findFirstChild("HumanoidRootPart")
  2829. human = temp2:findFirstChild("Humanoid")
  2830. if temp ~= nil and human ~= nil and human.Health > 0 and dist > temp.Position - pos.magnitude then
  2831. torso = temp
  2832. dist = temp.Position - pos.magnitude
  2833. end
  2834. else
  2835. end
  2836. end
  2837. return torso
  2838. end
  2839. game:GetService("RunService"):BindToRenderStep("ew", 0, function()
  2840. if sentrymode == true and sonarwait == false then
  2841. sonarwait = true
  2842. CFuncs.Sound.Create("http://www.roblox.com/asset/?id=752527668", LaPart, 2, 0.8)
  2843. wait(1)
  2844. sonarwait = false
  2845. end
  2846. wait()
  2847. if sentrymode == true then
  2848. local target = findNearestTorso(Character.HumanoidRootPart.Position, 30)
  2849. if target ~= nil then
  2850. ShotAttackAnim2()
  2851. if sentrywait == false then
  2852. sentrywait = true
  2853. attack = true
  2854. BlockEffect(BrickColor.new("Really red"), LaPart.CFrame, 0, 0, 0, 6, 6, 6, 0.18)
  2855. BlockEffect(BrickColor.new("Really red"), LaPart.CFrame, 0, 0, 0, 2, 2, 2, 0.12)
  2856. CFuncs.Sound.Create("http://www.roblox.com/asset/?id=260433584", LaPart, 1.5, 0.8)
  2857. LigLaser(target.Position, LaPart, 0)
  2858. wait()
  2859. attack = false
  2860. sentrywait = false
  2861. end
  2862. end
  2863. end
  2864. end)
  2865. sonarwait = false
  2866. FaceIdList = {"117930174"}
  2867. FaceId = FaceIdList[math.random(1, #FaceIdList)]
  2868. local YourName = game.Players.LocalPlayer.Name
  2869. Character = Player.Character
  2870. Heartbeat = Instance.new("BindableEvent")
  2871. Heartbeat.Name = "Heartbeat"
  2872. Heartbeat.Parent = script
  2873. frame = 0.03333333333333333
  2874. tf = 0
  2875. game:GetService("RunService").Heartbeat:connect(function(s, p)
  2876. tf = tf + s
  2877. if tf >= frame then
  2878. for i = 1, math.floor(tf / frame) do
  2879. Heartbeat:Fire()
  2880. end
  2881. tf = tf - frame * math.floor(tf / frame)
  2882. end
  2883. end)
  2884. local nscale = Instance.new("NumberValue")
  2885. nscale.Value = 1
  2886. nscale.Parent = nil
  2887. nscale.Changed:connect(function()
  2888. RightShoulderC0 = CFrame.new(1.5 * nscale.Value, 0.5 * nscale.Value, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  2889. RightShoulderC1 = CFrame.new(0, 0.5 * nscale.Value, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  2890. LeftShoulderC0 = CFrame.new(-1.5 * nscale.Value, 0.5 * nscale.Value, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  2891. LeftShoulderC1 = CFrame.new(0, 0.5 * nscale.Value, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  2892. RightHipC0 = CFrame.new(0.5 * nscale.Value, -1 * nscale.Value, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  2893. RightHipC1 = CFrame.new(0, 1 * nscale.Value, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  2894. LeftHipC0 = CFrame.new(-0.5 * nscale.Value, -1 * nscale.Value, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  2895. LeftHipC1 = CFrame.new(0 * nscale.Value, 1 * nscale.Value, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  2896. RootJointC0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  2897. RootJointC1 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  2898. NeckC0 = CFrame.new(0, 1 * nscale.Value, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  2899. NeckC1 = CFrame.new(0, -0.5 * nscale.Value, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  2900. end)
  2901. function makegloo(paren, co, ci, parto, parti, nam)
  2902. local gloo = Instance.new("Glue")
  2903. gloo.Name = nam
  2904. gloo.C0 = co
  2905. gloo.C1 = ci
  2906. gloo.Part0 = parto
  2907. gloo.Part1 = parti
  2908. gloo.Parent = paren
  2909. end
  2910. function makejoint(paren, co, ci, parto, parti, nam)
  2911. local gloo = Instance.new("Motor6D")
  2912. gloo.Name = nam
  2913. gloo.C0 = co
  2914. gloo.C1 = ci
  2915. gloo.Part0 = parto
  2916. gloo.Part1 = parti
  2917. gloo.Parent = paren
  2918. end
  2919. function maketouchy(parent, limb, cframe)
  2920. local pr = Instance.new("Part")
  2921. pr.Name = "touchy"
  2922. pr.Size = Vector3.new(1 * nscale.Value, 1 * nscale.Value, 1 * nscale.Value)
  2923. pr.Transparency = 1
  2924. pr.CustomPhysicalProperties = PhysicalProperties.new(0.55, 0.3, 0.5)
  2925. pr.CanCollide = true
  2926. pr.Anchored = false
  2927. pr.Parent = parent
  2928. local w = Instance.new("Weld")
  2929. w.Part0 = pr
  2930. w.Part1 = limb
  2931. w.C0 = cframe
  2932. w.Parent = pr
  2933. end
  2934. modz = Instance.new("Model")
  2935. modz.Name = "efx"
  2936. modz.Parent = Character
  2937. RSC0 = CFrame.new(1, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  2938. RSC1 = CFrame.new(-0.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  2939. LSC0 = CFrame.new(-1, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  2940. LSC1 = CFrame.new(0.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  2941. RHC0 = CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  2942. RHC1 = CFrame.new(0.5, 1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  2943. LHC0 = CFrame.new(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  2944. RJC1 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  2945. LHC1 = CFrame.new(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  2946. NC0 = CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  2947. NC1 = CFrame.new(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  2948. RJC0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  2949. local nscale = Instance.new("NumberValue")
  2950. nscale.Value = 1
  2951. nscale.Parent = nil
  2952. RightShoulderC0 = CFrame.new(1.5 * nscale.Value, 0.5 * nscale.Value, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  2953. RightShoulderC1 = CFrame.new(0, 0.5 * nscale.Value, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  2954. LeftShoulderC0 = CFrame.new(-1.5 * nscale.Value, 0.5 * nscale.Value, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  2955. LeftShoulderC1 = CFrame.new(0, 0.5 * nscale.Value, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  2956. RightHipC0 = CFrame.new(0.5 * nscale.Value, -1 * nscale.Value, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  2957. RightHipC1 = CFrame.new(0, 1 * nscale.Value, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  2958. LeftHipC0 = CFrame.new(-0.5 * nscale.Value, -1 * nscale.Value, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  2959. LeftHipC1 = CFrame.new(0 * nscale.Value, 1 * nscale.Value, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  2960. RootJointC0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  2961. RootJointC1 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  2962. NeckC0 = CFrame.new(0, 1 * nscale.Value, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  2963. NeckC1 = CFrame.new(0, -0.5 * nscale.Value, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  2964. sWaiting = false
  2965. wait3 = false
  2966. shotval = 0
  2967. npcname = "" .. Character.Name .. "'s Combine"
  2968. Character.ChildAdded:connect(function(object)
  2969. if object.Name == npcname then
  2970. hiveMind:add(object, object:WaitForChild("Humanoid"), object:WaitForChild("Torso"))
  2971. end
  2972. end)
  2973. game:GetService("RunService").Stepped:connect(function()
  2974. hiveMind:update()
  2975. end)
  2976. function makenoob(cfrem, scalo, rags)
  2977. nscale.Value = scalo
  2978. local md = Instance.new("Model")
  2979. md.Name = "" .. Character.Name .. "'s Combine"
  2980. md.Parent = Character
  2981. CFuncs.Sound.Create("http://www.roblox.com/asset/?id=220230512", md, 1, 1)
  2982. wait(0.5)
  2983. local hu = Instance.new("Humanoid")
  2984. hu.RigType = "R6"
  2985. hu.MaxHealth = 150 * scalo
  2986. hu.Health = 150 * scalo
  2987. hu.Parent = md
  2988. hu.DisplayDistanceType = "Viewer"
  2989. hu.HealthDisplayDistance = 100
  2990. hu.NameDisplayDistance = 100
  2991. hu.NameOcclusion = "EnemyOcclusion"
  2992. local anm = Instance.new("Animator")
  2993. anm.Parent = hu
  2994. local forthisnpcanim = npcanim:Clone()
  2995. forthisnpcanim.Parent = md
  2996. hu.PlatformStand = true
  2997. local light = function(part)
  2998. part.CustomPhysicalProperties = PhysicalProperties.new(0.35, 0.3, 0.5)
  2999. end
  3000. local hd = Instance.new("Part")
  3001. hd.Name = "Head"
  3002. hd.Size = Vector3.new(2 * nscale.Value, 1 * nscale.Value, 1 * nscale.Value)
  3003. hd.TopSurface = "Smooth"
  3004. hd.BottomSurface = "Inlet"
  3005. hd.Locked = true
  3006. hd.BrickColor = BrickColor.new("Pastel brown")
  3007. hd.CanCollide = true
  3008. hd.Anchored = false
  3009. light(hd)
  3010. hd.Parent = md
  3011. local hm = Instance.new("SpecialMesh")
  3012. hm.MeshType = "Head"
  3013. hm.Scale = Vector3.new(1.25, 1.25, 1.25)
  3014. hm.Parent = hd
  3015. shirt = Instance.new("Shirt", md)
  3016. shirt.Name = "Shirt"
  3017. pants = Instance.new("Pants", md)
  3018. pants.Name = "Pants"
  3019. md.Shirt.ShirtTemplate = "rbxassetid://49257392"
  3020. md.Pants.PantsTemplate = "rbxassetid://49257378"
  3021. function loada(anim)
  3022. local loaded = md.Humanoid:LoadAnimation(anim)
  3023. return loaded
  3024. end
  3025. IdleA = New("Animation", md, "Idle", {
  3026. AnimationId = "rbxassetid://243282565"
  3027. })
  3028. IdleAnim = loada(IdleA)
  3029. local hf = Instance.new("Decal")
  3030. FaceId = FaceIdList[math.random(1, #FaceIdList)]
  3031. hf.Texture = "rbxassetid://" .. FaceId
  3032. hf.Face = "Front"
  3033. hf.Parent = hd
  3034. local hrpa = Instance.new("Part")
  3035. hrpa.Name = "HumanoidRootPart"
  3036. hrpa.TopSurface, hrpa.BottomSurface = 0, 0
  3037. hrpa.Size = Vector3.new(2 * nscale.Value, 2 * nscale.Value, 1 * nscale.Value)
  3038. hrpa.Transparency = 1
  3039. hrpa.CanCollide = false
  3040. hrpa.Locked = true
  3041. light(hrpa)
  3042. hrpa.Parent = md
  3043. local tagbomb = Instance.new("BoolValue")
  3044. tagbomb.Name = "tagbomb"
  3045. tagbomb.Value = false
  3046. tagbomb.Parent = hrpa
  3047. local learm = Instance.new("Part")
  3048. learm.Name = "Left Arm"
  3049. learm.BrickColor = BrickColor.new("Pastel brown")
  3050. learm.CanCollide = false
  3051. learm.Locked = true
  3052. learm.Size = Vector3.new(1 * nscale.Value, 2 * nscale.Value, 1 * nscale.Value)
  3053. light(learm)
  3054. learm.Parent = md
  3055. local riarm = Instance.new("Part")
  3056. riarm.Name = "Right Arm"
  3057. riarm.BrickColor = BrickColor.new("Pastel brown")
  3058. riarm.CanCollide = false
  3059. riarm.Locked = true
  3060. light(riarm)
  3061. riarm.Size = Vector3.new(1 * nscale.Value, 2 * nscale.Value, 1 * nscale.Value)
  3062. riarm.Parent = md
  3063. local leleg = Instance.new("Part")
  3064. leleg.Name = "Left Leg"
  3065. leleg.BrickColor = BrickColor.new("Navy blue")
  3066. leleg.CanCollide = false
  3067. leleg.Locked = true
  3068. light(leleg)
  3069. leleg.BottomSurface = 0
  3070. leleg.Size = Vector3.new(1 * nscale.Value, 2 * nscale.Value, 1 * nscale.Value)
  3071. leleg.Parent = md
  3072. local rileg = Instance.new("Part")
  3073. rileg.Name = "Right Leg"
  3074. rileg.BrickColor = BrickColor.new("Navy blue")
  3075. rileg.CanCollide = false
  3076. rileg.Locked = true
  3077. light(rileg)
  3078. rileg.BottomSurface = 0
  3079. rileg.Size = Vector3.new(1 * nscale.Value, 2 * nscale.Value, 1 * nscale.Value)
  3080. rileg.Parent = md
  3081. local tor = Instance.new("Part")
  3082. tor.Name = "Torso"
  3083. tor.BrickColor = BrickColor.new("Really red")
  3084. tor.Locked = true
  3085. light(tor)
  3086. tor.Size = Vector3.new(2 * nscale.Value, 2 * nscale.Value, 1 * nscale.Value)
  3087. tor.LeftSurface, tor.RightSurface = "Weld", "Weld"
  3088. tor.Parent = md
  3089. md.PrimaryPart = hrpa
  3090. md:SetPrimaryPartCFrame(cfrem)
  3091. md:makeJoints()
  3092. makejoint(hrpa, RootJointC0, RootJointC1, hrpa, tor, "RootJoint")
  3093. makejoint(tor, NeckC0, NeckC1, tor, hd, "Neck")
  3094. if rags == true then
  3095. makegloo(tor, RightShoulderC0, RightShoulderC1, tor, riarm, "Right Shoulder")
  3096. makegloo(tor, LeftShoulderC0, LeftShoulderC1, tor, learm, "Left Shoulder")
  3097. makegloo(tor, RightHipC0, RightHipC1, tor, rileg, "Right Hip")
  3098. makegloo(tor, LeftHipC0, LeftHipC1, tor, leleg, "Left Hip")
  3099. maketouchy(riarm, riarm, CFrame.new(0, 0.5 * nscale.Value, 0))
  3100. maketouchy(learm, learm, CFrame.new(0, 0.5 * nscale.Value, 0))
  3101. maketouchy(leleg, leleg, CFrame.new(0, 0.5 * nscale.Value, 0))
  3102. maketouchy(rileg, rileg, CFrame.new(0, 0.5 * nscale.Value, 0))
  3103. elseif rags == false then
  3104. makejoint(tor, RightShoulderC0, RightShoulderC1, tor, riarm, "Right Shoulder")
  3105. makejoint(tor, LeftShoulderC0, LeftShoulderC1, tor, learm, "Left Shoulder")
  3106. makejoint(tor, RightHipC0, RightHipC1, tor, rileg, "Right Hip")
  3107. makejoint(tor, LeftHipC0, LeftHipC1, tor, leleg, "Left Hip")
  3108. hu.PlatformStand = false
  3109. end
  3110. local Solhat = Instance.new("Accessory")
  3111. Solhat.AttachmentPos = Vector3.new(0, 0.3, 0)
  3112. local SHH = Instance.new("Part", Solhat)
  3113. SHH.Name = "Handle"
  3114. SHH.CanCollide = false
  3115. local SHHMesh = Instance.new("SpecialMesh", SHH)
  3116. SHHMesh.Parent = SHH
  3117. SHHMesh.MeshId = "rbxassetid://31152467"
  3118. SHHMesh.TextureId = "rbxassetid://32002857"
  3119. SHHMesh.Scale = Vector3.new(1, 1, 1)
  3120. SHHMesh.VertexColor = Vector3.new(1, 1, 1)
  3121. nscale.Value = 1
  3122. wait()
  3123. Solhat.Parent = md
  3124. Thegun = Instance.new("Part", riarm)
  3125. Thegun.CanCollide = false
  3126. Thegun.Size = Vector3.new(1, 1, 1)
  3127. ThegunW = Instance.new("Weld")
  3128. ThegunW.Name = "GuW"
  3129. ThegunW.Part0 = riarm
  3130. ThegunW.C0 = cn(-0.5, -2.4, -0.4) * angles(0, 0, 3.2)
  3131. ThegunW.C1 = cn(0, 0, 0)
  3132. ThegunW.Part1 = Thegun
  3133. ThegunW.Parent = riarm
  3134. local ThegunMesh = Instance.new("SpecialMesh", Thegun)
  3135. ThegunMesh.Parent = Thegun
  3136. ThegunMesh.MeshId = "rbxassetid://477158943"
  3137. ThegunMesh.TextureId = "rbxassetid://477158949"
  3138. ThegunMesh.Scale = Vector3.new(0.04, 0.035, 0.04)
  3139. ThegunMesh.VertexColor = Vector3.new(0.2, 0, 0)
  3140. Thegun2 = Instance.new("Part", md)
  3141. Thegun2.CanCollide = false
  3142. Thegun2.Size = Vector3.new(0.1, 0.1, 0.1)
  3143. Thegun2.Name = "Shoot"
  3144. ThegunW2 = Instance.new("Weld")
  3145. ThegunW2.Name = "GuW"
  3146. ThegunW2.Part0 = riarm
  3147. ThegunW2.C0 = cn(-0.4, -4.6, -0.45) * angles(0, 0, 0)
  3148. ThegunW2.C1 = cn(0, 0, 0)
  3149. ThegunW2.Part1 = Thegun2
  3150. ThegunW2.Parent = riarm
  3151. BlockEffect(BrickColor.new("Really black"), tor.CFrame, 160, 160, 160, -5, -5, -5, 0.04)
  3152. BlockEffect(BrickColor.new("Really black"), tor.CFrame, 160, 160, 160, -5, -5, -5, 0.04)
  3153. BlockEffect(BrickColor.new("Really red"), tor.CFrame, 160, 160, 160, -14, -14, -14, 0.06)
  3154. BlockEffect(BrickColor.new("Really red"), tor.CFrame, 160, 160, 160, -14, -14, -14, 0.06)
  3155. wait(0.5)
  3156. CFuncs.Sound.Create("http://www.roblox.com/asset/?id=183921414", tor, 1, 1)
  3157. IdleAnim:Play()
  3158. wait(2.5)
  3159. CFuncs.Sound.Create("http://www.roblox.com/asset/?id=183953820", tor, 2, 1)
  3160. game:GetService("RunService"):BindToRenderStep("ew", 0, function()
  3161. if md ~= nil and hu.Health > 0 and sentrymode == false then
  3162. if md ~= nil and hu.Health > 0 and sentrymode == false then
  3163. if killcom == true or sentrymode == true and sWaiting == false then
  3164. CFuncs.Sound.Create("http://www.roblox.com/asset/?id=282061033", Torso, 0.5, 1)
  3165. BlockEffect(BrickColor.new("Really black"), tor.CFrame, 160, 160, 160, -5, -5, -5, 0.04)
  3166. BlockEffect(BrickColor.new("Really black"), tor.CFrame, 160, 160, 160, -5, -5, -5, 0.04)
  3167. BlockEffect(BrickColor.new("Really red"), tor.CFrame, 160, 160, 160, -14, -14, -14, 0.06)
  3168. BlockEffect(BrickColor.new("Really red"), tor.CFrame, 160, 160, 160, -14, -14, -14, 0.06)
  3169. hu.Health = 0
  3170. game:service("Debris"):AddItem(md, 0)
  3171. end
  3172. hu.WalkSpeed = 16.5
  3173. local target2 = findNearestTorso(hrpa.Position, 60)
  3174. if target2 ~= nil then
  3175. hu:MoveTo(target2.Position, target2)
  3176. end
  3177. local target3 = findNearestTorso(hrpa.Position, 45)
  3178. if target3 ~= nil then
  3179. hu.WalkSpeed = 0
  3180. tor.CFrame = CFrame.new(tor.Position, target3.Position) * CFrame.Angles(0, math.rad(0), 0) * CFrame.new(0, 0, dir2.s)
  3181. end
  3182. if target3 ~= nil and wait3 == false and sentrymode == false then
  3183. wait3 = true
  3184. CFuncs.Sound.Create("http://www.roblox.com/asset/?id=419268760", LaPart, 3, 0.7)
  3185. shoottraildd2(target3.Position, Thegun2, 1)
  3186. local PointLight = Instance.new("PointLight", Thegun2)
  3187. PointLight.Color = Color3.new(1, 0, 0)
  3188. PointLight.Brightness = 50
  3189. PointLight.Range = 10
  3190. game:service("Debris"):AddItem(PointLight, 0.02)
  3191. wait(2.2)
  3192. wait3 = false
  3193. end
  3194. end
  3195. for i, v in pairs(Character:GetChildren()) do
  3196. if "" .. Character.Name .. "'s Combine" and hu.Health == 0 and md ~= nil and killcom == false and sWaiting == false then
  3197. CFuncs.Sound.Create("http://www.roblox.com/asset/?id=160622487", Torso, 0.6, 1)
  3198. game:service("Debris"):AddItem(md, 3)
  3199. end
  3200. return md
  3201. end
  3202. end
  3203. end)
  3204. end
  3205. function makecircle(cfrem, scalo)
  3206. local mcir1 = Instance.new("Part")
  3207. mcir1.Anchored = true
  3208. mcir1.CanCollide = false
  3209. mcir1.Size = Vector3.new(0.2, 0.2, 0.2)
  3210. mcir1.Transparency = 1
  3211. mcir1.CFrame = cfrem
  3212. mcir1.Parent = modz
  3213. game.Debris:AddItem(mcir1, 8)
  3214. local d1 = Instance.new("Decal")
  3215. d1.Texture = "rbxassetid://0"
  3216. d1.Face = "Front"
  3217. d1.Parent = mcir1
  3218. local d2 = Instance.new("Decal")
  3219. d2.Texture = "rbxassetid://0"
  3220. d2.Face = "Back"
  3221. d2.Parent = mcir1
  3222. local bme = Instance.new("BlockMesh")
  3223. bme.Parent = mcir1
  3224. for _ = 1, 9 do
  3225. swait()
  3226. bme.Scale = bme.Scale:lerp(Vector3.new(35 * scalo, 35 * scalo, 0), 0.3)
  3227. end
  3228. coroutine.resume(coroutine.create(function()
  3229. swait(15)
  3230. for _ = 1, 12 do
  3231. swait()
  3232. d1.Transparency = d1.Transparency + 0.08
  3233. d2.Transparency = d2.Transparency + 0.08
  3234. end
  3235. mcir1:Destroy()
  3236. end))
  3237. return mcir1
  3238. end
  3239. function spawnnoob(circlecf, noobcf, scalez, ragd)
  3240. local aearae = makecircle(circlecf, scalez)
  3241. local nananb
  3242. nananb = makenoob(aearae.CFrame * noobcf, scalez, false)
  3243. return nananb
  3244. end
  3245. mouse.KeyDown:connect(function(k)
  3246. if k == "c" and attack == false and sentrymode == false then
  3247. if killcom == false then
  3248. killcom = true
  3249. else
  3250. killcom = false
  3251. 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)
  3252. end
  3253. end
  3254. end)
Add Comment
Please, Sign In to add comment