Advertisement
memberhero

Juggernaut with Intro

Jun 5th, 2018
416
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 176.06 KB | None | 0 0
  1. wait(1/60)
  2. script.Name = "Chaos"
  3. local Player = game.Players.LocalPlayer
  4. local Character = Player.Character
  5. local C_Fold = Instance.new("Folder", nil)
  6. script.Parent = C_Fold
  7. if script.ClassName == "LocalScript" or script.ClassName == "Script" then
  8. if game.CreatorId == 0 then
  9. script.Parent = C_Fold
  10. else
  11. local Environment = getfenv(getmetatable(LoadLibrary"RbxUtility".Create).__call)
  12. local oxbox = getfenv() setfenv(1, setmetatable({}, {__index = Environment}))
  13. oxbox.script:Destroy()
  14. C_Fold.Parent = game:GetService("ServerStorage")
  15. end
  16. end
  17. if script ~= true then
  18. C_Fold:Destroy()
  19. else
  20. end
  21. local Effects = { }
  22. local Humanoid = Character.Humanoid
  23. local mouse = Player:GetMouse()
  24. local m = Instance.new('Model', Character)
  25. m.Name = "WeaponModel"
  26. local can = Instance.new('Model', Character)
  27. can.Name = "WeaponModel2"
  28. local g = Instance.new('Model',Character)
  29. local ge = Instance.new('Model',Character)
  30. local LeftArm = Character["Left Arm"]
  31. local RightArm = Character["Right Arm"]
  32. local LeftLeg = Character["Left Leg"]
  33. local RightLeg = Character["Right Leg"]
  34. local Head = Character.Head
  35. local Torso = Character.Torso
  36. local cam = game.Workspace.CurrentCamera
  37. local RootPart = Character.HumanoidRootPart
  38. local RootJoint = RootPart.RootJoint
  39. local equipped = false
  40. local attack = false
  41. local Anim = 'Idle'
  42. local idle = 0
  43. local attacktype = 1
  44. local Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  45. local velocity = RootPart.Velocity.y
  46. local sine = 0
  47. local change = 1
  48. local grabbed = false
  49. local cn = CFrame.new
  50. local mr = math.rad
  51. local angles = CFrame.Angles
  52. local ud = UDim2.new
  53. local c3 = Color3.new
  54. local minigun = false
  55. local railcannon=false
  56. Humanoid.Animator.Parent = nil
  57. Character.Animate.Parent = nil
  58. local omega=false
  59. local newMotor = function(part0, part1, c0, c1)
  60. local w = Instance.new('Motor', part0)
  61. w.Part0 = part0
  62. w.Part1 = part1
  63. w.C0 = c0
  64. w.C1 = c1
  65. return w
  66. end
  67.  
  68. function clerp(a, b, t)
  69. return a:lerp(b, t)
  70. end
  71.  
  72. RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  73. NeckCF = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  74.  
  75. local RW = newMotor(Torso, RightArm, CFrame.new(1.5, 0, 0), CFrame.new(0, 0, 0))
  76. local LW = newMotor(Torso, LeftArm, CFrame.new(-1.5, 0, 0), CFrame.new(0, 0, 0))
  77. local RH = newMotor(Torso, RightLeg, CFrame.new(.5, -2, 0), CFrame.new(0, 0, 0))
  78. local LH = newMotor(Torso, LeftLeg, CFrame.new(-.5, -2, 0), CFrame.new(0, 0, 0))
  79. RootJoint.C1 = CFrame.new(0, 0, 0)
  80. RootJoint.C0 = CFrame.new(0, 0, 0)
  81. Torso.Neck.C1 = CFrame.new(0, 0, 0)
  82. Torso.Neck.C0 = CFrame.new(0, 1.5, 0)
  83.  
  84. local rarmc1 = RW.C1
  85. local larmc1 = LW.C1
  86. local rlegc1 = RH.C1
  87. local llegc1 = LH.C1
  88.  
  89. local resetc1 = false
  90.  
  91. function PlayAnimationFromTable(table, speed, bool)
  92. RootJoint.C0 = clerp(RootJoint.C0, table[1], speed)
  93. Torso.Neck.C0 = clerp(Torso.Neck.C0, table[2], speed)
  94. RW.C0 = clerp(RW.C0, table[3], speed)
  95. LW.C0 = clerp(LW.C0, table[4], speed)
  96. RH.C0 = clerp(RH.C0, table[5], speed)
  97. LH.C0 = clerp(LH.C0, table[6], speed)
  98. if bool == true then
  99. if resetc1 == false then
  100. resetc1 = true
  101. RootJoint.C1 = RootJoint.C1
  102. Torso.Neck.C1 = Torso.Neck.C1
  103. RW.C1 = rarmc1
  104. LW.C1 = larmc1
  105. RH.C1 = rlegc1
  106. LH.C1 = llegc1
  107. end
  108. end
  109. end
  110.  
  111.  
  112. --[[Credits to SazErenos for his Artificial Heartbeat]]--
  113.  
  114. function swait(num)
  115. local heartbeat = game:GetService("RunService").Heartbeat:wait()
  116. local framerate = 30
  117. local heartbeat1 = math.random(1,2)
  118. if heartbeat1 == 1 then
  119. game:GetService("RunService").Heartbeat:wait()
  120. elseif heartbeat1 == 2 then
  121. game:GetService("RunService").Heartbeat:wait()
  122. end
  123. end
  124. local RbxUtility = LoadLibrary("RbxUtility")
  125. local Create = RbxUtility.Create
  126.  
  127. function RemoveOutlines(part)
  128. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  129. end
  130.  
  131.  
  132.  
  133. local co1 = 5
  134. local co2 = 15
  135. local co3 = 15
  136. local co4 = 15
  137.  
  138. local cooldown1 = 0
  139. local cooldown2 = 0
  140. local cooldown3 = 0
  141. local cooldown4 = 0
  142.  
  143. local co5 = 12
  144. local co6 = 18
  145. local co7 = 20
  146. local co8 = 30
  147.  
  148. local cooldown5 = 0
  149. local cooldown6 = 0
  150. local cooldown7 = 0
  151. local cooldown8 = 0
  152.  
  153.  
  154. local skillcolorscheme = BrickColor.new("Bright red").Color
  155.  
  156. local scrn = Instance.new('ScreenGui', Player.PlayerGui)
  157. function makeframe(par, trans, pos, size, color)
  158. local frame = Instance.new('Frame', par)
  159. frame.BackgroundTransparency = trans
  160. frame.BorderSizePixel = 0
  161. frame.Position = pos
  162. frame.Size = size
  163. frame.BackgroundColor3 = color
  164. return frame
  165. end
  166.  
  167. function makelabel(par, text)
  168. local label = Instance.new('TextLabel', par)
  169. label.BackgroundTransparency = 1
  170. label.Size = UDim2.new(1, 0, 1, 0)
  171. label.Position = UDim2.new(0, 0, 0, 0)
  172. label.TextColor3 = Color3.new(255, 255, 255)
  173. label.TextStrokeTransparency = 0
  174. label.FontSize = Enum.FontSize.Size32
  175. label.Font = Enum.Font.SourceSansLight
  176. label.BorderSizePixel = 0
  177. label.TextScaled = true
  178. label.Text = text
  179. end
  180. framesk1 = makeframe(scrn, .5, UDim2.new(.8, 0, .85, 0), UDim2.new(.16, 0, .1, 0), skillcolorscheme)
  181. framesk2 = makeframe(scrn, .5, UDim2.new(.8, 0, .74, 0), UDim2.new(.16, 0, .1, 0), skillcolorscheme)
  182. framesk3 = makeframe(scrn, .5, UDim2.new(.8, 0, .63, 0), UDim2.new(.16, 0, .1, 0), skillcolorscheme)
  183. framesk4 = makeframe(scrn, .5, UDim2.new(.8, 0, .52, 0), UDim2.new(.16, 0, .1, 0), skillcolorscheme)
  184.  
  185. bar1 = makeframe(framesk1, 0, UDim2.new(0, 0, 0, 0), UDim2.new(1, 0, 1, 0), skillcolorscheme)
  186. bar2 = makeframe(framesk2, 0, UDim2.new(0, 0, 0, 0), UDim2.new(1, 0, 1, 0), skillcolorscheme)
  187. bar3 = makeframe(framesk3, 0, UDim2.new(0, 0, 0, 0), UDim2.new(1, 0, 1, 0), skillcolorscheme)
  188. bar4 = makeframe(framesk4, 0, UDim2.new(0, 0, 0, 0), UDim2.new(1, 0, 1, 0), skillcolorscheme)
  189. text1 = Instance.new('TextLabel', framesk1)
  190. text1.BackgroundTransparency = 1
  191. text1.Size = UDim2.new(1, 0, 1, 0)
  192. text1.Position = UDim2.new(0, 0, 0, 0)
  193. text1.TextColor3 = Color3.new(255, 255, 255)
  194. text1.TextStrokeTransparency = 0
  195. text1.FontSize = Enum.FontSize.Size18
  196. text1.Font = Enum.Font.SourceSansLight
  197. text1.BorderSizePixel = 0
  198. text1.TextScaled = true
  199. text1.Text = "[Z]\n Charger"
  200. text2 = Instance.new('TextLabel', framesk2)
  201. text2.BackgroundTransparency = 1
  202. text2.Size = UDim2.new(1, 0, 1, 0)
  203. text2.Position = UDim2.new(0, 0, 0, 0)
  204. text2.TextColor3 = Color3.new(255, 255, 255)
  205. text2.TextStrokeTransparency = 0
  206. text2.FontSize = Enum.FontSize.Size18
  207. text2.Font = Enum.Font.SourceSansLight
  208. text2.BorderSizePixel = 0
  209. text2.TextScaled = true
  210. text2.Text = "[X]\n Equip DDJ Multishot"
  211. text3 = Instance.new('TextLabel', framesk3)
  212. text3.BackgroundTransparency = 1
  213. text3.Size = UDim2.new(1, 0, 1, 0)
  214. text3.Position = UDim2.new(0, 0, 0, 0)
  215. text3.TextColor3 = Color3.new(255, 255, 255)
  216. text3.TextStrokeTransparency = 0
  217. text3.FontSize = Enum.FontSize.Size18
  218. text3.Font = Enum.Font.SourceSansLight
  219. text3.BorderSizePixel = 0
  220. text3.TextScaled = false
  221. text3.Text = "[C]\n Equip QRR-3 Railcannon"
  222. text4 = Instance.new('TextLabel', framesk4)
  223. text4.BackgroundTransparency = 1
  224. text4.Size = UDim2.new(1, 0, 1, 0)
  225. text4.Position = UDim2.new(0, 0, 0, 0)
  226. text4.TextColor3 = Color3.new(255, 255, 255)
  227. text4.TextStrokeTransparency = 0
  228. text4.FontSize = Enum.FontSize.Size18
  229. text4.Font = Enum.Font.SourceSansLight
  230. text4.BorderSizePixel = 0
  231. text4.TextScaled = true
  232. text4.Text = "[V]\n Equip RRE3 Blackout"
  233.  
  234.  
  235. function CreatePart(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  236. local Part = Create("Part"){
  237. Parent = Parent,
  238. Reflectance = Reflectance,
  239. Transparency = Transparency,
  240. CanCollide = false,
  241. Locked = true,
  242. BrickColor = BrickColor.new(tostring(BColor)),
  243. Name = Name,
  244. Size = Size,
  245. Material = Material,
  246. }
  247. RemoveOutlines(Part)
  248. return Part
  249. end
  250.  
  251. function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  252. local Msh = Create(Mesh){
  253. Parent = Part,
  254. Offset = OffSet,
  255. Scale = Scale,
  256. }
  257. if Mesh == "SpecialMesh" then
  258. Msh.MeshType = MeshType
  259. Msh.MeshId = MeshId
  260. end
  261. return Msh
  262. end
  263.  
  264. function CreateWeld(Parent, Part0, Part1, C0, C1)
  265. local Weld = Create("Weld"){
  266. Parent = Parent,
  267. Part0 = Part0,
  268. Part1 = Part1,
  269. C0 = C0,
  270. C1 = C1,
  271. }
  272. return Weld
  273. end
  274.  
  275.  
  276. CFuncs = {
  277. ["Part"] = {
  278. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  279. local Part = Create("Part"){
  280. Parent = Parent,
  281. Reflectance = Reflectance,
  282. Transparency = Transparency,
  283. CanCollide = false,
  284. Locked = true,
  285. BrickColor = BrickColor.new(tostring(BColor)),
  286. Name = Name,
  287. Size = Size,
  288. Material = Material,
  289. }
  290. RemoveOutlines(Part)
  291. return Part
  292. end;
  293. };
  294.  
  295. ["Mesh"] = {
  296. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  297. local Msh = Create(Mesh){
  298. Parent = Part,
  299. Offset = OffSet,
  300. Scale = Scale,
  301. }
  302. if Mesh == "SpecialMesh" then
  303. Msh.MeshType = MeshType
  304. Msh.MeshId = MeshId
  305. end
  306. return Msh
  307. end;
  308. };
  309.  
  310. ["Mesh"] = {
  311. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  312. local Msh = Create(Mesh){
  313. Parent = Part,
  314. Offset = OffSet,
  315. Scale = Scale,
  316. }
  317. if Mesh == "SpecialMesh" then
  318. Msh.MeshType = MeshType
  319. Msh.MeshId = MeshId
  320. end
  321. return Msh
  322. end;
  323. };
  324.  
  325. ["Weld"] = {
  326. Create = function(Parent, Part0, Part1, C0, C1)
  327. local Weld = Create("Weld"){
  328. Parent = Parent,
  329. Part0 = Part0,
  330. Part1 = Part1,
  331. C0 = C0,
  332. C1 = C1,
  333. }
  334. return Weld
  335. end;
  336. };
  337.  
  338. ["Sound"] = {
  339. Create = function(id, par, vol, pit)
  340. coroutine.resume(coroutine.create(function()
  341. local S = Create("Sound"){
  342. Volume = vol,
  343. Pitch = pit or 1,
  344. SoundId = id,
  345. Parent = par or workspace,
  346. }
  347. wait()
  348. S:play()
  349. game:GetService("Debris"):AddItem(S, 6)
  350. end))
  351. end;
  352. };
  353.  
  354. ["ParticleEmitter"] = {
  355. Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  356. local fp = Create("ParticleEmitter"){
  357. Parent = Parent,
  358. Color = ColorSequence.new(Color1, Color2),
  359. LightEmission = LightEmission,
  360. Size = Size,
  361. Texture = Texture,
  362. Transparency = Transparency,
  363. ZOffset = ZOffset,
  364. Acceleration = Accel,
  365. Drag = Drag,
  366. LockedToPart = LockedToPart,
  367. VelocityInheritance = VelocityInheritance,
  368. EmissionDirection = EmissionDirection,
  369. Enabled = Enabled,
  370. Lifetime = LifeTime,
  371. Rate = Rate,
  372. Rotation = Rotation,
  373. RotSpeed = RotSpeed,
  374. Speed = Speed,
  375. VelocitySpread = VelocitySpread,
  376. }
  377. return fp
  378. end;
  379. };
  380. }
  381.  
  382. Handle=CreatePart(m,Enum.Material.Plastic,0,0,"Black","Handle",Vector3.new(1.01000023, 1.36000001, 1.02999997))
  383. HandleWeld=CreateWeld(m,Character["Left Arm"],Handle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(5.7220459e-006, 0.33297348, 0.00253295898, 0, 0, -1, 0, 0.999999881, 0, 1, 0, 0))
  384. Part=CreatePart(m,Enum.Material.Neon,0,0,"Maroon","Part",Vector3.new(1.09000027, 0.320000052, 0.959999979))
  385. PartWeld=CreateWeld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, -0.0750000477, -0.0100097656, 1, 0, 0, 0, 1, 0, 0, 0, 1))
  386. Part=CreatePart(m,Enum.Material.Plastic,0,0,"Black","Part",Vector3.new(1.24000025, 0.200000003, 0.200000003))
  387. PartWeld=CreateWeld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, -0.579999924, 0.5050354, 1, 0, 0, 0, 1, 0, 0, 0, 1))
  388. Part=CreatePart(m,Enum.Material.Plastic,0,0,"Black","Part",Vector3.new(0.410000205, 1.5, 0.200000003))
  389. PartWeld=CreateWeld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.0378875732, 0.0699999332, 0.743743896, 0.529920995, 0, -0.848047018, 0, 1, 0, 0.848047018, 0, 0.529920995))
  390. Part=CreatePart(m,Enum.Material.Plastic,0,0,"Black","Part",Vector3.new(0.410000205, 1.5, 0.200000003))
  391. PartWeld=CreateWeld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.0110931396, 0.0699999332, -0.743213654, -0.499998987, 0, -0.866025984, 0, 1, 0, 0.866025984, 0, -0.499998987))
  392. Part=CreatePart(m,Enum.Material.Plastic,0,0,"Black","Part",Vector3.new(1.24000025, 0.200000003, 0.200000003))
  393. PartWeld=CreateWeld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, 0.699999809, 0.5050354, 1, 0, 0, 0, 1, 0, 0, 0, 1))
  394. Part=CreatePart(m,Enum.Material.Neon,0,0,"Maroon","Part",Vector3.new(0.590000272, 0.320000052, 0.519999981))
  395. PartWeld=CreateWeld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, 0.55499959, -0.0950164795, 1, 0, 0, 0, 1, 0, 0, 0, 1))
  396. Part=CreatePart(m,Enum.Material.Neon,0,0,"Bright red","Part",Vector3.new(1.24000025, 1.13000011, 0.200000003))
  397. PartWeld=CreateWeld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, 0.0550000668, 0.465042114, 1, 0, 0, 0, 1, 0, 0, 0, 1))
  398. Handle2=CreatePart(m,Enum.Material.Plastic,0,0,"Black","Handle2",Vector3.new(1.01000023, 1.36000001, 1.02999997))
  399. Handle2Weld=CreateWeld(m,Character["Right Arm"],Handle2,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00157546997, 0.332973957, 0.00706481934, 0, 0, 1, 0, 0.999999881, 0, -1, 0, 0))
  400. Part=CreatePart(m,Enum.Material.Plastic,0,0,"Black","Part",Vector3.new(1.24000025, 0.200000003, 0.200000003))
  401. PartWeld=CreateWeld(m,Handle2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, -0.579999924, 0.5050354, 1, 0, 0, 0, 1, 0, 0, 0, 1))
  402. Part=CreatePart(m,Enum.Material.Plastic,0,0,"Black","Part",Vector3.new(1.24000025, 0.200000003, 0.200000003))
  403. PartWeld=CreateWeld(m,Handle2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, 0.699998975, 0.5050354, 1, 0, 0, 0, 1, 0, 0, 0, 1))
  404. Part=CreatePart(m,Enum.Material.Plastic,0,0,"Black","Part",Vector3.new(0.410000205, 1.5, 0.200000003))
  405. PartWeld=CreateWeld(m,Handle2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.037902832, 0.0699999332, 0.743736267, 0.529920995, 0, -0.848047018, 0, 1, 0, 0.848047018, 0, 0.529920995))
  406. Part=CreatePart(m,Enum.Material.Neon,0,0,"Maroon","Part",Vector3.new(0.590000272, 0.320000052, 0.519999981))
  407. PartWeld=CreateWeld(m,Handle2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, 0.554999113, -0.0950164795, 1, 0, 0, 0, 1, 0, 0, 0, 1))
  408. Part=CreatePart(m,Enum.Material.Neon,0,0,"Bright red","Part",Vector3.new(1.24000025, 1.13000011, 0.200000003))
  409. PartWeld=CreateWeld(m,Handle2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, 0.0550000668, 0.465042114, 1, 0, 0, 0, 1, 0, 0, 0, 1))
  410. Part=CreatePart(m,Enum.Material.Neon,0,0,"Maroon","Part",Vector3.new(1.09000027, 0.320000052, 0.959999979))
  411. PartWeld=CreateWeld(m,Handle2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, -0.0750000477, -0.0100097656, 1, 0, 0, 0, 1, 0, 0, 0, 1))
  412. Part=CreatePart(m,Enum.Material.Plastic,0,0,"Black","Part",Vector3.new(0.410000205, 1.5, 0.200000003))
  413. PartWeld=CreateWeld(m,Handle2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.0110931396, 0.0699999332, -0.743202209, -0.499998987, 0, -0.866025984, 0, 1, 0, 0.866025984, 0, -0.499998987))
  414. Misc=CreatePart(m,Enum.Material.Plastic,0,0,"Black","Misc",Vector3.new(1.08000004, 2.74999976, 1.13999987))
  415. MiscWeld=CreateWeld(m,Character["Torso"],Misc,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.318688393, 0.211323738, 0.0388641357, 0.00561500341, 0.999839604, 0.0170100089, -0.0775420293, 0.0173944011, -0.996837378, -0.996973336, 0.0042782547, 0.0776272565))
  416. CreateMesh("CylinderMesh",Misc,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  417. Part=CreatePart(m,Enum.Material.Plastic,0,0,"Black","Part",Vector3.new(0.779999971, 1.21000004, 0.200000003))
  418. PartWeld=CreateWeld(m,Misc,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-2.84437561, 0.305374146, 1.68695641, 0.554451048, 0.0740119815, 0.828918874, 0.832042634, -0.0289405994, -0.553956509, -0.0170100089, 0.996837378, -0.0776272565))
  419. Part=CreatePart(m,Enum.Material.Plastic,0,0,"Black","Part",Vector3.new(0.589999974, 1.21000004, 0.200000003))
  420. PartWeld=CreateWeld(m,Misc,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-3.20437622, 0.42061615, 1.80695152, 0.690509677, 0.0678621382, 0.720132947, 0.723123312, -0.0413529053, -0.689480186, -0.0170100089, 0.996837378, -0.0776272565))
  421. Part=CreatePart(m,Enum.Material.Plastic,0,0,"Black","Part",Vector3.new(0.859999955, 1.21000004, 0.200000003))
  422. PartWeld=CreateWeld(m,Misc,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-2.80438232, 0.305374146, -0.203042984, 0.554451048, 0.0740119815, 0.828918874, 0.832042634, -0.0289405994, -0.553956509, -0.0170100089, 0.996837378, -0.0776272565))
  423. Part=CreatePart(m,Enum.Material.Plastic,0,0,"Black","Part",Vector3.new(0.200000003, 1.21000004, 2.32999992))
  424. PartWeld=CreateWeld(m,Misc,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-3.39937592, 0.42061615, 0.741949081, 0.690509677, 0.0678621382, 0.720132947, 0.723123312, -0.0413529053, -0.689480186, -0.0170100089, 0.996837378, -0.0776272565))
  425. Part=CreatePart(m,Enum.Material.Plastic,0,0,"Black","Part",Vector3.new(2.90999985, 1.21000004, 0.879999876))
  426. PartWeld=CreateWeld(m,Misc,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.56022644, 0.36340332, 0.746948242, 0.554451048, 0.0740119815, 0.828918874, 0.832042634, -0.0289405994, -0.553956509, -0.0170100089, 0.996837378, -0.0776272565))
  427. Part=CreatePart(m,Enum.Material.Plastic,0,0,"Black","Part",Vector3.new(0.859999955, 1.21000004, 0.200000003))
  428. PartWeld=CreateWeld(m,Misc,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-2.79576111, 0.299560547, -1.68694878, 0.563761175, -0.0545582324, -0.824134052, 0.825762749, 0.0577817485, 0.561050117, 0.0170100089, -0.996837378, 0.0776272565))
  429. Part=CreatePart(m,Enum.Material.Plastic,0,0,"Black","Part",Vector3.new(0.779999971, 1.21000004, 0.200000003))
  430. PartWeld=CreateWeld(m,Misc,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-2.83575439, 0.299560547, 0.203050613, 0.563761175, -0.0545582324, -0.824134052, 0.825762749, 0.0577817485, 0.561050117, 0.0170100089, -0.996837378, 0.0776272565))
  431. Part=CreatePart(m,Enum.Material.Plastic,0,0,"Black","Part",Vector3.new(0.589999974, 1.21000004, 0.200000003))
  432. PartWeld=CreateWeld(m,Misc,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-3.19690704, 0.413391113, -1.80695724, 0.698587894, -0.0436957441, -0.714189053, 0.715322256, 0.0663778186, 0.6956352, 0.0170100089, -0.996837378, 0.0776272565))
  433. Part=CreatePart(m,Enum.Material.Plastic,0,0,"Black","Part",Vector3.new(2.89999986, 1.21000004, 0.879999995))
  434. PartWeld=CreateWeld(m,Misc,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.57575989, 0.299560547, -0.741949081, 0.563761175, -0.0545582324, -0.824134052, 0.825762749, 0.0577817485, 0.561050117, 0.0170100089, -0.996837378, 0.0776272565))
  435. Part=CreatePart(m,Enum.Material.Plastic,0,0,"Black","Part",Vector3.new(0.589999974, 1.21000004, 0.200000003))
  436. PartWeld=CreateWeld(m,Misc,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-3.20437622, 0.42061615, -0.32305336, 0.690509677, 0.0678621382, 0.720132947, 0.723123312, -0.0413529053, -0.689480186, -0.0170100089, 0.996837378, -0.0776272565))
  437. Part=CreatePart(m,Enum.Material.Plastic,0,0,"Black","Part",Vector3.new(0.589999974, 1.21000004, 0.200000003))
  438. PartWeld=CreateWeld(m,Misc,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-3.19690704, 0.413391113, 0.323051453, 0.698587894, -0.0436957441, -0.714189053, 0.715322256, 0.0663778186, 0.6956352, 0.0170100089, -0.996837378, 0.0776272565))
  439. Part=CreatePart(m,Enum.Material.Plastic,0,0,"Black","Part",Vector3.new(0.799999952, 0.71999979, 1.75999999))
  440. PartWeld=CreateWeld(m,Misc,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.413290024, 2.14399338, 0.378707886, 0.927011371, 0.354349732, 0.122825913, -0.37498194, 0.870347321, 0.319193125, 0.00620479928, -0.341953099, 0.93969661))
  441. CreateMesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  442. Part=CreatePart(m,Enum.Material.SmoothPlastic,0,0,"Black","Part",Vector3.new(0.940000057, 0.210000008, 0.889999866))
  443. PartWeld=CreateWeld(m,Misc,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, -1.29999924, 0, 1, 1.45519152e-010, 0, 1.45519152e-010, 1.00000012, 0, 0, 0, 1.00000012))
  444. CreateMesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  445. Part=CreatePart(m,Enum.Material.Plastic,0,0,"Black","Part",Vector3.new(0.910000086, 2.90999985, 0.869999886))
  446. PartWeld=CreateWeld(m,Misc,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.380825043, -0.954467773, -0.803100586, 0.839223146, 0.434805185, 0.326571941, 0.543739617, -0.663012385, -0.514550328, -0.00720792357, 0.609392464, -0.79283601))
  447. CreateMesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  448. Part=CreatePart(m,Enum.Material.Plastic,0,0,"Black","Part",Vector3.new(2.7900002, 1.21000004, 0.779999971))
  449. PartWeld=CreateWeld(m,Misc,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.0898132324, -0.600757599, -0.691949844, -0.0292818137, -0.0781018436, -0.996515393, 0.999426603, 0.014677668, -0.0305177197, 0.0170100089, -0.996837378, 0.0776272565))
  450. Part=CreatePart(m,Enum.Material.Plastic,0,0,"Really black","Part",Vector3.new(0.589999914, 0.529999852, 0.609999895))
  451. PartWeld=CreateWeld(m,Misc,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.413282394, -2.26901627, -0.378753662, 0.927011371, 0.354349732, 0.122825913, 0.37498194, -0.870347321, -0.319193125, -0.00620479928, 0.341953099, -0.93969661))
  452. CreateMesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  453. Part=CreatePart(m,Enum.Material.Plastic,0,0,"Black","Part",Vector3.new(0.200000003, 1.21000004, 2.08999991))
  454. PartWeld=CreateWeld(m,Misc,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-3.13438416, 0.305381775, 0.741949081, 0.554451048, 0.0740119815, 0.828918874, 0.832042634, -0.0289405994, -0.553956509, -0.0170100089, 0.996837378, -0.0776272565))
  455. Part=CreatePart(m,Enum.Material.Neon,0,0,"Really red","Part",Vector3.new(0.940000057, 0.200000003, 1.13999987))
  456. PartWeld=CreateWeld(m,Misc,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, -1.29499912, 0, 1, 1.45519152e-010, 0, 1.45519152e-010, 1.00000012, 0, 0, 0, 1.00000012))
  457. CreateMesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  458. Part=CreatePart(m,Enum.Material.Plastic,0,0,"Smoky grey","Part",Vector3.new(0.759999812, 0.709999859, 1.70999992))
  459. PartWeld=CreateWeld(m,Misc,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.47265625, 2.13467407, -0.390716553, 0.928664148, 0.330795914, -0.167801037, -0.370842725, 0.818673849, -0.438462138, -0.00766716897, 0.46941179, 0.882946134))
  460. CreateMesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  461. Part=CreatePart(m,Enum.Material.Plastic,0,0,"Black","Part",Vector3.new(1.79999995, 0.71999979, 1.8499999))
  462. PartWeld=CreateWeld(m,Misc,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.532877922, 1.96745396, -0.0040435791, 0.927311003, 0.373456627, -0.0249933787, -0.374290138, 0.92502141, -0.06513381, -0.0012052455, 0.0697540641, 0.997563541))
  463. CreateMesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  464. Part=CreatePart(m,Enum.Material.Plastic,0,0,"Smoky grey","Part",Vector3.new(1.79999995, 0.71999985, 1.70999992))
  465. PartWeld=CreateWeld(m,Misc,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.532875061, 1.98745728, -0.0040435791, 0.927311003, 0.373456627, -0.0249933787, -0.374290138, 0.92502141, -0.06513381, -0.0012052455, 0.0697540641, 0.997563541))
  466. CreateMesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  467. Part=CreatePart(m,Enum.Material.Plastic,0,0,"Black","Part",Vector3.new(0.200000003, 1.21000004, 2.32999992))
  468. PartWeld=CreateWeld(m,Misc,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-3.39190674, 0.413391113, -0.741949081, 0.698587894, -0.0436957441, -0.714189053, 0.715322256, 0.0663778186, 0.6956352, 0.0170100089, -0.996837378, 0.0776272565))
  469. Part=CreatePart(m,Enum.Material.Plastic,0,0,"Black","Part",Vector3.new(1.60000002, 1.34999979, 1.8499999))
  470. PartWeld=CreateWeld(m,Misc,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.532877922, 1.27745056, -0.00405883789, 0.927311003, 0.373456627, -0.0249933787, -0.374290138, 0.92502141, -0.06513381, -0.0012052455, 0.0697540641, 0.997563541))
  471. CreateMesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  472. Part=CreatePart(m,Enum.Material.Plastic,0,0,"Black","Part",Vector3.new(0.910000086, 2.71999979, 0.869999886))
  473. PartWeld=CreateWeld(m,Misc,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.634326935, 0.970718384, -0.636886597, 0.73713702, 0.672070861, -0.0703546554, -0.603258193, 0.607577503, -0.516651869, -0.304480761, 0.423285276, 0.853300214))
  474. CreateMesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  475. Part=CreatePart(m,Enum.Material.Plastic,0,0,"Black","Part",Vector3.new(0.200000003, 1.21000004, 2.08999991))
  476. PartWeld=CreateWeld(m,Misc,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-3.12574768, 0.299560547, -0.741949081, 0.563761175, -0.0545582324, -0.824134052, 0.825762749, 0.0577817485, 0.561050117, 0.0170100089, -0.996837378, 0.0776272565))
  477. Part=CreatePart(m,Enum.Material.Plastic,0,0,"Black","Part",Vector3.new(0.740000069, 1.34999979, 0.559999943))
  478. PartWeld=CreateWeld(m,Misc,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.413281441, 1.45401764, 0.378753662, 0.927011371, 0.354349732, 0.122825913, -0.37498194, 0.870347321, 0.319193125, 0.00620479928, -0.341953099, 0.93969661))
  479. CreateMesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  480. Part=CreatePart(m,Enum.Material.Plastic,0,0,"Black","Part",Vector3.new(0.799999952, 0.71999979, 1.75999999))
  481. PartWeld=CreateWeld(m,Misc,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.472660065, 2.11967468, -0.390686035, 0.928664148, 0.330795914, -0.167801037, -0.370842725, 0.818673849, -0.438462138, -0.00766716897, 0.46941179, 0.882946134))
  482. CreateMesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  483. Part=CreatePart(m,Enum.Material.Plastic,0,0,"Black","Part",Vector3.new(0.740000069, 1.34999979, 0.559999943))
  484. PartWeld=CreateWeld(m,Misc,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.47265625, 1.42967987, -0.390686035, 0.928664148, 0.330795914, -0.167801037, -0.370842725, 0.818673849, -0.438462138, -0.00766716897, 0.46941179, 0.882946134))
  485. CreateMesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  486. Part=CreatePart(m,Enum.Material.Plastic,0,0,"Really black","Part",Vector3.new(1.79999995, 0.529999852, 1.6099999))
  487. PartWeld=CreateWeld(m,Misc,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.532876015, -2.09245396, 0.0040435791, 0.927311003, 0.373456627, -0.0249933787, 0.374290138, -0.92502141, 0.06513381, 0.0012052455, -0.0697540641, -0.997563541))
  488. CreateMesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  489. Thruster1=CreatePart(m,Enum.Material.Plastic,0,0,"Really black","Thruster1",Vector3.new(0.200000003, 0.529999852, 0.200000003))
  490. Thruster1Weld=CreateWeld(m,Misc,Thruster1,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.532876015, -2.09245396, 0.0040435791, 0.927311003, 0.373456627, -0.0249933787, 0.374290138, -0.92502141, 0.06513381, 0.0012052455, -0.0697540641, -0.997563541))
  491. CreateMesh("CylinderMesh",Thruster1,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  492. Part=CreatePart(m,Enum.Material.Plastic,0,0,"Smoky grey","Part",Vector3.new(0.759999812, 0.709999859, 0.73999995))
  493. PartWeld=CreateWeld(m,Misc,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.413290024, 2.15899658, 0.378692627, 0.927011371, 0.354349732, 0.122825913, -0.37498194, 0.870347321, 0.319193125, 0.00620479928, -0.341953099, 0.93969661))
  494. CreateMesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  495. Part=CreatePart(m,Enum.Material.Plastic,0,0,"Really black","Part",Vector3.new(0.589999914, 0.529999852, 0.609999895))
  496. PartWeld=CreateWeld(m,Misc,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.472652435, 2.24468994, 0.39074707, -0.928664148, -0.330795914, 0.167801037, -0.370842725, 0.818673849, -0.438462138, 0.0076671592, -0.46941179, -0.882946134))
  497. CreateMesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  498. Thruster2=CreatePart(m,Enum.Material.Plastic,0,0,"Smoky grey","Thruster2",Vector3.new(0.200000003, 0.709999859, 0.200000003))
  499. Thruster2Weld=CreateWeld(m,Misc,Thruster2,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.413290024, 2.15899658, 0.378692627, 0.927011371, 0.354349732, 0.122825913, -0.37498194, 0.870347321, 0.319193125, 0.00620479928, -0.341953099, 0.93969661))
  500. CreateMesh("CylinderMesh",Thruster2,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  501. Thruster3=CreatePart(m,Enum.Material.Plastic,0,0,"Really black","Thruster3",Vector3.new(0.200000003, 0.529999852, 0.200000003))
  502. Thruster3Weld=CreateWeld(m,Misc,Thruster3,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.472652435, 2.24468994, 0.39074707, -0.928664148, -0.330795914, 0.167801037, -0.370842725, 0.818673849, -0.438462138, 0.0076671592, -0.46941179, -0.882946134))
  503. CreateMesh("CylinderMesh",Thruster3,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  504. AMotor=CreatePart(g,Enum.Material.Neon,0,1,"Bright red","AMotor",Vector3.new(1.13, 1.13, 1.13999999))
  505. AMotorWeld=CreateWeld(g,Character["HumanoidRootPart"],AMotor,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-4.78009033, 1.56501913, -2.5500164, -1, 0, 0, 0, -1, 0, -0, -0, 1))
  506. AFMotor=CreatePart(g,Enum.Material.Neon,0,0,"Bright red","Part",Vector3.new(1.13, 1.13, 1.13999999))
  507. AFMotorWeld=CreateWeld(g,AMotor,AFMotor,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1))
  508. CreateMesh("SpecialMesh",AFMotor,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  509. Part=CreatePart(g,Enum.Material.Plastic,0,0,"Black","Part",Vector3.new(0.420000017, 0.550000012, 3.5))
  510. PartWeld=CreateWeld(g,AFMotor,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.568473816, 0.0246200562, 2.22000694, 0.788011909, -0.615659952, 0, 0.615659952, 0.788011909, 0, 0, 0, 1))
  511. Part=CreatePart(g,Enum.Material.Plastic,0,0,"Black","Part",Vector3.new(0.200000003, 0.550000012, 3.5))
  512. PartWeld=CreateWeld(g,AFMotor,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.724983215, 0.0370483398, 2.21999931, -0.374605179, -0.927184403, -0, 0.927184463, -0.374605179, 0, 0, 0, 1))
  513. Part=CreatePart(g,Enum.Material.Plastic,0,0,"Black","Part",Vector3.new(0.200000003, 0.550000012, 3.5))
  514. PartWeld=CreateWeld(g,AFMotor,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.75, 4.76837158e-006, 2.22000694, 1, 0, 0, 0, 1, 0, 0, 0, 1))
  515. Part=CreatePart(g,Enum.Material.Plastic,0,0,"Black","Part",Vector3.new(0.200000003, 0.550000012, 3))
  516. PartWeld=CreateWeld(g,AFMotor,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.695045471, 0.0371246338, 2.47000504, -0.374605179, -0.927184403, -0, 0.927184463, -0.374605179, 0, 0, 0, 1))
  517. Part=CreatePart(g,Enum.Material.Plastic,0,0,"Black","Part",Vector3.new(0.200000003, 0.550000012, 3))
  518. PartWeld=CreateWeld(g,AFMotor,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.700344086, 0.038772583, 2.47000885, 0.241925001, -0.970295012, 0, 0.970295012, 0.241925001, 0, 0, 0, 1))
  519. Part=CreatePart(g,Enum.Material.Plastic,0,0,"Black","Part",Vector3.new(0.200000003, 0.550000012, 3.5))
  520. PartWeld=CreateWeld(g,AFMotor,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.676864624, 0.0224075317, 2.22001076, -0.829035699, -0.559195817, -0, 0.559195757, -0.82903564, 0, 0, 0, 1))
  521. Part=CreatePart(g,Enum.Material.Plastic,0,0,"Black","Part",Vector3.new(0.200000003, 0.550000012, 3.5))
  522. PartWeld=CreateWeld(g,AFMotor,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.719696045, 0.0388336182, 2.21999931, 0.241925001, -0.970295012, 0, 0.970295012, 0.241925001, 0, 0, 0, 1))
  523. Part=CreatePart(g,Enum.Material.Plastic,0,0,"Black","Part",Vector3.new(0.200000003, 0.550000012, 3))
  524. PartWeld=CreateWeld(g,AFMotor,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.669952393, -2.86102295e-006, 2.47000122, 1, 0, 0, 0, 1, 0, 0, 0, 1))
  525. Part=CreatePart(g,Enum.Material.Plastic,0,0,"Really black","Part",Vector3.new(1.70000005, 1.48000002, 1.53999996))
  526. PartWeld=CreateWeld(g,AFMotor,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(2.060009, -0.0500030518, -5.7220459e-006, 0, 0, 1, -1, 0, -0, 0, -1, 0))
  527. CreateMesh("SpecialMesh",Part,Enum.MeshType.Cylinder,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  528. Part=CreatePart(g,Enum.Material.Plastic,0,0,"Black","Part",Vector3.new(0.200000003, 0.550000012, 3))
  529. PartWeld=CreateWeld(g,AFMotor,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.743179321, 0.0223388672, 2.47000504, -0.829035699, -0.559195817, -0, 0.559195757, -0.82903564, 0, 0, 0, 1))
  530. Part=CreatePart(g,Enum.Material.Plastic,0,0,"Black","Part",Vector3.new(0.200000003, 0.550000012, 3))
  531. PartWeld=CreateWeld(g,AFMotor,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.741523743, 0.0246429443, 2.47000504, 0.788011909, -0.615659952, 0, 0.615659952, 0.788011909, 0, 0, 0, 1))
  532. Part=CreatePart(g,Enum.Material.Plastic,0,0,"Black","Part",Vector3.new(0.200000003, 0.380000025, 5.11000013))
  533. PartWeld=CreateWeld(g,AFMotor,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.415756226, 0.0135955811, 3.91500664, -0.309016854, -0.95105654, -0, 0.95105654, -0.309016854, 0, 0, 0, 1))
  534. Part=CreatePart(g,Enum.Material.Plastic,0,0,"Black","Part",Vector3.new(0.200000003, 0.350000024, 5.17000008))
  535. PartWeld=CreateWeld(g,AFMotor,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.396598816, -0.00938415527, 3.88500595, -0.309016854, -0.95105654, -0, 0.95105654, -0.309016854, 0, 0, 0, 1))
  536. Part=CreatePart(g,Enum.Material.Plastic,0,0,"Black","Part",Vector3.new(0.200000003, 0.350000024, 5.21000004))
  537. PartWeld=CreateWeld(g,AFMotor,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.391353607, -0.00505065918, 3.8650074, 0.374606907, -0.927183747, 0, 0.927183747, 0.374606907, 0, 0, 0, 1))
  538. Part=CreatePart(g,Enum.Material.Plastic,0,0,"Black","Part",Vector3.new(0.200000003, 0.370000035, 5.17000008))
  539. PartWeld=CreateWeld(g,AFMotor,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.412441254, -0.0043182373, 3.88500595, 0.374606907, -0.927183747, 0, 0.927183747, 0.374606907, 0, 0, 0, 1))
  540. Part=CreatePart(g,Enum.Material.Plastic,0,0,"Black","Part",Vector3.new(0.200000003, 0.26000002, 5.19000006))
  541. PartWeld=CreateWeld(g,AFMotor,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.245681763, -0.301566601, 3.87500763, -1, 0, -0, 0, -1, -0, 0, 0, 1))
  542. Part=CreatePart(g,Enum.Material.Plastic,0,0,"Black","Part",Vector3.new(0.230000004, 0.230000019, 5.23000002))
  543. PartWeld=CreateWeld(g,AFMotor,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.261567116, 0.234344482, 3.85500717, 0, 1, 0, -1, 0, -0, 0, 0, 1))
  544. Part=CreatePart(g,Enum.Material.Plastic,0,0,"Black","Part",Vector3.new(0.200000003, 0.200000003, 5.19000006))
  545. PartWeld=CreateWeld(g,AFMotor,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.245697021, 0.278434277, 3.87500763, -1, 0, -0, 0, -1, -0, 0, 0, 1))
  546. Part=CreatePart(g,Enum.Material.Plastic,0,0,"Black","Part",Vector3.new(0.200000003, 0.200000003, 5.19000006))
  547. PartWeld=CreateWeld(g,AFMotor,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.234344482, 0.288434505, 3.87500763, -1, 0, -0, 0, -1, -0, 0, 0, 1))
  548. Part=CreatePart(g,Enum.Material.Plastic,0,0,"Black","Part",Vector3.new(0.200000003, 0.360000014, 2.76999998))
  549. PartWeld=CreateWeld(g,AFMotor,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.245681763, 0.00843334198, 2.66500854, -1, 0, -0, 0, -1, -0, 0, 0, 1))
  550. Part=CreatePart(g,Enum.Material.Plastic,0,0,"Black","Part",Vector3.new(0.200000003, 0.380000025, 2.46999979))
  551. PartWeld=CreateWeld(g,AFMotor,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.234329224, -0.0015668869, 2.81500816, -1, 0, -0, 0, -1, -0, 0, 0, 1))
  552. Part=CreatePart(g,Enum.Material.Plastic,0,0,"Black","Part",Vector3.new(0.200000003, 0.360000014, 0.200000003))
  553. PartWeld=CreateWeld(g,AFMotor,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.245681763, 0.00843334198, 4.39000511, -1, 0, -0, 0, -1, -0, 0, 0, 1))
  554. Part=CreatePart(g,Enum.Material.Plastic,0,0,"Black","Part",Vector3.new(0.200000003, 0.360000014, 0.200000003))
  555. PartWeld=CreateWeld(g,AFMotor,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.245681763, 0.00843334198, 4.88000298, -1, 0, -0, 0, -1, -0, 0, 0, 1))
  556. Part=CreatePart(g,Enum.Material.Plastic,0,0,"Black","Part",Vector3.new(0.200000003, 0.360000014, 0.200000003))
  557. PartWeld=CreateWeld(g,AFMotor,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.245681763, 0.00843334198, 5.34000778, -1, 0, -0, 0, -1, -0, 0, 0, 1))
  558. Part=CreatePart(g,Enum.Material.Plastic,0,0,"Black","Part",Vector3.new(0.200000003, 0.360000014, 0.200000003))
  559. PartWeld=CreateWeld(g,AFMotor,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.245681763, 0.00843334198, 5.83000565, -1, 0, -0, 0, -1, -0, 0, 0, 1))
  560. Part=CreatePart(g,Enum.Material.Plastic,0,0,"Black","Part",Vector3.new(0.200000003, 0.360000014, 0.200000003))
  561. PartWeld=CreateWeld(g,AFMotor,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.245681763, 0.00843334198, 6.34000969, -1, 0, -0, 0, -1, -0, 0, 0, 1))
  562. Part=CreatePart(g,Enum.Material.Plastic,0,0,"Black","Part",Vector3.new(0.200000003, 0.360000014, 0.200000003))
  563. PartWeld=CreateWeld(g,AFMotor,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.244277954, 0.00843334198, 4.39000511, -1, 0, -0, 0, -1, -0, 0, 0, 1))
  564. Part=CreatePart(g,Enum.Material.Plastic,0,0,"Black","Part",Vector3.new(0.200000003, 0.360000014, 0.200000003))
  565. PartWeld=CreateWeld(g,AFMotor,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.244277954, 0.00843334198, 5.34000778, -1, 0, -0, 0, -1, -0, 0, 0, 1))
  566. Part=CreatePart(g,Enum.Material.Plastic,0,0,"Black","Part",Vector3.new(0.200000003, 0.360000014, 0.200000003))
  567. PartWeld=CreateWeld(g,AFMotor,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.244277954, 0.00843334198, 6.34000969, -1, 0, -0, 0, -1, -0, 0, 0, 1))
  568. Part=CreatePart(g,Enum.Material.Plastic,0,0,"Black","Part",Vector3.new(0.200000003, 0.360000014, 0.200000003))
  569. PartWeld=CreateWeld(g,AFMotor,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.244277954, 0.00843334198, 5.83000565, -1, 0, -0, 0, -1, -0, 0, 0, 1))
  570. Part=CreatePart(g,Enum.Material.Plastic,0,0,"Black","Part",Vector3.new(0.200000003, 0.360000014, 0.200000003))
  571. PartWeld=CreateWeld(g,AFMotor,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.244277954, 0.00843334198, 4.88000298, -1, 0, -0, 0, -1, -0, 0, 0, 1))
  572. Part=CreatePart(g,Enum.Material.Plastic,0,0,"Really black","Part",Vector3.new(0.25999999, 0.550000012, 0.549999952))
  573. PartWeld=CreateWeld(g,AFMotor,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.773193359, 1.8505249, 1.6411438, -0.829034865, -0.559196949, -0, 0.374176353, -0.554733455, 0.743143976, -0.415563852, 0.616092265, 0.669131637))
  574. Part=CreatePart(g,Enum.Material.Plastic,0,0,"Bright red","Part",Vector3.new(0.289999992, 0.450000018, 0.469999969))
  575. PartWeld=CreateWeld(g,AFMotor,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.78817749, 1.8505249, 1.64115143, -0.829034865, -0.559196949, -0, 0.374176353, -0.554733455, 0.743143976, -0.415563852, 0.616092265, 0.669131637))
  576. Barrel=CreatePart(g,Enum.Material.Plastic,0,1,"Black","Barrel",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  577. BarrelWeld=CreateWeld(g,AFMotor,Barrel,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.0193023682, -0.0115666389, 6.37000847, -1, 0, -0, 0, -1, -0, 0, 0, 1))
  578.  
  579. AMotor2=CreatePart(ge,Enum.Material.Neon,0,1,"Bright red","AMotor2",Vector3.new(1.13, 1.13, 1.13999999))
  580. AMotor2Weld=CreateWeld(ge,Character["HumanoidRootPart"],AMotor2,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(4.47993469, 1.56501913, -1.70001793, -1, 0, 0, 0, -1, 0, -0, -0, 1))
  581. AFMotor2=CreatePart(ge,Enum.Material.Neon,0,0,"Bright red","AFMotor2",Vector3.new(1.13, 1.13, 1.13999999))
  582. AFMotor2Weld=CreateWeld(ge,AMotor2,AFMotor2,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1))
  583. CreateMesh("SpecialMesh",AFMotor2,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  584. H3=CreatePart(ge,Enum.Material.Plastic,0,0,"Maroon","H3",Vector3.new(0.529999971, 0.200000003, 0.200000003))
  585. H3Weld=CreateWeld(ge,AFMotor2,H3,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.0150237083, 0.0300445557, 2.22999191, 0, -1, -0, 1, 0, 0, 0, 0, 1))
  586. CreateMesh("SpecialMesh",H3,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=3270017",Vector3.new(0, 0, 0),Vector3.new(1.64999998, 1.64999998, 1))
  587. H3=CreatePart(ge,Enum.Material.Plastic,0,0,"Maroon","H3",Vector3.new(0.529999971, 0.200000003, 0.200000003))
  588. H3Weld=CreateWeld(ge,AFMotor2,H3,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00497722626, 0.0500335693, 1.27000046, 0, -1, -0, 1, 0, 0, 0, 0, 1))
  589. CreateMesh("SpecialMesh",H3,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=3270017",Vector3.new(0, 0, 0),Vector3.new(1.64999998, 1.64999998, 5))
  590. Part=CreatePart(ge,Enum.Material.Plastic,0,0,"Black","Part",Vector3.new(0.200000003, 0.550000012, 2))
  591. PartWeld=CreateWeld(ge,AFMotor2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.669952393, -2.86102295e-006, 1.90999985, 1, 0, 0, 0, 1, 0, 0, 0, 1))
  592. Part=CreatePart(ge,Enum.Material.Plastic,0,0,"Black","Part",Vector3.new(0.200000003, 0.550000012, 2.5))
  593. PartWeld=CreateWeld(ge,AFMotor2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.75, 4.76837158e-006, 1.66000557, 1, 0, 0, 0, 1, 0, 0, 0, 1))
  594. Part=CreatePart(ge,Enum.Material.Plastic,0,0,"Black","Part",Vector3.new(0.200000003, 0.550000012, 2))
  595. PartWeld=CreateWeld(ge,AFMotor2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.741531372, 0.0246505737, 1.91000366, 0.788011909, -0.615659952, 0, 0.615659952, 0.788011909, 0, 0, 0, 1))
  596. Part=CreatePart(ge,Enum.Material.Plastic,0,0,"Black","Part",Vector3.new(0.200000003, 0.550000012, 2.5))
  597. PartWeld=CreateWeld(ge,AFMotor2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.678466797, 0.0246276855, 1.66000557, 0.788011909, -0.615659952, 0, 0.615659952, 0.788011909, 0, 0, 0, 1))
  598. Part=CreatePart(ge,Enum.Material.Plastic,0,0,"Black","Part",Vector3.new(0.200000003, 0.550000012, 2.5))
  599. PartWeld=CreateWeld(ge,AFMotor2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.71969986, 0.038848877, 1.65999794, 0.241925001, -0.970295012, 0, 0.970295012, 0.241925001, 0, 0, 0, 1))
  600. Part=CreatePart(ge,Enum.Material.Plastic,0,0,"Black","Part",Vector3.new(0.200000003, 0.550000012, 2))
  601. PartWeld=CreateWeld(ge,AFMotor2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.700340271, 0.038772583, 1.91000748, 0.241925001, -0.970295012, 0, 0.970295012, 0.241925001, 0, 0, 0, 1))
  602. Part=CreatePart(ge,Enum.Material.Plastic,0,0,"Black","Part",Vector3.new(0.200000003, 0.550000012, 2.5))
  603. PartWeld=CreateWeld(ge,AFMotor2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.724990845, 0.0370483398, 1.65999794, -0.374605179, -0.927184403, -0, 0.927184463, -0.374605179, 0, 0, 0, 1))
  604. Part=CreatePart(ge,Enum.Material.Plastic,0,0,"Black","Part",Vector3.new(0.200000003, 0.550000012, 2))
  605. PartWeld=CreateWeld(ge,AFMotor2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.695037842, 0.0371398926, 1.91000366, -0.374605179, -0.927184403, -0, 0.927184463, -0.374605179, 0, 0, 0, 1))
  606. Part=CreatePart(ge,Enum.Material.Plastic,0,0,"Black","Part",Vector3.new(0.200000003, 0.550000012, 2))
  607. PartWeld=CreateWeld(ge,AFMotor2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.743179321, 0.0223464966, 1.91000366, -0.829035699, -0.559195817, -0, 0.559195757, -0.82903564, 0, 0, 0, 1))
  608. Part=CreatePart(ge,Enum.Material.Plastic,0,0,"Black","Part",Vector3.new(0.200000003, 0.550000012, 2.5))
  609. PartWeld=CreateWeld(ge,AFMotor2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.676864624, 0.0224151611, 1.66000938, -0.829035699, -0.559195817, -0, 0.559195757, -0.82903564, 0, 0, 0, 1))
  610. Part=CreatePart(ge,Enum.Material.Plastic,0,0,"Really black","Part",Vector3.new(1.70000005, 1.48000002, 1.53999996))
  611. PartWeld=CreateWeld(ge,AFMotor2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(2.00000763, -0.0500030518, -5.7220459e-006, 0, 0, 1, -1, 0, -0, 0, -1, 0))
  612. CreateMesh("SpecialMesh",Part,Enum.MeshType.Cylinder,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  613. Part=CreatePart(ge,Enum.Material.Plastic,0,0,"Black","Part",Vector3.new(0.200000003, 0.360000014, 0.389999986))
  614. PartWeld=CreateWeld(ge,AFMotor2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(2.89001083, -0.0200195313, -2.86102295e-006, 0, 0, 1, -1, 0, -0, 0, -1, 0))
  615. CreateMesh("SpecialMesh",Part,Enum.MeshType.Cylinder,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  616. Part=CreatePart(ge,Enum.Material.Plastic,0,0,"Black","Part",Vector3.new(0.319999993, 0.26000002, 0.389999986))
  617. PartWeld=CreateWeld(ge,AFMotor2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(2.95000458, -0.0200195313, -0.35998106, 0, 0, 1, -1, 0, -0, 0, -1, 0))
  618. CreateMesh("SpecialMesh",Part,Enum.MeshType.Cylinder,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  619. Barrel2=CreatePart(ge,Enum.Material.Plastic,0,0,"Really black","Barrel2",Vector3.new(0.329999983, 0.200000003, 0.200000003))
  620. Barrel2Weld=CreateWeld(ge,AFMotor2,Barrel2,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(2.95500565, -0.0200195313, -0.359973907, 0, 0, 1, -1, 0, -0, 0, -1, 0))
  621. CreateMesh("SpecialMesh",Barrel2,Enum.MeshType.Cylinder,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  622. Part=CreatePart(ge,Enum.Material.Plastic,0,0,"Really black","Part",Vector3.new(0.329999983, 0.200000003, 0.200000003))
  623. PartWeld=CreateWeld(ge,AFMotor2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(2.95500946, -0.0200195313, 0.36000824, 0, 0, 1, -1, 0, -0, 0, -1, 0))
  624. CreateMesh("SpecialMesh",Part,Enum.MeshType.Cylinder,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  625. Part=CreatePart(ge,Enum.Material.Plastic,0,0,"Black","Part",Vector3.new(0.319999993, 0.26000002, 0.389999986))
  626. PartWeld=CreateWeld(ge,AFMotor2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(2.95000076, -0.0200195313, 0.360001087, 0, 0, 1, -1, 0, -0, 0, -1, 0))
  627. CreateMesh("SpecialMesh",Part,Enum.MeshType.Cylinder,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  628. Part=CreatePart(ge,Enum.Material.Plastic,0,0,"Black","Part",Vector3.new(0.319999993, 0.26000002, 0.389999986))
  629. PartWeld=CreateWeld(ge,AFMotor2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(2.95000839, -0.0128479004, 0.375328064, 0, 0, 1, -0.642785966, -0.766045868, -0, 0.766045868, -0.642785966, 0))
  630. CreateMesh("SpecialMesh",Part,Enum.MeshType.Cylinder,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  631. Part=CreatePart(ge,Enum.Material.Plastic,0,0,"Really black","Part",Vector3.new(0.329999983, 0.200000003, 0.200000003))
  632. PartWeld=CreateWeld(ge,AFMotor2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(2.95500946, -0.0128479004, 0.375328064, 0, 0, 1, -0.642785966, -0.766045868, -0, 0.766045868, -0.642785966, 0))
  633. CreateMesh("SpecialMesh",Part,Enum.MeshType.Cylinder,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  634. Part=CreatePart(ge,Enum.Material.Plastic,0,0,"Really black","Part",Vector3.new(0.329999983, 0.200000003, 0.200000003))
  635. PartWeld=CreateWeld(ge,AFMotor2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(2.95501328, -0.0128631592, -0.344657898, 0, 0, 1, -0.642785966, -0.766045868, -0, 0.766045868, -0.642785966, 0))
  636. CreateMesh("SpecialMesh",Part,Enum.MeshType.Cylinder,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  637. Part=CreatePart(ge,Enum.Material.Plastic,0,0,"Black","Part",Vector3.new(0.319999993, 0.26000002, 0.389999986))
  638. PartWeld=CreateWeld(ge,AFMotor2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(2.95000458, -0.0128555298, -0.344650269, 0, 0, 1, -0.642785966, -0.766045868, -0, 0.766045868, -0.642785966, 0))
  639. CreateMesh("SpecialMesh",Part,Enum.MeshType.Cylinder,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  640. Part=CreatePart(ge,Enum.Material.Plastic,0,0,"Black","Part",Vector3.new(0.319999993, 0.26000002, 0.389999986))
  641. PartWeld=CreateWeld(ge,AFMotor2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(2.95000458, 0.0014333725, 0.37991333, 0, 0, 1, 0.0697560087, -0.997564137, 0, 0.997564137, 0.0697560087, 0))
  642. CreateMesh("SpecialMesh",Part,Enum.MeshType.Cylinder,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  643. Part=CreatePart(ge,Enum.Material.Plastic,0,0,"Really black","Part",Vector3.new(0.329999983, 0.200000003, 0.200000003))
  644. PartWeld=CreateWeld(ge,AFMotor2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(2.95500565, 0.00143671036, 0.37991333, 0, 0, 1, 0.0697560087, -0.997564137, 0, 0.997564137, 0.0697560087, 0))
  645. CreateMesh("SpecialMesh",Part,Enum.MeshType.Cylinder,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  646. Part=CreatePart(ge,Enum.Material.Plastic,0,0,"Really black","Part",Vector3.new(0.329999983, 0.200000003, 0.200000003))
  647. PartWeld=CreateWeld(ge,AFMotor2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(2.95500946, 0.00140047073, -0.340026855, 0, 0, 1, 0.0697560087, -0.997564137, 0, 0.997564137, 0.0697560087, 0))
  648. CreateMesh("SpecialMesh",Part,Enum.MeshType.Cylinder,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  649. Part=CreatePart(ge,Enum.Material.Plastic,0,0,"Black","Part",Vector3.new(0.319999993, 0.26000002, 0.389999986))
  650. PartWeld=CreateWeld(ge,AFMotor2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(2.95000076, 0.00140476227, -0.340026855, 0, 0, 1, 0.0697560087, -0.997564137, 0, 0.997564137, 0.0697560087, 0))
  651. CreateMesh("SpecialMesh",Part,Enum.MeshType.Cylinder,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  652. Part=CreatePart(ge,Enum.Material.Plastic,0,0,"Really black","Part",Vector3.new(0.329999983, 0.200000003, 0.200000003))
  653. PartWeld=CreateWeld(ge,AFMotor2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(2.95500946, 0.0148391724, -0.346588135, 0, 0, 1, 0.743143797, -0.669131815, 0, 0.669131815, 0.743143797, 0))
  654. CreateMesh("SpecialMesh",Part,Enum.MeshType.Cylinder,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  655. Part=CreatePart(ge,Enum.Material.Plastic,0,0,"Really black","Part",Vector3.new(0.329999983, 0.200000003, 0.200000003))
  656. PartWeld=CreateWeld(ge,AFMotor2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(2.95500183, 0.0148849487, 0.373306274, 0, 0, 1, 0.743143797, -0.669131815, 0, 0.669131815, 0.743143797, 0))
  657. CreateMesh("SpecialMesh",Part,Enum.MeshType.Cylinder,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  658. Part=CreatePart(ge,Enum.Material.Plastic,0,0,"Black","Part",Vector3.new(0.319999993, 0.26000002, 0.389999986))
  659. PartWeld=CreateWeld(ge,AFMotor2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(2.94999695, 0.0148468018, -0.346588135, 0, 0, 1, 0.743143797, -0.669131815, 0, 0.669131815, 0.743143797, 0))
  660. CreateMesh("SpecialMesh",Part,Enum.MeshType.Cylinder,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  661. Part=CreatePart(ge,Enum.Material.Plastic,0,0,"Black","Part",Vector3.new(0.319999993, 0.26000002, 0.389999986))
  662. PartWeld=CreateWeld(ge,AFMotor2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(2.95000076, 0.0148849487, 0.373306274, 0, 0, 1, 0.743143797, -0.669131815, 0, 0.669131815, 0.743143797, 0))
  663. CreateMesh("SpecialMesh",Part,Enum.MeshType.Cylinder,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  664. AMotor3=CreatePart(can,Enum.Material.Neon,0,1,"Bright red","AMotor3",Vector3.new(2.22000003, 2.06999993, 2.21999979))
  665. AMotor3Weld=CreateWeld(can,Character["HumanoidRootPart"],AMotor3,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-4.57763672e-005, 5.96501923, -2.98002052, -1, 0, 0, 0, -1, 0, -0, -0, 1))
  666. CreateMesh("SpecialMesh",AMotor3,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  667. AFMotor3=CreatePart(can,Enum.Material.Neon,0,1,"Bright red","AFMotor3",Vector3.new(2.22000003, 2.06999993, 2.21999979))
  668. AFMotor3Weld=CreateWeld(can,AMotor3,AFMotor3,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1))
  669. CreateMesh("SpecialMesh",AFMotor3,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  670. Part=CreatePart(can,Enum.Material.Plastic,0,0,"Black","Part",Vector3.new(1.66000021, 0.200000003, 3.51999998))
  671. PartWeld=CreateWeld(can,AFMotor3,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00537109375, -1.5340519, 2.07501221, -0.9993909, 0.0348989964, 0, -0.0348989964, -0.9993909, -0, 0, 0, 1))
  672. Part=CreatePart(can,Enum.Material.Plastic,0,0,"Black","Part",Vector3.new(1.66000021, 0.200000003, 3.51999998))
  673. PartWeld=CreateWeld(can,AFMotor3,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.103515625, 1.58404732, 2.07501221, -0.9993909, 0.0348989964, 0, -0.0348989964, -0.9993909, -0, 0, 0, 1))
  674. Part=CreatePart(can,Enum.Material.Plastic,0,0,"Black","Part",Vector3.new(1.66000021, 0.200000003, 3.51999998))
  675. PartWeld=CreateWeld(can,AFMotor3,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.055770874, 1.50053406, 2.07501221, -0.587785721, 0.809016645, 0, -0.809016705, -0.587785661, -0, 0, 0, 1))
  676. Part=CreatePart(can,Enum.Material.Plastic,0,0,"Black","Part",Vector3.new(1.66000021, 0.200000003, 3.51999998))
  677. PartWeld=CreateWeld(can,AFMotor3,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.0764083862, -1.52354431, 2.07501221, -0.587785721, 0.809016645, 0, -0.809016705, -0.587785661, -0, 0, 0, 1))
  678. Part=CreatePart(can,Enum.Material.Plastic,0,0,"Black","Part",Vector3.new(1.66000021, 0.200000003, 3.51999998))
  679. PartWeld=CreateWeld(can,AFMotor3,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.0458526611, -1.50465393, 2.07501221, -0.615662754, -0.788009703, -0, 0.788009703, -0.615662754, 0, 0, 0, 1))
  680. Part=CreatePart(can,Enum.Material.Plastic,0,0,"Black","Part",Vector3.new(1.66000021, 0.200000003, 3.51999998))
  681. PartWeld=CreateWeld(can,AFMotor3,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.0630645752, 1.61345673, 2.07501221, -0.615662754, -0.788009703, -0, 0.788009703, -0.615662754, 0, 0, 0, 1))
  682. Part=CreatePart(can,Enum.Material.Plastic,0,0,"Black","Part",Vector3.new(0.620000243, 0.200000003, 3.31999993))
  683. PartWeld=CreateWeld(can,AFMotor3,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.0762939453, 0.804522514, 3.29501343, -0.9993909, 0.0348989964, 0, -0.0348989964, -0.9993909, -0, 0, 0, 1))
  684. Part=CreatePart(can,Enum.Material.Plastic,0,0,"Black","Part",Vector3.new(0.620000243, 0.200000003, 0.200000003))
  685. PartWeld=CreateWeld(can,AFMotor3,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.0197601318, -0.814492226, 9.15501404, -0.9993909, 0.0348989964, 0, -0.0348989964, -0.9993909, -0, 0, 0, 1))
  686. Part=CreatePart(can,Enum.Material.Plastic,0,0,"Black","Part",Vector3.new(0.620000243, 0.200000003, 7.61999989))
  687. PartWeld=CreateWeld(can,AFMotor3,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.0143280029, -0.78678894, 5.44501305, -0.848048866, -0.529917955, -0, 0.529917955, -0.848048866, 0, 0, 0, 1))
  688. Part=CreatePart(can,Enum.Material.Plastic,0,0,"Black","Part",Vector3.new(0.620000243, 0.200000003, 7.61999989))
  689. PartWeld=CreateWeld(can,AFMotor3,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.0708465576, 0.832229614, 5.44501305, -0.848048866, -0.529917955, -0, 0.529917955, -0.848048866, 0, 0, 0, 1))
  690. Part=CreatePart(can,Enum.Material.Plastic,0,0,"Black","Part",Vector3.new(0.620000243, 0.200000003, 3.51999998))
  691. PartWeld=CreateWeld(can,AFMotor3,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00718688965, -0.76612854, 3.39501381, -0.374608994, -0.927182972, -0, 0.927182972, -0.374608994, 0, 0, 0, 1))
  692. Part=CreatePart(can,Enum.Material.Plastic,0,0,"Black","Part",Vector3.new(0.620000243, 0.200000003, 3.51999998))
  693. PartWeld=CreateWeld(can,AFMotor3,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.049369812, 0.852905273, 3.39501381, -0.374608994, -0.927182972, -0, 0.927182972, -0.374608994, 0, 0, 0, 1))
  694. Part=CreatePart(can,Enum.Material.Plastic,0,0,"Black","Part",Vector3.new(0.620000243, 0.200000003, 3.51999998))
  695. PartWeld=CreateWeld(can,AFMotor3,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.0383796692, -0.762374878, 3.39501381, 0.275638193, -0.96126157, 0, 0.96126157, 0.275638193, 0, 0, 0, 1))
  696. Part=CreatePart(can,Enum.Material.Plastic,0,0,"Black","Part",Vector3.new(0.620000243, 0.200000003, 3.51999998))
  697. PartWeld=CreateWeld(can,AFMotor3,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.0181770325, 0.856658936, 3.39501381, 0.275638193, -0.96126157, 0, 0.96126157, 0.275638193, 0, 0, 0, 1))
  698. Part=CreatePart(can,Enum.Material.Plastic,0,0,"Black","Part",Vector3.new(0.620000243, 0.200000003, 7.61999989))
  699. PartWeld=CreateWeld(can,AFMotor3,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00761413574, 0.841720581, 5.44501305, 0.788011909, -0.615659952, 0, 0.615659952, 0.788011909, 0, 0, 0, 1))
  700. Part=CreatePart(can,Enum.Material.Plastic,0,0,"Black","Part",Vector3.new(0.620000243, 0.200000003, 7.62000036))
  701. PartWeld=CreateWeld(can,AFMotor3,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.0641555786, -0.777328491, 5.44501495, 0.788011909, -0.615659952, 0, 0.615659952, 0.788011909, 0, 0, 0, 1))
  702. Part=CreatePart(can,Enum.Material.Plastic,0,0,"Black","Part",Vector3.new(0.200000003, 0.879999995, 0.200000003))
  703. PartWeld=CreateWeld(can,AFMotor3,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.0641555786, -1.11732483, 1.73501396, 0.788011909, -0.615659952, 0, 0.615659952, 0.788011909, 0, 0, 0, 1))
  704. Part=CreatePart(can,Enum.Material.Plastic,0,0,"Black","Part",Vector3.new(0.200000003, 0.899999976, 0.200000003))
  705. PartWeld=CreateWeld(can,AFMotor3,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.0708465576, 1.18222809, 1.73501396, -0.848048866, -0.529917955, -0, 0.529917955, -0.848048866, 0, 0, 0, 1))
  706. Part=CreatePart(can,Enum.Material.Plastic,0,0,"Black","Part",Vector3.new(0.200000003, 0.959999979, 0.200000003))
  707. PartWeld=CreateWeld(can,AFMotor3,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.0143280029, -1.16678619, 1.73501396, -0.848048866, -0.529917955, -0, 0.529917955, -0.848048866, 0, 0, 0, 1))
  708. Part=CreatePart(can,Enum.Material.Plastic,0,0,"Black","Part",Vector3.new(0.200000003, 0.800000012, 0.200000003))
  709. PartWeld=CreateWeld(can,AFMotor3,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00760650635, 1.141716, 1.73501396, 0.788011909, -0.615659952, 0, 0.615659952, 0.788011909, 0, 0, 0, 1))
  710. Part=CreatePart(can,Enum.Material.Plastic,0,0,"Black","Part",Vector3.new(0.620000243, 0.200000003, 0.200000003))
  711. PartWeld=CreateWeld(can,AFMotor3,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.049369812, 0.852905273, 9.15501595, -0.374608994, -0.927182972, -0, 0.927182972, -0.374608994, 0, 0, 0, 1))
  712. Part=CreatePart(can,Enum.Material.Plastic,0,0,"Black","Part",Vector3.new(0.620000243, 0.200000003, 0.200000003))
  713. PartWeld=CreateWeld(can,AFMotor3,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.0181770325, 0.856658936, 9.15501595, 0.275638193, -0.96126157, 0, 0.96126157, 0.275638193, 0, 0, 0, 1))
  714. Part=CreatePart(can,Enum.Material.Plastic,0,0,"Black","Part",Vector3.new(0.620000243, 0.200000003, 0.200000003))
  715. PartWeld=CreateWeld(can,AFMotor3,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00718688965, -0.76612854, 9.15501404, -0.374608994, -0.927182972, -0, 0.927182972, -0.374608994, 0, 0, 0, 1))
  716. Part=CreatePart(can,Enum.Material.Plastic,0,0,"Black","Part",Vector3.new(0.620000243, 0.200000003, 0.200000003))
  717. PartWeld=CreateWeld(can,AFMotor3,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.0383796692, -0.762374878, 9.15501404, 0.275638193, -0.96126157, 0, 0.96126157, 0.275638193, 0, 0, 0, 1))
  718. Part=CreatePart(can,Enum.Material.Plastic,0,0,"Black","Part",Vector3.new(0.620000243, 0.200000003, 3.5199995))
  719. PartWeld=CreateWeld(can,AFMotor3,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.0197601318, -0.814492226, 3.3950119, -0.9993909, 0.0348989964, 0, -0.0348989964, -0.9993909, -0, 0, 0, 1))
  720. Part=CreatePart(can,Enum.Material.Plastic,0,0,"Black","Part",Vector3.new(0.620000243, 0.200000003, 0.200000003))
  721. PartWeld=CreateWeld(can,AFMotor3,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.0762939453, 0.804522514, 9.15501404, -0.9993909, 0.0348989964, 0, -0.0348989964, -0.9993909, -0, 0, 0, 1))
  722. Part=CreatePart(can,Enum.Material.Plastic,0,0,"Really black","Part",Vector3.new(2.44000006, 1.54999995, 1.53999996))
  723. PartWeld=CreateWeld(can,AFMotor3,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(2.91000938, -0.0449829102, -5.7220459e-006, 0, 0, 1, -1, 0, -0, 0, -1, 0))
  724. CreateMesh("SpecialMesh",Part,Enum.MeshType.Cylinder,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  725. Part=CreatePart(can,Enum.Material.Neon,0,0,"Bright red","Part",Vector3.new(2.22000003, 2.06999993, 2.21999979))
  726. PartWeld=CreateWeld(can,AFMotor3,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1))
  727. CreateMesh("SpecialMesh",Part,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  728. Barrel3=CreatePart(can,Enum.Material.Plastic,0,1,"Black","Barrel3",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  729. Barrel3Weld=CreateWeld(can,AFMotor3,Barrel3,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00719451904, -0.01612854, 9.15501404, -0.374608994, -0.927182972, -0, 0.927182972, -0.374608994, 0, 0, 0, 1))
  730. can.Parent=nil
  731.  
  732. function rayCast(Position, Direction, Range, Ignore)
  733. return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  734. end
  735.  
  736. local function GetNearest(obj, distance)
  737. local last, lastx = distance + 1
  738. for i, v in pairs(workspace:GetChildren()) do
  739. if v:IsA'Model' and v ~= Character and v:findFirstChild('Humanoid') and v:findFirstChild('Torso') and v:findFirstChild('Humanoid').Health > 0 then
  740. local t = v.Torso
  741. local dist = (t.Position - obj.Position).magnitude
  742. if dist <= distance then
  743. if dist < last then
  744. last = dist
  745. lastx = v
  746. end
  747. end
  748. end
  749. end
  750. return lastx
  751. end
  752.  
  753.  
  754. Damagefunc = function(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  755. if hit.Parent == nil then
  756. return
  757. end
  758. local h = hit.Parent:FindFirstChild("Humanoid")
  759. for _, v in pairs(hit.Parent:children()) do
  760. if v:IsA("Humanoid") then
  761. h = v
  762. end
  763. end
  764. if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
  765. if hit.Parent:findFirstChild("DebounceHit") ~= nil then
  766. if hit.Parent.DebounceHit.Value == true then
  767. return
  768. end
  769. end
  770. local c = Create("ObjectValue"){
  771. Name = "creator",
  772. Value = game:service("Players").LocalPlayer,
  773. Parent = h,
  774. }
  775. game:GetService("Debris"):AddItem(c, .5)
  776. if HitSound ~= nil and HitPitch ~= nil then
  777. CFuncs["Sound"].Create(HitSound, hit, 1, HitPitch)
  778. end
  779. local Damage = math.random(minim, maxim)
  780. local blocked = false
  781. local block = hit.Parent:findFirstChild("Block")
  782. if block ~= nil then
  783. if block.className == "IntValue" then
  784. if block.Value > 0 then
  785. blocked = true
  786. block.Value = block.Value - 1
  787. print(block.Value)
  788. end
  789. end
  790. end
  791. if blocked == false then
  792. HitHealth=h.Health
  793. h.Health = h.Health - Damage
  794. if HitHealth~=h.Health and HitHealth~=0 and h.Health<=0 and h.Parent.Name~="Hologram" then
  795. print("gained spree")
  796. ---game.Players.LocalPlayer:FindFirstChild("leaderstats").Spree.Value=game.Players.LocalPlayer.leaderstats.Spree.Value+1
  797. end
  798. ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, Part.BrickColor.Color)
  799. else
  800. h.Health = h.Health - (Damage / 2)
  801. ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, Part.BrickColor.Color)
  802. end
  803. if Type == "Knockdown" then
  804. local hum = hit.Parent.Humanoid
  805. hum.PlatformStand = true
  806. coroutine.resume(coroutine.create(function(HHumanoid)
  807. swait(1)
  808. HHumanoid.PlatformStand = false
  809. end), hum)
  810. local angle = (hit.Position - (Property.Position + Vector3.new(0, 0, 0))).unit
  811. local bodvol = Create("BodyVelocity"){
  812. velocity = angle * knockback,
  813. P = 5000,
  814. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  815. Parent = hit,
  816. }
  817. local rl = Create("BodyAngularVelocity"){
  818. P = 3000,
  819. maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
  820. angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
  821. Parent = hit,
  822. }
  823. game:GetService("Debris"):AddItem(bodvol, .5)
  824. game:GetService("Debris"):AddItem(rl, .5)
  825. elseif Type == "Normal" then
  826. local vp = Create("BodyVelocity"){
  827. P = 500,
  828. maxForce = Vector3.new(math.huge, 0, math.huge),
  829. velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05,
  830. }
  831. if knockback > 0 then
  832. vp.Parent = hit.Parent.Torso
  833. end
  834. game:GetService("Debris"):AddItem(vp, .5)
  835. elseif Type == "Up" then
  836. local bodyVelocity = Create("BodyVelocity"){
  837. velocity = Vector3.new(0, 20, 0),
  838. P = 5000,
  839. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  840. Parent = hit,
  841. }
  842. game:GetService("Debris"):AddItem(bodyVelocity, .5)
  843.  
  844. local bodyVelocity = Create("BodyVelocity"){
  845. velocity = Vector3.new(0, 20, 0),
  846. P = 5000,
  847. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  848. Parent = hit,
  849. }
  850. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  851. elseif Type == "Snare" then
  852. local bp = Create("BodyPosition"){
  853. P = 2000,
  854. D = 100,
  855. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  856. position = hit.Parent.Torso.Position,
  857. Parent = hit.Parent.Torso,
  858. }
  859. game:GetService("Debris"):AddItem(bp, 1)
  860. elseif Type == "Freeze" then
  861. local BodPos = Create("BodyPosition"){
  862. P = 50000,
  863. D = 1000,
  864. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  865. position = hit.Parent.Torso.Position,
  866. Parent = hit.Parent.Torso,
  867. }
  868. local BodGy = Create("BodyGyro") {
  869. maxTorque = Vector3.new(4e+005, 4e+005, 4e+005) * math.huge ,
  870. P = 20e+003,
  871. Parent = hit.Parent.Torso,
  872. cframe = hit.Parent.Torso.CFrame,
  873. }
  874. hit.Parent.Torso.Anchored = true
  875. coroutine.resume(coroutine.create(function(Part)
  876. swait(1.5)
  877. Part.Anchored = false
  878. end), hit.Parent.Torso)
  879. game:GetService("Debris"):AddItem(BodPos, 3)
  880. game:GetService("Debris"):AddItem(BodGy, 3)
  881. end
  882. local debounce = Create("BoolValue"){
  883. Name = "DebounceHit",
  884. Parent = hit.Parent,
  885. Value = true,
  886. }
  887. game:GetService("Debris"):AddItem(debounce, Delay)
  888. c = Instance.new("ObjectValue")
  889. c.Name = "creator"
  890. c.Value = Player
  891. c.Parent = h
  892. game:GetService("Debris"):AddItem(c, .5)
  893. end
  894. end
  895.  
  896. function ShowDamage(Pos, Text, Time, Color)
  897. local Rate = (1 / 30)
  898. local Pos = (Pos or Vector3.new(0, 0, 0))
  899. local Text = (Text or "")
  900. local Time = (Time or 2)
  901. local Color = (Color or Color3.new(1, 0, 1))
  902. local EffectPart = CreatePart(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
  903. EffectPart.Anchored = true
  904. local BillboardGui = Create("BillboardGui"){
  905. Size = UDim2.new(3, 0, 3, 0),
  906. Adornee = EffectPart,
  907. Parent = EffectPart,
  908. }
  909. local TextLabel = Create("TextLabel"){
  910. BackgroundTransparency = 1,
  911. Size = UDim2.new(1, 0, 1, 0),
  912. Text = Text,
  913. TextColor3 = Color,
  914. TextScaled = true,
  915. Font = Enum.Font.ArialBold,
  916. Parent = BillboardGui,
  917. }
  918. game.Debris:AddItem(EffectPart, (Time + 0.1))
  919. EffectPart.Parent = game:GetService("Workspace")
  920. delay(0, function()
  921. local Frames = (Time / Rate)
  922. for Frame = 1, Frames do
  923. wait(Rate)
  924. local Percent = (Frame / Frames)
  925. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  926. TextLabel.TextTransparency = Percent
  927. end
  928. if EffectPart and EffectPart.Parent then
  929. EffectPart:Destroy()
  930. end
  931. end)
  932. end
  933. function MagniDamage(Part,magni,mindam,maxdam,knock,Type)
  934. for _,c in pairs(workspace:children()) do
  935. local hum=c:findFirstChild("Humanoid")
  936. if hum~=nil then
  937. local head=c:findFirstChild("Torso")
  938. if head~=nil then
  939. local targ=head.Position-Part.Position
  940. local mag=targ.magnitude
  941. if mag<=magni and c.Name~=Player.Name then
  942. --Damagefunc(head,mindam,maxdam,knock,Type,RootPart,.2,1,nil,1)
  943. Damagefunc(head, head, mindam,maxdam, knock, Type, RootPart, .1, "http://www.roblox.com/asset/?id=231917784", 1)
  944. end
  945. end
  946. end
  947. end
  948. end
  949. EffectModel = Instance.new("Model", Character)
  950. EffectModel.Name = "Effects"
  951.  
  952. Effects = {
  953. ["Block"] = {
  954. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
  955. local prt = CFuncs["Part"].Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  956. prt.Anchored = true
  957. prt.CFrame = cframe
  958. local msh = CFuncs["Mesh"].Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  959. game:GetService("Debris"):AddItem(prt, 10)
  960. if Type == 1 or Type == nil then
  961. table.insert(Effects, {
  962. prt,
  963. "Block1",
  964. delay,
  965. x3,
  966. y3,
  967. z3,
  968. msh
  969. })
  970. elseif Type == 2 then
  971. table.insert(Effects, {
  972. prt,
  973. "Block2",
  974. delay,
  975. x3,
  976. y3,
  977. z3,
  978. msh
  979. })
  980. end
  981. end;
  982. };
  983.  
  984. ["Sphere"] = {
  985. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  986. local prt = CFuncs["Part"].Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  987. prt.Anchored = true
  988. prt.CFrame = cframe
  989. local msh = CFuncs["Mesh"].Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  990. game:GetService("Debris"):AddItem(prt, 10)
  991. table.insert(Effects, {
  992. prt,
  993. "Cylinder",
  994. delay,
  995. x3,
  996. y3,
  997. z3,
  998. msh
  999. })
  1000. end;
  1001. };
  1002.  
  1003. ["Ring"] = {
  1004. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1005. local prt = CFuncs["Part"].Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  1006. prt.Anchored = true
  1007. prt.CFrame = cframe
  1008. local msh = CFuncs["Mesh"].Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1009. game:GetService("Debris"):AddItem(prt, 10)
  1010. table.insert(Effects, {
  1011. prt,
  1012. "Cylinder",
  1013. delay,
  1014. x3,
  1015. y3,
  1016. z3,
  1017. msh
  1018. })
  1019. end;
  1020. };
  1021.  
  1022. ["Cylinder"] = {
  1023. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1024. local prt = CFuncs["Part"].Create(workspace, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.2, 0.2, 0.2))
  1025. prt.Anchored = true
  1026. prt.CFrame = cframe
  1027. local msh = CFuncs["Mesh"].Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1028. game:GetService("Debris"):AddItem(prt, 2)
  1029. Effects[#Effects + 1] = {
  1030. prt,
  1031. "Cylinder",
  1032. delay,
  1033. x3,
  1034. y3,
  1035. z3,
  1036. msh
  1037. }
  1038. end;
  1039. };
  1040.  
  1041. ["Wave"] = {
  1042. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1043. local prt = CFuncs["Part"].Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  1044. prt.Anchored = true
  1045. prt.CFrame = cframe
  1046. local msh = CFuncs["Mesh"].Create("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1047. game:GetService("Debris"):AddItem(prt, 10)
  1048. table.insert(Effects, {
  1049. prt,
  1050. "Cylinder",
  1051. delay,
  1052. x3,
  1053. y3,
  1054. z3,
  1055. msh
  1056. })
  1057. end;
  1058. };
  1059.  
  1060. ["Break"] = {
  1061. Create = function(brickcolor, cframe, x1, y1, z1)
  1062. local prt = CFuncs["Part"].Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  1063. prt.Anchored = true
  1064. prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1065. local msh = CFuncs["Mesh"].Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1066. local num = math.random(10, 50) / 1000
  1067. game:GetService("Debris"):AddItem(prt, 10)
  1068. table.insert(Effects, {
  1069. prt,
  1070. "Shatter",
  1071. num,
  1072. prt.CFrame,
  1073. math.random() - math.random(),
  1074. 0,
  1075. math.random(50, 100) / 100
  1076. })
  1077. end;
  1078. };
  1079. }
  1080.  
  1081. Shoot = function(orgpos)
  1082. rand = 1.5
  1083. spread = Vector3.new((math.random(-1, 0) + math.random()) * rand, (math.random(-1, 0) + math.random()) * rand, (math.random(-1, 0) + math.random()) * rand) * (orgpos - mouse.Hit.p).magnitude / 100
  1084. local MouseLook = CFrame.new((orgpos + mouse.Hit.p) / 2, mouse.Hit.p + spread)
  1085. Effects["Sphere"].Create(BrickColor.new("Really red"), CFrame.new(orgpos), 5, 5, 5, 1, 1, 1, 0.1)
  1086. table.insert(Effects, {MouseLook.lookVector, "Shoot", 50, orgpos, 5, 7, 0, 1, 2})
  1087. end
  1088.  
  1089.  
  1090. Shoot2 = function(orgpos)
  1091. local MouseLook = CFrame.new((orgpos + mouse.Hit.p) / 2, mouse.Hit.p)
  1092. Effects["Sphere"].Create(BrickColor.new("Really red"), CFrame.new(orgpos), 5, 5, 5, 3, 3, 3, 0.1)
  1093. table.insert(Effects, {MouseLook.lookVector, "Shoot2", 50, orgpos, 5, 7, 0, 1, 1})
  1094. end
  1095.  
  1096. function attackone()
  1097. attack=true
  1098. local con = RightArm.Touched:connect(function(hit)
  1099. Damagefunc(RightArm, hit, 10, 18, math.random(1, 5), "Normal", RootPart, .2, "rbxassetid://191395549", 1)
  1100. end)
  1101. for i = 0, 1, 0.1 do
  1102. swait()
  1103. PlayAnimationFromTable({
  1104. CFrame.new(-8.19563866e-008, -0.926991284, 0.26000905, 0.642788053, -2.1072232e-007, -0.76604408, 0.383023053, 0.866024733, 0.321394652, 0.663413048, -0.500001192, 0.556670368),
  1105. CFrame.new(2.32182992e-006, 1.50000072, -1.66944517e-006, 0.882947683, 2.74181366e-006, 0.469471604, -1.92224979e-006, 1.00000012, -2.23517418e-006, -0.469471574, 1.13248825e-006, 0.882947683),
  1106. CFrame.new(1.46558726, 0.204997286, -0.167155817, 0.946657062, -0.316108316, 0.0625789165, 0.173647285, 0.336823672, -0.925416887, 0.271453917, 0.886919022, 0.373747736),
  1107. CFrame.new(-0.665765822, 0.648539662, -0.845699847, 0.283812433, -0.950440884, -0.126935989, -0.21073103, 0.0673191994, -0.975223362, 0.935437262, 0.303529859, -0.181181341),
  1108. CFrame.new(0.872051775, -2.2949996, 0.466255367, 0.858161926, -0.282309622, -0.428788513, 0.397847503, 0.893582463, 0.207913056, 0.324461967, -0.349015445, 0.879154563),
  1109. CFrame.new(-0.48063159, -1.99999714, -0.137818694, 0.970295548, -0.128200591, 0.205161899, 3.27825546e-007, 0.848046899, 0.529921412, -0.241923124, -0.514180243, 0.822855949),
  1110. }, .3, false)
  1111. end
  1112. CFuncs["Sound"].Create("http://www.roblox.com/asset/?id=231917961",RootPart,1,1.5)
  1113. for i = 0, 1, 0.3 do
  1114. swait()
  1115. PlayAnimationFromTable({
  1116. CFrame.new(0.389811993, -0.0587998107, -1.35773087, 0.224407896, -0.577476978, 0.784959555, 0.0698799714, 0.812965989, 0.578103065, -0.971986532, -0.0748779476, 0.222790077),
  1117. CFrame.new(0.222052127, 1.4264009, 0.148264557, 0.521589875, 0.512562335, -0.682073295, -0.577217638, 0.800701499, 0.160303235, 0.628302455, 0.310092151, 0.713497758),
  1118. CFrame.new(1.47409725, 0.672455788, -0.958007276, 0.606644511, 0.443375945, 0.65984869, 0.532932937, 0.389079511, -0.751398623, -0.589885592, 0.807486951, -0.000256672502),
  1119. CFrame.new(-1.17105567, 0.824866772, -1.02421784, 0.951292276, -0.22673665, 0.208886206, 0.0737030655, -0.490651935, -0.868233085, 0.299350679, 0.841338933, -0.450042278),
  1120. CFrame.new(0.712329865, -1.9457705, -0.605054796, 0.371164441, -0.194775641, -0.907909334, -0.345265985, 0.878701806, -0.329658598, 0.861990988, 0.435827821, 0.25889343),
  1121. CFrame.new(-0.889490485, -1.59166956, -1.11138487, 0.687172055, 0.298594475, -0.662295997, -0.4064188, 0.913634777, -0.00977404043, 0.602178216, 0.275885969, 0.749178648),
  1122. }, .3, false)
  1123. end
  1124. for i = 0, 1, 0.13 do
  1125. swait()
  1126. PlayAnimationFromTable({
  1127. CFrame.new(0.269812316, -0.14880009, -1.14773154, 0.663143218, -0.410594463, 0.625822067, 0.0633100197, 0.863882959, 0.499697924, -0.745810211, -0.29175052, 0.5988729),
  1128. CFrame.new(0.101694278, 1.53342617, 0.0394362025, 0.929754734, 0.350646675, -0.112263024, -0.356580615, 0.933515787, -0.0373977572, 0.091685921, 0.0748015046, 0.992974639),
  1129. CFrame.new(1.48052311, 0.44670859, -0.587891102, 0.921421409, 0.296231985, 0.251454353, 0.375434518, -0.511921763, -0.772648036, -0.100158155, 0.806339145, -0.582911253),
  1130. CFrame.new(-1.41428804, 0.472952932, -0.465051353, 0.932108521, 0.265078962, 0.246793225, 0.343949646, -0.43441236, -0.832457006, -0.113456786, 0.860824585, -0.496093273),
  1131. CFrame.new(1.16719246, -1.66911542, -0.848163724, 0.758130491, -0.242845088, -0.605197906, -0.141788512, 0.84447962, -0.516478777, 0.63650161, 0.477368414, 0.605792999),
  1132. CFrame.new(-0.535024107, -1.78884733, -0.659196734, 0.950908542, 0.118247926, -0.285990536, -0.150128737, 0.984360635, -0.0921713412, 0.270618796, 0.130581871, 0.953789234),
  1133. }, .3, false)
  1134. end
  1135. con:disconnect()
  1136. attack=false
  1137. end
  1138.  
  1139. function attacktwo()
  1140. attack=true
  1141. local con = LeftArm.Touched:connect(function(hit)
  1142. Damagefunc(LeftArm, hit, 10, 18, math.random(1, 5), "Normal", RootPart, .2, "rbxassetid://191395549", 1)
  1143. end)
  1144. for i = 0, 1, 0.1 do
  1145. swait()
  1146. PlayAnimationFromTable({
  1147. CFrame.new(-3.57627869e-007, -0.311072171, 0.259536475, 0.719340086, 2.46536985e-007, 0.694658101, -0.144428015, 0.978147566, 0.149559394, -0.679478049, -0.207912162, 0.703620791),
  1148. CFrame.new(-0.00403206423, 1.50866973, -0.168565765, 0.868102551, -0.109439641, -0.484170496, 0.139950305, 0.989784956, 0.0272000879, 0.476247847, -0.0913722664, 0.874550819),
  1149. CFrame.new(1.71053994, 0.401797831, -0.218020931, 0.927188873, -0.33934617, 0.158634782, 0.277330935, 0.337177336, -0.89966619, 0.251810163, 0.878154755, 0.406738281),
  1150. CFrame.new(-1.58522081, 0.57710588, 0.0882365853, 0.56041044, -0.0241708159, -0.827862263, -0.822142422, -0.137058645, -0.552536786, -0.100110441, 0.990268111, -0.0966809094),
  1151. CFrame.new(0.632559597, -1.715204, -0.597933352, 0.984807849, -1.34110451e-007, -0.173648149, 1.63912773e-007, 1.00000012, 8.94069672e-008, 0.173648149, -1.34110451e-007, 0.984807849),
  1152. CFrame.new(-0.73102808, -2.07069063, 0.239238739, 0.984807849, 0.0650493801, -0.161003947, 1.63912773e-007, 0.927184522, 0.374605268, 0.173648149, -0.368914247, 0.913098454),
  1153. }, .3, false)
  1154. end
  1155. CFuncs["Sound"].Create("http://www.roblox.com/asset/?id=231917961",RootPart,1,1.8)
  1156. for i = 0, 1, 0.3 do
  1157. swait()
  1158. PlayAnimationFromTable({
  1159. CFrame.new(0.0155655742, -0.311072022, -1.23832858, 0.468161941, 0.0963771641, -0.878371179, 0.167635977, 0.966295958, 0.195372581, 0.867595851, -0.238712624, 0.436226696),
  1160. CFrame.new(0.0293009467, 1.5340941, -0.185427338, 0.804762483, -0.281303942, 0.522709906, 0.234380901, 0.959614992, 0.155578732, -0.545365214, -0.00269068778, 0.83819437),
  1161. CFrame.new(1.49328589, 0.140407741, -0.218264878, 0.988339663, 0.12733686, 0.0834876299, 0.0394009799, 0.315751076, -0.948023796, -0.147079676, 0.940258861, 0.307052106),
  1162. CFrame.new(-1.43885946, 0.879315019, -0.981875777, 0.600022733, 0.653021514, -0.462099105, -0.479813218, -0.168435588, -0.861051023, -0.640118778, 0.738371432, 0.212263182),
  1163. CFrame.new(0.638569057, -1.94573832, -0.437098205, 0.995236516, 0.0701678097, 0.0676821172, -0.069176957, 0.997461736, -0.0168768615, -0.0686945617, 0.0121144131, 0.997564256),
  1164. CFrame.new(-0.866744161, -1.71565473, -0.414347857, 0.863139033, 0.439523697, 0.248616189, -0.319669306, 0.856724083, -0.404766202, -0.390899748, 0.26989454, 0.879974127),
  1165. }, .3, false)
  1166. end
  1167. for i = 0, 1, 0.13 do
  1168. swait()
  1169. PlayAnimationFromTable({
  1170. CFrame.new(0.0155678391, -0.311080545, -1.23834062, 0.763116896, 0.0963793695, -0.639038563, 0.0822451115, 0.966304779, 0.243945107, 0.641007423, -0.238712624, 0.729474902),
  1171. CFrame.new(0.0966357067, 1.53412056, -0.160952657, 0.950461924, -0.259809315, 0.170655966, 0.234385133, 0.959622741, 0.155581251, -0.204184979, -0.107874453, 0.972977281),
  1172. CFrame.new(1.45807779, 0.257657468, -0.104592152, 0.971470833, -0.234161496, -0.0376187563, 0.0394039005, 0.315753937, -0.948031962, 0.233871043, 0.919499755, 0.315971196),
  1173. CFrame.new(-1.2602191, 0.691950202, -0.608101606, 0.796123207, 0.328872085, -0.507969677, -0.479815751, -0.168435544, -0.861059844, -0.368736863, 0.929238677, 0.0237016603),
  1174. CFrame.new(0.755801916, -1.94576848, -0.166058868, 0.948501468, 0.0605239719, -0.310940623, -0.0691750348, 0.997470737, -0.016877003, 0.309132606, 0.0375175029, 0.950285435),
  1175. CFrame.new(-0.648413956, -1.7156713, -0.708873153, 0.946721911, 0.321297288, -0.0220597982, -0.319670171, 0.929202139, -0.185481369, -0.0390961468, 0.182651147, 0.982403576),
  1176. }, .3, false)
  1177. end
  1178. con:disconnect()
  1179. attack=false
  1180. end
  1181. function attackthree()
  1182. attack=true
  1183. local con = RightArm.Touched:connect(function(hit)
  1184. Damagefunc(RightArm, hit, 10, 18, math.random(1, 5), "Normal", RootPart, .2, "rbxassetid://191395549", 1)
  1185. end)
  1186. for i = 0, 1, 0.1 do
  1187. swait()
  1188. PlayAnimationFromTable({
  1189. CFrame.new(0.00929157436, 1.08033419e-007, 0.302203268, 0.848044395, -0.110175796, -0.518339515, 0, 0.978147864, -0.207910523, 0.529919326, 0.176317334, 0.829512894),
  1190. CFrame.new(0.0635877922, 1.48837936, -0.212326095, 0.866024196, 0, 0.500002265, -0.103955716, 0.978147864, 0.180055529, -0.489076138, -0.207910523, 0.847099781),
  1191. CFrame.new(1.59116602, 0.511400402, -0.287502974, 0.984807611, 0.0121147037, 0.173225865, 0.169854075, 0.14020817, -0.975444138, -0.0361049175, 0.990048051, 0.136020347),
  1192. CFrame.new(-1.71726346, -0.0722900257, -0.340096414, 0.984807611, 0.111620426, -0.13302201, -0.169854701, 0.778457224, -0.604279697, 0.0361019969, 0.617693722, 0.785589814),
  1193. CFrame.new(0.447006732, -1.97392821, 0.332865596, 0.984808564, 0, -0.173644274, 0.0361024663, 0.978147864, 0.204752028, 0.169849783, -0.207910523, 0.963288426),
  1194. CFrame.new(-0.628189504, -1.9523015, -0.334949553, 0.951055348, 0.0747591928, 0.299841464, -0.0642486662, 0.996928871, -0.0447755903, -0.302268028, 0.0233196467, 0.952937722),
  1195. }, .3, false)
  1196. end
  1197. CFuncs["Sound"].Create("http://www.roblox.com/asset/?id=231917961",RootPart,1,2)
  1198. for i = 0, 1, 0.3 do
  1199. swait()
  1200. PlayAnimationFromTable({
  1201. CFrame.new(0.150700375, 0.0663888603, -0.843914688, 0.0131689543, 0.108801603, 0.993973136, -0.204883918, 0.973264575, -0.103820346, -0.978694618, -0.202281937, 0.0351085775),
  1202. CFrame.new(0.0546556115, 1.52673519, -0.278289795, 0.314958513, 0.15719229, -0.935997725, 0.165985525, 0.961868107, 0.217390224, 0.934478402, -0.223830998, 0.276856989),
  1203. CFrame.new(1.78718209, 0.369111359, -0.269202977, 0.793624938, -0.604179978, -0.0715958178, 0.248083979, 0.428809822, -0.868663669, 0.55553019, 0.671631277, 0.490201563),
  1204. CFrame.new(-1.35658503, -0.0722829998, -1.10649741, 0.852582932, -0.408921659, -0.325400263, -0.169855624, 0.372022748, -0.91255039, 0.494217873, 0.833296061, 0.247722581),
  1205. CFrame.new(0.92930758, -1.87670553, 0.47637701, 0.8369627, -0.204883918, -0.507460415, 0.229201645, 0.973264575, -0.0149234831, 0.496950835, -0.103820346, 0.86154592),
  1206. CFrame.new(-0.427098006, -2.03601527, 0.118608348, 0.812621593, 0.0875203013, -0.576182544, 0.0223887265, 0.983241737, 0.180927277, 0.582361579, -0.159925371, 0.79704392),
  1207. }, .3, false)
  1208. end
  1209. for i = 0, 1, 0.15 do
  1210. swait()
  1211. PlayAnimationFromTable({
  1212. CFrame.new(0.150699973, 0.066389136, -0.843913615, 0.777764738, 0.0460220762, 0.626863539, -0.111311011, 0.991637707, 0.0653037652, -0.618616164, -0.120567776, 0.776383519),
  1213. CFrame.new(-0.0225694887, 1.53084791, -0.259515226, 0.930863917, 0.0271560997, -0.364355624, 0.0810273215, 0.957058311, 0.27834174, 0.356268227, -0.288621008, 0.888690591),
  1214. CFrame.new(1.52179766, 0.517595887, -0.656128168, 0.955706477, 0.253106773, 0.150206998, 0.145480365, 0.0374001786, -0.988653958, -0.255852818, 0.966715217, -0.00107847899),
  1215. CFrame.new(-1.46092606, 0.414187402, -0.0133414343, 0.904185414, 0.3494322, -0.245654047, -0.271388531, 0.0258599296, -0.96212256, -0.329843998, 0.936604679, 0.118214041),
  1216. CFrame.new(0.74789077, -1.97789741, -0.333561718, 0.977152228, -0.111311011, -0.181062788, 0.0972389579, 0.991637707, -0.0848487392, 0.188993275, 0.0653037652, 0.979804635),
  1217. CFrame.new(-0.513150632, -2.00339508, 0.354237109, 0.96541512, 0.0335939676, 0.258544713, -0.0822335109, 0.980280161, 0.179690391, -0.247409672, -0.194736823, 0.949139714),
  1218. }, .3, false)
  1219. end
  1220. con:disconnect()
  1221. attack=false
  1222. end
  1223. function boost()
  1224. attack=true
  1225. local con = RightArm.Touched:connect(function(hit)
  1226. Damagefunc(RightArm, hit, 10, 18, math.random(1, 5), "Knockdown", RootPart, .2, "rbxassetid://231917806", 2)
  1227. end)
  1228. for i = 0, 1, 0.075 do
  1229. swait()
  1230. PlayAnimationFromTable({
  1231. CFrame.new(0.00391239673, -1.86264515e-007, 0.132759839, 0.927184582, -0.103254825, -0.360093355, 0, 0.961261988, -0.275636673, 0.374604821, 0.255566061, 0.89126724),
  1232. CFrame.new(0.104889624, 1.51345134, -0.163900763, 0.994522095, 0, 0.104525983, -0.0288112015, 0.961261988, 0.274126768, -0.100476846, -0.275636673, 0.955996275),
  1233. CFrame.new(1.43631327, 0.456409395, -0.294848949, 0.98480773, -0.0478649437, 0.16692099, 0.166921437, 0.525896132, -0.834008873, -0.0478633344, 0.849201024, 0.525896311),
  1234. CFrame.new(-1.56367612, -0.043448586, -0.15152283, 0.984807789, 0.120623961, -0.124913871, -0.166920543, 0.855879307, -0.489498019, 0.0478659868, 0.502911985, 0.863011301),
  1235. CFrame.new(0.47172308, -1.75763869, -0.179767966, 0.98480767, 0, -0.173648566, 0.0478639007, 0.961261988, 0.271449089, 0.166921735, -0.275636673, 0.946658075),
  1236. CFrame.new(-0.628586531, -1.95874405, 0.424958766, 0.970295727, 0, 0.241922066, -0.066682592, 0.961261988, 0.267449051, -0.232550442, -0.275636673, 0.932708323),
  1237. }, .2, false)
  1238. end
  1239. CFuncs["Sound"].Create("http://www.roblox.com/asset/?id=240517987",RootPart,1,2)
  1240. local parti = Instance.new("ParticleEmitter", Thruster1)
  1241. parti.LightEmission = 1
  1242. parti.Texture = "http://www.roblox.com/asset/?id=359293256"
  1243. parti.Size = NumberSequence.new({
  1244. NumberSequenceKeypoint.new(0, 2.06),
  1245. NumberSequenceKeypoint.new(1, 0)
  1246. })
  1247. parti.ZOffset = 0
  1248. parti.LockedToPart = true
  1249. parti.EmissionDirection = "Top"
  1250. parti.Lifetime = NumberRange.new(0, 1.5)
  1251. parti.Rate = 1000
  1252. parti.Speed = NumberRange.new(2, 4)
  1253.  
  1254. local parti2 = Instance.new("ParticleEmitter", Thruster2)
  1255. parti2.LightEmission = 1
  1256. parti2.Texture = "http://www.roblox.com/asset/?id=359293256"
  1257. parti2.Size = NumberSequence.new({
  1258. NumberSequenceKeypoint.new(0, 1.06),
  1259. NumberSequenceKeypoint.new(1, 0)
  1260. })
  1261. parti2.ZOffset = 0
  1262. parti2.LockedToPart = true
  1263. parti2.EmissionDirection = "Bottom"
  1264. parti2.Lifetime = NumberRange.new(0, 1.5)
  1265. parti2.Rate = 1000
  1266. parti2.Speed = NumberRange.new(2, 4)
  1267.  
  1268. local parti3 = Instance.new("ParticleEmitter", Thruster3)
  1269. parti3.LightEmission = 1
  1270. parti3.Texture = "http://www.roblox.com/asset/?id=359293256"
  1271. parti3.Size = NumberSequence.new({
  1272. NumberSequenceKeypoint.new(0, 1.06),
  1273. NumberSequenceKeypoint.new(1, 0)
  1274. })
  1275. parti3.ZOffset = 0
  1276. parti3.LockedToPart = true
  1277. parti3.EmissionDirection = "Bottom"
  1278. parti3.Lifetime = NumberRange.new(0, 1.5)
  1279. parti3.Rate = 1000
  1280. parti3.Speed = NumberRange.new(2, 4)
  1281.  
  1282. for i = 0, 1, 0.3 do
  1283. swait()
  1284. PlayAnimationFromTable({
  1285. CFrame.new(-0.035269767, -0.34604463, -0.556671143, 0.719338238, 0.191475794, 0.667749643, -0.260225087, 0.96554184, 0.00346233556, -0.644077241, -0.176255807, 0.744377911),
  1286. CFrame.new(0.104893088, 1.51344919, -0.163899526, 0.913545012, -1.04308128e-007, -0.406737924, 0.112112775, 0.961261451, 0.251808256, 0.390981376, -0.27563864, 0.87815547),
  1287. CFrame.new(0.8536461, 0.301312327, -0.835722506, 0.679229259, 0.714323819, 0.168491006, 0.0933744684, 0.14360176, -0.98522073, -0.727962136, 0.68492341, 0.030838903),
  1288. CFrame.new(-1.56367016, -0.0434497148, -0.151517451, 0.771243215, 0.624164939, -0.124908745, -0.595103145, 0.63737464, -0.489495754, -0.225912362, 0.451853812, 0.863013268),
  1289. CFrame.new(0.604393482, -1.72069025, -0.512978137, 0.984807014, 0.0361037254, -0.169858038, 0.0478659645, 0.883817971, 0.46537596, 0.166925341, -0.466435909, 0.868662),
  1290. CFrame.new(-0.628583908, -1.958745, 0.424968272, 0.97029686, -2.5331974e-006, 0.24191761, -0.0666790009, 0.961261988, 0.267450064, -0.232546806, -0.275636792, 0.932709277),
  1291. }, .3, false)
  1292. end
  1293. for i = 0,5,1 do
  1294. for i = 0, 1, 0.1 do
  1295. swait()
  1296. Torso.Velocity=RootPart.CFrame.lookVector*75
  1297. PlayAnimationFromTable({
  1298. CFrame.new(-0.0352721214, -0.346046209, -0.556673169, 0.719338238, -0.0966780856, 0.687899649, -0.260225087, 0.880657077, 0.395886421, -0.644077241, -0.463784903, 0.608332276),
  1299. CFrame.new(0.169040173, 1.49889517, -0.233877718, 0.913545012, 0.0706292391, -0.40055868, -0.0566073358, 0.9973014, 0.0467479229, 0.40277946, -0.0200317502, 0.915077865),
  1300. CFrame.new(0.8536461, 0.615182996, -0.640914381, 0.679229259, 0.714323819, 0.168491006, 0.381392211, -0.147398382, -0.912586331, -0.627046883, 0.684116364, -0.372554898),
  1301. CFrame.new(-1.56367111, 0.0219350085, -0.156092331, 0.771243215, 0.6358428, 0.0298009217, -0.451765805, 0.579748511, -0.678085089, -0.448432624, 0.50950551, 0.734379113),
  1302. CFrame.new(0.79140538, -1.38841283, -0.989657521, 0.984807014, 0.0361037254, -0.169858038, -0.0241673738, 0.997124493, 0.0718230307, 0.171962678, -0.066626817, 0.982847929),
  1303. CFrame.new(-0.847571194, -2.11993861, -0.201637805, 0.97029686, -2.5331974e-006, 0.24191761, 0.0336715579, 0.990267694, -0.135041565, -0.239562824, 0.13917619, 0.960853755),
  1304. }, .3, false)
  1305. end
  1306. end
  1307. for i = 0, 1, 0.075 do
  1308. swait()
  1309. Torso.Velocity=RootPart.CFrame.lookVector*10
  1310. PlayAnimationFromTable({
  1311. CFrame.new(-0.369770408, -0.346045107, -0.479932427, 0.295811146, 0.463011116, -0.835533738, -0.260225117, 0.880657077, 0.39588654, 0.919118404, 0.100319214, 0.380995333),
  1312. CFrame.new(0.169045389, 1.49889588, -0.233876124, 0.737500429, -0.117239244, 0.665092468, -0.0657278001, 0.96768105, 0.243461519, -0.672140598, -0.223268062, 0.70595932),
  1313. CFrame.new(1.4051218, 0.675374985, -0.412314236, 0.96937716, 0.178659379, 0.168489397, 0.221912861, -0.343425125, -0.912586391, -0.105178654, 0.922030449, -0.372555345),
  1314. CFrame.new(-1.47490251, 0.331612647, 0.0469399467, 0.771242917, 0.531924129, -0.349630058, -0.451765448, 0.0704561248, -0.889350414, -0.44843328, 0.843855977, 0.29464373),
  1315. CFrame.new(1.08964574, -1.523844, -0.492351711, 0.914350629, -0.367575347, -0.169856936, 0.383490056, 0.920747817, 0.0718262494, 0.129993871, -0.130812764, 0.982847929),
  1316. CFrame.new(-0.606477261, -1.55521417, -1.29940081, 0.970295846, 0.0983953923, 0.221007496, 0.0336730108, 0.84972775, -0.526145518, -0.239566386, 0.517958879, 0.821174026),
  1317. }, .3, false)
  1318. end
  1319. con:disconnect()
  1320. attack=false
  1321. parti2.Parent=nil
  1322. parti3.Parent=nil
  1323. parti.Parent=nil
  1324. end
  1325. function minigunmode()
  1326. attack=true
  1327. minigun=true
  1328. for i = 0, 1, 0.13 do
  1329. swait()
  1330. PlayAnimationFromTable({
  1331. CFrame.new(0, -0, -0, 0.920504808, 0, -0.390731037, 0, 1, 0, 0.390731037, 0, 0.920504808),
  1332. CFrame.new(-3.35276127e-008, 1.50000012, -7.4505806e-008, 0.920504749, -0.0408425145, 0.388590544, 0, 0.994521916, 0.104528457, -0.390731007, -0.096218951, 0.915462136),
  1333. CFrame.new(1.93064535, 0.670000315, -0.537570596, -0.10086076, -0.907824099, 0.407040954, 0.984575033, -0.0322870314, 0.171958223, -0.142965674, 0.418106169, 0.897077441),
  1334. CFrame.new(-1.49244416, 3.27825546e-007, 0.264654547, 0.805377722, 0.290638238, 0.516619623, -0.0969422758, 0.924393654, -0.368915528, -0.584780812, 0.247034103, 0.772661269),
  1335. CFrame.new(0.419332564, -2, -0.272318661, 0.920504749, 0, 0.390731007, 0, 1, 0, -0.390731007, 0, 0.920504749),
  1336. CFrame.new(-0.419336081, -2, 0.272320151, 0.920504749, 0, 0.390731007, 0, 1, 0, -0.390731007, 0, 0.920504749),
  1337. }, .3, false)
  1338. AFMotor2Weld.C0 = clerp(AFMotor2Weld.C0, CFrame.new(0, 1, -1.5) * angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  1339.  
  1340. end
  1341. for i = 0, 1, 0.1 do
  1342. swait()
  1343. PlayAnimationFromTable({
  1344. CFrame.new(0, -0, -0, 0.920504808, 0, -0.390731037, 0, 1, 0, 0.390731037, 0, 0.920504808),
  1345. CFrame.new(-3.35276127e-008, 1.50000012, -7.4505806e-008, 0.920504749, -0.0408425145, 0.388590544, 0, 0.994521916, 0.104528457, -0.390731007, -0.096218951, 0.915462136),
  1346. CFrame.new(1.93064535, 0.670000315, -0.537570596, -0.10086076, -0.907824099, 0.407040954, 0.984575033, -0.0322870314, 0.171958223, -0.142965674, 0.418106169, 0.897077441),
  1347. CFrame.new(-1.49244416, 3.27825546e-007, 0.264654547, 0.805377722, 0.290638238, 0.516619623, -0.0969422758, 0.924393654, -0.368915528, -0.584780812, 0.247034103, 0.772661269),
  1348. CFrame.new(0.419332564, -2, -0.272318661, 0.920504749, 0, 0.390731007, 0, 1, 0, -0.390731007, 0, 0.920504749),
  1349. CFrame.new(-0.419336081, -2, 0.272320151, 0.920504749, 0, 0.390731007, 0, 1, 0, -0.390731007, 0, 0.920504749),
  1350. }, .3, false)
  1351. AFMotor2Weld.C0 = clerp(AFMotor2Weld.C0, CFrame.new(0, 1, -1.5) * angles(math.rad(0), math.rad(90), math.rad(0)), .3)
  1352.  
  1353. end
  1354. for i = 0, 1, 0.15 do
  1355. swait()
  1356. PlayAnimationFromTable({
  1357. CFrame.new(0, -0, -0, 0.642787576, 0, -0.766044378, 0, 1, 0, 0.766044378, 0, 0.642787576),
  1358. CFrame.new(-7.4505806e-008, 1.50000012, -5.21540642e-008, 0.642787516, -0.080073446, 0.761847854, 0, 0.994521916, 0.104528457, -0.766044319, -0.0671895966, 0.639266312),
  1359. CFrame.new(1.60207367, 0.670000613, -0.727663994, -0.154772654, -0.619060934, 0.769940794, 0.984575033, -0.0322870314, 0.171958223, -0.0815935135, 0.784678876, 0.614509046),
  1360. CFrame.new(-1.61730015, 7.15255737e-007, 0.310204506, 0.45211184, 0.371111691, 0.811092377, -0.0969422832, 0.924393654, -0.368915498, -0.886677384, 0.0881619602, 0.453905761),
  1361. CFrame.new(0.786227643, -2, 0.0169382486, 0.999847531, 0, -0.017452687, 0, 1, 0, 0.017452687, 0, 0.999847531),
  1362. CFrame.new(-0.250000417, -2, 0.433013648, 0.642787516, 0, 0.766044319, 0, 1, 0, -0.766044319, 0, 0.642787516),
  1363. }, .3, false)
  1364. AFMotor2Weld.C0 = clerp(AFMotor2Weld.C0, CFrame.new(5, 1, -1) * angles(math.rad(0), math.rad(90), math.rad(0)), .3)
  1365. end
  1366. CFuncs["Sound"].Create("http://www.roblox.com/asset/?id=191395766",RootPart,1,1.5)
  1367. AFMotor2.Transparency = 1
  1368. AMotor2Weld.Part0 = RightArm
  1369. AMotor2Weld.C1 = CFrame.new(-0.035036087, -0.129943848, -1.52000952, 0, 0, 1, 1, 0, 0, 0, 0.999999881, 0)
  1370. for i = 0, 1, 0.1 do
  1371. swait()
  1372. PlayAnimationFromTable({
  1373. CFrame.new(0, -0, -0, 0.788010716, 0, -0.615661383, 0, 1, 0, 0.615661383, 0, 0.788010716),
  1374. CFrame.new(-5.06639481e-007, 1.5, -6.2584877e-007, 0.788010657, -0.12800321, 0.602207661, 0, 0.978147626, 0.207911685, -0.615661323, -0.163836643, 0.770790756),
  1375. CFrame.new(1.95475662, 0.670000613, -0.563369751, -0.134426251, -0.768676877, 0.625352085, 0.984575033, -0.0322870314, 0.171958223, -0.111989558, 0.638821721, 0.761160254),
  1376. CFrame.new(-1.5233202, 2.08616257e-007, 0.124773204, 0.626582742, 0.344672084, 0.69899565, -0.0969422832, 0.924393654, -0.368915498, -0.773301959, 0.163393885, 0.61262244),
  1377. CFrame.new(0.765525103, -2, 0.180034071, 0.974369884, 0, -0.224951357, 0, 1, 0, 0.224951357, 0, 0.974369884),
  1378. CFrame.new(-0.440464586, -2, 0.0736047029, 0.788010716, 0, 0.615661383, 0, 1, 0, -0.615661383, 0, 0.788010716),
  1379. }, .3, false)
  1380. AFMotor2Weld.C0 = clerp(AFMotor2Weld.C0, CFrame.new(0,0,0) * angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  1381. end
  1382. attack=false
  1383. end
  1384.  
  1385. function unminigun()
  1386. attack=true
  1387. minigun=true
  1388. for i = 0, 1, 0.13 do
  1389. swait()
  1390. PlayAnimationFromTable({
  1391. CFrame.new(0, -0, -0, 0.920504808, 0, -0.390731037, 0, 1, 0, 0.390731037, 0, 0.920504808),
  1392. CFrame.new(-3.35276127e-008, 1.50000012, -7.4505806e-008, 0.920504749, -0.0408425145, 0.388590544, 0, 0.994521916, 0.104528457, -0.390731007, -0.096218951, 0.915462136),
  1393. CFrame.new(1.93064535, 0.670000315, -0.537570596, -0.10086076, -0.907824099, 0.407040954, 0.984575033, -0.0322870314, 0.171958223, -0.142965674, 0.418106169, 0.897077441),
  1394. CFrame.new(-1.49244416, 3.27825546e-007, 0.264654547, 0.805377722, 0.290638238, 0.516619623, -0.0969422758, 0.924393654, -0.368915528, -0.584780812, 0.247034103, 0.772661269),
  1395. CFrame.new(0.419332564, -2, -0.272318661, 0.920504749, 0, 0.390731007, 0, 1, 0, -0.390731007, 0, 0.920504749),
  1396. CFrame.new(-0.419336081, -2, 0.272320151, 0.920504749, 0, 0.390731007, 0, 1, 0, -0.390731007, 0, 0.920504749),
  1397. }, .3, false)
  1398.  
  1399. end
  1400. for i = 0, 1, 0.1 do
  1401. swait()
  1402. PlayAnimationFromTable({
  1403. CFrame.new(0, -0, -0, 0.920504808, 0, -0.390731037, 0, 1, 0, 0.390731037, 0, 0.920504808),
  1404. CFrame.new(-3.35276127e-008, 1.50000012, -7.4505806e-008, 0.920504749, -0.0408425145, 0.388590544, 0, 0.994521916, 0.104528457, -0.390731007, -0.096218951, 0.915462136),
  1405. CFrame.new(1.93064535, 0.670000315, -0.537570596, -0.10086076, -0.907824099, 0.407040954, 0.984575033, -0.0322870314, 0.171958223, -0.142965674, 0.418106169, 0.897077441),
  1406. CFrame.new(-1.49244416, 3.27825546e-007, 0.264654547, 0.805377722, 0.290638238, 0.516619623, -0.0969422758, 0.924393654, -0.368915528, -0.584780812, 0.247034103, 0.772661269),
  1407. CFrame.new(0.419332564, -2, -0.272318661, 0.920504749, 0, 0.390731007, 0, 1, 0, -0.390731007, 0, 0.920504749),
  1408. CFrame.new(-0.419336081, -2, 0.272320151, 0.920504749, 0, 0.390731007, 0, 1, 0, -0.390731007, 0, 0.920504749),
  1409. }, .3, false)
  1410.  
  1411. end
  1412. for i = 0, 1, 0.15 do
  1413. swait()
  1414. PlayAnimationFromTable({
  1415. CFrame.new(0, -0, -0, 0.642787576, 0, -0.766044378, 0, 1, 0, 0.766044378, 0, 0.642787576),
  1416. CFrame.new(-7.4505806e-008, 1.50000012, -5.21540642e-008, 0.642787516, -0.080073446, 0.761847854, 0, 0.994521916, 0.104528457, -0.766044319, -0.0671895966, 0.639266312),
  1417. CFrame.new(1.60207367, 0.670000613, -0.727663994, -0.154772654, -0.619060934, 0.769940794, 0.984575033, -0.0322870314, 0.171958223, -0.0815935135, 0.784678876, 0.614509046),
  1418. CFrame.new(-1.61730015, 7.15255737e-007, 0.310204506, 0.45211184, 0.371111691, 0.811092377, -0.0969422832, 0.924393654, -0.368915498, -0.886677384, 0.0881619602, 0.453905761),
  1419. CFrame.new(0.786227643, -2, 0.0169382486, 0.999847531, 0, -0.017452687, 0, 1, 0, 0.017452687, 0, 0.999847531),
  1420. CFrame.new(-0.250000417, -2, 0.433013648, 0.642787516, 0, 0.766044319, 0, 1, 0, -0.766044319, 0, 0.642787516),
  1421. }, .3, false)
  1422. AFMotor2Weld.C0 = clerp(AFMotor2Weld.C0, CFrame.new(0, 0, -5) * angles(math.rad(0), math.rad(90), math.rad(0)), .3)
  1423. end
  1424. AMotor2Weld.Part0 = RootPart
  1425. AMotor2Weld.C1 = CFrame.new(4.47993469, 1.56501913, -1.70001793, -1, 0, 0, 0, -1, 0, -0, -0, 1)
  1426. attack=false
  1427. minigun=false
  1428. end
  1429.  
  1430. function mattackone()
  1431. attack=true
  1432. for i = 0, 1, 0.1 do
  1433. swait()
  1434. PlayAnimationFromTable({
  1435. CFrame.new(-0, 0, 0, 0.766044438, 0, 0.642787576, -0.144595742, 0.974370062, 0.172322497, -0.626312971, -0.224951044, 0.746410787),
  1436. CFrame.new(0.0480910614, 1.45409858, -0.0573127121, 0.766044438, -0.0112181902, -0.642689705, 0, 0.99984771, -0.017452389, 0.642787576, 0.0133693069, 0.765927792),
  1437. CFrame.new(1.70229387, 0.883205295, -0.664011538, -0.162117422, -0.62401849, 0.764407516, 0.980277717, -0.19057098, 0.0523284823, 0.113019958, 0.757814944, 0.642606258),
  1438. CFrame.new(-1.37232471, 0.0912904516, -0.50709039, 0.945729136, -0.208051592, -0.249621913, -0.173036844, 0.327782989, -0.928771555, 0.275054216, 0.921560049, 0.273993373),
  1439. CFrame.new(0.782246947, -1.87060833, -0.372706503, 0.985309243, -0.144595742, -0.0908705592, 0.125790969, 0.974370062, -0.186492875, 0.115507662, 0.172322497, 0.978244662),
  1440. CFrame.new(-0.391765863, -2.09435773, -0.0926613212, 0.993154049, 0.0560226291, -0.102500916, -0.0487368628, 0.99619472, 0.0722554177, 0.106158763, -0.0667651892, 0.992105186),
  1441. }, .3, false)
  1442. end
  1443. for i = 0,5,1 do
  1444. for i = 0, 1, 0.5 do
  1445. swait()
  1446. PlayAnimationFromTable({
  1447. CFrame.new(-0, 0, 0, 0.854590118, 0.035190098, 0.518109441, -0.144595742, 0.974370062, 0.172322497, -0.498766273, -0.222181529, 0.83777535),
  1448. CFrame.new(-0.00292760134, 1.45299077, -0.0938585252, 0.854590118, -0.0377366394, -0.51793021, 0.035190098, 0.99927187, -0.0147433877, 0.518109441, -0.00562645495, 0.855295837),
  1449. CFrame.new(1.54096782, 1.0066359, -0.916992188, -0.304768145, -0.441245884, 0.844048858, 0.888571858, -0.450755715, 0.0852015913, 0.34286499, 0.775964737, 0.529454648),
  1450. CFrame.new(-1.43553936, 0.0441009998, -0.293311119, 0.981134534, -0.0747622252, -0.17828542, -0.142285034, 0.345081687, -0.927724957, 0.130881846, 0.935590327, 0.327934057),
  1451. CFrame.new(0.719916224, -1.88113189, -0.365503758, 0.987393856, -0.144595742, 0.0643844604, 0.153416187, 0.974370062, -0.164518833, -0.0389455557, 0.172322497, 0.984270334),
  1452. CFrame.new(-0.341048092, -2.10522199, 0.0113250762, 0.998729348, 0.0166085213, 0.0475788713, -0.0210358351, 0.995338917, 0.0941171199, -0.0457939506, -0.0949983746, 0.994423568),
  1453. }, .4, false)
  1454. end
  1455. CFuncs["Sound"].Create("http://www.roblox.com/asset/?id=233370772",RootPart,1,1.2)
  1456. Shoot(Barrel2.Position)
  1457. for i = 0, 1, 0.5 do
  1458. swait()
  1459. PlayAnimationFromTable({
  1460. CFrame.new(-0, 0, 0, 0.93405807, 0.0769378245, 0.348735064, -0.144595742, 0.974370062, 0.172322497, -0.32653892, -0.211384833, 0.921243072),
  1461. CFrame.new(-0.0718185157, 1.44867206, -0.12724562, 0.93405807, -0.0735447183, -0.349466413, 0.0769378245, 0.997027099, -0.00418263674, 0.348735064, -0.0229803771, 0.936939597),
  1462. CFrame.new(1.24298739, 0.821682334, -1.28185177, -0.186909989, -0.320542812, 0.928610265, 0.972599924, -0.193411171, 0.129001483, 0.138253093, 0.927277982, 0.347910345),
  1463. CFrame.new(-1.36315918, 0.110714599, -0.609230816, 0.992805481, 0.0878583044, -0.0813536271, -0.108417258, 0.371195495, -0.92220372, -0.0508251488, 0.924388885, 0.378050327),
  1464. CFrame.new(0.705901563, -1.86878705, -0.447065651, 0.956967533, -0.144595742, 0.251605332, 0.181989208, 0.974370062, -0.132222936, -0.2260378, 0.172322497, 0.958755314),
  1465. CFrame.new(-0.258142084, -2.11324835, 0.126275674, 0.973016679, -0.0366126522, 0.227811456, 0.00783266127, 0.992002547, 0.125974938, -0.230601817, -0.120791331, 0.965521753),
  1466. }, .4, false)
  1467. end
  1468. end
  1469. attack=false
  1470. end
  1471.  
  1472. function mattackthree()
  1473. attack=true
  1474. for i = 0, 1, 0.1 do
  1475. swait()
  1476. PlayAnimationFromTable({
  1477. CFrame.new(-0, -0, 0, 0.469471633, 0, 0.882947564, 0, 1, 0, -0.882947564, 0, 0.469471633),
  1478. CFrame.new(0, 1.5, 0, 0.469471604, 0, -0.882947505, 0, 1, 0, 0.882947505, 0, 0.469471604),
  1479. CFrame.new(1.0305258, 1.00000048, -0.882950068, 0.848008096, 0.529983222, -9.50098038e-005, 0.215463251, -0.344919175, -0.913567901, -0.484208375, 0.774692535, -0.406686187),
  1480. CFrame.new(-1.49999595, -1.87754631e-006, 3.51667404e-006, 0.817598403, 0.543970585, -0.188755706, -0.482325882, 0.467993826, -0.740502179, -0.31447494, 0.696475148, 0.645002246),
  1481. CFrame.new(0.498095661, -2, 0.0435770601, 0.965925753, 0, -0.258818984, 0, 1, 0, 0.258818984, 0, 0.965925753),
  1482. CFrame.new(-0.49809885, -2, -0.0435798988, 0.965925753, 0, -0.258818984, 0, 1, 0, 0.258818984, 0, 0.965925753),
  1483. }, .3, false)
  1484.  
  1485. end
  1486.  
  1487. for i = 0, 1, 0.2 do
  1488. swait()
  1489. PlayAnimationFromTable({
  1490. CFrame.new(-0, 0, 0, 0.987688422, 0, 0.156434387, -0.0457369946, 0.956304729, 0.288772196, -0.149598941, -0.29237175, 0.944531083),
  1491. CFrame.new(0.0211537257, 1.60987997, -0.133559421, 0.987688422, -0.00818714499, -0.156219989, 0, 0.99862957, -0.0523359627, 0.156434387, 0.0516916513, 0.986334801),
  1492. CFrame.new(1.07748401, 0.67411536, -1.02287543, 0.145925522, 0.282231152, 0.948183239, 0.962904334, 0.179383934, -0.201585561, -0.226982504, 0.942426205, -0.245584935),
  1493. CFrame.new(-1.6479485, -0.124089062, 0.149924487, 0.257008612, 0.861146927, 0.438603044, -0.207023472, 0.492371798, -0.845405996, -0.943974495, 0.126475468, 0.304821461),
  1494. CFrame.new(0.423169494, -1.79000783, -0.931019664, 0.997208357, -0.0457369946, 0.0590220839, 0.0607874915, 0.956304729, -0.285982698, -0.0433630943, 0.288772196, 0.956415236),
  1495. CFrame.new(-0.240227491, -2.03521132, -0.224069402, 0.783011556, -0.0457369946, 0.620323241, 0.213827133, 0.956304729, -0.199397042, -0.58409822, 0.288772196, 0.758577466),
  1496. }, .3, false)
  1497. end
  1498. CFuncs["Sound"].Create("http://www.roblox.com/asset/?id=233370772",RootPart,1,1.2)
  1499. Shoot(Barrel2.Position)
  1500. for i = 0, 1, 0.2 do
  1501. swait()
  1502. PlayAnimationFromTable({
  1503. CFrame.new(0, 0, 0, 0.994541168, 0.0707310885, -0.0767150074, -0.0457369946, 0.956304729, 0.288772196, 0.0937881023, -0.283687085, 0.954319417),
  1504. CFrame.new(-0.124878258, 1.60466897, -0.13943243, 0.994541168, -0.0670678094, 0.0799374133, 0.0707310885, 0.996528506, -0.0439092666, -0.0767150074, 0.0493236333, 0.995832384),
  1505. CFrame.new(1.35805857, 0.769007683, -1.29268444, 0.267778158, 0.0520904884, 0.962071538, 0.949526906, 0.155058742, -0.272682041, -0.163381711, 0.986531019, -0.00793997943),
  1506. CFrame.new(-1.55564368, -0.233869031, 0.528098583, 0.682602227, 0.717213154, 0.140212685, -0.639700413, 0.679180741, -0.359856814, -0.353323758, 0.155944929, 0.922411919),
  1507. CFrame.new(0.658852875, -1.86664438, -0.639899731, 0.953308403, -0.0457369946, 0.29851529, 0.128167287, 0.956304729, -0.262782037, -0.273452729, 0.288772196, 0.917515337),
  1508. CFrame.new(-0.537846982, -2.0791235, -0.125787899, 0.912872374, -0.061328277, 0.403612554, 0.103769839, 0.991038024, -0.084115237, -0.394836724, 0.118669257, 0.911055207),
  1509. }, .3, false)
  1510. end
  1511. CFuncs["Sound"].Create("http://www.roblox.com/asset/?id=233370772",RootPart,1,1.2)
  1512. Shoot(Barrel2.Position)
  1513. for i = 0, 1, 0.15 do
  1514. swait()
  1515. PlayAnimationFromTable({
  1516. CFrame.new(0, 0, 0, 0.737832844, 0.227215499, -0.63559103, -0.0457369946, 0.956304729, 0.288772196, 0.673432291, -0.18399556, 0.715985119),
  1517. CFrame.new(0.0244993512, 1.58054256, -0.0358743519, 0.894873619, -0.151784539, 0.41971761, 0.167697474, 0.985837996, -0.00103181601, -0.413616896, 0.0713089406, 0.907654166),
  1518. CFrame.new(1.36837888, 0.682929575, -1.00599003, 0.362803906, -0.167444676, 0.916698337, 0.928528488, 0.148135036, -0.340427488, -0.0787923485, 0.974688888, 0.209221065),
  1519. CFrame.new(-1.6504463, 0.183447242, 0.516261339, 0.71039921, 0.699192166, 0.0803964734, -0.676204145, 0.709750891, -0.197488174, -0.19514361, 0.0859310031, 0.977003038),
  1520. CFrame.new(0.714830935, -1.80684257, -0.829074502, 0.824376106, -0.0457369946, 0.564191759, 0.199396968, 0.956304729, -0.213827267, -0.529759407, 0.288772196, 0.797474563),
  1521. CFrame.new(-0.267897666, -2.10419893, 9.35792923e-006, 0.965420246, -0.034111429, 0.25845778, 0.0634135231, 0.992352903, -0.105897792, -0.25286904, 0.118625574, 0.960200548),
  1522. }, .3, false)
  1523. end
  1524. CFuncs["Sound"].Create("http://www.roblox.com/asset/?id=233370772",RootPart,1,1.2)
  1525. Shoot(Barrel2.Position)
  1526. attack=false
  1527. end
  1528.  
  1529. function railcannonmode()
  1530. attack=true
  1531. railcannon=true
  1532. for i = 0, 1, 0.15 do
  1533. swait()
  1534. PlayAnimationFromTable({
  1535. CFrame.new(-0, -0, 0, 0.933580399, 0, 0.35836792, 0, 1, 0, -0.35836792, 0, 0.933580399),
  1536. CFrame.new(0, 1.5, 0, 0.933580339, 0, -0.35836789, 0, 1, 0, 0.35836789, 0, 0.933580339),
  1537. CFrame.new(1.54411411, 1.1920929e-007, 0.0994966179, 0.966713905, -0.170457721, -0.190809011, 0.173648149, 0.98480773, 0, 0.187910169, -0.033133626, 0.981627107),
  1538. CFrame.new(-1.84587193, 0.599999905, -0.42955929, 0.0428062156, 0.943859041, -0.327563226, -0.985070467, -0.0148468316, -0.171510249, -0.166744784, 0.330014557, 0.929132164),
  1539. CFrame.new(0.499920011, -2, 0.00872536004, 0.939692497, 0, -0.342020184, 0, 1, 0, 0.342020184, 0, 0.939692497),
  1540. CFrame.new(-0.499926776, -2, -0.00872655213, 0.981627047, 0, -0.19080919, 0, 1, 0, 0.19080919, 0, 0.981627047),
  1541. }, .3, false)
  1542. AFMotorWeld.C0 = clerp(AFMotorWeld.C0, CFrame.new(0, 1, -1.5) * angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  1543. end
  1544. for i = 0, 1, 0.1 do
  1545. swait()
  1546. PlayAnimationFromTable({
  1547. CFrame.new(-0, -0, 0, 0.933580399, 0, 0.35836792, 0, 1, 0, -0.35836792, 0, 0.933580399),
  1548. CFrame.new(0, 1.5, 0, 0.933580339, 0, -0.35836789, 0, 1, 0, 0.35836789, 0, 0.933580339),
  1549. CFrame.new(1.54411411, 1.1920929e-007, 0.0994966179, 0.966713905, -0.170457721, -0.190809011, 0.173648149, 0.98480773, 0, 0.187910169, -0.033133626, 0.981627107),
  1550. CFrame.new(-1.84587193, 0.599999905, -0.42955929, 0.0428062156, 0.943859041, -0.327563226, -0.985070467, -0.0148468316, -0.171510249, -0.166744784, 0.330014557, 0.929132164),
  1551. CFrame.new(0.499920011, -2, 0.00872536004, 0.939692497, 0, -0.342020184, 0, 1, 0, 0.342020184, 0, 0.939692497),
  1552. CFrame.new(-0.499926776, -2, -0.00872655213, 0.981627047, 0, -0.19080919, 0, 1, 0, 0.19080919, 0, 0.981627047),
  1553. }, .3, false)
  1554. AFMotorWeld.C0 = clerp(AFMotorWeld.C0, CFrame.new(0, 1, -1.5) * angles(math.rad(0), math.rad(-90), math.rad(0)), .3)
  1555. end
  1556.  
  1557. for i = 0, 1, 0.15 do
  1558. swait()
  1559. PlayAnimationFromTable({
  1560. CFrame.new(-0, -0, 0, 0.20791164, 0, 0.978147566, 0, 1, 0, -0.978147566, 0, 0.20791164),
  1561. CFrame.new(0.0978158563, 1.50000024, -0.0207916647, 0.642787576, 0.211150572, -0.736369073, 0, 0.96126163, 0.275637507, 0.766044378, -0.177176356, 0.61788702),
  1562. CFrame.new(1.40917015, 2.23517418e-007, 0.0861120224, 0.731854618, -0.12904571, -0.669130623, 0.173648149, 0.98480773, 0, 0.658965051, -0.11619328, 0.743144751),
  1563. CFrame.new(-1.53391707, 0.599999726, -0.672994554, 0.163157851, 0.237288922, -0.957639515, -0.985070467, -0.0148468325, -0.17151022, -0.0549153872, 0.971325636, 0.231323928),
  1564. CFrame.new(0.436129451, -2, -0.0561523139, 0.777145803, 0, -0.629320502, 0, 1, 0, 0.629320502, 0, 0.777145803),
  1565. CFrame.new(-0.46198675, -2, -0.202549219, 0.987688243, 0, -0.1564347, 0, 1, 0, 0.1564347, 0, 0.987688243),
  1566. }, .3, false)
  1567. AFMotorWeld.C0 = clerp(AFMotorWeld.C0, CFrame.new(-5, 1, -1) * angles(math.rad(0), math.rad(-90), math.rad(0)), .3)
  1568. end
  1569. CFuncs["Sound"].Create("http://www.roblox.com/asset/?id=191395766",RootPart,1,1.5)
  1570. AMotorWeld.Part0 = LeftArm
  1571. AMotorWeld.C1 = CFrame.new(-0.0355796814, 0.0145721436, -1.61501646, 0, 0, 1, 1, 0, 0, 0, 0.999999881, 0)
  1572.  
  1573. for i = 0, 1, 0.1 do
  1574. swait()
  1575. PlayAnimationFromTable({
  1576. CFrame.new(-0, -0, 0, 0.438371003, 0, 0.898794115, 0, 1, 0, -0.898794115, 0, 0.438371003),
  1577. CFrame.new(0.0898803771, 1.50000024, -0.0438378155, 0.809016943, 0.162015691, -0.565015495, 0, 0.96126163, 0.275637507, 0.587785363, -0.2229954, 0.77767694),
  1578. CFrame.new(1.56349134, 1.49011612e-007, 0.102161653, 0.977467179, -0.172353759, -0.121869534, 0.173648119, 0.984807789, 0, 0.120018095, -0.0211624131, 0.992546141),
  1579. CFrame.new(-1.78267646, 0.600000024, -0.551555037, 0.145026132, 0.465225279, -0.873231292, -0.985070467, -0.0148468334, -0.171510205, -0.0927556083, 0.885067761, 0.456126511),
  1580. CFrame.new(0.409590125, -2, -0.159993559, 0.906307638, 0, -0.422618568, 0, 1, 0, 0.422618568, 0, 0.906307638),
  1581. CFrame.new(-0.497264832, -2, -0.0847679749, 0.996194661, 0, 0.0871553719, 0, 1, 0, -0.0871553719, 0, 0.996194661),
  1582. }, .3, false)
  1583. AFMotorWeld.C0 = clerp(AFMotorWeld.C0, CFrame.new(0,0,0) * angles(math.rad(0), math.rad(0), math.rad(0)), .6)
  1584. end
  1585. attack=false
  1586.  
  1587. end
  1588.  
  1589. function unrailcannon()
  1590. attack=true
  1591. railcannon=true
  1592. for i = 0, 1, 0.15 do
  1593. swait()
  1594. PlayAnimationFromTable({
  1595. CFrame.new(-0, -0, 0, 0.933580399, 0, 0.35836792, 0, 1, 0, -0.35836792, 0, 0.933580399),
  1596. CFrame.new(0, 1.5, 0, 0.933580339, 0, -0.35836789, 0, 1, 0, 0.35836789, 0, 0.933580339),
  1597. CFrame.new(1.54411411, 1.1920929e-007, 0.0994966179, 0.966713905, -0.170457721, -0.190809011, 0.173648149, 0.98480773, 0, 0.187910169, -0.033133626, 0.981627107),
  1598. CFrame.new(-1.84587193, 0.599999905, -0.42955929, 0.0428062156, 0.943859041, -0.327563226, -0.985070467, -0.0148468316, -0.171510249, -0.166744784, 0.330014557, 0.929132164),
  1599. CFrame.new(0.499920011, -2, 0.00872536004, 0.939692497, 0, -0.342020184, 0, 1, 0, 0.342020184, 0, 0.939692497),
  1600. CFrame.new(-0.499926776, -2, -0.00872655213, 0.981627047, 0, -0.19080919, 0, 1, 0, 0.19080919, 0, 0.981627047),
  1601. }, .3, false)
  1602. end
  1603. for i = 0, 1, 0.1 do
  1604. swait()
  1605. PlayAnimationFromTable({
  1606. CFrame.new(-0, -0, 0, 0.933580399, 0, 0.35836792, 0, 1, 0, -0.35836792, 0, 0.933580399),
  1607. CFrame.new(0, 1.5, 0, 0.933580339, 0, -0.35836789, 0, 1, 0, 0.35836789, 0, 0.933580339),
  1608. CFrame.new(1.54411411, 1.1920929e-007, 0.0994966179, 0.966713905, -0.170457721, -0.190809011, 0.173648149, 0.98480773, 0, 0.187910169, -0.033133626, 0.981627107),
  1609. CFrame.new(-1.84587193, 0.599999905, -0.42955929, 0.0428062156, 0.943859041, -0.327563226, -0.985070467, -0.0148468316, -0.171510249, -0.166744784, 0.330014557, 0.929132164),
  1610. CFrame.new(0.499920011, -2, 0.00872536004, 0.939692497, 0, -0.342020184, 0, 1, 0, 0.342020184, 0, 0.939692497),
  1611. CFrame.new(-0.499926776, -2, -0.00872655213, 0.981627047, 0, -0.19080919, 0, 1, 0, 0.19080919, 0, 0.981627047),
  1612. }, .3, false)
  1613. end
  1614.  
  1615. for i = 0, 1, 0.15 do
  1616. swait()
  1617. PlayAnimationFromTable({
  1618. CFrame.new(-0, -0, 0, 0.20791164, 0, 0.978147566, 0, 1, 0, -0.978147566, 0, 0.20791164),
  1619. CFrame.new(0.0978158563, 1.50000024, -0.0207916647, 0.642787576, 0.211150572, -0.736369073, 0, 0.96126163, 0.275637507, 0.766044378, -0.177176356, 0.61788702),
  1620. CFrame.new(1.40917015, 2.23517418e-007, 0.0861120224, 0.731854618, -0.12904571, -0.669130623, 0.173648149, 0.98480773, 0, 0.658965051, -0.11619328, 0.743144751),
  1621. CFrame.new(-1.53391707, 0.599999726, -0.672994554, 0.163157851, 0.237288922, -0.957639515, -0.985070467, -0.0148468325, -0.17151022, -0.0549153872, 0.971325636, 0.231323928),
  1622. CFrame.new(0.436129451, -2, -0.0561523139, 0.777145803, 0, -0.629320502, 0, 1, 0, 0.629320502, 0, 0.777145803),
  1623. CFrame.new(-0.46198675, -2, -0.202549219, 0.987688243, 0, -0.1564347, 0, 1, 0, 0.1564347, 0, 0.987688243),
  1624. }, .3, false)
  1625. AFMotorWeld.C0 = clerp(AFMotorWeld.C0, CFrame.new(0, 0, -5) * angles(math.rad(0), math.rad(-90), math.rad(0)), .3)
  1626. end
  1627. AMotorWeld.Part0 = RootPart
  1628. AMotorWeld.C1 = CFrame.new(-4.78009033, 1.56501913, -2.5500164, -1, 0, 0, 0, -1, 0, -0, -0, 1)
  1629. attack=false
  1630. railcannon=false
  1631. end
  1632.  
  1633. function Laser(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1634. local prt = CreatePart(workspace, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  1635. prt.Anchored = true
  1636. prt.CFrame = cframe
  1637. prt.Material = "Neon"
  1638. local msh = CreateMesh("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1639. game:GetService("Debris"):AddItem(prt, 10)
  1640. coroutine.resume(coroutine.create(function(Part, Mesh)
  1641. for i = 0, 1, delay do
  1642. swait()
  1643. Part.Transparency = i
  1644. Mesh.Scale = Mesh.Scale + Vector3.new(x3, y3, z3)
  1645. end
  1646. Part.Parent = nil
  1647. end), prt, msh)
  1648. end
  1649.  
  1650.  
  1651. function shoottraildd(mouse,partt, SpreadAmount,multiply,Type)
  1652. local SpreadVectors = Vector3.new(math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount, SpreadAmount))
  1653. local MainPos = partt.Position
  1654. local MainPos2 = mouse.Hit.p + SpreadVectors
  1655. local MouseLook = CFrame.new((MainPos + MainPos2) / 2, MainPos2)
  1656. local speed = 50
  1657. local num = 20
  1658. coroutine.resume(coroutine.create(function()
  1659. repeat
  1660. swait()
  1661. local hit, pos = rayCast(MainPos, MouseLook.lookVector, speed, RootPart.Parent)
  1662. local mag = (MainPos - pos).magnitude
  1663. if Type == "Explosive" then
  1664. Laser(BrickColor.new("Really red"), CFrame.new((MainPos + pos) / 2, pos) * angles(1.57, 0, 0), 1, mag * (speed / (speed / 2)), 1, -1, 0, -1, 0.15)
  1665. elseif Type == "Poison" then
  1666. Laser(BrickColor.new("Bright violet"), CFrame.new((MainPos + pos) / 2, pos) * angles(1.57, 0, 0), 1, mag * (speed / (speed / 2)), 1, -0.175, 0, -0.175, 0.15)
  1667. Effects["Sphere"].Create(BrickColor.new("Bright violet"),CFrame.new((MainPos+pos) / 2,pos),1,1,1,2,2,2,0.07)
  1668. elseif Type == "Stun" then
  1669. Laser(BrickColor.new("White"), CFrame.new((MainPos + pos) / 2, pos) * angles(1.57, 0, 0), 1, mag * (speed / (speed / 2)), 1, -0.175, 0, -0.175, 0.15)
  1670. end
  1671. MainPos = MainPos + (MouseLook.lookVector * speed)
  1672. num = num - 1
  1673. MouseLook = MouseLook * angles(math.rad(-1), 0, 0)
  1674. if hit ~= nil then
  1675. num = 0
  1676. local refpart = CreatePart(workspace, "SmoothPlastic", 0, 1, BrickColor.new("Really black"), "Effect", Vector3.new())
  1677. refpart.Anchored = true
  1678. refpart.CFrame = CFrame.new(pos)
  1679.  
  1680. game:GetService("Debris"):AddItem(refpart, 2)
  1681. end
  1682. if num <= 0 then
  1683. local refpart = CreatePart(workspace, "SmoothPlastic", 0, 1, BrickColor.new("Really black"), "Effect", Vector3.new())
  1684. refpart.Anchored = true
  1685. refpart.CFrame = CFrame.new(pos)
  1686. if hit ~= nil then
  1687. if Type=="Explosive" then
  1688. CFuncs["Sound"].Create("http://www.roblox.com/asset/?id=233856079",refpart,1,2)
  1689. Effects["Block"].Create(BrickColor.new("Really red"),refpart.CFrame,1,1,1,10,10,10,0.07)
  1690. Effects["Ring"].Create(BrickColor.new("Really red"),refpart.CFrame,1,9999,1,1,0,1,0.02)
  1691. MagniDamage(refpart, 15, 20, 30, 5,"Knockdown")
  1692. elseif Type == "Poison" then
  1693. if hit.Name == "Head" then
  1694. Effects["Block"].Create(BrickColor.new("Bright violet"),refpart.CFrame,1,1,1,1,1,1,0.07)
  1695. MagniDamage(refpart, 5, 18*multiply, 20*multiply, 0,"Curse")
  1696. else
  1697. Effects["Sphere"].Create(BrickColor.new("Bright violet"),refpart.CFrame,1,1,1,1,1,1,0.07)
  1698. MagniDamage(refpart, 5, 3*multiply, 3*multiply, 0,"Curse")
  1699. end
  1700. elseif Type=="Stun" then
  1701. Effects["Block"].Create(BrickColor.new("White"),refpart.CFrame,1,1,1,1,1,1,0.07)
  1702. MagniDamage(refpart, 5, 10*multiply, 10*multiply, 0,"Freeze")
  1703. end
  1704. end
  1705. game:GetService("Debris"):AddItem(refpart, 0)
  1706.  
  1707. end
  1708. until num <= 0
  1709. end))
  1710. end
  1711.  
  1712. function mattacktwo()
  1713. attack=true
  1714. for i = 0, 1, 0.1 do
  1715. swait()
  1716. PlayAnimationFromTable({
  1717. CFrame.new(0, -0, -0, 0.642787457, 0, -0.766044497, 0, 1, 0, 0.766044497, 0, 0.642787457),
  1718. CFrame.new(0, 1.5, 0, 0.642787397, 0, 0.766044438, 0, 1, 0, -0.766044438, 0, 0.642787397),
  1719. CFrame.new(1.51604533, 0, -0.656250775, 0.960815191, -0.125167504, 0.247319818, 0.235888794, 0.837791502, -0.492404014, -0.145569474, 0.531449258, 0.834488511),
  1720. CFrame.new(-1.83214116, 0.600000143, -0.52276206, -0.0758163705, 0.75134778, -0.655536652, -0.996930301, -0.0700004995, 0.0350688621, -0.0195389744, 0.656183064, 0.754348636),
  1721. CFrame.new(0.499997288, -2, -8.27014446e-007, 0.984807611, 0, -0.173648089, 0, 1, 0, 0.173648089, 0, 0.984807611),
  1722. CFrame.new(-0.500000715, -2, -1.71363354e-006, 0.984807611, 0, -0.173648089, 0, 1, 0, 0.173648089, 0, 0.984807611),
  1723. }, .3, false)
  1724. end
  1725. for i = 0, 1, 0.2 do
  1726. swait()
  1727. PlayAnimationFromTable({
  1728. CFrame.new(0.0946200788, -1.02445483e-008, 0.0625146329, 0.754709721, 0, 0.656058848, 0, 1, 0, -0.656058848, 0, 0.754709721),
  1729. CFrame.new(-0.0303973816, 1.5, -0.109256268, 0.754709661, 0, -0.656058788, 0, 1, 0, 0.656058788, 0, 0.754709661),
  1730. CFrame.new(1.89339626, 0.300000608, -0.328220099, 0.399379879, -0.864509821, -0.30515331, -0.109783031, 0.285358429, -0.952112556, 0.910188615, 0.413755238, 0.0190578997),
  1731. CFrame.new(-0.949671805, 0.600000203, -1.08065712, 0.0101537965, -0.559726298, -0.828615308, -0.996930361, -0.0700004995, 0.0350687429, -0.07763239, 0.825715721, -0.55871892),
  1732. CFrame.new(0.49999702, -2, 1.08778477e-006, 0.98480773, 0, -0.173648208, 0, 1, 0, 0.173648208, 0, 0.98480773),
  1733. CFrame.new(-0.500001788, -2, 3.88175249e-006, 0.98480773, 0, -0.173648208, 0, 1, 0, 0.173648208, 0, 0.98480773),
  1734. }, .3, false)
  1735. end
  1736. CFuncs["Sound"].Create("http://www.roblox.com/asset/?id=192410077",RootPart,1,1.5)
  1737. Shoot2(Barrel.Position)
  1738. for i = 0, 1, 0.1 do
  1739. swait()
  1740. PlayAnimationFromTable({
  1741. CFrame.new(0.094619967, -1.02445483e-008, 0.0625145137, 0.99254632, 0, 0.121869221, 0, 1, 0, -0.121869221, 0, 0.99254632),
  1742. CFrame.new(-0.0862959102, 1.5, -0.0735795721, 0.99254626, 0, -0.121869214, 0, 1, 0, 0.121869214, 0, 0.99254626),
  1743. CFrame.new(1.61255896, 0.300000876, 0.107431374, 0.840072036, -0.485342234, -0.242326573, -0.109783031, 0.285358429, -0.952112556, 0.531250358, 0.826446474, 0.186439291),
  1744. CFrame.new(-1.29411328, 0.600000143, -1.1588943, -0.0349936038, -0.00229987502, -0.999385059, -0.996930361, -0.0700004995, 0.0350687429, -0.07003811, 0.997544527, 0.000156767666),
  1745. CFrame.new(0.487180531, -2, -0.112473622, 0.998629689, 0, 0.0523357466, 0, 1, 0, -0.0523357466, 0, 0.998629689),
  1746. CFrame.new(-0.487187862, -2, 0.112479731, 0.998629689, 0, 0.0523357466, 0, 1, 0, -0.0523357466, 0, 0.998629689),
  1747. }, .3, false)
  1748. end
  1749. attack=false
  1750. end
  1751.  
  1752. function ult()
  1753. attack=true
  1754. for i = 0, 1, 0.1 do
  1755. swait()
  1756. PlayAnimationFromTable({
  1757. CFrame.new(-1.12503767e-006, 0, -0.39999944, 0.98480773, 0, 0.173648149, -0.0565343052, 0.945518553, 0.320622027, -0.164187551, -0.32556814, 0.931153953),
  1758. CFrame.new(0.0799277425, 1.42763364, -0.453292847, 0.98480773, 0.0868240893, -0.150383711, 0, 0.866025329, 0.500000119, 0.173648149, -0.492403924, 0.852868438),
  1759. CFrame.new(0.568180978, -0.228292078, -0.474152505, 0.391536057, 0.870008767, 0.299640328, 0.500365257, 0.0719806328, -0.862817109, -0.772226632, 0.4877536, -0.407139122),
  1760. CFrame.new(-0.29982543, 0.654649615, -1.04775822, 0.318565607, -0.942471623, 0.1013074, -0.115927964, -0.144810557, -0.982644677, 0.94078505, 0.301292419, -0.155390501),
  1761. CFrame.new(0.546569586, -1.99299693, -0.264125228, 0.98480767, -0.0565343052, -0.164187536, 0, 0.945518553, -0.32556811, 0.173648134, 0.320622027, 0.931153893),
  1762. CFrame.new(-0.451785982, -2.04953146, -0.273441136, 0.98480767, -0.0565343052, -0.164187536, 0, 0.945518553, -0.32556811, 0.173648134, 0.320622027, 0.931153893),
  1763. }, .3, false)
  1764. end
  1765. for i = 0, 1, 0.3 do
  1766. swait()
  1767. PlayAnimationFromTable({
  1768. CFrame.new(3.3415854e-006, 5.14090061e-007, 0.300000042, 0.991635323, -0.0942734778, -0.088158071, 0.0593911409, 0.939692676, -0.33682391, 0.114595056, 0.328770667, 0.937431514),
  1769. CFrame.new(0.112005696, 1.4752928, -0.31774953, 0.991635323, 0.038589634, 0.123167254, -0.0942734778, 0.868326187, 0.486951798, -0.088158071, -0.494490057, 0.864700973),
  1770. CFrame.new(1.66260803, 0.0710313246, -0.399339676, 0.963268697, -0.250757009, 0.0960957855, 0.213793606, 0.49956882, -0.839478016, 0.162498519, 0.829187572, 0.534829259),
  1771. CFrame.new(-1.34094727, 0.431623071, 0.0770535022, 0.819768488, 0.565257311, 0.0919987336, -0.0703515783, 0.258820057, -0.96336019, -0.568357527, 0.783260107, 0.251939327),
  1772. CFrame.new(0.557877064, -1.9732064, 0.531213284, 0.981809914, 0.0593911409, -0.180338323, 0.00596907735, 0.939692676, 0.341967821, 0.189772487, -0.33682391, 0.922245145),
  1773. CFrame.new(-0.631497324, -1.90305054, 0.517219603, 0.991635263, 0.0593911409, 0.114595048, -0.0942734703, 0.939692676, 0.328770638, -0.0881580636, -0.33682391, 0.937431455),
  1774. }, .3, false)
  1775. end
  1776. CFuncs["Sound"].Create("http://www.roblox.com/asset/?id=231917822",RootPart,1,1)
  1777. Effects["Sphere"].Create(BrickColor.new("Persimmon"), RootPart.CFrame, 55, 55, 55, .5, .5, .5, 0.03)
  1778. g.Parent=nil
  1779. ge.Parent=nil
  1780. for i = 0, 1, 0.13 do
  1781. swait()
  1782. PlayAnimationFromTable({
  1783. CFrame.new(-6.27711415e-007, -3.87430191e-007, 0.300000131, 0.991635323, -0.0942734778, -0.088158071, 0.0449828133, 0.892621279, -0.448557526, 0.120978847, 0.440839857, 0.889395535),
  1784. CFrame.new(0.0916699693, 1.4270997, -0.494957238, 0.991635323, 0.0232916679, 0.126952082, -0.0942734778, 0.802509308, 0.589144588, -0.088158071, -0.59618485, 0.797992349),
  1785. CFrame.new(1.85559225, 0.0200719386, -0.442782521, 0.811071634, -0.584664524, 0.0181698967, 0.400982082, 0.533107102, -0.744989991, 0.425882787, 0.611526072, 0.666828156),
  1786. CFrame.new(-1.6423732, 0.452560455, 0.0670740306, 0.600761533, 0.79627198, 0.0709684417, -0.221347541, 0.250986785, -0.942343235, -0.768173754, 0.550415039, 0.327036113),
  1787. CFrame.new(0.586140335, -1.88879371, 0.758852243, 0.90506351, 0.0449828133, -0.422890574, 0.153661013, 0.892621279, 0.42381072, 0.39654538, -0.448557526, 0.800966859),
  1788. CFrame.new(-0.604041457, -1.83279824, 0.750926971, 0.991635263, 0.0449828133, 0.12097884, -0.0942734703, 0.892621279, 0.440839827, -0.0881580636, -0.448557526, 0.889395475),
  1789. }, .3, false)
  1790. end
  1791. --[[AMotorWeld.Part0 = RootPart
  1792. AMotorWeld.C1 = CFrame.new(-4.78009033, 1.56501913, -2.5500164, -1, 0, 0, 0, -1, 0, -0, -0, 1)
  1793. AMotor2Weld.Part0 = RootPart
  1794. AMotor2Weld.C1 = CFrame.new(4.47993469, 1.56501913, -1.70001793, -1, 0, 0, 0, -1, 0, -0, -0, 1)
  1795. AFMotor.Transparency=0
  1796. AFMotor2.Transparency=0]]
  1797. minigun=false
  1798. railcannon=false
  1799. for i = 0, 1, 0.1 do
  1800. swait()
  1801. PlayAnimationFromTable({
  1802. CFrame.new(-0, -0, 0, 0.829037547, 0, 0.559192896, 0, 1, 0, -0.559192896, 0, 0.829037547),
  1803. CFrame.new(0.223677456, 1.5, -0.331615418, 0.829037547, 0.271102101, -0.489081144, 0, 0.874619722, 0.484809607, 0.559192896, -0.401925355, 0.72509259),
  1804. CFrame.new(0.990585089, -2.5331974e-007, -0.972866297, -0.210851848, 0.71165657, 0.670139015, 0.977479398, 0.147404209, 0.151016682, 0.00869072229, 0.686889231, -0.726710141),
  1805. CFrame.new(-0.591351926, 0.600000501, -1.04965925, 0.24531807, -0.655219853, -0.714496911, -0.921867132, 0.0703826398, -0.381060779, 0.299966753, 0.752152264, -0.586759567),
  1806. CFrame.new(0.680448771, -2, -0.128245741, 0.96126163, 0, -0.275637388, 0, 1, 0, 0.275637388, 0, 0.96126163),
  1807. CFrame.new(-0.456773728, -2, -0.203368619, 0.829037488, 0, -0.559192836, 0, 1, 0, 0.559192836, 0, 0.829037488),
  1808. }, .3, false)
  1809. end
  1810. for i = 0, 1, 0.3 do
  1811. swait()
  1812. PlayAnimationFromTable({
  1813. CFrame.new(-0, -0, 0, 0.829037547, 0, 0.559192896, 0, 1, 0, -0.559192896, 0, 0.829037547),
  1814. CFrame.new(0.223676458, 1.50000012, -0.331613988, 0.829037547, 0.144729838, -0.540138841, 0, 0.965925813, 0.258819163, 0.559192896, -0.214570805, 0.80078876),
  1815. CFrame.new(0.990584075, 5.96046448e-007, -0.972867489, -0.322262019, 0.686789989, 0.651510954, 0.944314957, 0.281537294, 0.170311525, -0.066456385, 0.670116484, -0.739274919),
  1816. CFrame.new(-0.425541252, 0.600001037, -0.937819362, 0.0108688176, -0.870432794, -0.492167175, -0.85132283, 0.250131786, -0.461176276, 0.524529576, 0.424005568, -0.738300681),
  1817. CFrame.new(0.680448771, -2, -0.128245741, 0.96126163, 0, -0.275637388, 0, 1, 0, 0.275637388, 0, 0.96126163),
  1818. CFrame.new(-0.456773728, -2, -0.203368619, 0.829037488, 0, -0.559192836, 0, 1, 0, 0.559192836, 0, 0.829037488),
  1819. }, .3, false)
  1820. end
  1821. for i = 0, 1, 0.2 do
  1822. swait()
  1823. PlayAnimationFromTable({
  1824. CFrame.new(-0, -0, 0, 0.829037547, 0, 0.559192896, 0, 1, 0, -0.559192896, 0, 0.829037547),
  1825. CFrame.new(0.223677456, 1.5, -0.331615418, 0.829037547, 0.271102101, -0.489081144, 0, 0.874619722, 0.484809607, 0.559192896, -0.401925355, 0.72509259),
  1826. CFrame.new(0.990584493, 0.0999999642, -0.972866416, -0.210851848, 0.71165657, 0.670139015, 0.977479398, 0.147404209, 0.151016682, 0.00869072229, 0.686889231, -0.726710141),
  1827. CFrame.new(-0.757156491, 0.800000608, -1.16149533, 0.133158714, -0.890347123, -0.43537426, -0.929765463, 0.0399093181, -0.36598298, 0.343227386, 0.453529775, -0.822499633),
  1828. CFrame.new(0.680448771, -2, -0.128245741, 0.96126163, 0, -0.275637388, 0, 1, 0, 0.275637388, 0, 0.96126163),
  1829. CFrame.new(-0.456773728, -2, -0.203368619, 0.829037488, 0, -0.559192836, 0, 1, 0, 0.559192836, 0, 0.829037488),
  1830. }, .3, false)
  1831. end
  1832. for i = 0, 1, 0.2 do
  1833. swait()
  1834. PlayAnimationFromTable({
  1835. CFrame.new(-0, -0, 0, 0.829037547, 0, 0.559192896, 0, 1, 0, -0.559192896, 0, 0.829037547),
  1836. CFrame.new(0.223677456, 1.5, -0.331615418, 0.829037547, 0.271102101, -0.489081144, 0, 0.874619722, 0.484809607, 0.559192896, -0.401925355, 0.72509259),
  1837. CFrame.new(0.990585089, -2.5331974e-007, -0.972866297, -0.210851848, 0.71165657, 0.670139015, 0.977479398, 0.147404209, 0.151016682, 0.00869072229, 0.686889231, -0.726710141),
  1838. CFrame.new(-0.757156849, 0.500001431, -1.16149521, 0.133158684, -0.890347123, -0.43537426, -0.929765403, 0.0399093926, -0.36598298, 0.343227416, 0.453529775, -0.822499633),
  1839. CFrame.new(0.680448771, -2, -0.128245741, 0.96126163, 0, -0.275637388, 0, 1, 0, 0.275637388, 0, 0.96126163),
  1840. CFrame.new(-0.456773728, -2, -0.203368619, 0.829037488, 0, -0.559192836, 0, 1, 0, 0.559192836, 0, 0.829037488),
  1841. }, .3, false)
  1842. end
  1843. for i = 0, 1, 0.2 do
  1844. swait()
  1845. PlayAnimationFromTable({
  1846. CFrame.new(-0, -0, 0, 0.829037547, 0, 0.559192896, 0, 1, 0, -0.559192896, 0, 0.829037547),
  1847. CFrame.new(0.223677456, 1.5, -0.331615418, 0.829037547, 0.271102101, -0.489081144, 0, 0.874619722, 0.484809607, 0.559192896, -0.401925355, 0.72509259),
  1848. CFrame.new(0.990584493, 0.0999999642, -0.972866416, -0.210851848, 0.71165657, 0.670139015, 0.977479398, 0.147404209, 0.151016682, 0.00869072229, 0.686889231, -0.726710141),
  1849. CFrame.new(-0.674255729, 0.800001264, -1.10557985, 0.20160985, -0.776596785, -0.596867561, -0.929765403, 0.0399093926, -0.36598298, 0.308041841, 0.628732622, -0.714006722),
  1850. CFrame.new(0.680448771, -2, -0.128245741, 0.96126163, 0, -0.275637388, 0, 1, 0, 0.275637388, 0, 0.96126163),
  1851. CFrame.new(-0.456773728, -2, -0.203368619, 0.829037488, 0, -0.559192836, 0, 1, 0, 0.559192836, 0, 0.829037488),
  1852. }, .3, false)
  1853. end
  1854. CFuncs["Sound"].Create("http://www.roblox.com/asset/?id=231917822",RootPart,1,.8)
  1855. can.Parent=Character
  1856. Effects["Sphere"].Create(BrickColor.new("Persimmon"), AFMotor3.CFrame, 105, 105, 105, .5, .5, .5, 0.03)
  1857. for i = 0, 1, 0.2 do
  1858. swait()
  1859. PlayAnimationFromTable({
  1860. CFrame.new(-0, -0, 0, 0.829037547, 0, 0.559192896, 0, 1, 0, -0.559192896, 0, 0.829037547),
  1861. CFrame.new(0.223677456, 1.5, -0.331615418, 0.829037547, 0.271102101, -0.489081144, 0, 0.874619722, 0.484809607, 0.559192896, -0.401925355, 0.72509259),
  1862. CFrame.new(0.990585148, -0.100000128, -0.97286576, -0.210851848, 0.71165657, 0.670139015, 0.977479398, 0.147404209, 0.151016682, 0.00869072229, 0.686889231, -0.726710141),
  1863. CFrame.new(-0.674256444, 0.500000656, -1.1055783, 0.201609835, -0.776596785, -0.596867621, -0.929765463, 0.0399093032, -0.36598286, 0.308041722, 0.628732562, -0.714006662),
  1864. CFrame.new(0.680448771, -2, -0.128245741, 0.96126163, 0, -0.275637388, 0, 1, 0, 0.275637388, 0, 0.96126163),
  1865. CFrame.new(-0.456773728, -2, -0.203368619, 0.829037488, 0, -0.559192836, 0, 1, 0, 0.559192836, 0, 0.829037488),
  1866. }, .3, false)
  1867. end
  1868. for i = 0, 1, 0.1 do
  1869. swait()
  1870. PlayAnimationFromTable({
  1871. CFrame.new(-0, -0, 0, 0.325568169, 0, 0.945518494, 0, 1, 0, -0.945518494, 0, 0.325568169),
  1872. CFrame.new(-8.7544322e-008, 1.50000048, 3.0733645e-008, 0.325568169, -0.0165014714, -0.945374548, 0, 0.99984777, -0.0174522996, 0.945518494, 0.00568191335, 0.325518608),
  1873. CFrame.new(1.8493607, 0.400000066, -0.34360224, -0.0524368882, -0.896858752, 0.439197659, 0.993822634, -0.00379005075, 0.110915467, -0.0978109241, 0.442300647, 0.891517222),
  1874. CFrame.new(-1.00463176, 0.60000205, -0.581835151, 0.752349138, -0.446394145, -0.484461486, -0.604538441, -0.175660357, -0.776966333, 0.261732548, 0.877425611, -0.402020365),
  1875. CFrame.new(0.750989377, -2, 0.0219423026, 0.965925813, 0, -0.258819163, 0, 1, 0, 0.258819163, 0, 0.965925813),
  1876. CFrame.new(-0.387374163, -2, -0.0333242267, 0.838670373, 0, -0.544638991, 0, 1, 0, 0.544638991, 0, 0.838670373),
  1877. }, .3, false)
  1878. end
  1879. omega = true
  1880. attack=false
  1881. end
  1882. function intro()
  1883.  
  1884. attack=true
  1885. for i = 0, 1, 0.1 do
  1886. swait()
  1887. PlayAnimationFromTable({
  1888. CFrame.new(-1.12503767e-006, 0, -0.39999944, 0.98480773, 0, 0.173648149, -0.0565343052, 0.945518553, 0.320622027, -0.164187551, -0.32556814, 0.931153953),
  1889. CFrame.new(0.0799277425, 1.42763364, -0.453292847, 0.98480773, 0.0868240893, -0.150383711, 0, 0.866025329, 0.500000119, 0.173648149, -0.492403924, 0.852868438),
  1890. CFrame.new(0.568180978, -0.228292078, -0.474152505, 0.391536057, 0.870008767, 0.299640328, 0.500365257, 0.0719806328, -0.862817109, -0.772226632, 0.4877536, -0.407139122),
  1891. CFrame.new(-0.29982543, 0.654649615, -1.04775822, 0.318565607, -0.942471623, 0.1013074, -0.115927964, -0.144810557, -0.982644677, 0.94078505, 0.301292419, -0.155390501),
  1892. CFrame.new(0.546569586, -1.99299693, -0.264125228, 0.98480767, -0.0565343052, -0.164187536, 0, 0.945518553, -0.32556811, 0.173648134, 0.320622027, 0.931153893),
  1893. CFrame.new(-0.451785982, -2.04953146, -0.273441136, 0.98480767, -0.0565343052, -0.164187536, 0, 0.945518553, -0.32556811, 0.173648134, 0.320622027, 0.931153893),
  1894. }, .3, false)
  1895. end
  1896. for i = 0, 1, 0.3 do
  1897. swait()
  1898. PlayAnimationFromTable({
  1899. CFrame.new(3.3415854e-006, 5.14090061e-007, 0.300000042, 0.991635323, -0.0942734778, -0.088158071, 0.0593911409, 0.939692676, -0.33682391, 0.114595056, 0.328770667, 0.937431514),
  1900. CFrame.new(0.112005696, 1.4752928, -0.31774953, 0.991635323, 0.038589634, 0.123167254, -0.0942734778, 0.868326187, 0.486951798, -0.088158071, -0.494490057, 0.864700973),
  1901. CFrame.new(1.66260803, 0.0710313246, -0.399339676, 0.963268697, -0.250757009, 0.0960957855, 0.213793606, 0.49956882, -0.839478016, 0.162498519, 0.829187572, 0.534829259),
  1902. CFrame.new(-1.34094727, 0.431623071, 0.0770535022, 0.819768488, 0.565257311, 0.0919987336, -0.0703515783, 0.258820057, -0.96336019, -0.568357527, 0.783260107, 0.251939327),
  1903. CFrame.new(0.557877064, -1.9732064, 0.531213284, 0.981809914, 0.0593911409, -0.180338323, 0.00596907735, 0.939692676, 0.341967821, 0.189772487, -0.33682391, 0.922245145),
  1904. CFrame.new(-0.631497324, -1.90305054, 0.517219603, 0.991635263, 0.0593911409, 0.114595048, -0.0942734703, 0.939692676, 0.328770638, -0.0881580636, -0.33682391, 0.937431455),
  1905. }, .3, false)
  1906. end
  1907. CFuncs["Sound"].Create("http://www.roblox.com/asset/?id=231917822",RootPart,1,1)
  1908. Effects["Sphere"].Create(BrickColor.new("Persimmon"), RootPart.CFrame, 55, 55, 55, .5, .5, .5, 0.03)
  1909. g.Parent=nil
  1910. ge.Parent=nil
  1911. for i = 0, 1, 0.13 do
  1912. swait()
  1913. PlayAnimationFromTable({
  1914. CFrame.new(-6.27711415e-007, -3.87430191e-007, 0.300000131, 0.991635323, -0.0942734778, -0.088158071, 0.0449828133, 0.892621279, -0.448557526, 0.120978847, 0.440839857, 0.889395535),
  1915. CFrame.new(0.0916699693, 1.4270997, -0.494957238, 0.991635323, 0.0232916679, 0.126952082, -0.0942734778, 0.802509308, 0.589144588, -0.088158071, -0.59618485, 0.797992349),
  1916. CFrame.new(1.85559225, 0.0200719386, -0.442782521, 0.811071634, -0.584664524, 0.0181698967, 0.400982082, 0.533107102, -0.744989991, 0.425882787, 0.611526072, 0.666828156),
  1917. CFrame.new(-1.6423732, 0.452560455, 0.0670740306, 0.600761533, 0.79627198, 0.0709684417, -0.221347541, 0.250986785, -0.942343235, -0.768173754, 0.550415039, 0.327036113),
  1918. CFrame.new(0.586140335, -1.88879371, 0.758852243, 0.90506351, 0.0449828133, -0.422890574, 0.153661013, 0.892621279, 0.42381072, 0.39654538, -0.448557526, 0.800966859),
  1919. CFrame.new(-0.604041457, -1.83279824, 0.750926971, 0.991635263, 0.0449828133, 0.12097884, -0.0942734703, 0.892621279, 0.440839827, -0.0881580636, -0.448557526, 0.889395475),
  1920. }, .3, false)
  1921. end
  1922. --[[AMotorWeld.Part0 = RootPart
  1923. AMotorWeld.C1 = CFrame.new(-4.78009033, 1.56501913, -2.5500164, -1, 0, 0, 0, -1, 0, -0, -0, 1)
  1924. AMotor2Weld.Part0 = RootPart
  1925. AMotor2Weld.C1 = CFrame.new(4.47993469, 1.56501913, -1.70001793, -1, 0, 0, 0, -1, 0, -0, -0, 1)
  1926. AFMotor.Transparency=0
  1927. AFMotor2.Transparency=0]]
  1928. ---minigun=false
  1929. ---railcannon=false
  1930. for i = 0, 1, 0.1 do
  1931. swait()
  1932. PlayAnimationFromTable({
  1933. CFrame.new(-0, -0, 0, 0.829037547, 0, 0.559192896, 0, 1, 0, -0.559192896, 0, 0.829037547),
  1934. CFrame.new(0.223677456, 1.5, -0.331615418, 0.829037547, 0.271102101, -0.489081144, 0, 0.874619722, 0.484809607, 0.559192896, -0.401925355, 0.72509259),
  1935. CFrame.new(0.990585089, -2.5331974e-007, -0.972866297, -0.210851848, 0.71165657, 0.670139015, 0.977479398, 0.147404209, 0.151016682, 0.00869072229, 0.686889231, -0.726710141),
  1936. CFrame.new(-0.591351926, 0.600000501, -1.04965925, 0.24531807, -0.655219853, -0.714496911, -0.921867132, 0.0703826398, -0.381060779, 0.299966753, 0.752152264, -0.586759567),
  1937. CFrame.new(0.680448771, -2, -0.128245741, 0.96126163, 0, -0.275637388, 0, 1, 0, 0.275637388, 0, 0.96126163),
  1938. CFrame.new(-0.456773728, -2, -0.203368619, 0.829037488, 0, -0.559192836, 0, 1, 0, 0.559192836, 0, 0.829037488),
  1939. }, .3, false)
  1940. end
  1941. for i = 0, 1, 0.3 do
  1942. swait()
  1943. PlayAnimationFromTable({
  1944. CFrame.new(-0, -0, 0, 0.829037547, 0, 0.559192896, 0, 1, 0, -0.559192896, 0, 0.829037547),
  1945. CFrame.new(0.223676458, 1.50000012, -0.331613988, 0.829037547, 0.144729838, -0.540138841, 0, 0.965925813, 0.258819163, 0.559192896, -0.214570805, 0.80078876),
  1946. CFrame.new(0.990584075, 5.96046448e-007, -0.972867489, -0.322262019, 0.686789989, 0.651510954, 0.944314957, 0.281537294, 0.170311525, -0.066456385, 0.670116484, -0.739274919),
  1947. CFrame.new(-0.425541252, 0.600001037, -0.937819362, 0.0108688176, -0.870432794, -0.492167175, -0.85132283, 0.250131786, -0.461176276, 0.524529576, 0.424005568, -0.738300681),
  1948. CFrame.new(0.680448771, -2, -0.128245741, 0.96126163, 0, -0.275637388, 0, 1, 0, 0.275637388, 0, 0.96126163),
  1949. CFrame.new(-0.456773728, -2, -0.203368619, 0.829037488, 0, -0.559192836, 0, 1, 0, 0.559192836, 0, 0.829037488),
  1950. }, .3, false)
  1951. end
  1952. for i = 0, 1, 0.2 do
  1953. swait()
  1954. PlayAnimationFromTable({
  1955. CFrame.new(-0, -0, 0, 0.829037547, 0, 0.559192896, 0, 1, 0, -0.559192896, 0, 0.829037547),
  1956. CFrame.new(0.223677456, 1.5, -0.331615418, 0.829037547, 0.271102101, -0.489081144, 0, 0.874619722, 0.484809607, 0.559192896, -0.401925355, 0.72509259),
  1957. CFrame.new(0.990584493, 0.0999999642, -0.972866416, -0.210851848, 0.71165657, 0.670139015, 0.977479398, 0.147404209, 0.151016682, 0.00869072229, 0.686889231, -0.726710141),
  1958. CFrame.new(-0.757156491, 0.800000608, -1.16149533, 0.133158714, -0.890347123, -0.43537426, -0.929765463, 0.0399093181, -0.36598298, 0.343227386, 0.453529775, -0.822499633),
  1959. CFrame.new(0.680448771, -2, -0.128245741, 0.96126163, 0, -0.275637388, 0, 1, 0, 0.275637388, 0, 0.96126163),
  1960. CFrame.new(-0.456773728, -2, -0.203368619, 0.829037488, 0, -0.559192836, 0, 1, 0, 0.559192836, 0, 0.829037488),
  1961. }, .3, false)
  1962. end
  1963. for i = 0, 1, 0.2 do
  1964. swait()
  1965. PlayAnimationFromTable({
  1966. CFrame.new(-0, -0, 0, 0.829037547, 0, 0.559192896, 0, 1, 0, -0.559192896, 0, 0.829037547),
  1967. CFrame.new(0.223677456, 1.5, -0.331615418, 0.829037547, 0.271102101, -0.489081144, 0, 0.874619722, 0.484809607, 0.559192896, -0.401925355, 0.72509259),
  1968. CFrame.new(0.990585089, -2.5331974e-007, -0.972866297, -0.210851848, 0.71165657, 0.670139015, 0.977479398, 0.147404209, 0.151016682, 0.00869072229, 0.686889231, -0.726710141),
  1969. CFrame.new(-0.757156849, 0.500001431, -1.16149521, 0.133158684, -0.890347123, -0.43537426, -0.929765403, 0.0399093926, -0.36598298, 0.343227416, 0.453529775, -0.822499633),
  1970. CFrame.new(0.680448771, -2, -0.128245741, 0.96126163, 0, -0.275637388, 0, 1, 0, 0.275637388, 0, 0.96126163),
  1971. CFrame.new(-0.456773728, -2, -0.203368619, 0.829037488, 0, -0.559192836, 0, 1, 0, 0.559192836, 0, 0.829037488),
  1972. }, .3, false)
  1973. end
  1974. for i = 0, 1, 0.2 do
  1975. swait()
  1976. PlayAnimationFromTable({
  1977. CFrame.new(-0, -0, 0, 0.829037547, 0, 0.559192896, 0, 1, 0, -0.559192896, 0, 0.829037547),
  1978. CFrame.new(0.223677456, 1.5, -0.331615418, 0.829037547, 0.271102101, -0.489081144, 0, 0.874619722, 0.484809607, 0.559192896, -0.401925355, 0.72509259),
  1979. CFrame.new(0.990584493, 0.0999999642, -0.972866416, -0.210851848, 0.71165657, 0.670139015, 0.977479398, 0.147404209, 0.151016682, 0.00869072229, 0.686889231, -0.726710141),
  1980. CFrame.new(-0.674255729, 0.800001264, -1.10557985, 0.20160985, -0.776596785, -0.596867561, -0.929765403, 0.0399093926, -0.36598298, 0.308041841, 0.628732622, -0.714006722),
  1981. CFrame.new(0.680448771, -2, -0.128245741, 0.96126163, 0, -0.275637388, 0, 1, 0, 0.275637388, 0, 0.96126163),
  1982. CFrame.new(-0.456773728, -2, -0.203368619, 0.829037488, 0, -0.559192836, 0, 1, 0, 0.559192836, 0, 0.829037488),
  1983. }, .3, false)
  1984. end
  1985. CFuncs["Sound"].Create("http://www.roblox.com/asset/?id=231917822",RootPart,1,.8)
  1986. ---can.Parent=Character
  1987.  
  1988. Effects["Sphere"].Create(BrickColor.new("Persimmon"), AFMotor3.CFrame, 105, 105, 105, .5, .5, .5, 0.03)
  1989. ge.Parent=Character
  1990. g.Parent = Character
  1991. AMotorWeld.Part0 = RootPart
  1992. AMotorWeld.C1 = CFrame.new(-4.78009033, 1.56501913, -2.5500164, -1, 0, 0, 0, -1, 0, -0, -0, 1)
  1993. AMotor2Weld.Part0 = RootPart
  1994. AMotor2Weld.C1 = CFrame.new(4.47993469, 1.56501913, -1.70001793, -1, 0, 0, 0, -1, 0, -0, -0, 1)
  1995. Effects["Sphere"].Create(BrickColor.new("Persimmon"), RootPart.CFrame, 105, 105, 105, .5, .5, .5, 0.03)
  1996. AFMotor.Transparency=0
  1997. AFMotor2.Transparency=0
  1998. omega = false
  1999. for i = 0, 1, 0.2 do
  2000. swait()
  2001. PlayAnimationFromTable({
  2002. CFrame.new(-0, -0, 0, 0.829037547, 0, 0.559192896, 0, 1, 0, -0.559192896, 0, 0.829037547),
  2003. CFrame.new(0.223677456, 1.5, -0.331615418, 0.829037547, 0.271102101, -0.489081144, 0, 0.874619722, 0.484809607, 0.559192896, -0.401925355, 0.72509259),
  2004. CFrame.new(0.990585148, -0.100000128, -0.97286576, -0.210851848, 0.71165657, 0.670139015, 0.977479398, 0.147404209, 0.151016682, 0.00869072229, 0.686889231, -0.726710141),
  2005. CFrame.new(-0.674256444, 0.500000656, -1.1055783, 0.201609835, -0.776596785, -0.596867621, -0.929765463, 0.0399093032, -0.36598286, 0.308041722, 0.628732562, -0.714006662),
  2006. CFrame.new(0.680448771, -2, -0.128245741, 0.96126163, 0, -0.275637388, 0, 1, 0, 0.275637388, 0, 0.96126163),
  2007. CFrame.new(-0.456773728, -2, -0.203368619, 0.829037488, 0, -0.559192836, 0, 1, 0, 0.559192836, 0, 0.829037488),
  2008. }, .3, false)
  2009. end
  2010. for i = 0, 1, 0.1 do
  2011. swait()
  2012. PlayAnimationFromTable({
  2013. CFrame.new(-0, -0, 0, 0.325568169, 0, 0.945518494, 0, 1, 0, -0.945518494, 0, 0.325568169),
  2014. CFrame.new(-8.7544322e-008, 1.50000048, 3.0733645e-008, 0.325568169, -0.0165014714, -0.945374548, 0, 0.99984777, -0.0174522996, 0.945518494, 0.00568191335, 0.325518608),
  2015. CFrame.new(1.8493607, 0.400000066, -0.34360224, -0.0524368882, -0.896858752, 0.439197659, 0.993822634, -0.00379005075, 0.110915467, -0.0978109241, 0.442300647, 0.891517222),
  2016. CFrame.new(-1.00463176, 0.60000205, -0.581835151, 0.752349138, -0.446394145, -0.484461486, -0.604538441, -0.175660357, -0.776966333, 0.261732548, 0.877425611, -0.402020365),
  2017. CFrame.new(0.750989377, -2, 0.0219423026, 0.965925813, 0, -0.258819163, 0, 1, 0, 0.258819163, 0, 0.965925813),
  2018. CFrame.new(-0.387374163, -2, -0.0333242267, 0.838670373, 0, -0.544638991, 0, 1, 0, 0.544638991, 0, 0.838670373),
  2019. }, .3, false)
  2020. end
  2021. omega = false
  2022. attack=false
  2023. end
  2024. function attackfour()
  2025. attack=true
  2026. local hohe = math.random(-20,-10)
  2027. local hehe = math.random(-10,10)
  2028. for i = 0, 1, 0.1 do
  2029. swait()
  2030. PlayAnimationFromTable({
  2031. CFrame.new(-0, -0, 0, 0.829037547, 0, 0.559192896, 0, 1, 0, -0.559192896, 0, 0.829037547),
  2032. CFrame.new(0.223677456, 1.5, -0.331615418, 0.829037547, 0.271102101, -0.489081144, 0, 0.874619722, 0.484809607, 0.559192896, -0.401925355, 0.72509259),
  2033. CFrame.new(0.990585089, -2.5331974e-007, -0.972866297, -0.210851848, 0.71165657, 0.670139015, 0.977479398, 0.147404209, 0.151016682, 0.00869072229, 0.686889231, -0.726710141),
  2034. CFrame.new(-0.591351926, 0.600000501, -1.04965925, 0.24531807, -0.655219853, -0.714496911, -0.921867132, 0.0703826398, -0.381060779, 0.299966753, 0.752152264, -0.586759567),
  2035. CFrame.new(0.680448771, -2, -0.128245741, 0.96126163, 0, -0.275637388, 0, 1, 0, 0.275637388, 0, 0.96126163),
  2036. CFrame.new(-0.456773728, -2, -0.203368619, 0.829037488, 0, -0.559192836, 0, 1, 0, 0.559192836, 0, 0.829037488),
  2037. }, .3, false)
  2038. end
  2039. for i = 0, 1, 0.3 do
  2040. swait()
  2041. PlayAnimationFromTable({
  2042. CFrame.new(-0, -0, 0, 0.829037547, 0, 0.559192896, 0, 1, 0, -0.559192896, 0, 0.829037547),
  2043. CFrame.new(0.223676458, 1.50000012, -0.331613988, 0.829037547, 0.144729838, -0.540138841, 0, 0.965925813, 0.258819163, 0.559192896, -0.214570805, 0.80078876),
  2044. CFrame.new(0.990584075, 5.96046448e-007, -0.972867489, -0.322262019, 0.686789989, 0.651510954, 0.944314957, 0.281537294, 0.170311525, -0.066456385, 0.670116484, -0.739274919),
  2045. CFrame.new(-0.425541252, 0.600001037, -0.937819362, 0.0108688176, -0.870432794, -0.492167175, -0.85132283, 0.250131786, -0.461176276, 0.524529576, 0.424005568, -0.738300681),
  2046. CFrame.new(0.680448771, -2, -0.128245741, 0.96126163, 0, -0.275637388, 0, 1, 0, 0.275637388, 0, 0.96126163),
  2047. CFrame.new(-0.456773728, -2, -0.203368619, 0.829037488, 0, -0.559192836, 0, 1, 0, 0.559192836, 0, 0.829037488),
  2048. }, .3, false)
  2049. end
  2050. for i = 0, 1, 0.2 do
  2051. swait()
  2052. PlayAnimationFromTable({
  2053. CFrame.new(-0, -0, 0, 0.829037547, 0, 0.559192896, 0, 1, 0, -0.559192896, 0, 0.829037547),
  2054. CFrame.new(0.223677456, 1.5, -0.331615418, 0.829037547, 0.271102101, -0.489081144, 0, 0.874619722, 0.484809607, 0.559192896, -0.401925355, 0.72509259),
  2055. CFrame.new(0.990584493, 0.0999999642, -0.972866416, -0.210851848, 0.71165657, 0.670139015, 0.977479398, 0.147404209, 0.151016682, 0.00869072229, 0.686889231, -0.726710141),
  2056. CFrame.new(-0.757156491, 0.800000608, -1.16149533, 0.133158714, -0.890347123, -0.43537426, -0.929765463, 0.0399093181, -0.36598298, 0.343227386, 0.453529775, -0.822499633),
  2057. CFrame.new(0.680448771, -2, -0.128245741, 0.96126163, 0, -0.275637388, 0, 1, 0, 0.275637388, 0, 0.96126163),
  2058. CFrame.new(-0.456773728, -2, -0.203368619, 0.829037488, 0, -0.559192836, 0, 1, 0, 0.559192836, 0, 0.829037488),
  2059. }, .3, false)
  2060. AFMotor3Weld.C0 = clerp(AFMotor3Weld.C0, CFrame.new(0, 0, 5) * angles(math.rad(hohe), math.rad(hehe), math.rad(0)), .3)
  2061. end
  2062. CFuncs["Sound"].Create("http://www.roblox.com/asset/?id=233856079",RootPart,1,1)
  2063. Effects["Sphere"].Create(BrickColor.new("Really red"), Barrel3.CFrame, 15, 15, 15, .5, .5, .5, 0.03)
  2064. shoottraildd(mouse,Barrel3, 0,2,"Explosive")
  2065. for i = 0, 1, 0.2 do
  2066. swait()
  2067. PlayAnimationFromTable({
  2068. CFrame.new(-0, -0, 0, 0.829037547, 0, 0.559192896, 0, 1, 0, -0.559192896, 0, 0.829037547),
  2069. CFrame.new(0.223677456, 1.5, -0.331615418, 0.829037547, 0.271102101, -0.489081144, 0, 0.874619722, 0.484809607, 0.559192896, -0.401925355, 0.72509259),
  2070. CFrame.new(0.990585089, -2.5331974e-007, -0.972866297, -0.210851848, 0.71165657, 0.670139015, 0.977479398, 0.147404209, 0.151016682, 0.00869072229, 0.686889231, -0.726710141),
  2071. CFrame.new(-0.757156849, 0.500001431, -1.16149521, 0.133158684, -0.890347123, -0.43537426, -0.929765403, 0.0399093926, -0.36598298, 0.343227416, 0.453529775, -0.822499633),
  2072. CFrame.new(0.680448771, -2, -0.128245741, 0.96126163, 0, -0.275637388, 0, 1, 0, 0.275637388, 0, 0.96126163),
  2073. CFrame.new(-0.456773728, -2, -0.203368619, 0.829037488, 0, -0.559192836, 0, 1, 0, 0.559192836, 0, 0.829037488),
  2074. }, .3, false)
  2075. end
  2076. for i = 0, 1, 0.2 do
  2077. swait()
  2078. PlayAnimationFromTable({
  2079. CFrame.new(-0, -0, 0, 0.829037547, 0, 0.559192896, 0, 1, 0, -0.559192896, 0, 0.829037547),
  2080. CFrame.new(0.223677456, 1.5, -0.331615418, 0.829037547, 0.271102101, -0.489081144, 0, 0.874619722, 0.484809607, 0.559192896, -0.401925355, 0.72509259),
  2081. CFrame.new(0.990584493, 0.0999999642, -0.972866416, -0.210851848, 0.71165657, 0.670139015, 0.977479398, 0.147404209, 0.151016682, 0.00869072229, 0.686889231, -0.726710141),
  2082. CFrame.new(-0.674255729, 0.800001264, -1.10557985, 0.20160985, -0.776596785, -0.596867561, -0.929765403, 0.0399093926, -0.36598298, 0.308041841, 0.628732622, -0.714006722),
  2083. CFrame.new(0.680448771, -2, -0.128245741, 0.96126163, 0, -0.275637388, 0, 1, 0, 0.275637388, 0, 0.96126163),
  2084. CFrame.new(-0.456773728, -2, -0.203368619, 0.829037488, 0, -0.559192836, 0, 1, 0, 0.559192836, 0, 0.829037488),
  2085. }, .3, false)
  2086. AFMotor3Weld.C0 = clerp(AFMotor3Weld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  2087. end
  2088. attack=false
  2089. end
  2090. --[[Attacks]]--
  2091.  
  2092. mouse.Button1Down:connect(function()
  2093. if attack == false and attacktype == 1 then
  2094. if minigun == true and cooldown2>=0 then
  2095. cooldown2=cooldown2-3
  2096. attacktype=2
  2097. mattackone()
  2098. else
  2099. if minigun==true then
  2100. unminigun()
  2101. else
  2102. attacktype=2
  2103. attackone()
  2104. end
  2105. end
  2106. elseif attack == false and attacktype == 2 then
  2107. if railcannon == true and cooldown3>=0 then
  2108. cooldown3=cooldown3-5
  2109. attacktype=3
  2110. mattacktwo()
  2111. else
  2112. if railcannon==true then
  2113. unrailcannon()
  2114. attacktype=1
  2115. else
  2116. attacktype=3
  2117. attacktwo()
  2118. end
  2119. end
  2120. elseif attack == false and attacktype == 3 then
  2121. if minigun == true and cooldown2>=0 then
  2122. cooldown2=cooldown2-3
  2123. attacktype=1
  2124. mattackthree()
  2125. else
  2126. if minigun==true then
  2127. unminigun()
  2128. else
  2129. if omega==true then
  2130. attacktype=4
  2131. attackthree()
  2132. else
  2133. attacktype=1
  2134. attackthree()
  2135. end
  2136. end
  2137. end
  2138. elseif attack==false and attacktype==4 then
  2139. if omega == true and cooldown4>=0 then
  2140. cooldown4=cooldown4-5
  2141. attacktype=1
  2142. attackfour()
  2143. else
  2144. goback()
  2145. attacktype=1
  2146.  
  2147. end
  2148.  
  2149. end
  2150. end)
  2151.  
  2152.  
  2153. function updateskills()
  2154. if minigun == true then
  2155. text2.Text = "X\n Ammo"
  2156. else
  2157. text2.Text = "X\n Equip DDJ Multishot"
  2158. end
  2159. if railcannon == true then
  2160. text3.Text = "C\n Ammo"
  2161. else
  2162. text3.Text = "[C]\n Equip QRR-3 Railcannon"
  2163. end
  2164. if omega == true then
  2165. text4.Text = "[V]\n Ammo"
  2166. else
  2167. text4.Text = "[V]\n Equip RRE3 Blackout"
  2168. end
  2169. if cooldown1 <= co1 then
  2170. cooldown1 = cooldown1 + 1 / 30
  2171. end
  2172. if cooldown2 <= co2 and minigun == false then
  2173. cooldown2 = cooldown2 + 1 / 30
  2174. end
  2175. if cooldown3 <= co3 and railcannon == false then
  2176. cooldown3 = cooldown3 + 1 / 30
  2177. end
  2178. if cooldown4 <= co4 and omega == false then
  2179. cooldown4 = cooldown4 + 1 / 30
  2180. end
  2181. end
  2182. function goback()
  2183. attack=true
  2184. for i = 0, 1, 0.1 do
  2185. swait()
  2186. PlayAnimationFromTable({
  2187. CFrame.new(-0, -0, 0, 0.906307757, 0, 0.42261821, 0, 1, 0, -0.42261821, 0, 0.906307757),
  2188. CFrame.new(0, 1.5, 0, 0.906307697, 0, -0.422618181, 0, 1, 0, 0.422618181, 0, 0.906307697),
  2189. CFrame.new(1.6601975, 1.4999994, -0.0649252385, 0.781850934, -0.325982988, 0.531454682, -0.0811080709, -0.898357868, -0.431711257, 0.618166983, 0.294428617, -0.728821814),
  2190. CFrame.new(-1.44888604, -3.78349796e-008, -0.388228029, 0.964929819, 0.0809203684, -0.249724105, -0.134298533, 0.96955663, -0.204753056, 0.225552931, 0.231109917, 0.946421623),
  2191. CFrame.new(0.497257799, -2, -0.0522656441, 0.874619603, 0, -0.484809637, 0, 1, 0, 0.484809637, 0, 0.874619603),
  2192. CFrame.new(-0.49726212, -2, 0.0522664487, 0.997563958, 0, -0.0697563291, 0, 1, 0, 0.0697563291, 0, 0.997563958),
  2193. }, .3, false)
  2194. end
  2195. for i = 0, 1, 0.2 do
  2196. swait()
  2197. PlayAnimationFromTable({
  2198. CFrame.new(-0, -0, 0, 0.906307757, 0, 0.42261821, 0, 1, 0, -0.42261821, 0, 0.906307757),
  2199. CFrame.new(0, 1.5, 0, 0.906307697, 0, -0.422618181, 0, 1, 0, 0.422618181, 0, 0.906307697),
  2200. CFrame.new(1.66019619, 1.50000036, -0.0649269223, 0.802965522, -0.164043784, 0.573005915, -0.164460212, -0.985036254, -0.0515408218, 0.572886586, -0.0528511666, -0.817928791),
  2201. CFrame.new(-1.57567263, 1.45286322e-007, -0.116335958, 0.964929819, 0.0809203684, -0.249724105, -0.134298533, 0.96955663, -0.204753056, 0.225552931, 0.231109917, 0.946421623),
  2202. CFrame.new(0.497257799, -2, -0.0522656441, 0.874619603, 0, -0.484809637, 0, 1, 0, 0.484809637, 0, 0.874619603),
  2203. CFrame.new(-0.49726212, -2, 0.0522664487, 0.997563958, 0, -0.0697563291, 0, 1, 0, 0.0697563291, 0, 0.997563958),
  2204. }, .3, false)
  2205. end
  2206. for i = 0, 1, 0.1 do
  2207. swait()
  2208. PlayAnimationFromTable({
  2209. CFrame.new(0, -0, -0, 0.970295727, 0, -0.241921693, 0, 1, 0, 0.241921693, 0, 0.970295727),
  2210. CFrame.new(0, 1.5, 0, 0.970295668, 0, 0.241921678, 0, 1, 0, -0.241921678, 0, 0.970295668),
  2211. CFrame.new(1.85520256, 0.699999154, -0.318754077, -0.295568019, -0.888461173, 0.351107359, 0.932772815, -0.189012975, 0.306934923, -0.206335902, 0.4182235, 0.884598494),
  2212. CFrame.new(-1.44289422, -5.96046448e-008, 0.319016129, 0.882078886, 0.32923764, 0.336955696, -0.00186546892, 0.717686236, -0.696364105, -0.471097738, 0.613619506, 0.633670092),
  2213. CFrame.new(0.482769817, -2, -0.175085574, 0.978147507, 0, -0.207911983, 0, 1, 0, 0.207911983, 0, 0.978147507),
  2214. CFrame.new(-0.437726796, -2, 0.215645447, 0.974370062, 0, 0.224950939, 0, 1, 0, -0.224950939, 0, 0.974370062),
  2215. }, .3, false)
  2216. end
  2217. CFuncs["Sound"].Create("http://www.roblox.com/asset/?id=233096543",RootPart,1,1)
  2218. CFuncs["Sound"].Create("http://www.roblox.com/asset/?id=233091205",RootPart,1,1)
  2219. Effects["Sphere"].Create(BrickColor.new("Persimmon"), AFMotor3.CFrame, 105, 105, 105, -.5, -.5, -.5, 0.03)
  2220. can.Parent=nil
  2221. for i = 0, 1, 0.3 do
  2222. swait()
  2223. PlayAnimationFromTable({
  2224. CFrame.new(-0, -0, 0, 0.857167125, 0, 0.515038252, 0, 1, 0, -0.515038252, 0, 0.857167125),
  2225. CFrame.new(0.103007838, 1.49999988, -0.171433717, 0.857167125, 0.107082479, -0.503783464, 0, 0.978147626, 0.2079117, 0.515038252, -0.178215072, 0.838436007),
  2226. CFrame.new(0.766878366, 0.0999998003, -1.12638593, 0.0371247493, 0.644972682, 0.76330328, 0.988847971, 0.0865307152, -0.12121091, -0.144226894, 0.759290814, -0.634567499),
  2227. CFrame.new(-0.713899016, 0.399999678, -1.29171181, 0.364090472, -0.680900156, -0.635462821, -0.931355, -0.269105226, -0.245275825, -0.00399804115, 0.681144059, -0.732138395),
  2228. CFrame.new(0.53013283, -2, 0.092574805, 0.819151759, 0, -0.573576689, 0, 1, 0, 0.573576689, 0, 0.819151759),
  2229. CFrame.new(-0.469853103, -2, 0.0925830379, 0.98480767, 0, -0.173648357, 0, 1, 0, 0.173648357, 0, 0.98480767),
  2230. }, .3, false)
  2231. end
  2232. for i = 0, 1, 0.2 do
  2233. swait()
  2234. PlayAnimationFromTable({
  2235. CFrame.new(-0, -0, 0, 0.857167125, 0, 0.515038252, 0, 1, 0, -0.515038252, 0, 0.857167125),
  2236. CFrame.new(0.103007838, 1.49999988, -0.171433717, 0.857167125, 0.107082479, -0.503783464, 0, 0.978147626, 0.2079117, 0.515038252, -0.178215072, 0.838436007),
  2237. CFrame.new(0.766876101, -3.42726707e-007, -1.12638724, 0.0371247493, 0.644972682, 0.76330328, 0.988847971, 0.0865307152, -0.12121091, -0.144226894, 0.759290814, -0.634567499),
  2238. CFrame.new(-0.713901818, 0.399998933, -1.29171515, 0.279300272, -0.697655261, -0.659748673, -0.950363278, -0.102735132, -0.293692142, 0.137116492, 0.709029198, -0.691719949),
  2239. CFrame.new(0.53013283, -2, 0.092574805, 0.819151759, 0, -0.573576689, 0, 1, 0, 0.573576689, 0, 0.819151759),
  2240. CFrame.new(-0.469853103, -2, 0.0925830379, 0.98480767, 0, -0.173648357, 0, 1, 0, 0.173648357, 0, 0.98480767),
  2241. }, .3, false)
  2242. end
  2243. for i = 0, 1, 0.2 do
  2244. swait()
  2245. PlayAnimationFromTable({
  2246. CFrame.new(-0, -0, 0, 0.857167125, 0, 0.515038252, 0, 1, 0, -0.515038252, 0, 0.857167125),
  2247. CFrame.new(0.103007838, 1.49999988, -0.171433717, 0.857167125, 0.107082479, -0.503783464, 0, 0.978147626, 0.2079117, 0.515038252, -0.178215072, 0.838436007),
  2248. CFrame.new(0.766878366, 0.0999998003, -1.12638593, 0.0371247493, 0.644972682, 0.76330328, 0.988847971, 0.0865307152, -0.12121091, -0.144226894, 0.759290814, -0.634567499),
  2249. CFrame.new(-0.713900208, 0.499999553, -1.29171515, 0.376298666, -0.84488976, -0.380211085, -0.925719321, -0.35969004, -0.116904765, -0.0379865021, 0.395959884, -0.917481661),
  2250. CFrame.new(0.53013283, -2, 0.092574805, 0.819151759, 0, -0.573576689, 0, 1, 0, 0.573576689, 0, 0.819151759),
  2251. CFrame.new(-0.469853103, -2, 0.0925830379, 0.98480767, 0, -0.173648357, 0, 1, 0, 0.173648357, 0, 0.98480767),
  2252. }, .3, false)
  2253. end
  2254. for i = 0, 1, 0.2 do
  2255. swait()
  2256. PlayAnimationFromTable({
  2257. CFrame.new(-0, -0, 0, 0.857167125, 0, 0.515038252, 0, 1, 0, -0.515038252, 0, 0.857167125),
  2258. CFrame.new(0.103007838, 1.49999988, -0.171433717, 0.857167125, 0.107082479, -0.503783464, 0, 0.978147626, 0.2079117, 0.515038252, -0.178215072, 0.838436007),
  2259. CFrame.new(0.766876101, -3.42726707e-007, -1.12638724, 0.0371247493, 0.644972682, 0.76330328, 0.988847971, 0.0865307152, -0.12121091, -0.144226894, 0.759290814, -0.634567499),
  2260. CFrame.new(-0.713899612, 0.300000072, -1.29171467, 0.376298547, -0.84488976, -0.380211085, -0.92571938, -0.359689951, -0.116904832, -0.0379864275, 0.395959944, -0.917481661),
  2261. CFrame.new(0.53013283, -2, 0.092574805, 0.819151759, 0, -0.573576689, 0, 1, 0, 0.573576689, 0, 0.819151759),
  2262. CFrame.new(-0.469853103, -2, 0.0925830379, 0.98480767, 0, -0.173648357, 0, 1, 0, 0.173648357, 0, 0.98480767),
  2263. }, .3, false)
  2264. end
  2265. for i = 0, 1, 0.2 do
  2266. swait()
  2267. PlayAnimationFromTable({
  2268. CFrame.new(-0, -0, 0, 0.857167125, 0, 0.515038252, 0, 1, 0, -0.515038252, 0, 0.857167125),
  2269. CFrame.new(0.103007838, 1.49999988, -0.171433717, 0.857167125, 0.107082479, -0.503783464, 0, 0.978147626, 0.2079117, 0.515038252, -0.178215072, 0.838436007),
  2270. CFrame.new(0.766878366, 0.0999998003, -1.12638593, 0.0371247493, 0.644972682, 0.76330328, 0.988847971, 0.0865307152, -0.12121091, -0.144226894, 0.759290814, -0.634567499),
  2271. CFrame.new(-0.713899255, 0.50000006, -1.29171133, 0.340612859, -0.658510447, -0.671078801, -0.92571938, -0.359689951, -0.116904832, -0.16439724, 0.661049962, -0.732110918),
  2272. CFrame.new(0.53013283, -2, 0.092574805, 0.819151759, 0, -0.573576689, 0, 1, 0, 0.573576689, 0, 0.819151759),
  2273. CFrame.new(-0.469853103, -2, 0.0925830379, 0.98480767, 0, -0.173648357, 0, 1, 0, 0.173648357, 0, 0.98480767),
  2274. }, .3, false)
  2275. end
  2276. for i = 0, 1, 0.3 do
  2277. swait()
  2278. PlayAnimationFromTable({
  2279. CFrame.new(-0, -0, 0, 0.857167125, 0, 0.515038252, 0, 1, 0, -0.515038252, 0, 0.857167125),
  2280. CFrame.new(0.103007838, 1.49999988, -0.171433717, 0.857167125, 0.107082479, -0.503783464, 0, 0.978147626, 0.2079117, 0.515038252, -0.178215072, 0.838436007),
  2281. CFrame.new(0.766876101, -3.42726707e-007, -1.12638724, 0.0371247493, 0.644972682, 0.76330328, 0.988847971, 0.0865307152, -0.12121091, -0.144226894, 0.759290814, -0.634567499),
  2282. CFrame.new(-0.713902056, 0.299999446, -1.29171276, 0.340612829, -0.658510506, -0.671078801, -0.92571944, -0.359689891, -0.116904855, -0.164397165, 0.661049962, -0.732110858),
  2283. CFrame.new(0.53013283, -2, 0.092574805, 0.819151759, 0, -0.573576689, 0, 1, 0, 0.573576689, 0, 0.819151759),
  2284. CFrame.new(-0.469853103, -2, 0.0925830379, 0.98480767, 0, -0.173648357, 0, 1, 0, 0.173648357, 0, 0.98480767),
  2285. }, .3, false)
  2286. end
  2287. CFuncs["Sound"].Create("http://www.roblox.com/asset/?id=240429289",RootPart,1,1)
  2288. Effects["Sphere"].Create(BrickColor.new("Persimmon"), RootPart.CFrame, 55, 55, 55, .5, .5, .5, 0.03)
  2289. ge.Parent=Character
  2290. g.Parent = Character
  2291. AMotorWeld.Part0 = RootPart
  2292. AMotorWeld.C1 = CFrame.new(-4.78009033, 1.56501913, -2.5500164, -1, 0, 0, 0, -1, 0, -0, -0, 1)
  2293. AMotor2Weld.Part0 = RootPart
  2294. AMotor2Weld.C1 = CFrame.new(4.47993469, 1.56501913, -1.70001793, -1, 0, 0, 0, -1, 0, -0, -0, 1)
  2295. AFMotor.Transparency=0
  2296. AFMotor2.Transparency=0
  2297. for i = 0, 1, 0.2 do
  2298. swait()
  2299. PlayAnimationFromTable({
  2300. CFrame.new(0, -0, -0, 0.974370122, 0, -0.224950582, 0, 1, 0, 0.224950582, 0, 0.974370122),
  2301. CFrame.new(-0.0224949345, 1.5, -0.0974364728, 0.974370122, -0.0117730014, 0.224642292, 0, 0.99862951, 0.052335944, -0.224950582, -0.0509945787, 0.973034739),
  2302. CFrame.new(1.88297892, 4.17232513e-007, -0.188890129, 0.770794868, -0.624479651, -0.126096755, 0.265426129, 0.49471283, -0.827531397, 0.579158187, 0.604387522, 0.547075272),
  2303. CFrame.new(-1.49323785, -0.0999996662, 0.0989130512, 0.754503727, 0.561999917, 0.338939488, 0.0725721419, 0.441831708, -0.894157708, -0.652270794, 0.699242949, 0.292578191),
  2304. CFrame.new(0.545134008, -2, -0.268956423, 0.951056302, 0, -0.309017599, 0, 1, 0, 0.309017599, 0, 0.951056302),
  2305. CFrame.new(-0.411152959, -2, 0.0234167781, 0.992546201, 0, 0.121868908, 0, 1, 0, -0.121868908, 0, 0.992546201),
  2306. }, .3, false)
  2307. end
  2308. for i = 0, 1, 0.1 do
  2309. swait()
  2310. PlayAnimationFromTable({
  2311. CFrame.new(0, -0, -0, 0.974370122, 0, -0.224950582, 0, 1, 0, 0.224950582, 0, 0.974370122),
  2312. CFrame.new(-0.0224949345, 1.5, -0.0974364728, 0.974370122, -0.0117730014, 0.224642292, 0, 0.99862951, 0.052335944, -0.224950582, -0.0509945787, 0.973034739),
  2313. CFrame.new(1.90547287, 1.14738941e-006, -0.0914520919, 0.770794868, -0.624479651, -0.126096755, 0.265426129, 0.49471283, -0.827531397, 0.579158187, 0.604387522, 0.547075272),
  2314. CFrame.new(-1.42575228, -0.0999999642, 0.391223609, 0.754503727, 0.561999917, 0.338939488, 0.0725721419, 0.441831708, -0.894157708, -0.652270794, 0.699242949, 0.292578191),
  2315. CFrame.new(0.545134008, -2, -0.268956423, 0.951056302, 0, -0.309017599, 0, 1, 0, 0.309017599, 0, 0.951056302),
  2316. CFrame.new(-0.411152959, -2, 0.0234167781, 0.992546201, 0, 0.121868908, 0, 1, 0, -0.121868908, 0, 0.992546201),
  2317. }, .3, false)
  2318. end
  2319. attacktype=1
  2320. omega=false
  2321. attack=false
  2322. end
  2323. mouse.KeyDown:connect(function(k)
  2324. k = k:lower()
  2325. if attack == false and k == 'z' and cooldown1>=co1 then
  2326. cooldown1=0
  2327. boost()
  2328. elseif attack == false and k == 'x' and omega == false and minigun == false then
  2329. minigunmode()
  2330. elseif attack == false and k == 'x' and omega == false and minigun == true then
  2331. unminigun()
  2332. elseif attack == false and k == 'c' and omega == false and railcannon==false then
  2333. railcannonmode()
  2334. elseif attack == false and k == 'c' and omega == false and railcannon==true then
  2335. unrailcannon()
  2336. elseif attack == false and k == 'v' and omega == false then
  2337. ult()
  2338. elseif attack==false and k=='v' and omega == true then
  2339. goback()
  2340. end
  2341. end)
  2342. spawn(function()
  2343. intro()
  2344. end)
  2345. while true do
  2346. swait()
  2347. if Humanoid.Health == 0 or Character == nil then
  2348. break
  2349. end
  2350. updateskills()
  2351. bar4:TweenSize(UDim2.new(1 * (cooldown4 / co4), 0, 1, 0), 'Out', 'Quad', .5)
  2352. bar3:TweenSize(UDim2.new(1 * (cooldown3 / co3), 0, 1, 0), 'Out', 'Quad', .5)
  2353. bar1:TweenSize(UDim2.new(1 * (cooldown1 / co1), 0, 1, 0), 'Out', 'Quad', .5)
  2354. bar2:TweenSize(UDim2.new(1 * (cooldown2 / co2), 0, 1, 0), 'Out', 'Quad', .5)
  2355. for i, v in pairs(Character:GetChildren()) do
  2356. if v:IsA("Part") then
  2357. v.Material = "SmoothPlastic"
  2358. elseif v:IsA("Hat") then
  2359. v:WaitForChild("Handle").Material = "SmoothPlastic"
  2360. end
  2361. end
  2362. Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  2363. velocity = RootPart.Velocity.y
  2364. sine = sine + change
  2365. local hit, pos = rayCast(RootPart.Position, (CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0))).lookVector, 4, Character)
  2366. if equipped == true or equipped == false then
  2367. if RootPart.Velocity.y > 1 and hit == nil then
  2368. Anim = "Jump"
  2369. if attack == false then
  2370. RootJoint.C0 = clerp(RootJoint.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  2371. Torso.Neck.C0 = clerp(Torso.Neck.C0, CFrame.new(0, 1.5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  2372. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  2373. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  2374. RH.C0 = clerp(RH.C0, CFrame.new(.5, -2, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  2375. LH.C0 = clerp(LH.C0, CFrame.new(-.5, -2, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  2376. end
  2377. elseif RootPart.Velocity.y < -1 and hit == nil then
  2378. Anim = "Fall"
  2379. if attack == false then
  2380. RootJoint.C0 = clerp(RootJoint.C0, CFrame.new(0, 0+.15*math.cos(sine/15), 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  2381. Torso.Neck.C0 = clerp(Torso.Neck.C0, CFrame.new(0, 1.5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  2382. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  2383. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  2384. RH.C0 = clerp(RH.C0, CFrame.new(.5, -2-.15*math.cos(sine/15), 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  2385. LH.C0 = clerp(LH.C0, CFrame.new(-.5, -2-.15*math.cos(sine/15), 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  2386. end
  2387. elseif Torsovelocity < 1 and hit ~= nil then
  2388. Anim = "Idle"
  2389. if attack == false then
  2390. change = 1
  2391. RootJoint.C0 = clerp(RootJoint.C0, CFrame.new(0, 0+.1*math.cos(sine/15), 0) * angles(math.rad(0), math.rad(10), math.rad(0)), .3)
  2392. Torso.Neck.C0 = clerp(Torso.Neck.C0, CFrame.new(0, 1.5, 0) * angles(math.rad(0), math.rad(-10), math.rad(0)), .3)
  2393. RH.C0 = clerp(RH.C0, CFrame.new(.5, -2-.1*math.cos(sine/15), 0) * angles(math.rad(0), math.rad(-10), math.rad(0)), .3)
  2394. LH.C0 = clerp(LH.C0, CFrame.new(-.5, -2-.1*math.cos(sine/15), 0) * angles(math.rad(0), math.rad(-10), math.rad(0)), .3)
  2395. if minigun == false then
  2396. AFMotor2Weld.C0 = clerp(AFMotor2Weld.C0, CFrame.new(0, 0+.1*math.cos(sine/18), 0) * angles(math.rad(20), math.rad(20), math.rad(0)), .3)
  2397. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0+.1*math.cos(sine/10), 0) * angles(math.rad(0), math.rad(0), math.rad(10)), 0.3)
  2398. else
  2399. AFMotor2Weld.C0 = clerp(AFMotor2Weld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  2400. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0+.1*math.cos(sine/10), 0) * angles(math.rad(0), math.rad(0), math.rad(10)), 0.3)
  2401. end
  2402. if railcannon==false then
  2403. AFMotorWeld.C0 = clerp(AFMotorWeld.C0, CFrame.new(0, 0+.1*math.cos(sine/15), 0) * angles(math.rad(20), math.rad(-20), math.rad(0)), .3)
  2404. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0+.1*math.cos(sine/10), 0) * angles(math.rad(0), math.rad(0), math.rad(-10)), 0.3)
  2405. else
  2406. AFMotorWeld.C0 = clerp(AFMotorWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  2407. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0+.12*math.cos(sine/10), 0) * angles(math.rad(40), math.rad(0), math.rad(-40)), 0.3)
  2408. end
  2409. if omega==false then
  2410. AFMotor3Weld.C0 = clerp(AFMotor3Weld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  2411. else
  2412. AFMotor3Weld.C0 = clerp(AFMotor3Weld.C0, CFrame.new(0, 0+.05*math.cos(sine/10), 0) * angles(math.rad(0+.5*math.cos(sine/10)), math.rad(0), math.rad(0)), .3)
  2413. end
  2414. end
  2415. elseif Torsovelocity > 2 and hit ~= nil then
  2416. Anim = "Walk"
  2417. if attack == false then
  2418. RootJoint.C0 = clerp(RootJoint.C0, CFrame.new(0, 0, 0) * angles(math.rad(-10), math.rad(0), math.rad(0)), .3)
  2419. Torso.Neck.C0 = clerp(Torso.Neck.C0, CFrame.new(0, 1.5, 0) * angles(math.rad(10), math.rad(0), math.rad(0)), .3)
  2420. RH.C0 = clerp(RH.C0, CFrame.new(.5, -2, 0+.75*math.cos(sine/3)) * angles(math.rad(0-50*math.cos(sine/3)), math.rad(0), math.rad(0)), .3)
  2421. LH.C0 = clerp(LH.C0, CFrame.new(-.5, -2, 0-.75*math.cos(sine/3)) * angles(math.rad(0+50*math.cos(sine/3)), math.rad(0), math.rad(0)), .3)
  2422. if omega==false then
  2423. AFMotor3Weld.C0 = clerp(AFMotor3Weld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  2424. else
  2425. AFMotor3Weld.C0 = clerp(AFMotor3Weld.C0, CFrame.new(0, 0+.05*math.cos(sine/10), 0) * angles(math.rad(0+.5*math.cos(sine/10)), math.rad(0), math.rad(0)), .3)
  2426. end
  2427. if railcannon==false then
  2428. AFMotorWeld.C0 = clerp(AFMotorWeld.C0, CFrame.new(0, 0+.1*math.cos(sine/15), 0) * angles(math.rad(20), math.rad(-20), math.rad(0)), .3)
  2429. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0+.1*math.cos(sine/10), 0) * angles(math.rad(0), math.rad(0), math.rad(-10)), 0.3)
  2430. else
  2431. AFMotorWeld.C0 = clerp(AFMotorWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  2432. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0+.12*math.cos(sine/10), 0) * angles(math.rad(40), math.rad(0), math.rad(-70)), 0.3)
  2433. end
  2434. if minigun == false then
  2435. AFMotor2Weld.C0 = clerp(AFMotor2Weld.C0, CFrame.new(0, 0+.1*math.cos(sine/18), 0) * angles(math.rad(20), math.rad(20), math.rad(0)), .3)
  2436. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0+.1*math.cos(sine/10), 0) * angles(math.rad(0), math.rad(0), math.rad(10)), 0.3)
  2437. else
  2438. AFMotor2Weld.C0 = clerp(AFMotor2Weld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  2439. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0+.1*math.cos(sine/10), 0) * angles(math.rad(0), math.rad(0), math.rad(30)), 0.3)
  2440. end
  2441.  
  2442. end
  2443. end
  2444. end
  2445. if 0 < #Effects then
  2446. for e = 1, #Effects do
  2447. if Effects[e] ~= nil then
  2448. local Thing = Effects[e]
  2449. if Thing ~= nil then
  2450. local Part = Thing[1]
  2451. local Mode = Thing[2]
  2452. local Delay = Thing[3]
  2453. local IncX = Thing[4]
  2454. local IncY = Thing[5]
  2455. local IncZ = Thing[6]
  2456. if Thing[2] == "Shoot" then
  2457. local Look = Thing[1]
  2458. local hit, pos = rayCast(Thing[4], Look, 15, Character)
  2459. local mag = (Thing[4] - pos).magnitude
  2460. Thing[9] = Thing[9] + 0.5
  2461. Thing[5] = Thing[5] + 0.2
  2462. Thing[6] = Thing[6] + 0.2
  2463. Effects["Cylinder"].Create(BrickColor.new("Really red"), CFrame.new((Thing[4] + pos) / 2, pos) * angles(1.57, 0, 0), Thing[9], mag * 5, Thing[9], -0.06, 0, -0.06, 0.1)
  2464. Thing[4] = Thing[4] + Look * 15
  2465. Thing[3] = Thing[3] - 3
  2466. if hit ~= nil then
  2467. Thing[3] = 0
  2468. ref = CFuncs["Part"].Create(EffectModel, "Neon", 0, 1, BrickColor.new("Really red"), "Reference", Vector3.new())
  2469. ref.Anchored = true
  2470. ref.CFrame = CFrame.new(pos)
  2471. MagniDamage(ref,10,3,8,0,"Normal")
  2472. Effects["Sphere"].Create(BrickColor.new("Really red"), CFrame.new(pos), 5, 5, 5, 1, 1, 1, 0.07)
  2473. CFuncs["Sound"].Create("rbxassetid://300916057", ref, 1, 2)
  2474. game:GetService("Debris"):AddItem(ref, 1)
  2475. end
  2476. if Thing[3] <= 0 then
  2477. table.remove(Effects, e)
  2478. end
  2479. end
  2480. do
  2481. if Thing[2] == "Shoot2" then
  2482. local Look = Thing[1]
  2483. local hit, pos = rayCast(Thing[4], Look, 3, Character)
  2484. local mag = (Thing[4] - pos).magnitude
  2485. Thing[9] = Thing[9] + 0.5
  2486. Thing[5] = Thing[5] + 0.2
  2487. Thing[6] = Thing[6] + 0.2
  2488. Effects["Block"].Create(BrickColor.new("Really red"), CFrame.new((Thing[4] + pos) / 2, pos), 15, 15, 15, -.5, -.5, -.5, 0.05)
  2489. Thing[4] = Thing[4] + Look * 3
  2490. Thing[3] = Thing[3] - 1
  2491. if hit ~= nil then
  2492. Thing[3] = 0
  2493. ref = CFuncs["Part"].Create(EffectModel, "Neon", 0, 1, BrickColor.new("Really red"), "Reference", Vector3.new())
  2494. ref.Anchored = true
  2495. ref.CFrame = CFrame.new(pos)
  2496. MagniDamage(ref,10,10,18,0,"Normal")
  2497. Effects["Sphere"].Create(BrickColor.new("Really red"), CFrame.new(pos), 25, 25, 25, 5, 5, 5, 0.1)
  2498. Effects["Sphere"].Create(BrickColor.new("Really red"), CFrame.new(pos), 10, 10, 10, 15, 15, 15, 0.08)
  2499. CFuncs["Sound"].Create("rbxassetid://300916057", ref, 1, 1.5)
  2500. game:GetService("Debris"):AddItem(ref, 1)
  2501. end
  2502. if Thing[3] <= 0 then
  2503. table.remove(Effects, e)
  2504. end
  2505. end
  2506. do
  2507. do
  2508. if Thing[2] == "showDamage" then
  2509. if Thing[6] < Thing[5] then
  2510. Thing[6] = Thing[6] + 1
  2511. else
  2512. if Thing[6] < Thing[7] then
  2513. Thing[4].position = Thing[4].position + Vector3.new(0, -0.2, 0)
  2514. Thing[6] = Thing[6] + 1
  2515. else
  2516. if Thing[6] < Thing[8] then
  2517. Thing[6] = Thing[6] + 1
  2518. else
  2519. if Thing[6] < Thing[9] then
  2520. Thing[6] = Thing[6] + 1
  2521. Thing[4].position = Thing[4].position + Vector3.new(0, 0.2, 0)
  2522. Thing[3].TextStrokeTransparency = Thing[3].TextStrokeTransparency + 0.1
  2523. Thing[3].TextTransparency = Thing[3].TextTransparency + 0.1
  2524. else
  2525. Thing[1].Parent = nil
  2526. table.remove(Effects, e)
  2527. end
  2528. end
  2529. end
  2530. end
  2531. end
  2532. if Thing[2] ~= "Shoot" and Thing[2] ~= "DecreaseStat" and Thing[2] ~= "showDamage" and Thing[2] ~= "Shoot2" then
  2533. if Thing[1].Transparency <= 1 then
  2534. if Thing[2] == "Block1" then
  2535. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  2536. Mesh = Thing[7]
  2537. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  2538. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  2539. else
  2540. if Thing[2] == "Block2" then
  2541. Thing[1].CFrame = Thing[1].CFrame
  2542. Mesh = Thing[7]
  2543. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  2544. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  2545. else
  2546. if Thing[2] == "Block3" then
  2547. Thing[8].C0 = CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) * Thing[9]
  2548. Mesh = Thing[7]
  2549. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  2550. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  2551. else
  2552. if Thing[2] == "Cylinder" then
  2553. Mesh = Thing[7]
  2554. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  2555. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  2556. else
  2557. if Thing[2] == "Cylinder2" then
  2558. Thing[1].CFrame = Thing[1].CFrame * CFrame.new(0, Thing[8], 0)
  2559. Mesh = Thing[7]
  2560. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  2561. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  2562. else
  2563. if Thing[2] == "Blood" then
  2564. Mesh = Thing[7]
  2565. Thing[1].CFrame = Thing[1].CFrame * CFrame.new(0, 0.5, 0)
  2566. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  2567. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  2568. else
  2569. if Thing[2] == "Elec" then
  2570. Mesh = Thing[10]
  2571. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9])
  2572. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  2573. else
  2574. if Thing[2] == "Disappear" then
  2575. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  2576. end
  2577. end
  2578. end
  2579. end
  2580. end
  2581. end
  2582. end
  2583. end
  2584. else
  2585. Part.Parent = nil
  2586. table.remove(Effects, e)
  2587. end
  2588. end
  2589. end
  2590. end
  2591. end
  2592. end
  2593. end
  2594. end
  2595. end
  2596. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement