Advertisement
wowzers

punch glovs

Jun 26th, 2017
206
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 116.87 KB | None | 0 0
  1. -- params : ...
  2.  
  3. wait(0.016666666666667)
  4. local Player = game.Players.localPlayer
  5. local Character = Player.Character
  6. script.Name = "GG"
  7. local Player = game.Players.LocalPlayer
  8. local Character = Player.Character
  9. local Effects = {}
  10. local Humanoid = Character.Humanoid
  11. local mouse = Player:GetMouse()
  12. local m = Instance.new("Model", Character)
  13. m.Name = "WeaponModel"
  14. local can = Instance.new("Model", Character)
  15. can.Name = "WeaponModel2"
  16. local g = Instance.new("Model", Character)
  17. local ge = Instance.new("Model", Character)
  18. local LeftArm = Character["Left Arm"]
  19. local RightArm = Character["Right Arm"]
  20. local LeftLeg = Character["Left Leg"]
  21. local RightLeg = Character["Right Leg"]
  22. local Head = Character.Head
  23. local Torso = Character.Torso
  24. local cam = game.Workspace.CurrentCamera
  25. local RootPart = Character.HumanoidRootPart
  26. local RootJoint = RootPart.RootJoint
  27. local equipped = false
  28. local attack = false
  29. local Anim = "Idle"
  30. local idle = 0
  31. local attacktype = 2
  32. local Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  33. local velocity = RootPart.Velocity.y
  34. local sine = 0
  35. local change = 1
  36. local grabbed = false
  37. local cn = CFrame.new
  38. local mr = math.rad
  39. local angles = CFrame.Angles
  40. local ud = UDim2.new
  41. local c3 = Color3.new
  42. local minigun = false
  43. local railcannon = false
  44. Humanoid.Animator.Parent = nil
  45. Character.Animate.Parent = nil
  46. local omega = false
  47. local newMotor = function(part0, part1, c0, c1)
  48.  
  49. local w = Instance.new("Motor", part0)
  50. w.Part0 = part0
  51. w.Part1 = part1
  52. w.C0 = c0
  53. w.C1 = c1
  54. return w
  55. end
  56.  
  57. clerp = function(a, b, t)
  58.  
  59. return a:lerp(b, t)
  60. end
  61.  
  62. RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  63. NeckCF = CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  64. local RW = newMotor(Torso, RightArm, CFrame.new(1.5, 0, 0), CFrame.new(0, 0, 0))
  65. local LW = newMotor(Torso, LeftArm, CFrame.new(-1.5, 0, 0), CFrame.new(0, 0, 0))
  66. local RH = newMotor(Torso, RightLeg, CFrame.new(0.5, -2, 0), CFrame.new(0, 0, 0))
  67. local LH = newMotor(Torso, LeftLeg, CFrame.new(-0.5, -2, 0), CFrame.new(0, 0, 0))
  68. RootJoint.C1 = CFrame.new(0, 0, 0)
  69. RootJoint.C0 = CFrame.new(0, 0, 0)
  70. Torso.Neck.C1 = CFrame.new(0, 0, 0)
  71. Torso.Neck.C0 = CFrame.new(0, 1.5, 0)
  72. local rarmc1 = RW.C1
  73. local larmc1 = LW.C1
  74. local rlegc1 = RH.C1
  75. local llegc1 = LH.C1
  76. local resetc1 = false
  77. PlayAnimationFromTable = function(table, speed, bool)
  78. RootJoint.C0 = clerp(RootJoint.C0, table[1], speed)
  79. Torso.Neck.C0 = clerp(Torso.Neck.C0, table[2], speed)
  80. RW.C0 = clerp(RW.C0, table[3], speed)
  81. LW.C0 = clerp(LW.C0, table[4], speed)
  82. RH.C0 = clerp(RH.C0, table[5], speed)
  83. LH.C0 = clerp(LH.C0, table[6], speed)
  84. if bool == true and resetc1 == false then
  85. resetc1 = true
  86. RootJoint.C1 = RootJoint.C1
  87. Torso.Neck.C1 = Torso.Neck.C1
  88. RW.C1 = rarmc1
  89. LW.C1 = larmc1
  90. RH.C1 = rlegc1
  91. LH.C1 = llegc1
  92. end
  93. end
  94.  
  95. ArtificialHB = Instance.new("BindableEvent", Player.PlayerGui)
  96. ArtificialHB.Name = "Heartbeat"
  97. Player.PlayerGui:WaitForChild("Heartbeat")
  98. frame = 0.063333333333333
  99. tf = 0
  100. allowframeloss = false
  101. tossremainder = false
  102. lastframe = tick()
  103. Player.PlayerGui.Heartbeat:Fire()
  104. local gg = false
  105. game:GetService("RunService").Heartbeat:connect(function(s, p)
  106.  
  107. if Player.PlayerGui:FindFirstChild("Heartbeat") == nil then
  108. gg = true
  109. end
  110. if gg == true then
  111. return
  112. end
  113. tf = tf + s
  114. if frame <= tf then
  115. if allowframeloss then
  116. Player.PlayerGui.Heartbeat:Fire()
  117. lastframe = tick()
  118. else
  119. for i = 1, math.floor(tf / frame) do
  120. Player.PlayerGui.Heartbeat:Fire()
  121. end
  122. lastframe = tick()
  123. end
  124. if tossremainder then
  125. tf = 0
  126. else
  127. tf = tf - frame * math.floor(tf / frame)
  128. end
  129. end
  130. end
  131. )
  132. swait = function(num)
  133.  
  134. if num == 0 or num == nil then
  135. ArtificialHB.Event:wait()
  136. else
  137. for i = 0, num do
  138. ArtificialHB.Event:wait()
  139. end
  140. end
  141. end
  142.  
  143. local RbxUtility = LoadLibrary("RbxUtility")
  144. local Create = RbxUtility.Create
  145. RemoveOutlines = function(part)
  146.  
  147. part.TopSurface = 10
  148. end
  149.  
  150. local co1 = 5
  151. local co2 = 15
  152. local co3 = 15
  153. local co4 = 15
  154. local cooldown1 = 0
  155. local cooldown2 = 0
  156. local cooldown3 = 0
  157. local cooldown4 = 0
  158. local co5 = 12
  159. local co6 = 18
  160. local co7 = 20
  161. local co8 = 30
  162. local cooldown5 = 0
  163. local cooldown6 = 0
  164. local cooldown7 = 0
  165. local cooldown8 = 0
  166. local skillcolorscheme = BrickColor.new("Bright red").Color
  167. local scrn = Instance.new("ScreenGui", Player.PlayerGui)
  168. makeframe = function(par, trans, pos, size, color)
  169.  
  170. local frame = Instance.new("Frame", par)
  171. frame.BackgroundTransparency = trans
  172. frame.BorderSizePixel = 0
  173. frame.Position = pos
  174. frame.Size = size
  175. frame.BackgroundColor3 = color
  176. return frame
  177. end
  178.  
  179. makelabel = function(par, text)
  180.  
  181. local label = Instance.new("TextLabel", par)
  182. label.BackgroundTransparency = 1
  183. label.Size = UDim2.new(1, 0, 1, 0)
  184. label.Position = UDim2.new(0, 0, 0, 0)
  185. label.TextColor3 = Color3.new(255, 255, 255)
  186. label.TextStrokeTransparency = 0
  187. label.FontSize = Enum.FontSize.Size32
  188. label.Font = Enum.Font.SourceSansLight
  189. label.BorderSizePixel = 0
  190. label.TextScaled = true
  191. label.Text = text
  192. end
  193.  
  194. framesk1 = makeframe(scrn, 0.5, UDim2.new(0.8, 0, 0.85, 0), UDim2.new(0.16, 0, 0.1, 0), skillcolorscheme)
  195. framesk2 = makeframe(scrn, 0.5, UDim2.new(0.8, 0, 0.74, 0), UDim2.new(0.16, 0, 0.1, 0), skillcolorscheme)
  196. framesk3 = makeframe(scrn, 0.5, UDim2.new(0.8, 0, 0.63, 0), UDim2.new(0.16, 0, 0.1, 0), skillcolorscheme)
  197. framesk4 = makeframe(scrn, 0.5, UDim2.new(0.8, 0, 0.52, 0), UDim2.new(0.16, 0, 0.1, 0), skillcolorscheme)
  198. bar1 = makeframe(framesk1, 0, UDim2.new(0, 0, 0, 0), UDim2.new(1, 0, 1, 0), skillcolorscheme)
  199. bar2 = makeframe(framesk2, 0, UDim2.new(0, 0, 0, 0), UDim2.new(1, 0, 1, 0), skillcolorscheme)
  200. bar3 = makeframe(framesk3, 0, UDim2.new(0, 0, 0, 0), UDim2.new(1, 0, 1, 0), skillcolorscheme)
  201. bar4 = makeframe(framesk4, 0, UDim2.new(0, 0, 0, 0), UDim2.new(1, 0, 1, 0), skillcolorscheme)
  202. text1 = Instance.new("TextLabel", framesk1)
  203. text1.BackgroundTransparency = 1
  204. text1.Size = UDim2.new(1, 0, 1, 0)
  205. text1.Position = UDim2.new(0, 0, 0, 0)
  206. text1.TextColor3 = Color3.new(255, 255, 255)
  207. text1.TextStrokeTransparency = 0
  208. text1.FontSize = Enum.FontSize.Size18
  209. text1.Font = Enum.Font.SourceSansLight
  210. text1.BorderSizePixel = 0
  211. text1.TextScaled = true
  212. text1.Text = "[Z]\n Charger"
  213. text2 = Instance.new("TextLabel", framesk2)
  214. text2.BackgroundTransparency = 1
  215. text2.Size = UDim2.new(1, 0, 1, 0)
  216. text2.Position = UDim2.new(0, 0, 0, 0)
  217. text2.TextColor3 = Color3.new(255, 255, 255)
  218. text2.TextStrokeTransparency = 0
  219. text2.FontSize = Enum.FontSize.Size18
  220. text2.Font = Enum.Font.SourceSansLight
  221. text2.BorderSizePixel = 0
  222. text2.TextScaled = true
  223. text2.Text = "[X]\n Equip DDJ Multishot"
  224. text3 = Instance.new("TextLabel", framesk3)
  225. text3.BackgroundTransparency = 1
  226. text3.Size = UDim2.new(1, 0, 1, 0)
  227. text3.Position = UDim2.new(0, 0, 0, 0)
  228. text3.TextColor3 = Color3.new(255, 255, 255)
  229. text3.TextStrokeTransparency = 0
  230. text3.FontSize = Enum.FontSize.Size18
  231. text3.Font = Enum.Font.SourceSansLight
  232. text3.BorderSizePixel = 0
  233. text3.TextScaled = false
  234. text3.Text = "[C]\n Equip QRR-3 Railcannon"
  235. text4 = Instance.new("TextLabel", framesk4)
  236. text4.BackgroundTransparency = 1
  237. text4.Size = UDim2.new(1, 0, 1, 0)
  238. text4.Position = UDim2.new(0, 0, 0, 0)
  239. text4.TextColor3 = Color3.new(255, 255, 255)
  240. text4.TextStrokeTransparency = 0
  241. text4.FontSize = Enum.FontSize.Size18
  242. text4.Font = Enum.Font.SourceSansLight
  243. text4.BorderSizePixel = 0
  244. text4.TextScaled = true
  245. text4.Text = "[V]\n Equip RRE3 Blackout"
  246. CreatePart = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  247.  
  248. local Part = Create("Part")({Parent = Parent, Reflectance = Reflectance, Transparency = Transparency, CanCollide = false, Locked = true, BrickColor = BrickColor.new(tostring(BColor)), Name = Name, Size = Size, Material = Material})
  249. RemoveOutlines(Part)
  250. return Part
  251. end
  252.  
  253. CreateMesh = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  254.  
  255. local Msh = Create(Mesh)({Parent = Part, Offset = OffSet, Scale = Scale})
  256. if Mesh == "SpecialMesh" then
  257. Msh.MeshType = MeshType
  258. Msh.MeshId = MeshId
  259. end
  260. return Msh
  261. end
  262.  
  263. CreateWeld = function(Parent, Part0, Part1, C0, C1)
  264.  
  265. local Weld = Create("Weld")({Parent = Parent, Part0 = Part0, Part1 = Part1, C0 = C0, C1 = C1})
  266. return Weld
  267. end
  268.  
  269. CFuncs = {
  270. Part = {Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  271.  
  272. local Part = Create("Part")({Parent = Parent, Reflectance = Reflectance, Transparency = Transparency, CanCollide = false, Locked = true, BrickColor = BrickColor.new(tostring(BColor)), Name = Name, Size = Size, Material = Material})
  273. RemoveOutlines(Part)
  274. return Part
  275. end
  276. }
  277. ,
  278. Mesh = {Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  279.  
  280. local Msh = Create(Mesh)({Parent = Part, Offset = OffSet, Scale = Scale})
  281. if Mesh == "SpecialMesh" then
  282. Msh.MeshType = MeshType
  283. Msh.MeshId = MeshId
  284. end
  285. return Msh
  286. end
  287. }
  288. ,
  289. Mesh = {Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  290.  
  291. local Msh = Create(Mesh)({Parent = Part, Offset = OffSet, Scale = Scale})
  292. if Mesh == "SpecialMesh" then
  293. Msh.MeshType = MeshType
  294. Msh.MeshId = MeshId
  295. end
  296. return Msh
  297. end
  298. }
  299. ,
  300. Weld = {Create = function(Parent, Part0, Part1, C0, C1)
  301.  
  302. local Weld = Create("Weld")({Parent = Parent, Part0 = Part0, Part1 = Part1, C0 = C0, C1 = C1})
  303. return Weld
  304. end
  305. }
  306. ,
  307. Sound = {Create = function(id, par, vol, pit)
  308.  
  309. coroutine.resume(coroutine.create(function()
  310.  
  311. local S = Create("Sound")({Volume = vol, Pitch = pit or 1, SoundId = id, Parent = par or workspace})
  312. wait()
  313. S:play()
  314. game:GetService("Debris"):AddItem(S, 6)
  315. end
  316. ))
  317. end
  318. }
  319. ,
  320. ParticleEmitter = {Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  321.  
  322. local fp = Create("ParticleEmitter")({Parent = Parent, Color = ColorSequence.new(Color1, Color2), LightEmission = LightEmission, Size = Size, Texture = Texture, Transparency = Transparency, ZOffset = ZOffset, Acceleration = Accel, Drag = Drag, LockedToPart = LockedToPart, VelocityInheritance = VelocityInheritance, EmissionDirection = EmissionDirection, Enabled = Enabled, Lifetime = LifeTime, Rate = Rate, Rotation = Rotation, RotSpeed = RotSpeed, Speed = Speed, VelocitySpread = VelocitySpread})
  323. return fp
  324. end
  325. }
  326. }
  327. Handle = CreatePart(m, Enum.Material.Ice, 0, 0, "Bright blue", "Handle", Vector3.new(1.01000023, 1.36000001, 1.02999997))
  328. 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-06, 0.33297348, 0.00253295898, 0, 0, -1, 0, 0.999999881, 0, 1, 0, 0))
  329. glove = CreatePart(m, Enum.Material.Ice, 0, 0, "Bright blue", "Handle", Vector3.new(1.01000023, 1.36000001, 1.02999997))
  330. gloveWeld = CreateWeld(m, Character["Right Arm"], glove, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(5.7220459e-06, 0.33297348, 0.00253295898, 0, 0, -1, 0, 0.999999881, 0, 1, 0, 0))
  331. Misc = CreatePart(m, Enum.Material.Plastic, 0, 1, "Black", "Misc", Vector3.new(1.08000004, 2.74999976, 1.13999987))
  332. 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))
  333. CreateMesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  334. Thruster1 = CreatePart(m, Enum.Material.Plastic, 0, 1, "Really black", "Thruster1", Vector3.new(0.200000003, 0.529999852, 0.200000003))
  335. 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))
  336. CreateMesh("CylinderMesh", Thruster1, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  337. Thruster2 = CreatePart(m, Enum.Material.Plastic, 0, 1, "Smoky grey", "Thruster2", Vector3.new(0.200000003, 0.709999859, 0.200000003))
  338. 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))
  339. CreateMesh("CylinderMesh", Thruster2, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  340. Thruster3 = CreatePart(m, Enum.Material.Plastic, 0, 1, "Really black", "Thruster3", Vector3.new(0.200000003, 0.529999852, 0.200000003))
  341. 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))
  342. CreateMesh("CylinderMesh", Thruster3, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  343. AMotor = CreatePart(g, Enum.Material.Neon, 0, 1, "Bright red", "AMotor", Vector3.new(1.13, 1.13, 1.13999999))
  344. 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))
  345. AFMotor = CreatePart(g, Enum.Material.Neon, 0, 1, "Bright red", "Part", Vector3.new(1.13, 1.13, 1.13999999))
  346. 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))
  347. CreateMesh("SpecialMesh", AFMotor, Enum.MeshType.Sphere, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  348. Barrel = CreatePart(g, Enum.Material.Plastic, 0, 1, "Black", "Barrel", Vector3.new(0.200000003, 0.200000003, 0.200000003))
  349. 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))
  350. AMotor2 = CreatePart(ge, Enum.Material.Neon, 0, 1, "Bright red", "AMotor2", Vector3.new(1.13, 1.13, 1.13999999))
  351. 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))
  352. AFMotor2 = CreatePart(ge, Enum.Material.Neon, 0, 1, "Bright red", "AFMotor2", Vector3.new(1.13, 1.13, 1.13999999))
  353. 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))
  354. CreateMesh("SpecialMesh", AFMotor2, Enum.MeshType.Sphere, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  355. H3 = CreatePart(ge, Enum.Material.Plastic, 0, 1, "Maroon", "H3", Vector3.new(0.529999971, 0.200000003, 0.200000003))
  356. 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))
  357. 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))
  358. H3 = CreatePart(ge, Enum.Material.Plastic, 0, 1, "Maroon", "H3", Vector3.new(0.529999971, 0.200000003, 0.200000003))
  359. 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))
  360. 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))
  361. Barrel2 = CreatePart(ge, Enum.Material.Plastic, 0, 1, "Really black", "Barrel2", Vector3.new(0.329999983, 0.200000003, 0.200000003))
  362. 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))
  363. CreateMesh("SpecialMesh", Barrel2, Enum.MeshType.Cylinder, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  364. AMotor3 = CreatePart(can, Enum.Material.Neon, 0, 1, "Bright red", "AMotor3", Vector3.new(2.22000003, 2.06999993, 2.21999979))
  365. AMotor3Weld = CreateWeld(can, Character.HumanoidRootPart, AMotor3, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-4.57763672e-05, 5.96501923, -2.98002052, -1, 0, 0, 0, -1, 0, 0, 0, 1))
  366. CreateMesh("SpecialMesh", AMotor3, Enum.MeshType.Sphere, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  367. AFMotor3 = CreatePart(can, Enum.Material.Neon, 0, 1, "Bright red", "AFMotor3", Vector3.new(2.22000003, 2.06999993, 2.21999979))
  368. 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))
  369. CreateMesh("SpecialMesh", AFMotor3, Enum.MeshType.Sphere, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  370. Barrel3 = CreatePart(can, Enum.Material.Plastic, 0, 1, "Black", "Barrel3", Vector3.new(0.200000003, 0.200000003, 0.200000003))
  371. 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))
  372. can.Parent = nil
  373. rayCast = function(Position, Direction, Range, Ignore)
  374.  
  375. return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  376. end
  377.  
  378. local GetNearest = function(obj, distance)
  379.  
  380. local last, lastx = distance + 1, nil
  381. for i,v in pairs(workspace:GetChildren()) do
  382. if v:IsA("Model") and v ~= Character and v:findFirstChild("Humanoid") and v:findFirstChild("Torso") and v:findFirstChild("Humanoid").Health > 0 then
  383. local t = v.Torso
  384. local dist = t.Position - obj.Position.magnitude
  385. if dist <= distance and dist < last then
  386. last = dist
  387. lastx = v
  388. end
  389. end
  390. end
  391. return lastx
  392. end
  393.  
  394. Damagefunc = function(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  395.  
  396. if hit.Parent == nil then
  397. return
  398. end
  399. local h = hit.Parent:FindFirstChild("Humanoid")
  400. for _,v in pairs(hit.Parent:children()) do
  401. if v:IsA("Humanoid") then
  402. h = v
  403. end
  404. end
  405. if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
  406. if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then
  407. return
  408. end
  409. local c = Create("ObjectValue")({Name = "creator", Value = game:service("Players").LocalPlayer, Parent = h})
  410. game:GetService("Debris"):AddItem(c, 0.5)
  411. if HitSound ~= nil and HitPitch ~= nil then
  412. for i = 0, 4, 1 do
  413. CFuncs.Sound.Create(HitSound, hit, 10, HitPitch)
  414. swait(.1)
  415. end
  416. end
  417. local Damage = math.random((minim/5), (maxim/5))
  418. local blocked = false
  419. local block = hit.Parent:findFirstChild("Block")
  420. if block ~= nil and block.className == "IntValue" and block.Value > 0 then
  421. blocked = true
  422. block.Value = block.Value - 1
  423. print(block.Value)
  424. end
  425. if blocked == false then
  426. h.Health = h.Health - Damage
  427. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  428. else
  429. h.Health = h.Health - Damage / 2
  430. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  431. end
  432. if Type == "Up" then
  433. local hum = hit.Parent.Humanoid
  434. hum.PlatformStand = true
  435. coroutine.resume(coroutine.create(function(HHumanoid)
  436.  
  437. swait(50)
  438. HHumanoid.Health = HHumanoid.Health - 5
  439. CFuncs.Sound.Create("rbxassetid://165969964", hit.Parent.Torso, 10, 1.5)
  440. for i = 0, 10 do
  441. Effects.Block.Create(BrickColor.new("Bright orange"), hit.Parent.Torso.CFrame, 1, 1, 1, 30,30,30, 0.07)
  442. Effects.Block.Create(BrickColor.new("Really red"), hit.Parent.Torso.CFrame, 1, 1, 1, 30,30,30, 0.07)
  443. HHumanoid.PlatformStand = false
  444. end
  445. end
  446. ), hum)
  447. local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit
  448. local bodvol = Create("BodyVelocity")({velocity = angle * knockback, P = 5000, maxForce = Vector3.new(8000, 8000, 8000), Parent = hit})
  449. local rl = Create("BodyAngularVelocity")({P = 3000, maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000, angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)), Parent = hit})
  450. game:GetService("Debris"):AddItem(bodvol, 0.5)
  451. game:GetService("Debris"):AddItem(rl, 0.5)
  452. elseif Type == "Knockdown" then
  453. local vp = Create("BodyVelocity")({P = 500, maxForce = Vector3.new(math.huge, 0, math.huge), velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05})
  454. if knockback > 0 then
  455. vp.Parent = hit.Parent.Torso
  456. end
  457. game:GetService("Debris"):AddItem(vp, 0.5)
  458. elseif Type == "Up" then
  459. local bodyVelocity = Create("BodyVelocity")({velocity = Vector3.new(0, 20, 0), P = 5000, maxForce = Vector3.new(8000, 8000, 8000), Parent = hit})
  460. game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
  461.  
  462. local bodyVelocity = Create("BodyVelocity")({velocity = Vector3.new(0, 20, 0), P = 5000, maxForce = Vector3.new(8000, 8000, 8000), Parent = hit})
  463. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  464. elseif Type == "Snare" then
  465. local bp = Create("BodyPosition")({P = 2000, D = 100, maxForce = Vector3.new(math.huge, math.huge, math.huge), position = hit.Parent.Torso.Position, Parent = hit.Parent.Torso})
  466. game:GetService("Debris"):AddItem(bp, 1)
  467. elseif Type == "Freeze" then
  468. local BodPos = Create("BodyPosition")({P = 50000, D = 1000, maxForce = Vector3.new(math.huge, math.huge, math.huge), position = hit.Parent.Torso.Position, Parent = hit.Parent.Torso})
  469. local BodGy = Create("BodyGyro")({maxTorque = Vector3.new(400000, 400000, 400000) * math.huge, P = 20000, Parent = hit.Parent.Torso, cframe = hit.Parent.Torso.CFrame})
  470. hit.Parent.Torso.Anchored = true
  471. coroutine.resume(coroutine.create(function(Part)
  472. CFuncs.Sound.Create("rbxassetid://615300105", hit.Parent.Torso, 10, 1)
  473. CFuncs.Sound.Create("rbxassetid://165969964", hit.Parent.Torso, 1, 1.5)
  474. swait(10)
  475. for i = 0, 10 do
  476. MagniDamage(hit.Parent.Torso, 15, 2, 5, 5, "Knockdown")
  477. Effects.Block.Create(BrickColor.new("Bright orange"), hit.Parent.Torso.CFrame, 1, 1, 1, 30,30,30, 0.07)
  478. Effects.Block.Create(BrickColor.new("Really red"), hit.Parent.Torso.CFrame, 1, 1, 1, 30,30,30, 0.07)
  479. swait(5)
  480. end
  481.  
  482. swait(1.5)
  483. Part.Anchored = false
  484. end
  485. ), hit.Parent.Torso)
  486. game:GetService("Debris"):AddItem(BodPos, 3)
  487. game:GetService("Debris"):AddItem(BodGy, 3)
  488. end
  489. local debounce = Create("BoolValue")({Name = "DebounceHit", Parent = hit.Parent, Value = true})
  490. game:GetService("Debris"):AddItem(debounce, Delay)
  491. c = Instance.new("ObjectValue")
  492. c.Name = "creator"
  493. c.Value = Player
  494. c.Parent = h
  495. game:GetService("Debris"):AddItem(c, 0.5)
  496. end
  497. end
  498.  
  499. ShowDamage = function(Pos, Text, Time, Color)
  500.  
  501. local Rate = 0.033333333333333
  502. if not Pos then
  503. local Pos = Vector3.new(0, 0, 0)
  504. end
  505. local Text = Text or ""
  506. local Time = Time or 2
  507. if not Color then
  508. local Color = Color3.new(1, 0, 1)
  509. end
  510. local EffectPart = CreatePart(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
  511. EffectPart.Anchored = true
  512. local BillboardGui = Create("BillboardGui")({Size = UDim2.new(3, 0, 3, 0), Adornee = EffectPart, Parent = EffectPart})
  513. local TextLabel = Create("TextLabel")({BackgroundTransparency = 1, Size = UDim2.new(1, 0, 1, 0), Text = Text, TextColor3 = Color, TextScaled = true, Font = Enum.Font.ArialBold, Parent = BillboardGui})
  514. game.Debris:AddItem(EffectPart, Time + 0.1)
  515. EffectPart.Parent = game:GetService("Workspace")
  516. delay(0, function()
  517.  
  518. local Frames = Time / Rate
  519. for Frame = 1, Frames do
  520. wait(Rate)
  521. local Percent = Frame / Frames
  522. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  523. TextLabel.TextTransparency = Percent
  524. end
  525. if EffectPart and EffectPart.Parent then
  526. EffectPart:Destroy()
  527. end
  528. end
  529. )
  530. end
  531.  
  532. MagniDamage = function(Part, magni, mindam, maxdam, knock, Type)
  533.  
  534. for _,c in pairs(workspace:children()) do
  535. local hum = c:findFirstChild("Humanoid")
  536. if hum ~= nil then
  537. local head = c:findFirstChild("Torso")
  538. if head ~= nil then
  539. local targ = head.Position - Part.Position
  540. local mag = targ.magnitude
  541. if mag <= magni and c.Name ~= Player.Name then
  542. Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "http://www.roblox.com/asset/?id=231917784", 1)
  543. end
  544. end
  545. end
  546. end
  547. end
  548.  
  549. EffectModel = Instance.new("Model", Character)
  550. EffectModel.Name = "Effects"
  551. Effects = {
  552. Block = {Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
  553.  
  554. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  555. prt.Anchored = true
  556. prt.CFrame = cframe
  557. local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  558. game:GetService("Debris"):AddItem(prt, 10)
  559. if Type == 1 or Type == nil then
  560. table.insert(Effects, {prt, "Block1", delay, x3, y3, z3, msh})
  561. else
  562. if Type == 2 then
  563. table.insert(Effects, {prt, "Block2", delay, x3, y3, z3, msh})
  564. end
  565. end
  566. end
  567. }
  568. ,
  569. Sphere = {Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  570.  
  571. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  572. prt.Anchored = true
  573. prt.CFrame = cframe
  574. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  575. game:GetService("Debris"):AddItem(prt, 10)
  576. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  577. end
  578. }
  579. ,
  580. Ring = {Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  581.  
  582. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  583. prt.Anchored = true
  584. prt.CFrame = cframe
  585. local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  586. game:GetService("Debris"):AddItem(prt, 10)
  587. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  588. end
  589. }
  590. ,
  591. Cylinder = {Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  592.  
  593. local prt = CFuncs.Part.Create(workspace, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.2, 0.2, 0.2))
  594. prt.Anchored = true
  595. prt.CFrame = cframe
  596. local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  597. game:GetService("Debris"):AddItem(prt, 2)
  598. Effects[#Effects + 1] = {prt, "Cylinder", delay, x3, y3, z3, msh}
  599. end
  600. }
  601. ,
  602. Wave = {Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  603.  
  604. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  605. prt.Anchored = true
  606. prt.CFrame = cframe
  607. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  608. game:GetService("Debris"):AddItem(prt, 10)
  609. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  610. end
  611. }
  612. ,
  613. Break = {Create = function(brickcolor, cframe, x1, y1, z1)
  614.  
  615. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  616. prt.Anchored = true
  617. prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  618. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  619. local num = math.random(10, 50) / 1000
  620. game:GetService("Debris"):AddItem(prt, 10)
  621. table.insert(Effects, {prt, "Shatter", num, prt.CFrame, math.random() - math.random(), 0, math.random(50, 100) / 100})
  622. end
  623. }
  624. }
  625. Shoot = function(orgpos)
  626.  
  627. rand = 1.5
  628. 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
  629. local MouseLook = CFrame.new((orgpos + mouse.Hit.p) / 2, mouse.Hit.p + spread)
  630. Effects.Sphere.Create(BrickColor.new("Really red"), CFrame.new(orgpos), 5, 5, 5, 1, 1, 1, 0.1)
  631. table.insert(Effects, {MouseLook.lookVector, "Shoot", 50, orgpos, 5, 7, 0, 1, 2})
  632. end
  633.  
  634. Shoot2 = function(orgpos)
  635.  
  636. local MouseLook = CFrame.new((orgpos + mouse.Hit.p) / 2, mouse.Hit.p)
  637. Effects.Sphere.Create(BrickColor.new("Really red"), CFrame.new(orgpos), 5, 5, 5, 3, 3, 3, 0.1)
  638. table.insert(Effects, {MouseLook.lookVector, "Shoot2", 50, orgpos, 5, 7, 0, 1, 1})
  639. end
  640.  
  641. attackone = function()
  642.  
  643. attack = true
  644. local con = RightArm.Touched:connect(function(hit)
  645.  
  646. Damagefunc(RightArm, hit, 10, 18, math.random(1, 5), "Freeze", RootPart, 0.2, "rbxassetid://541909913", 1)
  647. end
  648. )
  649. for i = 0, 1, 0.1 do
  650. swait()
  651. PlayAnimationFromTable({CFrame.new(-8.19563866e-08, -0.926991284, 0.26000905, 0.642788053, -2.1072232e-07, -0.76604408, 0.383023053, 0.866024733, 0.321394652, 0.663413048, -0.500001192, 0.556670368), CFrame.new(2.32182992e-06, 1.50000072, -1.66944517e-06, 0.882947683, 2.74181366e-06, 0.469471604, -1.92224979e-06, 1.00000012, -2.23517418e-06, -0.469471574, 1.13248825e-06, 0.882947683), 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), 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), 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), CFrame.new(-0.48063159, -1.99999714, -0.137818694, 0.970295548, -0.128200591, 0.205161899, 3.27825546e-07, 0.848046899, 0.529921412, -0.241923124, -0.514180243, 0.822855949)}, 0.3, false)
  652. end
  653. CFuncs.Sound.Create("rbxassetid://541909913", RootPart, 1, 1.5)
  654. for i = 0, 1, 0.3 do
  655. swait()
  656. PlayAnimationFromTable({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), 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), 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), 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), 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), 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)}, 0.3, false)
  657. end
  658. for i = 0, 1, 0.13 do
  659. swait()
  660. PlayAnimationFromTable({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), 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), 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), 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), 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), 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)}, 0.3, false)
  661. end
  662. con:disconnect()
  663. attack = false
  664. end
  665.  
  666. attacktwo = function()
  667.  
  668. attack = true
  669. local con = LeftArm.Touched:connect(function(hit)
  670.  
  671. Damagefunc(LeftArm, hit, 10, 18, math.random(1, 5), "Freeze", RootPart, 0.2, "rbxassetid://541909913", 1)
  672. end
  673. )
  674.  
  675. attack = true
  676.  
  677. for i = 0, 1, 0.1 do
  678. swait()
  679. PlayAnimationFromTable({CFrame.new(-3.57627869e-07, -0.311072171, 0.259536475, 0.719340086, 2.46536985e-07, 0.694658101, -0.144428015, 0.978147566, 0.149559394, -0.679478049, -0.207912162, 0.703620791), 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), 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), 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), CFrame.new(0.632559597, -1.715204, -0.597933352, 0.984807849, -1.34110451e-07, -0.173648149, 1.63912773e-07, 1.00000012, 8.94069672e-08, 0.173648149, -1.34110451e-07, 0.984807849), CFrame.new(-0.73102808, -2.07069063, 0.239238739, 0.984807849, 0.0650493801, -0.161003947, 1.63912773e-07, 0.927184522, 0.374605268, 0.173648149, -0.368914247, 0.913098454)}, 0.3, false)
  680. end
  681. CFuncs.Sound.Create("rbxassetid://541909913", RootPart, 1, 1.8)
  682. for i = 0, 1, 0.3 do
  683. swait()
  684. PlayAnimationFromTable({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), 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), 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), 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), 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), 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)}, 0.3, false)
  685. end
  686. for i = 0, 1, 0.13 do
  687. swait()
  688. PlayAnimationFromTable({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), 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), 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), 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), 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), 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)}, 0.3, false)
  689. end
  690. con:disconnect()
  691.  
  692. attack = false
  693. end
  694.  
  695. attackthree = function()
  696.  
  697. attack = true
  698. local con = RightArm.Touched:connect(function(hit)
  699.  
  700. Damagefunc(RightArm, hit, 10, 18, math.random(1, 5), "Freeze", RootPart, 0.2, "rbxassetid://541909913", 1)
  701. end
  702. )
  703.  
  704. attack = true
  705.  
  706. for i = 0, 1, 0.1 do
  707. swait()
  708. PlayAnimationFromTable({CFrame.new(0.00929157436, 1.08033419e-07, 0.302203268, 0.848044395, -0.110175796, -0.518339515, 0, 0.978147864, -0.207910523, 0.529919326, 0.176317334, 0.829512894), 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), 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), 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), 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), 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)}, 0.3, false)
  709. end
  710. CFuncs.Sound.Create("rbxassetid://541909913", RootPart, 1, 2)
  711. for i = 0, 1, 0.3 do
  712. swait()
  713. PlayAnimationFromTable({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), 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), 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), 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), 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), 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)}, 0.3, false)
  714. end
  715. for i = 0, 1, 0.15 do
  716. swait()
  717. PlayAnimationFromTable({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), 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), 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), 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), 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), 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)}, 0.3, false)
  718. end
  719. con:disconnect()
  720.  
  721. attack = false
  722. end
  723.  
  724. attackfive = function()
  725. attack = true
  726. local con = RightArm.Touched:connect(function(hit)
  727.  
  728. Damagefunc(RightArm, hit, 10, 18, math.random(1, 5), "Knockdown", RootPart, 0.2, "rbxassetid://541909913", 1)
  729. end
  730. )
  731. RootJoint.C0 = clerp(RootJoint.C0, CFrame.new(0, 0 + 0.1 * math.cos((sine) / 15), 0) * angles(-30,1,0), 0.3)
  732. Torso.Neck.C0 = clerp(Torso.Neck.C0, CFrame.new(0, 1.5, 0) * angles(math.rad(0), math.rad(-10), math.rad(0)), 0.3)
  733. RH.C0 = clerp(RH.C0, CFrame.new(0.5, -2 - 0.1 * math.cos((sine) / 15), 0) * angles(math.rad(0), math.rad(-10), math.rad(0)), 0.3)
  734. LH.C0 = clerp(LH.C0, CFrame.new(-0.5, -2 - 0.1 * math.cos((sine) / 15), 0) * angles(math.rad(0), math.rad(-10), math.rad(0)), 0.3)
  735. AFMotor2Weld.C0 = clerp(AFMotor2Weld.C0, CFrame.new(0, 0 + 0.1 * math.cos((sine) / 18), 0) * angles(math.rad(20), math.rad(20), math.rad(0)), 0.3)
  736. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0 + 0.1 * math.cos((sine) / 10), 0) * angles(math.rad(0), math.rad(0), math.rad(10)), 0.3)
  737. AFMotorWeld.C0 = clerp(AFMotorWeld.C0, CFrame.new(0, 0 + 0.1 * math.cos((sine) / 15), 0) * angles(math.rad(20), math.rad(-20), math.rad(0)), 0.3)
  738. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0 + 0.1 * math.cos((sine) / 10), 0) * angles(math.rad(0), math.rad(0), math.rad(-10)), 0.3)
  739. swait(30)
  740. attack = false
  741. end
  742.  
  743. boost = function()
  744.  
  745. attack = true
  746. local con = RightArm.Touched:connect(function(hit)
  747.  
  748. Damagefunc(RightArm, hit, 10, 18, math.random(1, 5), "Knockdown", RootPart, 0.2, "rbxassetid://231917806", 2)
  749. end
  750. )
  751. for i = 0, 1, 0.075 do
  752. swait()
  753. PlayAnimationFromTable({CFrame.new(0.00391239673, -1.86264515e-07, 0.132759839, 0.927184582, -0.103254825, -0.360093355, 0, 0.961261988, -0.275636673, 0.374604821, 0.255566061, 0.89126724), 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), 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), 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), 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), 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)}, 0.2, false)
  754. end
  755. CFuncs.Sound.Create("http://www.roblox.com/asset/?id=240517987", RootPart, 1, 2)
  756. local parti = Instance.new("ParticleEmitter", Thruster1)
  757. parti.LightEmission = 1
  758. parti.Texture = "http://www.roblox.com/asset/?id=359293256"
  759. parti.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 2.06), NumberSequenceKeypoint.new(1, 0)})
  760. parti.ZOffset = 0
  761. parti.LockedToPart = true
  762. parti.EmissionDirection = "Top"
  763. parti.Lifetime = NumberRange.new(0, 1.5)
  764. parti.Rate = 1000
  765. parti.Speed = NumberRange.new(2, 4)
  766. local parti2 = Instance.new("ParticleEmitter", Thruster2)
  767. parti2.LightEmission = 1
  768. parti2.Texture = "http://www.roblox.com/asset/?id=359293256"
  769. parti2.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 1.06), NumberSequenceKeypoint.new(1, 0)})
  770. parti2.ZOffset = 0
  771. parti2.LockedToPart = true
  772. parti2.EmissionDirection = "Bottom"
  773. parti2.Lifetime = NumberRange.new(0, 1.5)
  774. parti2.Rate = 1000
  775. parti2.Speed = NumberRange.new(2, 4)
  776. local parti3 = Instance.new("ParticleEmitter", Thruster3)
  777. parti3.LightEmission = 1
  778. parti3.Texture = "http://www.roblox.com/asset/?id=359293256"
  779. parti3.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 1.06), NumberSequenceKeypoint.new(1, 0)})
  780. parti3.ZOffset = 0
  781. parti3.LockedToPart = true
  782. parti3.EmissionDirection = "Bottom"
  783. parti3.Lifetime = NumberRange.new(0, 1.5)
  784. parti3.Rate = 1000
  785. parti3.Speed = NumberRange.new(2, 4)
  786. for i = 0, 1, 0.3 do
  787. swait()
  788. PlayAnimationFromTable({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), CFrame.new(0.104893088, 1.51344919, -0.163899526, 0.913545012, -1.04308128e-07, -0.406737924, 0.112112775, 0.961261451, 0.251808256, 0.390981376, -0.27563864, 0.87815547), 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), 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), 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), CFrame.new(-0.628583908, -1.958745, 0.424968272, 0.97029686, -2.5331974e-06, 0.24191761, -0.0666790009, 0.961261988, 0.267450064, -0.232546806, -0.275636792, 0.932709277)}, 0.3, false)
  789. end
  790. for i = 0, 5 do
  791. for i = 0, 1, 0.1 do
  792. swait()
  793. Torso.Velocity = RootPart.CFrame.lookVector * 75
  794. PlayAnimationFromTable({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), 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), 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), 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), 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), CFrame.new(-0.847571194, -2.11993861, -0.201637805, 0.97029686, -2.5331974e-06, 0.24191761, 0.0336715579, 0.990267694, -0.135041565, -0.239562824, 0.13917619, 0.960853755)}, 0.3, false)
  795. end
  796. end
  797. for i = 0, 1, 0.075 do
  798. swait()
  799. Torso.Velocity = RootPart.CFrame.lookVector * 10
  800. PlayAnimationFromTable({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), 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), 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), 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), 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), 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)}, 0.3, false)
  801. end
  802. con:disconnect()
  803. attack = false
  804. parti2.Parent = nil
  805. parti3.Parent = nil
  806. parti.Parent = nil
  807. end
  808.  
  809. minigunmode = function()
  810.  
  811. attack = true
  812. minigun = true
  813. for i = 0, 1, 0.13 do
  814. swait()
  815. PlayAnimationFromTable({CFrame.new(0, 0, 0, 0.920504808, 0, -0.390731037, 0, 1, 0, 0.390731037, 0, 0.920504808), CFrame.new(-3.35276127e-08, 1.50000012, -7.4505806e-08, 0.920504749, -0.0408425145, 0.388590544, 0, 0.994521916, 0.104528457, -0.390731007, -0.096218951, 0.915462136), 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), CFrame.new(-1.49244416, 3.27825546e-07, 0.264654547, 0.805377722, 0.290638238, 0.516619623, -0.0969422758, 0.924393654, -0.368915528, -0.584780812, 0.247034103, 0.772661269), CFrame.new(0.419332564, -2, -0.272318661, 0.920504749, 0, 0.390731007, 0, 1, 0, -0.390731007, 0, 0.920504749), CFrame.new(-0.419336081, -2, 0.272320151, 0.920504749, 0, 0.390731007, 0, 1, 0, -0.390731007, 0, 0.920504749)}, 0.3, false)
  816. AFMotor2Weld.C0 = clerp(AFMotor2Weld.C0, CFrame.new(0, 1, -1.5) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  817. end
  818. for i = 0, 1, 0.1 do
  819. swait()
  820. PlayAnimationFromTable({CFrame.new(0, 0, 0, 0.920504808, 0, -0.390731037, 0, 1, 0, 0.390731037, 0, 0.920504808), CFrame.new(-3.35276127e-08, 1.50000012, -7.4505806e-08, 0.920504749, -0.0408425145, 0.388590544, 0, 0.994521916, 0.104528457, -0.390731007, -0.096218951, 0.915462136), 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), CFrame.new(-1.49244416, 3.27825546e-07, 0.264654547, 0.805377722, 0.290638238, 0.516619623, -0.0969422758, 0.924393654, -0.368915528, -0.584780812, 0.247034103, 0.772661269), CFrame.new(0.419332564, -2, -0.272318661, 0.920504749, 0, 0.390731007, 0, 1, 0, -0.390731007, 0, 0.920504749), CFrame.new(-0.419336081, -2, 0.272320151, 0.920504749, 0, 0.390731007, 0, 1, 0, -0.390731007, 0, 0.920504749)}, 0.3, false)
  821. AFMotor2Weld.C0 = clerp(AFMotor2Weld.C0, CFrame.new(0, 1, -1.5) * angles(math.rad(0), math.rad(90), math.rad(0)), 0.3)
  822. end
  823. for i = 0, 1, 0.15 do
  824. swait()
  825. PlayAnimationFromTable({CFrame.new(0, 0, 0, 0.642787576, 0, -0.766044378, 0, 1, 0, 0.766044378, 0, 0.642787576), CFrame.new(-7.4505806e-08, 1.50000012, -5.21540642e-08, 0.642787516, -0.080073446, 0.761847854, 0, 0.994521916, 0.104528457, -0.766044319, -0.0671895966, 0.639266312), 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), CFrame.new(-1.61730015, 7.15255737e-07, 0.310204506, 0.45211184, 0.371111691, 0.811092377, -0.0969422832, 0.924393654, -0.368915498, -0.886677384, 0.0881619602, 0.453905761), CFrame.new(0.786227643, -2, 0.0169382486, 0.999847531, 0, -0.017452687, 0, 1, 0, 0.017452687, 0, 0.999847531), CFrame.new(-0.250000417, -2, 0.433013648, 0.642787516, 0, 0.766044319, 0, 1, 0, -0.766044319, 0, 0.642787516)}, 0.3, false)
  826. AFMotor2Weld.C0 = clerp(AFMotor2Weld.C0, CFrame.new(5, 1, -1) * angles(math.rad(0), math.rad(90), math.rad(0)), 0.3)
  827. end
  828. CFuncs.Sound.Create("http://www.roblox.com/asset/?id=191395766", RootPart, 1, 1.5)
  829. AFMotor2.Transparency = 1
  830. AMotor2Weld.Part0 = RightArm
  831. AMotor2Weld.C1 = CFrame.new(-0.035036087, -0.129943848, -1.52000952, 0, 0, 1, 1, 0, 0, 0, 0.999999881, 0)
  832. for i = 0, 1, 0.1 do
  833. swait()
  834. PlayAnimationFromTable({CFrame.new(0, 0, 0, 0.788010716, 0, -0.615661383, 0, 1, 0, 0.615661383, 0, 0.788010716), CFrame.new(-5.06639481e-07, 1.5, -6.2584877e-07, 0.788010657, -0.12800321, 0.602207661, 0, 0.978147626, 0.207911685, -0.615661323, -0.163836643, 0.770790756), 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), CFrame.new(-1.5233202, 2.08616257e-07, 0.124773204, 0.626582742, 0.344672084, 0.69899565, -0.0969422832, 0.924393654, -0.368915498, -0.773301959, 0.163393885, 0.61262244), CFrame.new(0.765525103, -2, 0.180034071, 0.974369884, 0, -0.224951357, 0, 1, 0, 0.224951357, 0, 0.974369884), CFrame.new(-0.440464586, -2, 0.0736047029, 0.788010716, 0, 0.615661383, 0, 1, 0, -0.615661383, 0, 0.788010716)}, 0.3, false)
  835. AFMotor2Weld.C0 = clerp(AFMotor2Weld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  836. end
  837. attack = false
  838. end
  839.  
  840. unminigun = function()
  841.  
  842. attack = true
  843. minigun = true
  844. for i = 0, 1, 0.13 do
  845. swait()
  846. PlayAnimationFromTable({CFrame.new(0, 0, 0, 0.920504808, 0, -0.390731037, 0, 1, 0, 0.390731037, 0, 0.920504808), CFrame.new(-3.35276127e-08, 1.50000012, -7.4505806e-08, 0.920504749, -0.0408425145, 0.388590544, 0, 0.994521916, 0.104528457, -0.390731007, -0.096218951, 0.915462136), 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), CFrame.new(-1.49244416, 3.27825546e-07, 0.264654547, 0.805377722, 0.290638238, 0.516619623, -0.0969422758, 0.924393654, -0.368915528, -0.584780812, 0.247034103, 0.772661269), CFrame.new(0.419332564, -2, -0.272318661, 0.920504749, 0, 0.390731007, 0, 1, 0, -0.390731007, 0, 0.920504749), CFrame.new(-0.419336081, -2, 0.272320151, 0.920504749, 0, 0.390731007, 0, 1, 0, -0.390731007, 0, 0.920504749)}, 0.3, false)
  847. end
  848. for i = 0, 1, 0.1 do
  849. swait()
  850. PlayAnimationFromTable({CFrame.new(0, 0, 0, 0.920504808, 0, -0.390731037, 0, 1, 0, 0.390731037, 0, 0.920504808), CFrame.new(-3.35276127e-08, 1.50000012, -7.4505806e-08, 0.920504749, -0.0408425145, 0.388590544, 0, 0.994521916, 0.104528457, -0.390731007, -0.096218951, 0.915462136), 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), CFrame.new(-1.49244416, 3.27825546e-07, 0.264654547, 0.805377722, 0.290638238, 0.516619623, -0.0969422758, 0.924393654, -0.368915528, -0.584780812, 0.247034103, 0.772661269), CFrame.new(0.419332564, -2, -0.272318661, 0.920504749, 0, 0.390731007, 0, 1, 0, -0.390731007, 0, 0.920504749), CFrame.new(-0.419336081, -2, 0.272320151, 0.920504749, 0, 0.390731007, 0, 1, 0, -0.390731007, 0, 0.920504749)}, 0.3, false)
  851. end
  852. for i = 0, 1, 0.15 do
  853. swait()
  854. PlayAnimationFromTable({CFrame.new(0, 0, 0, 0.642787576, 0, -0.766044378, 0, 1, 0, 0.766044378, 0, 0.642787576), CFrame.new(-7.4505806e-08, 1.50000012, -5.21540642e-08, 0.642787516, -0.080073446, 0.761847854, 0, 0.994521916, 0.104528457, -0.766044319, -0.0671895966, 0.639266312), 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), CFrame.new(-1.61730015, 7.15255737e-07, 0.310204506, 0.45211184, 0.371111691, 0.811092377, -0.0969422832, 0.924393654, -0.368915498, -0.886677384, 0.0881619602, 0.453905761), CFrame.new(0.786227643, -2, 0.0169382486, 0.999847531, 0, -0.017452687, 0, 1, 0, 0.017452687, 0, 0.999847531), CFrame.new(-0.250000417, -2, 0.433013648, 0.642787516, 0, 0.766044319, 0, 1, 0, -0.766044319, 0, 0.642787516)}, 0.3, false)
  855. AFMotor2Weld.C0 = clerp(AFMotor2Weld.C0, CFrame.new(0, 0, -5) * angles(math.rad(0), math.rad(90), math.rad(0)), 0.3)
  856. end
  857. AMotor2Weld.Part0 = RootPart
  858. AMotor2Weld.C1 = CFrame.new(4.47993469, 1.56501913, -1.70001793, -1, 0, 0, 0, -1, 0, 0, 0, 1)
  859. attack = false
  860. minigun = false
  861. end
  862.  
  863. mattackone = function()
  864.  
  865. attack = true
  866. for i = 0, 1, 0.1 do
  867. swait()
  868. PlayAnimationFromTable({CFrame.new(0, 0, 0, 0.766044438, 0, 0.642787576, -0.144595742, 0.974370062, 0.172322497, -0.626312971, -0.224951044, 0.746410787), 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), 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), 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), 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), 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)}, 0.3, false)
  869. end
  870. for i = 0, 5 do
  871. for i = 0, 1, 0.5 do
  872. swait()
  873. PlayAnimationFromTable({CFrame.new(0, 0, 0, 0.854590118, 0.035190098, 0.518109441, -0.144595742, 0.974370062, 0.172322497, -0.498766273, -0.222181529, 0.83777535), 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), 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), 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), 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), 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)}, 0.4, false)
  874. end
  875. CFuncs.Sound.Create("http://www.roblox.com/asset/?id=233370772", RootPart, 1, 1.2)
  876. Shoot(Barrel2.Position)
  877. for i = 0, 1, 0.5 do
  878. swait()
  879. PlayAnimationFromTable({CFrame.new(0, 0, 0, 0.93405807, 0.0769378245, 0.348735064, -0.144595742, 0.974370062, 0.172322497, -0.32653892, -0.211384833, 0.921243072), 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), 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), 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), 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), 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)}, 0.4, false)
  880. end
  881. end
  882. attack = false
  883. end
  884.  
  885. mattackthree = function()
  886.  
  887. attack = true
  888. for i = 0, 1, 0.1 do
  889. swait()
  890. PlayAnimationFromTable({CFrame.new(0, 0, 0, 0.469471633, 0, 0.882947564, 0, 1, 0, -0.882947564, 0, 0.469471633), CFrame.new(0, 1.5, 0, 0.469471604, 0, -0.882947505, 0, 1, 0, 0.882947505, 0, 0.469471604), CFrame.new(1.0305258, 1.00000048, -0.882950068, 0.848008096, 0.529983222, -9.50098038e-05, 0.215463251, -0.344919175, -0.913567901, -0.484208375, 0.774692535, -0.406686187), CFrame.new(-1.49999595, -1.87754631e-06, 3.51667404e-06, 0.817598403, 0.543970585, -0.188755706, -0.482325882, 0.467993826, -0.740502179, -0.31447494, 0.696475148, 0.645002246), CFrame.new(0.498095661, -2, 0.0435770601, 0.965925753, 0, -0.258818984, 0, 1, 0, 0.258818984, 0, 0.965925753), CFrame.new(-0.49809885, -2, -0.0435798988, 0.965925753, 0, -0.258818984, 0, 1, 0, 0.258818984, 0, 0.965925753)}, 0.3, false)
  891. end
  892. for i = 0, 1, 0.2 do
  893. swait()
  894. PlayAnimationFromTable({CFrame.new(0, 0, 0, 0.987688422, 0, 0.156434387, -0.0457369946, 0.956304729, 0.288772196, -0.149598941, -0.29237175, 0.944531083), 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), 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), 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), 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), 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)}, 0.3, false)
  895. end
  896. CFuncs.Sound.Create("http://www.roblox.com/asset/?id=233370772", RootPart, 1, 1.2)
  897. Shoot(Barrel2.Position)
  898. for i = 0, 1, 0.2 do
  899. swait()
  900. PlayAnimationFromTable({CFrame.new(0, 0, 0, 0.994541168, 0.0707310885, -0.0767150074, -0.0457369946, 0.956304729, 0.288772196, 0.0937881023, -0.283687085, 0.954319417), 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), 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), 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), 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), 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)}, 0.3, false)
  901. end
  902. CFuncs.Sound.Create("http://www.roblox.com/asset/?id=233370772", RootPart, 1, 1.2)
  903. Shoot(Barrel2.Position)
  904. for i = 0, 1, 0.15 do
  905. swait()
  906. PlayAnimationFromTable({CFrame.new(0, 0, 0, 0.737832844, 0.227215499, -0.63559103, -0.0457369946, 0.956304729, 0.288772196, 0.673432291, -0.18399556, 0.715985119), 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), 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), 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), 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), CFrame.new(-0.267897666, -2.10419893, 9.35792923e-06, 0.965420246, -0.034111429, 0.25845778, 0.0634135231, 0.992352903, -0.105897792, -0.25286904, 0.118625574, 0.960200548)}, 0.3, false)
  907. end
  908. CFuncs.Sound.Create("http://www.roblox.com/asset/?id=233370772", RootPart, 1, 1.2)
  909. Shoot(Barrel2.Position)
  910. attack = false
  911. end
  912.  
  913. railcannonmode = function()
  914.  
  915. attack = true
  916. railcannon = true
  917. for i = 0, 1, 0.15 do
  918. swait()
  919. PlayAnimationFromTable({CFrame.new(0, 0, 0, 0.933580399, 0, 0.35836792, 0, 1, 0, -0.35836792, 0, 0.933580399), CFrame.new(0, 1.5, 0, 0.933580339, 0, -0.35836789, 0, 1, 0, 0.35836789, 0, 0.933580339), CFrame.new(1.54411411, 1.1920929e-07, 0.0994966179, 0.966713905, -0.170457721, -0.190809011, 0.173648149, 0.98480773, 0, 0.187910169, -0.033133626, 0.981627107), 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), CFrame.new(0.499920011, -2, 0.00872536004, 0.939692497, 0, -0.342020184, 0, 1, 0, 0.342020184, 0, 0.939692497), CFrame.new(-0.499926776, -2, -0.00872655213, 0.981627047, 0, -0.19080919, 0, 1, 0, 0.19080919, 0, 0.981627047)}, 0.3, false)
  920. AFMotorWeld.C0 = clerp(AFMotorWeld.C0, CFrame.new(0, 1, -1.5) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  921. end
  922. for i = 0, 1, 0.1 do
  923. swait()
  924. PlayAnimationFromTable({CFrame.new(0, 0, 0, 0.933580399, 0, 0.35836792, 0, 1, 0, -0.35836792, 0, 0.933580399), CFrame.new(0, 1.5, 0, 0.933580339, 0, -0.35836789, 0, 1, 0, 0.35836789, 0, 0.933580339), CFrame.new(1.54411411, 1.1920929e-07, 0.0994966179, 0.966713905, -0.170457721, -0.190809011, 0.173648149, 0.98480773, 0, 0.187910169, -0.033133626, 0.981627107), 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), CFrame.new(0.499920011, -2, 0.00872536004, 0.939692497, 0, -0.342020184, 0, 1, 0, 0.342020184, 0, 0.939692497), CFrame.new(-0.499926776, -2, -0.00872655213, 0.981627047, 0, -0.19080919, 0, 1, 0, 0.19080919, 0, 0.981627047)}, 0.3, false)
  925. AFMotorWeld.C0 = clerp(AFMotorWeld.C0, CFrame.new(0, 1, -1.5) * angles(math.rad(0), math.rad(-90), math.rad(0)), 0.3)
  926. end
  927. for i = 0, 1, 0.15 do
  928. swait()
  929. PlayAnimationFromTable({CFrame.new(0, 0, 0, 0.20791164, 0, 0.978147566, 0, 1, 0, -0.978147566, 0, 0.20791164), 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), CFrame.new(1.40917015, 2.23517418e-07, 0.0861120224, 0.731854618, -0.12904571, -0.669130623, 0.173648149, 0.98480773, 0, 0.658965051, -0.11619328, 0.743144751), 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), CFrame.new(0.436129451, -2, -0.0561523139, 0.777145803, 0, -0.629320502, 0, 1, 0, 0.629320502, 0, 0.777145803), CFrame.new(-0.46198675, -2, -0.202549219, 0.987688243, 0, -0.1564347, 0, 1, 0, 0.1564347, 0, 0.987688243)}, 0.3, false)
  930. AFMotorWeld.C0 = clerp(AFMotorWeld.C0, CFrame.new(-5, 1, -1) * angles(math.rad(0), math.rad(-90), math.rad(0)), 0.3)
  931. end
  932. CFuncs.Sound.Create("http://www.roblox.com/asset/?id=191395766", RootPart, 1, 1.5)
  933. AMotorWeld.Part0 = LeftArm
  934. AMotorWeld.C1 = CFrame.new(-0.0355796814, 0.0145721436, -1.61501646, 0, 0, 1, 1, 0, 0, 0, 0.999999881, 0)
  935. for i = 0, 1, 0.1 do
  936. swait()
  937. PlayAnimationFromTable({CFrame.new(0, 0, 0, 0.438371003, 0, 0.898794115, 0, 1, 0, -0.898794115, 0, 0.438371003), 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), CFrame.new(1.56349134, 1.49011612e-07, 0.102161653, 0.977467179, -0.172353759, -0.121869534, 0.173648119, 0.984807789, 0, 0.120018095, -0.0211624131, 0.992546141), 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), CFrame.new(0.409590125, -2, -0.159993559, 0.906307638, 0, -0.422618568, 0, 1, 0, 0.422618568, 0, 0.906307638), CFrame.new(-0.497264832, -2, -0.0847679749, 0.996194661, 0, 0.0871553719, 0, 1, 0, -0.0871553719, 0, 0.996194661)}, 0.3, false)
  938. AFMotorWeld.C0 = clerp(AFMotorWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.6)
  939. end
  940. attack = false
  941. end
  942.  
  943. unrailcannon = function()
  944.  
  945. attack = true
  946. railcannon = true
  947. for i = 0, 1, 0.15 do
  948. swait()
  949. PlayAnimationFromTable({CFrame.new(0, 0, 0, 0.933580399, 0, 0.35836792, 0, 1, 0, -0.35836792, 0, 0.933580399), CFrame.new(0, 1.5, 0, 0.933580339, 0, -0.35836789, 0, 1, 0, 0.35836789, 0, 0.933580339), CFrame.new(1.54411411, 1.1920929e-07, 0.0994966179, 0.966713905, -0.170457721, -0.190809011, 0.173648149, 0.98480773, 0, 0.187910169, -0.033133626, 0.981627107), 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), CFrame.new(0.499920011, -2, 0.00872536004, 0.939692497, 0, -0.342020184, 0, 1, 0, 0.342020184, 0, 0.939692497), CFrame.new(-0.499926776, -2, -0.00872655213, 0.981627047, 0, -0.19080919, 0, 1, 0, 0.19080919, 0, 0.981627047)}, 0.3, false)
  950. end
  951. for i = 0, 1, 0.1 do
  952. swait()
  953. PlayAnimationFromTable({CFrame.new(0, 0, 0, 0.933580399, 0, 0.35836792, 0, 1, 0, -0.35836792, 0, 0.933580399), CFrame.new(0, 1.5, 0, 0.933580339, 0, -0.35836789, 0, 1, 0, 0.35836789, 0, 0.933580339), CFrame.new(1.54411411, 1.1920929e-07, 0.0994966179, 0.966713905, -0.170457721, -0.190809011, 0.173648149, 0.98480773, 0, 0.187910169, -0.033133626, 0.981627107), 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), CFrame.new(0.499920011, -2, 0.00872536004, 0.939692497, 0, -0.342020184, 0, 1, 0, 0.342020184, 0, 0.939692497), CFrame.new(-0.499926776, -2, -0.00872655213, 0.981627047, 0, -0.19080919, 0, 1, 0, 0.19080919, 0, 0.981627047)}, 0.3, false)
  954. end
  955. for i = 0, 1, 0.15 do
  956. swait()
  957. PlayAnimationFromTable({CFrame.new(0, 0, 0, 0.20791164, 0, 0.978147566, 0, 1, 0, -0.978147566, 0, 0.20791164), 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), CFrame.new(1.40917015, 2.23517418e-07, 0.0861120224, 0.731854618, -0.12904571, -0.669130623, 0.173648149, 0.98480773, 0, 0.658965051, -0.11619328, 0.743144751), 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), CFrame.new(0.436129451, -2, -0.0561523139, 0.777145803, 0, -0.629320502, 0, 1, 0, 0.629320502, 0, 0.777145803), CFrame.new(-0.46198675, -2, -0.202549219, 0.987688243, 0, -0.1564347, 0, 1, 0, 0.1564347, 0, 0.987688243)}, 0.3, false)
  958. AFMotorWeld.C0 = clerp(AFMotorWeld.C0, CFrame.new(0, 0, -5) * angles(math.rad(0), math.rad(-90), math.rad(0)), 0.3)
  959. end
  960. AMotorWeld.Part0 = RootPart
  961. AMotorWeld.C1 = CFrame.new(-4.78009033, 1.56501913, -2.5500164, -1, 0, 0, 0, -1, 0, 0, 0, 1)
  962. attack = false
  963. railcannon = false
  964. end
  965.  
  966. Laser = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  967.  
  968. local prt = CreatePart(workspace, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  969. prt.Anchored = true
  970. prt.CFrame = cframe
  971. prt.Material = "Neon"
  972. local msh = CreateMesh("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  973. game:GetService("Debris"):AddItem(prt, 10)
  974. coroutine.resume(coroutine.create(function(Part, Mesh)
  975.  
  976. for i = 0, 1, delay do
  977. swait()
  978. Part.Transparency = i
  979. Mesh.Scale = Mesh.Scale + Vector3.new(x3, y3, z3)
  980. end
  981. Part.Parent = nil
  982. end
  983. ), prt, msh)
  984. end
  985.  
  986. shoottraildd = function(mouse, partt, SpreadAmount, multiply, Type)
  987.  
  988. local SpreadVectors = Vector3.new(math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount, SpreadAmount))
  989. local MainPos = partt.Position
  990. local MainPos2 = mouse.Hit.p + SpreadVectors
  991. local MouseLook = CFrame.new((MainPos + MainPos2) / 2, MainPos2)
  992. local speed = 50
  993. local num = 20
  994. coroutine.resume(coroutine.create(function()
  995.  
  996. repeat
  997. swait()
  998. local hit, pos = rayCast(MainPos, MouseLook.lookVector, speed, RootPart.Parent)
  999. local mag = (MainPos - pos).magnitude
  1000. if Type == "Explosive" then
  1001. 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)
  1002. elseif Type == "Poison" then
  1003. 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)
  1004. Effects.Sphere.Create(BrickColor.new("Bright violet"), CFrame.new((MainPos + pos) / 2, pos), 1, 1, 1, 2, 2, 2, 0.07)
  1005. elseif Type == "Stun" then
  1006. 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)
  1007. end
  1008. MainPos = MainPos + MouseLook.lookVector * speed
  1009. num = num - 1
  1010. MouseLook = MouseLook * angles(math.rad(-1), 0, 0)
  1011. if hit ~= nil then
  1012. num = 0
  1013. local refpart = CreatePart(workspace, "SmoothPlastic", 0, 1, BrickColor.new("Really black"), "Effect", Vector3.new())
  1014. refpart.Anchored = true
  1015. refpart.CFrame = CFrame.new(pos)
  1016. game:GetService("Debris"):AddItem(refpart, 2)
  1017. end
  1018. do
  1019. if num <= 0 then
  1020. local refpart = CreatePart(workspace, "SmoothPlastic", 0, 1, BrickColor.new("Really black"), "Effect", Vector3.new())
  1021. refpart.Anchored = true
  1022. refpart.CFrame = CFrame.new(pos)
  1023. if hit ~= nil then
  1024. if Type == "Explosive" then
  1025. CFuncs.Sound.Create("http://www.roblox.com/asset/?id=233856079", refpart, 1, 2)
  1026. Effects.Block.Create(BrickColor.new("Really red"), refpart.CFrame, 1, 1, 1, 10, 10, 10, 0.07)
  1027. Effects.Ring.Create(BrickColor.new("Really red"), refpart.CFrame, 1, 9999, 1, 1, 0, 1, 0.02)
  1028. MagniDamage(refpart, 15, 20, 30, 5, "Knockdown")
  1029. else
  1030. if Type == "Poison" then
  1031. if hit.Name == "Head" then
  1032. Effects.Block.Create(BrickColor.new("Bright violet"), refpart.CFrame, 1, 1, 1, 1, 1, 1, 0.07)
  1033. MagniDamage(refpart, 5, 18 * multiply, 20 * multiply, 0, "Curse")
  1034. else
  1035. Effects.Sphere.Create(BrickColor.new("Bright violet"), refpart.CFrame, 1, 1, 1, 1, 1, 1, 0.07)
  1036. MagniDamage(refpart, 5, 3 * multiply, 3 * multiply, 0, "Curse")
  1037. end
  1038. else
  1039. if Type == "Stun" then
  1040. Effects.Block.Create(BrickColor.new("White"), refpart.CFrame, 1, 1, 1, 1, 1, 1, 0.07)
  1041. MagniDamage(refpart, 5, 10 * multiply, 10 * multiply, 0, "Freeze")
  1042. end
  1043. end
  1044. end
  1045. end
  1046. game:GetService("Debris"):AddItem(refpart, 0)
  1047. end
  1048. end
  1049. until num <= 0
  1050. end
  1051. ))
  1052. end
  1053.  
  1054. mattacktwo = function()
  1055.  
  1056. attack = true
  1057. for i = 0, 1, 0.1 do
  1058. swait()
  1059. PlayAnimationFromTable({CFrame.new(0, 0, 0, 0.642787457, 0, -0.766044497, 0, 1, 0, 0.766044497, 0, 0.642787457), CFrame.new(0, 1.5, 0, 0.642787397, 0, 0.766044438, 0, 1, 0, -0.766044438, 0, 0.642787397), 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), 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), CFrame.new(0.499997288, -2, -8.27014446e-07, 0.984807611, 0, -0.173648089, 0, 1, 0, 0.173648089, 0, 0.984807611), CFrame.new(-0.500000715, -2, -1.71363354e-06, 0.984807611, 0, -0.173648089, 0, 1, 0, 0.173648089, 0, 0.984807611)}, 0.3, false)
  1060. end
  1061. for i = 0, 1, 0.2 do
  1062. swait()
  1063. PlayAnimationFromTable({CFrame.new(0.0946200788, -1.02445483e-08, 0.0625146329, 0.754709721, 0, 0.656058848, 0, 1, 0, -0.656058848, 0, 0.754709721), CFrame.new(-0.0303973816, 1.5, -0.109256268, 0.754709661, 0, -0.656058788, 0, 1, 0, 0.656058788, 0, 0.754709661), 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), 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), CFrame.new(0.49999702, -2, 1.08778477e-06, 0.98480773, 0, -0.173648208, 0, 1, 0, 0.173648208, 0, 0.98480773), CFrame.new(-0.500001788, -2, 3.88175249e-06, 0.98480773, 0, -0.173648208, 0, 1, 0, 0.173648208, 0, 0.98480773)}, 0.3, false)
  1064. end
  1065. CFuncs.Sound.Create("http://www.roblox.com/asset/?id=192410077", RootPart, 1, 1.5)
  1066. Shoot2(Barrel.Position)
  1067. for i = 0, 1, 0.1 do
  1068. swait()
  1069. PlayAnimationFromTable({CFrame.new(0.094619967, -1.02445483e-08, 0.0625145137, 0.99254632, 0, 0.121869221, 0, 1, 0, -0.121869221, 0, 0.99254632), CFrame.new(-0.0862959102, 1.5, -0.0735795721, 0.99254626, 0, -0.121869214, 0, 1, 0, 0.121869214, 0, 0.99254626), 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), 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), CFrame.new(0.487180531, -2, -0.112473622, 0.998629689, 0, 0.0523357466, 0, 1, 0, -0.0523357466, 0, 0.998629689), CFrame.new(-0.487187862, -2, 0.112479731, 0.998629689, 0, 0.0523357466, 0, 1, 0, -0.0523357466, 0, 0.998629689)}, 0.3, false)
  1070. end
  1071. attack = false
  1072. end
  1073.  
  1074. ult = function()
  1075.  
  1076. attack = true
  1077. for i = 0, 1, 0.1 do
  1078. swait()
  1079. PlayAnimationFromTable({CFrame.new(-1.12503767e-06, 0, -0.39999944, 0.98480773, 0, 0.173648149, -0.0565343052, 0.945518553, 0.320622027, -0.164187551, -0.32556814, 0.931153953), 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), 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), 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), 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), 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)}, 0.3, false)
  1080. end
  1081. for i = 0, 1, 0.3 do
  1082. swait()
  1083. PlayAnimationFromTable({CFrame.new(3.3415854e-06, 5.14090061e-07, 0.300000042, 0.991635323, -0.0942734778, -0.088158071, 0.0593911409, 0.939692676, -0.33682391, 0.114595056, 0.328770667, 0.937431514), 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), 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), 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), 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), 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)}, 0.3, false)
  1084. end
  1085. CFuncs.Sound.Create("http://www.roblox.com/asset/?id=231917822", RootPart, 1, 1)
  1086. Effects.Sphere.Create(BrickColor.new("Persimmon"), RootPart.CFrame, 55, 55, 55, 0.5, 0.5, 0.5, 0.03)
  1087. g.Parent = nil
  1088. ge.Parent = nil
  1089. for i = 0, 1, 0.13 do
  1090. swait()
  1091. PlayAnimationFromTable({CFrame.new(-6.27711415e-07, -3.87430191e-07, 0.300000131, 0.991635323, -0.0942734778, -0.088158071, 0.0449828133, 0.892621279, -0.448557526, 0.120978847, 0.440839857, 0.889395535), 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), 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), 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), 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), 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)}, 0.3, false)
  1092. end
  1093. minigun = false
  1094. railcannon = false
  1095. for i = 0, 1, 0.1 do
  1096. swait()
  1097. PlayAnimationFromTable({CFrame.new(0, 0, 0, 0.829037547, 0, 0.559192896, 0, 1, 0, -0.559192896, 0, 0.829037547), 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), CFrame.new(0.990585089, -2.5331974e-07, -0.972866297, -0.210851848, 0.71165657, 0.670139015, 0.977479398, 0.147404209, 0.151016682, 0.00869072229, 0.686889231, -0.726710141), 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), CFrame.new(0.680448771, -2, -0.128245741, 0.96126163, 0, -0.275637388, 0, 1, 0, 0.275637388, 0, 0.96126163), CFrame.new(-0.456773728, -2, -0.203368619, 0.829037488, 0, -0.559192836, 0, 1, 0, 0.559192836, 0, 0.829037488)}, 0.3, false)
  1098. end
  1099. for i = 0, 1, 0.3 do
  1100. swait()
  1101. PlayAnimationFromTable({CFrame.new(0, 0, 0, 0.829037547, 0, 0.559192896, 0, 1, 0, -0.559192896, 0, 0.829037547), 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), CFrame.new(0.990584075, 5.96046448e-07, -0.972867489, -0.322262019, 0.686789989, 0.651510954, 0.944314957, 0.281537294, 0.170311525, -0.066456385, 0.670116484, -0.739274919), 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), CFrame.new(0.680448771, -2, -0.128245741, 0.96126163, 0, -0.275637388, 0, 1, 0, 0.275637388, 0, 0.96126163), CFrame.new(-0.456773728, -2, -0.203368619, 0.829037488, 0, -0.559192836, 0, 1, 0, 0.559192836, 0, 0.829037488)}, 0.3, false)
  1102. end
  1103. for i = 0, 1, 0.2 do
  1104. swait()
  1105. PlayAnimationFromTable({CFrame.new(0, 0, 0, 0.829037547, 0, 0.559192896, 0, 1, 0, -0.559192896, 0, 0.829037547), 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), 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), 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), CFrame.new(0.680448771, -2, -0.128245741, 0.96126163, 0, -0.275637388, 0, 1, 0, 0.275637388, 0, 0.96126163), CFrame.new(-0.456773728, -2, -0.203368619, 0.829037488, 0, -0.559192836, 0, 1, 0, 0.559192836, 0, 0.829037488)}, 0.3, false)
  1106. end
  1107. for i = 0, 1, 0.2 do
  1108. swait()
  1109. PlayAnimationFromTable({CFrame.new(0, 0, 0, 0.829037547, 0, 0.559192896, 0, 1, 0, -0.559192896, 0, 0.829037547), 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), CFrame.new(0.990585089, -2.5331974e-07, -0.972866297, -0.210851848, 0.71165657, 0.670139015, 0.977479398, 0.147404209, 0.151016682, 0.00869072229, 0.686889231, -0.726710141), 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), CFrame.new(0.680448771, -2, -0.128245741, 0.96126163, 0, -0.275637388, 0, 1, 0, 0.275637388, 0, 0.96126163), CFrame.new(-0.456773728, -2, -0.203368619, 0.829037488, 0, -0.559192836, 0, 1, 0, 0.559192836, 0, 0.829037488)}, 0.3, false)
  1110. end
  1111. for i = 0, 1, 0.2 do
  1112. swait()
  1113. PlayAnimationFromTable({CFrame.new(0, 0, 0, 0.829037547, 0, 0.559192896, 0, 1, 0, -0.559192896, 0, 0.829037547), 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), 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), 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), CFrame.new(0.680448771, -2, -0.128245741, 0.96126163, 0, -0.275637388, 0, 1, 0, 0.275637388, 0, 0.96126163), CFrame.new(-0.456773728, -2, -0.203368619, 0.829037488, 0, -0.559192836, 0, 1, 0, 0.559192836, 0, 0.829037488)}, 0.3, false)
  1114. end
  1115. CFuncs.Sound.Create("http://www.roblox.com/asset/?id=231917822", RootPart, 1, 0.8)
  1116. can.Parent = Character
  1117. Effects.Sphere.Create(BrickColor.new("Persimmon"), AFMotor3.CFrame, 105, 105, 105, 0.5, 0.5, 0.5, 0.03)
  1118. for i = 0, 1, 0.2 do
  1119. swait()
  1120. PlayAnimationFromTable({CFrame.new(0, 0, 0, 0.829037547, 0, 0.559192896, 0, 1, 0, -0.559192896, 0, 0.829037547), 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), 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), 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), CFrame.new(0.680448771, -2, -0.128245741, 0.96126163, 0, -0.275637388, 0, 1, 0, 0.275637388, 0, 0.96126163), CFrame.new(-0.456773728, -2, -0.203368619, 0.829037488, 0, -0.559192836, 0, 1, 0, 0.559192836, 0, 0.829037488)}, 0.3, false)
  1121. end
  1122. for i = 0, 1, 0.1 do
  1123. swait()
  1124. PlayAnimationFromTable({CFrame.new(0, 0, 0, 0.325568169, 0, 0.945518494, 0, 1, 0, -0.945518494, 0, 0.325568169), CFrame.new(-8.7544322e-08, 1.50000048, 3.0733645e-08, 0.325568169, -0.0165014714, -0.945374548, 0, 0.99984777, -0.0174522996, 0.945518494, 0.00568191335, 0.325518608), 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), 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), CFrame.new(0.750989377, -2, 0.0219423026, 0.965925813, 0, -0.258819163, 0, 1, 0, 0.258819163, 0, 0.965925813), CFrame.new(-0.387374163, -2, -0.0333242267, 0.838670373, 0, -0.544638991, 0, 1, 0, 0.544638991, 0, 0.838670373)}, 0.3, false)
  1125. end
  1126. omega = true
  1127. attack = false
  1128. end
  1129.  
  1130. attackfour = function()
  1131.  
  1132. attack = true
  1133. local hohe = math.random(-20, -10)
  1134. local hehe = math.random(-10, 10)
  1135. for i = 0, 1, 0.1 do
  1136. swait()
  1137. PlayAnimationFromTable({CFrame.new(0, 0, 0, 0.829037547, 0, 0.559192896, 0, 1, 0, -0.559192896, 0, 0.829037547), 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), CFrame.new(0.990585089, -2.5331974e-07, -0.972866297, -0.210851848, 0.71165657, 0.670139015, 0.977479398, 0.147404209, 0.151016682, 0.00869072229, 0.686889231, -0.726710141), 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), CFrame.new(0.680448771, -2, -0.128245741, 0.96126163, 0, -0.275637388, 0, 1, 0, 0.275637388, 0, 0.96126163), CFrame.new(-0.456773728, -2, -0.203368619, 0.829037488, 0, -0.559192836, 0, 1, 0, 0.559192836, 0, 0.829037488)}, 0.3, false)
  1138. end
  1139. for i = 0, 1, 0.3 do
  1140. swait()
  1141. PlayAnimationFromTable({CFrame.new(0, 0, 0, 0.829037547, 0, 0.559192896, 0, 1, 0, -0.559192896, 0, 0.829037547), 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), CFrame.new(0.990584075, 5.96046448e-07, -0.972867489, -0.322262019, 0.686789989, 0.651510954, 0.944314957, 0.281537294, 0.170311525, -0.066456385, 0.670116484, -0.739274919), 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), CFrame.new(0.680448771, -2, -0.128245741, 0.96126163, 0, -0.275637388, 0, 1, 0, 0.275637388, 0, 0.96126163), CFrame.new(-0.456773728, -2, -0.203368619, 0.829037488, 0, -0.559192836, 0, 1, 0, 0.559192836, 0, 0.829037488)}, 0.3, false)
  1142. end
  1143. for i = 0, 1, 0.2 do
  1144. swait()
  1145. PlayAnimationFromTable({CFrame.new(0, 0, 0, 0.829037547, 0, 0.559192896, 0, 1, 0, -0.559192896, 0, 0.829037547), 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), 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), 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), CFrame.new(0.680448771, -2, -0.128245741, 0.96126163, 0, -0.275637388, 0, 1, 0, 0.275637388, 0, 0.96126163), CFrame.new(-0.456773728, -2, -0.203368619, 0.829037488, 0, -0.559192836, 0, 1, 0, 0.559192836, 0, 0.829037488)}, 0.3, false)
  1146. AFMotor3Weld.C0 = clerp(AFMotor3Weld.C0, CFrame.new(0, 0, 5) * angles(math.rad(hohe), math.rad(hehe), math.rad(0)), 0.3)
  1147. end
  1148. CFuncs.Sound.Create("http://www.roblox.com/asset/?id=233856079", RootPart, 1, 1)
  1149. Effects.Sphere.Create(BrickColor.new("Really red"), Barrel3.CFrame, 15, 15, 15, 0.5, 0.5, 0.5, 0.03)
  1150. shoottraildd(mouse, Barrel3, 0, 2, "Explosive")
  1151. for i = 0, 1, 0.2 do
  1152. swait()
  1153. PlayAnimationFromTable({CFrame.new(0, 0, 0, 0.829037547, 0, 0.559192896, 0, 1, 0, -0.559192896, 0, 0.829037547), 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), CFrame.new(0.990585089, -2.5331974e-07, -0.972866297, -0.210851848, 0.71165657, 0.670139015, 0.977479398, 0.147404209, 0.151016682, 0.00869072229, 0.686889231, -0.726710141), 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), CFrame.new(0.680448771, -2, -0.128245741, 0.96126163, 0, -0.275637388, 0, 1, 0, 0.275637388, 0, 0.96126163), CFrame.new(-0.456773728, -2, -0.203368619, 0.829037488, 0, -0.559192836, 0, 1, 0, 0.559192836, 0, 0.829037488)}, 0.3, false)
  1154. end
  1155. for i = 0, 1, 0.2 do
  1156. swait()
  1157. PlayAnimationFromTable({CFrame.new(0, 0, 0, 0.829037547, 0, 0.559192896, 0, 1, 0, -0.559192896, 0, 0.829037547), 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), 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), 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), CFrame.new(0.680448771, -2, -0.128245741, 0.96126163, 0, -0.275637388, 0, 1, 0, 0.275637388, 0, 0.96126163), CFrame.new(-0.456773728, -2, -0.203368619, 0.829037488, 0, -0.559192836, 0, 1, 0, 0.559192836, 0, 0.829037488)}, 0.3, false)
  1158. AFMotor3Weld.C0 = clerp(AFMotor3Weld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1159. end
  1160. attack = false
  1161. end
  1162.  
  1163. mouse.Button1Down:connect(function()
  1164.  
  1165. if attack == false and attacktype == 1 then
  1166. if minigun == true and cooldown2 >= 0 then
  1167. cooldown2 = cooldown2 - 3
  1168. attacktype = 2
  1169. mattackone()
  1170. else
  1171. if minigun == true then
  1172. unminigun()
  1173. else
  1174. attacktype = 2
  1175. attackone()
  1176. end
  1177. end
  1178. else
  1179. if attack == false and attacktype == 2 then
  1180. if railcannon == true and cooldown3 >= 0 then
  1181. cooldown3 = cooldown3 - 5
  1182. attacktype = 3
  1183. mattacktwo()
  1184. else
  1185. if railcannon == true then
  1186. unrailcannon()
  1187. attacktype = 2
  1188. else
  1189. attacktype = 3
  1190. attacktwo()
  1191. end
  1192. end
  1193. else
  1194. if attack == false and attacktype == 3 then
  1195. if minigun == true and cooldown2 >= 0 then
  1196. cooldown2 = cooldown2 - 3
  1197. attacktype = 2
  1198. mattackthree()
  1199. else
  1200. if minigun == true then
  1201. unminigun()
  1202. else
  1203. if omega == true then
  1204. attacktype = 4
  1205. attackthree()
  1206. else
  1207. attacktype = 5
  1208. attackthree()
  1209. end
  1210. end
  1211. end
  1212. else
  1213. if attack == false and attacktype == 4 then
  1214. if omega == true and cooldown4 >= 0 then
  1215. cooldown4 = cooldown4 - 5
  1216. attacktype = 2
  1217. attackfour()
  1218. else
  1219. goback()
  1220. attacktype = 2
  1221. end
  1222. else
  1223. if attack == false and attacktype == 5 then
  1224. attacktype = 2
  1225. end
  1226. end
  1227. end
  1228. end
  1229. end
  1230. end
  1231. )
  1232. updateskills = function()
  1233.  
  1234. if minigun == true then
  1235. text2.Text = "X\n Ammo"
  1236. else
  1237. text2.Text = "X\n Equip DDJ Multishot"
  1238. end
  1239. if railcannon == true then
  1240. text3.Text = "C\n Ammo"
  1241. else
  1242. text3.Text = "[C]\n Equip QRR-3 Railcannon"
  1243. end
  1244. if omega == true then
  1245. text4.Text = "[V]\n Ammo"
  1246. else
  1247. text4.Text = "[V]\n Equip RRE3 Blackout"
  1248. end
  1249. if cooldown1 <= co1 then
  1250. cooldown1 = cooldown1 + 0.033333333333333
  1251. end
  1252. if cooldown2 <= co2 and minigun == false then
  1253. cooldown2 = cooldown2 + 0.033333333333333
  1254. end
  1255. if cooldown3 <= co3 and railcannon == false then
  1256. cooldown3 = cooldown3 + 0.033333333333333
  1257. end
  1258. if cooldown4 <= co4 and omega == false then
  1259. cooldown4 = cooldown4 + 0.033333333333333
  1260. end
  1261. end
  1262.  
  1263. goback = function()
  1264.  
  1265. attack = true
  1266. for i = 0, 1, 0.1 do
  1267. swait()
  1268. PlayAnimationFromTable({CFrame.new(0, 0, 0, 0.906307757, 0, 0.42261821, 0, 1, 0, -0.42261821, 0, 0.906307757), CFrame.new(0, 1.5, 0, 0.906307697, 0, -0.422618181, 0, 1, 0, 0.422618181, 0, 0.906307697), 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), CFrame.new(-1.44888604, -3.78349796e-08, -0.388228029, 0.964929819, 0.0809203684, -0.249724105, -0.134298533, 0.96955663, -0.204753056, 0.225552931, 0.231109917, 0.946421623), CFrame.new(0.497257799, -2, -0.0522656441, 0.874619603, 0, -0.484809637, 0, 1, 0, 0.484809637, 0, 0.874619603), CFrame.new(-0.49726212, -2, 0.0522664487, 0.997563958, 0, -0.0697563291, 0, 1, 0, 0.0697563291, 0, 0.997563958)}, 0.3, false)
  1269. end
  1270. for i = 0, 1, 0.2 do
  1271. swait()
  1272. PlayAnimationFromTable({CFrame.new(0, 0, 0, 0.906307757, 0, 0.42261821, 0, 1, 0, -0.42261821, 0, 0.906307757), CFrame.new(0, 1.5, 0, 0.906307697, 0, -0.422618181, 0, 1, 0, 0.422618181, 0, 0.906307697), 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), CFrame.new(-1.57567263, 1.45286322e-07, -0.116335958, 0.964929819, 0.0809203684, -0.249724105, -0.134298533, 0.96955663, -0.204753056, 0.225552931, 0.231109917, 0.946421623), CFrame.new(0.497257799, -2, -0.0522656441, 0.874619603, 0, -0.484809637, 0, 1, 0, 0.484809637, 0, 0.874619603), CFrame.new(-0.49726212, -2, 0.0522664487, 0.997563958, 0, -0.0697563291, 0, 1, 0, 0.0697563291, 0, 0.997563958)}, 0.3, false)
  1273. end
  1274. for i = 0, 1, 0.1 do
  1275. swait()
  1276. PlayAnimationFromTable({CFrame.new(0, 0, 0, 0.970295727, 0, -0.241921693, 0, 1, 0, 0.241921693, 0, 0.970295727), CFrame.new(0, 1.5, 0, 0.970295668, 0, 0.241921678, 0, 1, 0, -0.241921678, 0, 0.970295668), 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), CFrame.new(-1.44289422, -5.96046448e-08, 0.319016129, 0.882078886, 0.32923764, 0.336955696, -0.00186546892, 0.717686236, -0.696364105, -0.471097738, 0.613619506, 0.633670092), CFrame.new(0.482769817, -2, -0.175085574, 0.978147507, 0, -0.207911983, 0, 1, 0, 0.207911983, 0, 0.978147507), CFrame.new(-0.437726796, -2, 0.215645447, 0.974370062, 0, 0.224950939, 0, 1, 0, -0.224950939, 0, 0.974370062)}, 0.3, false)
  1277. end
  1278. CFuncs.Sound.Create("http://www.roblox.com/asset/?id=233096543", RootPart, 1, 1)
  1279. CFuncs.Sound.Create("http://www.roblox.com/asset/?id=233091205", RootPart, 1, 1)
  1280. Effects.Sphere.Create(BrickColor.new("Persimmon"), AFMotor3.CFrame, 105, 105, 105, -0.5, -0.5, -0.5, 0.03)
  1281. can.Parent = nil
  1282. for i = 0, 1, 0.3 do
  1283. swait()
  1284. PlayAnimationFromTable({CFrame.new(0, 0, 0, 0.857167125, 0, 0.515038252, 0, 1, 0, -0.515038252, 0, 0.857167125), 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), 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), 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), CFrame.new(0.53013283, -2, 0.092574805, 0.819151759, 0, -0.573576689, 0, 1, 0, 0.573576689, 0, 0.819151759), CFrame.new(-0.469853103, -2, 0.0925830379, 0.98480767, 0, -0.173648357, 0, 1, 0, 0.173648357, 0, 0.98480767)}, 0.3, false)
  1285. end
  1286. for i = 0, 1, 0.2 do
  1287. swait()
  1288. PlayAnimationFromTable({CFrame.new(0, 0, 0, 0.857167125, 0, 0.515038252, 0, 1, 0, -0.515038252, 0, 0.857167125), 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), CFrame.new(0.766876101, -3.42726707e-07, -1.12638724, 0.0371247493, 0.644972682, 0.76330328, 0.988847971, 0.0865307152, -0.12121091, -0.144226894, 0.759290814, -0.634567499), 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), CFrame.new(0.53013283, -2, 0.092574805, 0.819151759, 0, -0.573576689, 0, 1, 0, 0.573576689, 0, 0.819151759), CFrame.new(-0.469853103, -2, 0.0925830379, 0.98480767, 0, -0.173648357, 0, 1, 0, 0.173648357, 0, 0.98480767)}, 0.3, false)
  1289. end
  1290. for i = 0, 1, 0.2 do
  1291. swait()
  1292. PlayAnimationFromTable({CFrame.new(0, 0, 0, 0.857167125, 0, 0.515038252, 0, 1, 0, -0.515038252, 0, 0.857167125), 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), 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), 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), CFrame.new(0.53013283, -2, 0.092574805, 0.819151759, 0, -0.573576689, 0, 1, 0, 0.573576689, 0, 0.819151759), CFrame.new(-0.469853103, -2, 0.0925830379, 0.98480767, 0, -0.173648357, 0, 1, 0, 0.173648357, 0, 0.98480767)}, 0.3, false)
  1293. end
  1294. for i = 0, 1, 0.2 do
  1295. swait()
  1296. PlayAnimationFromTable({CFrame.new(0, 0, 0, 0.857167125, 0, 0.515038252, 0, 1, 0, -0.515038252, 0, 0.857167125), 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), CFrame.new(0.766876101, -3.42726707e-07, -1.12638724, 0.0371247493, 0.644972682, 0.76330328, 0.988847971, 0.0865307152, -0.12121091, -0.144226894, 0.759290814, -0.634567499), 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), CFrame.new(0.53013283, -2, 0.092574805, 0.819151759, 0, -0.573576689, 0, 1, 0, 0.573576689, 0, 0.819151759), CFrame.new(-0.469853103, -2, 0.0925830379, 0.98480767, 0, -0.173648357, 0, 1, 0, 0.173648357, 0, 0.98480767)}, 0.3, false)
  1297. end
  1298. for i = 0, 1, 0.2 do
  1299. swait()
  1300. PlayAnimationFromTable({CFrame.new(0, 0, 0, 0.857167125, 0, 0.515038252, 0, 1, 0, -0.515038252, 0, 0.857167125), 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), 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), 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), CFrame.new(0.53013283, -2, 0.092574805, 0.819151759, 0, -0.573576689, 0, 1, 0, 0.573576689, 0, 0.819151759), CFrame.new(-0.469853103, -2, 0.0925830379, 0.98480767, 0, -0.173648357, 0, 1, 0, 0.173648357, 0, 0.98480767)}, 0.3, false)
  1301. end
  1302. for i = 0, 1, 0.3 do
  1303. swait()
  1304. PlayAnimationFromTable({CFrame.new(0, 0, 0, 0.857167125, 0, 0.515038252, 0, 1, 0, -0.515038252, 0, 0.857167125), 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), CFrame.new(0.766876101, -3.42726707e-07, -1.12638724, 0.0371247493, 0.644972682, 0.76330328, 0.988847971, 0.0865307152, -0.12121091, -0.144226894, 0.759290814, -0.634567499), 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), CFrame.new(0.53013283, -2, 0.092574805, 0.819151759, 0, -0.573576689, 0, 1, 0, 0.573576689, 0, 0.819151759), CFrame.new(-0.469853103, -2, 0.0925830379, 0.98480767, 0, -0.173648357, 0, 1, 0, 0.173648357, 0, 0.98480767)}, 0.3, false)
  1305. end
  1306. CFuncs.Sound.Create("http://www.roblox.com/asset/?id=240429289", RootPart, 1, 1)
  1307. Effects.Sphere.Create(BrickColor.new("Persimmon"), RootPart.CFrame, 55, 55, 55, 0.5, 0.5, 0.5, 0.03)
  1308. ge.Parent = Character
  1309. g.Parent = Character
  1310. AMotorWeld.Part0 = RootPart
  1311. AMotorWeld.C1 = CFrame.new(-4.78009033, 1.56501913, -2.5500164, -1, 0, 0, 0, -1, 0, 0, 0, 1)
  1312. AMotor2Weld.Part0 = RootPart
  1313. AMotor2Weld.C1 = CFrame.new(4.47993469, 1.56501913, -1.70001793, -1, 0, 0, 0, -1, 0, 0, 0, 1)
  1314. AFMotor.Transparency = 0
  1315. AFMotor2.Transparency = 0
  1316. for i = 0, 1, 0.2 do
  1317. swait()
  1318. PlayAnimationFromTable({CFrame.new(0, 0, 0, 0.974370122, 0, -0.224950582, 0, 1, 0, 0.224950582, 0, 0.974370122), 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), CFrame.new(1.88297892, 4.17232513e-07, -0.188890129, 0.770794868, -0.624479651, -0.126096755, 0.265426129, 0.49471283, -0.827531397, 0.579158187, 0.604387522, 0.547075272), 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), CFrame.new(0.545134008, -2, -0.268956423, 0.951056302, 0, -0.309017599, 0, 1, 0, 0.309017599, 0, 0.951056302), CFrame.new(-0.411152959, -2, 0.0234167781, 0.992546201, 0, 0.121868908, 0, 1, 0, -0.121868908, 0, 0.992546201)}, 0.3, false)
  1319. end
  1320. for i = 0, 1, 0.1 do
  1321. swait()
  1322. PlayAnimationFromTable({CFrame.new(0, 0, 0, 0.974370122, 0, -0.224950582, 0, 1, 0, 0.224950582, 0, 0.974370122), 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), CFrame.new(1.90547287, 1.14738941e-06, -0.0914520919, 0.770794868, -0.624479651, -0.126096755, 0.265426129, 0.49471283, -0.827531397, 0.579158187, 0.604387522, 0.547075272), 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), CFrame.new(0.545134008, -2, -0.268956423, 0.951056302, 0, -0.309017599, 0, 1, 0, 0.309017599, 0, 0.951056302), CFrame.new(-0.411152959, -2, 0.0234167781, 0.992546201, 0, 0.121868908, 0, 1, 0, -0.121868908, 0, 0.992546201)}, 0.3, false)
  1323. end
  1324. attacktype = 2
  1325. omega = false
  1326. attack = false
  1327. end
  1328.  
  1329. mouse.KeyDown:connect(function(k)
  1330.  
  1331. k = k:lower()
  1332. if attack == false and k == "z5435435435" and co1 <= cooldown1 then
  1333. cooldown1 = 0
  1334. boost()
  1335. else
  1336. if attack == false and k == "x534543534535435" and omega == false and minigun == false then
  1337. minigunmode()
  1338. else
  1339. if attack == false and k == "x345345345345345345" and omega == false and minigun == true then
  1340. unminigun()
  1341. else
  1342. if attack == false and k == "c3453454354354353" and omega == false and railcannon == false then
  1343. railcannonmode()
  1344. else
  1345. if attack == false and k == "c5345435345345" and omega == false and railcannon == true then
  1346. unrailcannon()
  1347. else
  1348. if attack == false and k == "v345435345435345345345" and omega == false then
  1349. ult()
  1350. else
  1351. if attack == false and k == "v435435345345435345" and omega == true then
  1352. goback()
  1353. end
  1354. end
  1355. end
  1356. end
  1357. end
  1358. end
  1359. end
  1360. end
  1361. )
  1362. while 1 do
  1363. swait()
  1364. updateskills()
  1365. bar4:TweenSize(UDim2.new(1 * (cooldown4 / co4), 0, 1, 0), "Out", "Quad", 0.5)
  1366. bar3:TweenSize(UDim2.new(1 * (cooldown3 / co3), 0, 1, 0), "Out", "Quad", 0.5)
  1367. bar1:TweenSize(UDim2.new(1 * (cooldown1 / co1), 0, 1, 0), "Out", "Quad", 0.5)
  1368. bar2:TweenSize(UDim2.new(1 * (cooldown2 / co2), 0, 1, 0), "Out", "Quad", 0.5)
  1369. for i,v in pairs(Character:GetChildren()) do
  1370. if v:IsA("Part") then
  1371. v.Material = "SmoothPlastic"
  1372. else
  1373. if v:IsA("Hat") then
  1374. v:WaitForChild("Handle").Material = "SmoothPlastic"
  1375. end
  1376. end
  1377. end
  1378. Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  1379. velocity = RootPart.Velocity.y
  1380. sine = sine + change
  1381. local hit, pos = rayCast(RootPart.Position, CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0)).lookVector, 4, Character)
  1382. if equipped == true or equipped == false then
  1383. if 1 < RootPart.Velocity.y and hit == nil then
  1384. Anim = "Jump"
  1385. if attack == false then
  1386. RootJoint.C0 = clerp(RootJoint.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1387. Torso.Neck.C0 = clerp(Torso.Neck.C0, CFrame.new(0, 1.5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1388. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1389. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1390. RH.C0 = clerp(RH.C0, CFrame.new(0.5, -2, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1391. LH.C0 = clerp(LH.C0, CFrame.new(-0.5, -2, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1392. end
  1393. else
  1394. if RootPart.Velocity.y < -1 and hit == nil then
  1395. Anim = "Fall"
  1396. if attack == false then
  1397. RootJoint.C0 = clerp(RootJoint.C0, CFrame.new(0, 0 + 0.15 * math.cos((sine) / 15), 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1398. Torso.Neck.C0 = clerp(Torso.Neck.C0, CFrame.new(0, 1.5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1399. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1400. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1401. RH.C0 = clerp(RH.C0, CFrame.new(0.5, -2 - 0.15 * math.cos((sine) / 15), 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1402. LH.C0 = clerp(LH.C0, CFrame.new(-0.5, -2 - 0.15 * math.cos((sine) / 15), 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1403. end
  1404. else
  1405. if Torsovelocity < 1 and hit ~= nil then
  1406. Anim = "Idle"
  1407. if attack == false then
  1408. change = 1
  1409. RootJoint.C0 = clerp(RootJoint.C0, CFrame.new(0, 0 + 0.1 * math.cos((sine) / 15), 0) * angles(math.rad(0), math.rad(10), math.rad(0)), 0.3)
  1410. Torso.Neck.C0 = clerp(Torso.Neck.C0, CFrame.new(0, 1.5, 0) * angles(math.rad(0), math.rad(-10), math.rad(0)), 0.3)
  1411. RH.C0 = clerp(RH.C0, CFrame.new(0.5, -2 - 0.1 * math.cos((sine) / 15), 0) * angles(math.rad(0), math.rad(-10), math.rad(0)), 0.3)
  1412. LH.C0 = clerp(LH.C0, CFrame.new(-0.5, -2 - 0.1 * math.cos((sine) / 15), 0) * angles(math.rad(0), math.rad(-10), math.rad(0)), 0.3)
  1413. if minigun == false then
  1414. AFMotor2Weld.C0 = clerp(AFMotor2Weld.C0, CFrame.new(0, 0 + 0.1 * math.cos((sine) / 18), 0) * angles(math.rad(20), math.rad(20), math.rad(0)), 0.3)
  1415. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0 + 0.1 * math.cos((sine) / 10), 0) * angles(math.rad(0), math.rad(0), math.rad(10)), 0.3)
  1416. else
  1417. AFMotor2Weld.C0 = clerp(AFMotor2Weld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1418. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0 + 0.1 * math.cos((sine) / 10), 0) * angles(math.rad(0), math.rad(0), math.rad(10)), 0.3)
  1419. end
  1420. if railcannon == false then
  1421. AFMotorWeld.C0 = clerp(AFMotorWeld.C0, CFrame.new(0, 0 + 0.1 * math.cos((sine) / 15), 0) * angles(math.rad(20), math.rad(-20), math.rad(0)), 0.3)
  1422. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0 + 0.1 * math.cos((sine) / 10), 0) * angles(math.rad(0), math.rad(0), math.rad(-10)), 0.3)
  1423. else
  1424. AFMotorWeld.C0 = clerp(AFMotorWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1425. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0 + 0.12 * math.cos((sine) / 10), 0) * angles(math.rad(40), math.rad(0), math.rad(-40)), 0.3)
  1426. end
  1427. if omega == false then
  1428. AFMotor3Weld.C0 = clerp(AFMotor3Weld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1429. else
  1430. AFMotor3Weld.C0 = clerp(AFMotor3Weld.C0, CFrame.new(0, 0 + 0.05 * math.cos((sine) / 10), 0) * angles(math.rad(0 + 0.5 * math.cos((sine) / 10)), math.rad(0), math.rad(0)), 0.3)
  1431. end
  1432. end
  1433. else
  1434. if 2 < Torsovelocity and hit ~= nil then
  1435. Anim = "Walk"
  1436. if attack == false then
  1437. RootJoint.C0 = clerp(RootJoint.C0, CFrame.new(0, 0, 0) * angles(math.rad(-10), math.rad(0), math.rad(0)), 0.3)
  1438. Torso.Neck.C0 = clerp(Torso.Neck.C0, CFrame.new(0, 1.5, 0) * angles(math.rad(10), math.rad(0), math.rad(0)), 0.3)
  1439. RH.C0 = clerp(RH.C0, CFrame.new(0.5, -2, 0 + 0.75 * math.cos((sine) / 3)) * angles(math.rad(0 - 50 * math.cos((sine) / 3)), math.rad(0), math.rad(0)), 0.3)
  1440. LH.C0 = clerp(LH.C0, CFrame.new(-0.5, -2, 0 - 0.75 * math.cos((sine) / 3)) * angles(math.rad(0 + 50 * math.cos((sine) / 3)), math.rad(0), math.rad(0)), 0.3)
  1441. if omega == false then
  1442. AFMotor3Weld.C0 = clerp(AFMotor3Weld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1443. else
  1444. AFMotor3Weld.C0 = clerp(AFMotor3Weld.C0, CFrame.new(0, 0 + 0.05 * math.cos((sine) / 10), 0) * angles(math.rad(0 + 0.5 * math.cos((sine) / 10)), math.rad(0), math.rad(0)), 0.3)
  1445. end
  1446. if railcannon == false then
  1447. AFMotorWeld.C0 = clerp(AFMotorWeld.C0, CFrame.new(0, 0 + 0.1 * math.cos((sine) / 15), 0) * angles(math.rad(20), math.rad(-20), math.rad(0)), 0.3)
  1448. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0 + 0.1 * math.cos((sine) / 10), 0) * angles(math.rad(0), math.rad(0), math.rad(-10)), 0.3)
  1449. else
  1450. AFMotorWeld.C0 = clerp(AFMotorWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1451. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0 + 0.12 * math.cos((sine) / 10), 0) * angles(math.rad(40), math.rad(0), math.rad(-70)), 0.3)
  1452. end
  1453. if minigun == false then
  1454. AFMotor2Weld.C0 = clerp(AFMotor2Weld.C0, CFrame.new(0, 0 + 0.1 * math.cos((sine) / 18), 0) * angles(math.rad(20), math.rad(20), math.rad(0)), 0.3)
  1455. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0 + 0.1 * math.cos((sine) / 10), 0) * angles(math.rad(0), math.rad(0), math.rad(10)), 0.3)
  1456. else
  1457. AFMotor2Weld.C0 = clerp(AFMotor2Weld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1458. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0 + 0.1 * math.cos((sine) / 10), 0) * angles(math.rad(0), math.rad(0), math.rad(30)), 0.3)
  1459. end
  1460. end
  1461. end
  1462. end
  1463. end
  1464. end
  1465. end
  1466. if 0 < #Effects then
  1467. for e = 1, #Effects do
  1468. if Effects[e] ~= nil then
  1469. local Thing = Effects[e]
  1470. if Thing ~= nil then
  1471. local Part = Thing[1]
  1472. local Mode = Thing[2]
  1473. local Delay = Thing[3]
  1474. local IncX = Thing[4]
  1475. local IncY = Thing[5]
  1476. local IncZ = Thing[6]
  1477. if Thing[2] == "Shoot" then
  1478. local Look = Thing[1]
  1479. local hit, pos = rayCast(Thing[4], Look, 15, Character)
  1480. local mag = (Thing[4] - pos).magnitude
  1481. Thing[9] = Thing[9] + 0.5
  1482. Thing[5] = Thing[5] + 0.2
  1483. Thing[6] = Thing[6] + 0.2
  1484. 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)
  1485. Thing[4] = Thing[4] + Look * 15
  1486. Thing[3] = Thing[3] - 3
  1487. if hit ~= nil then
  1488. Thing[3] = 0
  1489. ref = CFuncs.Part.Create(EffectModel, "Neon", 0, 1, BrickColor.new("Really red"), "Reference", Vector3.new())
  1490. ref.Anchored = true
  1491. ref.CFrame = CFrame.new(pos)
  1492. MagniDamage(ref, 10, 3, 8, 0, "Knockdown")
  1493. Effects.Sphere.Create(BrickColor.new("Really red"), CFrame.new(pos), 5, 5, 5, 1, 1, 1, 0.07)
  1494. CFuncs.Sound.Create("rbxassetid://300916057", ref, 1, 2)
  1495. game:GetService("Debris"):AddItem(ref, 1)
  1496. end
  1497. if Thing[3] <= 0 then
  1498. table.remove(Effects, e)
  1499. end
  1500. end
  1501. do
  1502. if Thing[2] == "Shoot2" then
  1503. local Look = Thing[1]
  1504. local hit, pos = rayCast(Thing[4], Look, 3, Character)
  1505. local mag = (Thing[4] - pos).magnitude
  1506. Thing[9] = Thing[9] + 0.5
  1507. Thing[5] = Thing[5] + 0.2
  1508. Thing[6] = Thing[6] + 0.2
  1509. Effects.Block.Create(BrickColor.new("Really red"), CFrame.new((Thing[4] + pos) / 2, pos), 15, 15, 15, -0.5, -0.5, -0.5, 0.05)
  1510. Thing[4] = Thing[4] + Look * 3
  1511. Thing[3] = Thing[3] - 1
  1512. if hit ~= nil then
  1513. Thing[3] = 0
  1514. ref = CFuncs.Part.Create(EffectModel, "Neon", 0, 1, BrickColor.new("Really red"), "Reference", Vector3.new())
  1515. ref.Anchored = true
  1516. ref.CFrame = CFrame.new(pos)
  1517. MagniDamage(ref, 10, 10, 18, 0, "Knockdown")
  1518. Effects.Sphere.Create(BrickColor.new("Really red"), CFrame.new(pos), 25, 25, 25, 5, 5, 5, 0.1)
  1519. Effects.Sphere.Create(BrickColor.new("Really red"), CFrame.new(pos), 10, 10, 10, 15, 15, 15, 0.08)
  1520. CFuncs.Sound.Create("rbxassetid://300916057", ref, 1, 1.5)
  1521. game:GetService("Debris"):AddItem(ref, 1)
  1522. end
  1523. if Thing[3] <= 0 then
  1524. table.remove(Effects, e)
  1525. end
  1526. end
  1527. do
  1528. do
  1529. if Thing[2] == "showDamage" then
  1530. if Thing[6] < Thing[5] then
  1531. Thing[6] = Thing[6] + 1
  1532. else
  1533. if Thing[6] < Thing[7] then
  1534. Thing[4].position = Thing[4].position + Vector3.new(0, -0.2, 0)
  1535. Thing[6] = Thing[6] + 1
  1536. else
  1537. if Thing[6] < Thing[8] then
  1538. Thing[6] = Thing[6] + 1
  1539. else
  1540. if Thing[6] < Thing[9] then
  1541. Thing[6] = Thing[6] + 1
  1542. Thing[4].position = Thing[4].position + Vector3.new(0, 0.2, 0)
  1543. Thing[3].TextStrokeTransparency = Thing[3].TextStrokeTransparency + 0.1
  1544. Thing[3].TextTransparency = Thing[3].TextTransparency + 0.1
  1545. else
  1546. Thing[1].Parent = nil
  1547. table.remove(Effects, e)
  1548. end
  1549. end
  1550. end
  1551. end
  1552. end
  1553. if Thing[2] ~= "Shoot" and Thing[2] ~= "DecreaseStat" and Thing[2] ~= "showDamage" and Thing[2] ~= "Shoot2" then
  1554. if Thing[1].Transparency <= 1 then
  1555. if Thing[2] == "Block1" then
  1556. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1557. Mesh = Thing[7]
  1558. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1559. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1560. else
  1561. if Thing[2] == "Block2" then
  1562. Thing[1].CFrame = Thing[1].CFrame
  1563. Mesh = Thing[7]
  1564. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1565. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1566. else
  1567. if Thing[2] == "Block3" then
  1568. Thing[8].C0 = CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) * Thing[9]
  1569. Mesh = Thing[7]
  1570. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1571. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1572. else
  1573. if Thing[2] == "Cylinder" then
  1574. Mesh = Thing[7]
  1575. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1576. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1577. else
  1578. if Thing[2] == "Cylinder2" then
  1579. Thing[1].CFrame = Thing[1].CFrame * CFrame.new(0, Thing[8], 0)
  1580. Mesh = Thing[7]
  1581. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1582. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1583. else
  1584. if Thing[2] == "Blood" then
  1585. Mesh = Thing[7]
  1586. Thing[1].CFrame = Thing[1].CFrame * CFrame.new(0, 0.5, 0)
  1587. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1588. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1589. else
  1590. if Thing[2] == "Elec" then
  1591. Mesh = Thing[10]
  1592. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9])
  1593. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1594. else
  1595. if Thing[2] == "Disappear" then
  1596. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1597. end
  1598. end
  1599. end
  1600. end
  1601. end
  1602. end
  1603. end
  1604. end
  1605. else
  1606. Part.Parent = nil
  1607. table.remove(Effects, e)
  1608. end
  1609. end
  1610. end
  1611. end
  1612. end
  1613. end
  1614. end
  1615. end
  1616. end
  1617. end
  1618. --end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement