Dark_EccentricYT

Untitled

May 13th, 2017
1,348
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 158.62 KB | None | 0 0
  1. Player = game:GetService("Players").LocalPlayer
  2. Character = Player.Character
  3. PlayerGui = Player.PlayerGui
  4. Backpack = Player.Backpack
  5. Torso = Character.Torso
  6. Head = Character.Head
  7. Humanoid = Character.Humanoid
  8. LeftArm = Character["Left Arm"]
  9. LeftLeg = Character["Left Leg"]
  10. RightArm = Character["Right Arm"]
  11. RightLeg = Character["Right Leg"]
  12. LS = Torso["Left Shoulder"]
  13. LH = Torso["Left Hip"]
  14. RS = Torso["Right Shoulder"]
  15. RH = Torso["Right Hip"]
  16. Neck = Torso.Neck
  17. it = Instance.new
  18. vt = Vector3.new
  19. cf = CFrame.new
  20. euler = CFrame.fromEulerAnglesXYZ
  21. angles = CFrame.Angles
  22. necko = cf(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  23. necko2 = cf(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  24. LHC0 = cf(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  25. LHC1 = cf(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  26. RHC0 = cf(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  27. RHC1 = cf(0.5, 1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  28. RootPart = Character.HumanoidRootPart
  29. RootJoint = RootPart.RootJoint
  30. RootCF = euler(-1.57, 0, 3.14)
  31. attack = false
  32. attackdebounce = false
  33. MMouse = nil
  34. combo = 0
  35. local hitfloor, posfloor = nil, nil
  36. local idle = 0
  37. local Anim = "Idle"
  38. local Effects = {}
  39. local Weapon = {}
  40. local Welds = {}
  41. local decreaseatk = 0
  42. local decreasedef = 0
  43. local decreasemvmt = 0
  44. local Ammo = 16
  45. local accuracy = 0
  46. local gun = false
  47. local shoot = false
  48. local gunleft = true
  49. local gunright = true
  50. local shootgun = 1
  51. local XVbullet = false
  52. local obliterate = false
  53. local overcharge = false
  54. local move1 = "(Z)\nReload"
  55. local move2 = "(X)\nDeadly Impact"
  56. local move3 = "(C)\nBlast Jump"
  57. local move4 = "(V)\nObliterate"
  58. local cooldowns = {}
  59. local cooldown1 = 0
  60. table.insert(cooldowns, cooldown1)
  61. local cooldown2 = 0
  62. table.insert(cooldowns, cooldown2)
  63. local cooldown3 = 0
  64. table.insert(cooldowns, cooldown3)
  65. local cooldown4 = 0
  66. table.insert(cooldowns, cooldown4)
  67. local cooldownsadd = {}
  68. local cooldownadd1 = 0.15
  69. table.insert(cooldownsadd, cooldownadd1)
  70. local cooldownadd2 = 0.42
  71. table.insert(cooldownsadd, cooldownadd2)
  72. local cooldownadd3 = 0.5
  73. table.insert(cooldownsadd, cooldownadd3)
  74. local cooldownadd4 = 0.25
  75. table.insert(cooldownsadd, cooldownadd4)
  76. local cooldownmax = 100
  77. player = nil
  78. RSH = nil
  79. LSH = nil
  80. RW = Instance.new("Motor")
  81. LW = Instance.new("Motor")
  82. RW.Name = "Right Shoulder"
  83. LW.Name = "Left Shoulder"
  84. LH = Torso["Left Hip"]
  85. RH = Torso["Right Hip"]
  86. TorsoColor = Torso.BrickColor
  87. TorsoRed = TorsoColor.Color.r
  88. TorsoGreen = TorsoColor.Color.g
  89. TorsoBlue = TorsoColor.Color.b
  90. NewCol = Color3.new(1, TorsoGreen, TorsoBlue)
  91. if Player:findFirstChild("Color1") ~= nil then
  92. NewCol = Player.Color1.Value
  93. end
  94. local mdec = Instance.new("NumberValue", Decrease)
  95. mdec.Name = "DecreaseDef"
  96. mdec.Value = 0.4
  97. local mdec2 = Instance.new("NumberValue", Decrease)
  98. mdec2.Name = "DecreaseMvmt"
  99. mdec2.Value = 0.1
  100. local Animate = Humanoid.Animator
  101. local canjump = true
  102. removeControl = function()
  103. canjump = false
  104. end
  105. resumeControl = function()
  106. canjump = true
  107. end
  108. Player.Character.Humanoid.Changed:connect(function()
  109. if canjump == false then
  110. Player.Character.Humanoid.Jump = false
  111. end
  112. end)
  113.  
  114. ArtificialHB = Instance.new("BindableEvent", script)
  115. ArtificialHB.Name = "Heartbeat"
  116.  
  117. script:WaitForChild("Heartbeat")
  118.  
  119. frame = 1 / 40
  120. tf = 0
  121. allowframeloss = true
  122. tossremainder = false
  123. lastframe = tick()
  124. script.Heartbeat:Fire()
  125.  
  126. game:GetService("RunService").Heartbeat:connect(function(s, p)
  127. tf = tf + s
  128. if tf >= frame then
  129. if allowframeloss then
  130. script.Heartbeat:Fire()
  131. lastframe = tick()
  132. else
  133. for i = 1, math.floor(tf / frame) do
  134. script.Heartbeat:Fire()
  135. end
  136. lastframe = tick()
  137. end
  138. if tossremainder then
  139. tf = 0
  140. else
  141. tf = tf - frame * math.floor(tf / frame)
  142. end
  143. end
  144. end)
  145.  
  146. function swait(num)
  147. if num == 0 or num == nil then
  148. ArtificialHB.Event:wait()
  149. else
  150. for i = 0, num do
  151. ArtificialHB.Event:wait()
  152. end
  153. end
  154. end
  155.  
  156. if Character:findFirstChild("Joy", true) ~= nil then
  157. Character:findFirstChild("Joy", true).Parent = nil
  158. end
  159. if Player.PlayerGui:findFirstChild("WeaponGUI", true) ~= nil then
  160. Player.PlayerGui:findFirstChild("WeaponGUI", true).Parent = nil
  161. end
  162. if Character:findFirstChild("Stats", true) ~= nil then
  163. Character:findFirstChild("Stats", true).Parent = nil
  164. end
  165. local Stats = Instance.new("BoolValue")
  166. Stats.Name = "Stats"
  167. Stats.Parent = Character
  168. local Atk = Instance.new("NumberValue")
  169. Atk.Name = "Damage"
  170. Atk.Parent = Stats
  171. Atk.Value = 1
  172. local Def = Instance.new("NumberValue")
  173. Def.Name = "Defense"
  174. Def.Parent = Stats
  175. Def.Value = 1
  176. local Mvmt = Instance.new("NumberValue")
  177. Mvmt.Name = "Movement"
  178. Mvmt.Parent = Stats
  179. Mvmt.Value = 1
  180. local Block = Instance.new("BoolValue")
  181. Block.Name = "Block"
  182. Block.Parent = Stats
  183. Block.Value = false
  184. local Stun = Instance.new("NumberValue")
  185. Stun.Name = "Stun"
  186. Stun.Parent = Stats
  187. Stun.Value = 0
  188. local StunT = Instance.new("NumberValue")
  189. StunT.Name = "StunThreshold"
  190. StunT.Parent = Stats
  191. StunT.Value = 100
  192. local Rooted = Instance.new("BoolValue")
  193. Rooted.Name = "Rooted"
  194. Rooted.Parent = Stats
  195. Rooted.Value = false
  196. local Stunned = Instance.new("BoolValue")
  197. Stunned.Name = "Stunned"
  198. Stunned.Parent = Stats
  199. Stunned.Value = false
  200. local Stagger = Instance.new("BoolValue")
  201. Stagger.Name = "Stagger"
  202. Stagger.Parent = Stats
  203. Stagger.Value = false
  204. local StaggerHit = Instance.new("BoolValue")
  205. StaggerHit.Name = "StaggerHit"
  206. StaggerHit.Parent = Stats
  207. StaggerHit.Value = false
  208. local RecentEnemy = Instance.new("ObjectValue")
  209. RecentEnemy.Name = "RecentEnemy"
  210. RecentEnemy.Parent = Stats
  211. RecentEnemy.Value = nil
  212. local Decrease = Instance.new("BoolValue")
  213. Decrease.Name = "Decrease"
  214. Decrease.Parent = Stats
  215. Decrease.Value = false
  216. local mana = Instance.new("NumberValue")
  217. mana.Name = "Mana"
  218. mana.Parent = Stats
  219. mana.Value = 0
  220. local passive = Instance.new("NumberValue", Decrease)
  221. passive.Name = "DecreaseAtk"
  222. passive.Value = 0
  223. NoOutline = function(Part)
  224. Part.TopSurface = 10
  225. end
  226. part = function(formfactor, parent, reflectance, transparency, brickcolor, name, size)
  227. local fp = it("Part")
  228. fp.formFactor = formfactor
  229. fp.Parent = parent
  230. fp.Reflectance = reflectance
  231. fp.Transparency = transparency
  232. fp.CanCollide = false
  233. fp.Locked = true
  234. fp.BrickColor = brickcolor
  235. fp.Name = name
  236. fp.Size = size
  237. fp.Position = Torso.Position
  238. NoOutline(fp)
  239. fp.Material = "SmoothPlastic"
  240. fp:BreakJoints()
  241. return fp
  242. end
  243. mesh = function(Mesh, part, meshtype, meshid, offset, scale)
  244. local mesh = it(Mesh)
  245. mesh.Parent = part
  246. if Mesh == "SpecialMesh" then
  247. mesh.MeshType = meshtype
  248. if meshid ~= "nil" then
  249. mesh.MeshId = "http://www.roblox.com/asset/?id=" .. meshid
  250. end
  251. end
  252. mesh.Offset = offset
  253. mesh.Scale = scale
  254. return mesh
  255. end
  256. weld = function(parent, part0, part1, c0)
  257. local weld = it("Motor")
  258. weld.Parent = parent
  259. weld.Part0 = part0
  260. weld.Part1 = part1
  261. weld.C0 = c0
  262. return weld
  263. end
  264. gui = function(GuiType, parent, text, backtrans, backcol, pos, size)
  265. local gui = it(GuiType)
  266. gui.Parent = parent
  267. gui.Text = text
  268. gui.BackgroundTransparency = backtrans
  269. gui.BackgroundColor3 = backcol
  270. gui.SizeConstraint = "RelativeXY"
  271. gui.TextXAlignment = "Center"
  272. gui.TextYAlignment = "Center"
  273. gui.Position = pos
  274. gui.Size = size
  275. gui.Font = "SourceSans"
  276. gui.FontSize = "Size14"
  277. gui.TextWrapped = false
  278. gui.TextStrokeTransparency = 0
  279. gui.TextColor = BrickColor.new("White")
  280. return gui
  281. end
  282. local Color1 = Torso.BrickColor
  283. local fengui = it("GuiMain")
  284. fengui.Parent = Player.PlayerGui
  285. fengui.Name = "WeaponGUI"
  286. local fenframe = it("Frame")
  287. fenframe.Parent = fengui
  288. fenframe.BackgroundColor3 = Color3.new(255, 255, 255)
  289. fenframe.BackgroundTransparency = 1
  290. fenframe.BorderColor3 = Color3.new(17, 17, 17)
  291. fenframe.Size = UDim2.new(0.1, 0, 0.1, 0)
  292. fenframe.Position = UDim2.new(0.95, 0, 0.7, 0)
  293. local fenframe2 = it("Frame")
  294. fenframe2.Parent = fengui
  295. fenframe2.BackgroundColor3 = Color3.new(255, 255, 255)
  296. fenframe2.BackgroundTransparency = 1
  297. fenframe2.BorderColor3 = Color3.new(17, 17, 17)
  298. fenframe2.Size = UDim2.new(0.2, 0, 0.1, 0)
  299. fenframe2.Position = UDim2.new(0.4, 0, 0.85, 0)
  300. local fenframe3 = it("Frame")
  301. fenframe3.Parent = fengui
  302. fenframe3.BackgroundColor3 = Color3.new(255, 255, 255)
  303. fenframe3.BackgroundTransparency = 1
  304. fenframe3.BorderColor3 = Color3.new(17, 17, 17)
  305. fenframe3.Size = UDim2.new(0.2, 0, 0.2, 0)
  306. fenframe3.Position = UDim2.new(0.8, 0, 0.8, 0)
  307. fenframe3.Name = "MoveFrame"
  308. local fenframe4 = it("Frame")
  309. fenframe4.Parent = fengui
  310. fenframe4.BackgroundColor3 = Color3.new(255, 255, 255)
  311. fenframe4.BackgroundTransparency = 1
  312. fenframe4.BorderColor3 = Color3.new(17, 17, 17)
  313. fenframe4.Size = UDim2.new(0.1, 0, 0.1, 0)
  314. fenframe4.Position = UDim2.new(0, 0, 0.7, 0)
  315. local pressedf = false
  316. local fenframe5 = it("Frame")
  317. fenframe5.Parent = fengui
  318. fenframe5.BackgroundColor3 = Color3.new(0, 0, 0)
  319. fenframe5.BackgroundTransparency = 1
  320. fenframe5.BorderColor3 = Color3.new(0, 0, 0)
  321. fenframe5.Size = UDim2.new(1, 0, 1, 0)
  322. fenframe5.Position = UDim2.new(0, 0, 0, 0)
  323. fenframe5.ZIndex = 2
  324. local tellbar = gui("TextLabel", fenframe5, "-Normal combo knockback has been decreased (+)\n-Reload overcharges Trooper\'s Joys for a while, buffing Blast Jump, passive damage gain, and Obliterate no longer has wind-up time (+)\n-Normal combo damage increased (+)\n-Normal combo now ends with dual blasts, costing 2 ammo (+)\n-Changed XV Bullet ability to Blast Jump which makes Trooper jump in the air while blasting multiple explosions on the ground (+)\n-Cooldown of Deadly Impact slightly decreased (+)\n-Decreased cooldown and knockback of Obliterate but decreased damage (+/-)\n-Deadly Impact creates multiple explosions, but no longer knocks the player backwards (-)\n-Normal gunshot damage has been greatly decreased (-)\n-Passive damage increase has been decreased (-)", 1, Color3.new(0, 0, 0), UDim2.new(0.25, 0, 0.25, 0), UDim2.new(0.5, 0, 0.5, 0))
  325. tellbar.Font = "Arial"
  326. tellbar.TextScaled = true
  327. tellbar.TextTransparency = 1
  328. tellbar.TextStrokeTransparency = 1
  329. tellbar.ZIndex = 2
  330. local fnumb = 0
  331. local fenbarmana1 = gui("TextLabel", fenframe, "", 0, Color3.new(0, 0, 0), UDim2.new(0, 0, 0, 0), UDim2.new(0.4, 0, -4, 0))
  332. local fenbarmana2 = gui("TextLabel", fenframe, "", 0, BrickColor.new(NewCol).Color, UDim2.new(0, 0, 0, 0), UDim2.new(0.4, 0, 0, 0))
  333. local fenbarmana4 = gui("TextLabel", fenframe, "Mana(" .. mana.Value .. ")", 1, Color3.new(0, 0, 0), UDim2.new(0, 0, 0.2, 0), UDim2.new(0.4, 0, 0.2, 0))
  334. local fenbardamage = gui("TextLabel", fenframe2, "Damage", 0.55, Color3.new(0.6078431372549, 0, 0), UDim2.new(-0.23, 0, 0, 0), UDim2.new(0.2, 0, 1, 0))
  335. local fenbardef = gui("TextLabel", fenframe2, "Defense", 0.55, Color3.new(0, 0, 0.6078431372549), UDim2.new(-0.46, 0, 0, 0), UDim2.new(0.2, 0, 1, 0))
  336. local fenbarmove = gui("TextLabel", fenframe2, "Walkspeed", 0.55, Color3.new(0, 0.6078431372549, 0), UDim2.new(1.03, 0, 0, 0), UDim2.new(0.2, 0, 1, 0))
  337. local fenbarhp1 = gui("TextLabel", fenframe2, "", 0, Color3.new(0, 0, 0), UDim2.new(-0.46, 0, 1, 0), UDim2.new(1.92, 0, 0.4, 0))
  338. local fenbarhp2 = gui("TextLabel", fenbarhp1, "", 0, Color3.new(1, 0, 0), UDim2.new(0, 0, 0, 0), UDim2.new(0, 0, 1, 0))
  339. local fenbarhp3 = gui("TextLabel", fenbarhp1, "(100)", 1, Color3.new(0, 0, 0), UDim2.new(0, 0, 0, 0), UDim2.new(1, 0, 1, 0))
  340. local fenbarstun1 = gui("TextLabel", fenframe4, "", 0, Color3.new(0, 0, 0), UDim2.new(0.2, 0, 0, 0), UDim2.new(0.4, 0, -4, 0))
  341. local fenbarstun2 = gui("TextLabel", fenframe4, "", 0, Color3.new(0.960784, 0.803922, 0.188235), UDim2.new(0.2, 0, 0, 0), UDim2.new(0.4, 0, 0, 0))
  342. local fenbarstun3 = gui("TextLabel", fenframe4, "Stun(" .. Stun.Value .. ")", 1, Color3.new(0.960784, 0.803922, 0.188235), UDim2.new(0.2, 0, 0.2, 0), UDim2.new(0.4, 0, 0.2, 0))
  343. local fenbarmove1 = gui("TextButton", fenframe3, move1, 0.55, Color3.new(0.5, 0.5, 0.5), UDim2.new(0.1, 0, 0.1, 0), UDim2.new(0.4, 0, 0.4, 0))
  344. fenbarmove1.ZIndex = 2
  345. local fenbarmove1b = gui("TextLabel", fenbarmove1, "", 0.55, BrickColor.new(NewCol).Color, UDim2.new(0, 0, 0, 0), UDim2.new(0, 0, 1, 0))
  346. local fenbarmove2 = gui("TextButton", fenframe3, move2, 0.55, Color3.new(0.5, 0.5, 0.5), UDim2.new(0.6, 0, 0.1, 0), UDim2.new(0.4, 0, 0.4, 0))
  347. fenbarmove2.ZIndex = 2
  348. local fenbarmove2b = gui("TextLabel", fenbarmove2, "", 0.55, BrickColor.new(NewCol).Color, UDim2.new(0, 0, 0, 0), UDim2.new(0, 0, 1, 0))
  349. local fenbarmove3 = gui("TextButton", fenframe3, move3, 0.55, Color3.new(0.5, 0.5, 0.5), UDim2.new(0.1, 0, 0.6, 0), UDim2.new(0.4, 0, 0.4, 0))
  350. fenbarmove3.ZIndex = 2
  351. local fenbarmove3b = gui("TextLabel", fenbarmove3, "", 0.55, BrickColor.new(NewCol).Color, UDim2.new(0, 0, 0, 0), UDim2.new(0, 0, 1, 0))
  352. local fenbarmove4 = gui("TextButton", fenframe3, move4, 0.55, Color3.new(0.5, 0.5, 0.5), UDim2.new(0.6, 0, 0.6, 0), UDim2.new(0.4, 0, 0.4, 0))
  353. fenbarmove4.ZIndex = 2
  354. local fenbarmove4b = gui("TextLabel", fenbarmove4, "", 0.55, BrickColor.new(NewCol).Color, UDim2.new(0, 0, 0, 0), UDim2.new(0, 0, 1, 0))
  355. local fenbarammo1 = gui("TextButton", fenframe2, "Ammo(" .. Ammo .. ")", 0.55, BrickColor.new(NewCol).Color, UDim2.new(1.26, 0, 0, 0), UDim2.new(0.2, 0, 1, 0))
  356. local modelzorz = Instance.new("Model")
  357. modelzorz.Parent = Character
  358. modelzorz.Name = "Joy"
  359. rprt1 = part(3, modelzorz, 0, 0, TorsoColor, "Right Part01", vt())
  360. rprt2 = part(3, modelzorz, 0, 0, BrickColor.new("Dark stone grey"), "Right Part02", vt())
  361. rprt3 = part(3, modelzorz, 0, 0, BrickColor.new("Black"), "Right Part03", vt())
  362. rprt4 = part(3, modelzorz, 0, 0, BrickColor.new(NewCol), "Right Part04", vt())
  363. rprt4n = part(3, modelzorz, 0, 1, BrickColor.new(NewCol), "Right Part04n", vt())
  364. rprt4n.Material = "Neon"
  365. rprt5 = part(3, modelzorz, 0, 0, BrickColor.new("Dark stone grey"), "Right Part05", vt())
  366. rprt6 = part(3, modelzorz, 0, 0, BrickColor.new("Dark stone grey"), "Right Part06", vt())
  367. rprt7 = part(3, modelzorz, 0, 0, BrickColor.new("Dark stone grey"), "Right Part07", vt())
  368. rprt8 = part(3, modelzorz, 0, 0, BrickColor.new("Black"), "Right Part08", vt())
  369. rprt9 = part(3, modelzorz, 0, 0, BrickColor.new(NewCol), "Right Part09", vt())
  370. rprt9n = part(3, modelzorz, 0, 1, BrickColor.new(NewCol), "Right Part09n", vt())
  371. rprt9n.Material = "Neon"
  372. rprt10 = part(3, modelzorz, 0, 0, BrickColor.new("Dark stone grey"), "Right Part10", vt())
  373. rprt11 = part(3, modelzorz, 0, 0, BrickColor.new("Dark stone grey"), "Right Part11", vt())
  374. rprt12 = part(3, modelzorz, 0, 0, BrickColor.new("Dark stone grey"), "Right Part12", vt())
  375. rprt13 = part(3, modelzorz, 0, 0, BrickColor.new("Dark stone grey"), "Right Part13", vt())
  376. rprt14 = part(3, modelzorz, 0, 0, BrickColor.new(NewCol), "Right Part14", vt())
  377. rprt15 = part(3, modelzorz, 0, 0, BrickColor.new(NewCol), "Right Part15", vt())
  378. rprt16 = part(3, modelzorz, 0, 0, BrickColor.new(NewCol), "Right Part16", vt())
  379. rprt14n = part(3, modelzorz, 0, 1, BrickColor.new(NewCol), "Right Part14n", vt())
  380. rprt14n.Material = "Neon"
  381. rprt15n = part(3, modelzorz, 0, 1, BrickColor.new(NewCol), "Right Part15n", vt())
  382. rprt15n.Material = "Neon"
  383. rprt16n = part(3, modelzorz, 0, 1, BrickColor.new(NewCol), "Right Part16n", vt())
  384. rprt16n.Material = "Neon"
  385. rprt17 = part(3, modelzorz, 0, 0, BrickColor.new("Dark stone grey"), "Right Part17", vt())
  386. rprt18 = part(3, modelzorz, 0, 0, BrickColor.new("Dark stone grey"), "Right Part18", vt())
  387. rprt19 = part(3, modelzorz, 0, 0, BrickColor.new("Dark stone grey"), "Right Part19", vt())
  388. rprt20 = part(3, modelzorz, 0, 0, BrickColor.new("Medium stone grey"), "Right Part20", vt())
  389. rprt21 = part(3, modelzorz, 0, 0, BrickColor.new("Dark stone grey"), "Right Part21", vt())
  390. rprt22 = part(3, modelzorz, 0, 0, BrickColor.new("Really black"), "Right Part22", vt())
  391. rprt23 = part(3, modelzorz, 0, 0, BrickColor.new(NewCol), "Right Part23", vt())
  392. rprt24 = part(3, modelzorz, 0, 0, BrickColor.new(NewCol), "Right Part24", vt())
  393. rprt25 = part(3, modelzorz, 0, 0, BrickColor.new(NewCol), "Right Part25", vt())
  394. rprt23n = part(3, modelzorz, 0, 1, BrickColor.new(NewCol), "Right Part23n", vt())
  395. rprt23n.Material = "Neon"
  396. rprt24n = part(3, modelzorz, 0, 1, BrickColor.new(NewCol), "Right Part24n", vt())
  397. rprt24n.Material = "Neon"
  398. rprt25n = part(3, modelzorz, 0, 1, BrickColor.new(NewCol), "Right Part25n", vt())
  399. rprt25n.Material = "Neon"
  400. rprt26 = part(3, modelzorz, 0, 0, BrickColor.new("Dark stone grey"), "Right Part26", vt())
  401. rprt27 = part(3, modelzorz, 0, 0, BrickColor.new("Dark stone grey"), "Right Part27", vt())
  402. rprt28 = part(3, modelzorz, 0, 0, BrickColor.new("Medium stone grey"), "Right Part28", vt())
  403. rprt29 = part(3, modelzorz, 0, 0, BrickColor.new("Medium stone grey"), "Right Part29", vt())
  404. rprt30 = part(3, modelzorz, 0, 0, BrickColor.new("Medium stone grey"), "Right Part30", vt())
  405. rprt31 = part(3, modelzorz, 0, 0, BrickColor.new("Medium stone grey"), "Right Part31", vt())
  406. rprt32 = part(3, modelzorz, 0, 0, BrickColor.new("Dark stone grey"), "Right Part32", vt())
  407. rprt33 = part(3, modelzorz, 0, 0, BrickColor.new("Dark stone grey"), "Right Part33", vt())
  408. rprt34 = part(3, modelzorz, 0, 0, BrickColor.new("Dark stone grey"), "Right Part34", vt())
  409. rprt35 = part(3, modelzorz, 0, 0, BrickColor.new("Black"), "Right Part35", vt())
  410. rprt36 = part(3, modelzorz, 0, 0, BrickColor.new("Black"), "Right Part36", vt())
  411. lprt1 = part(3, modelzorz, 0, 0, TorsoColor, "Left Part01", vt())
  412. lprt2 = part(3, modelzorz, 0, 0, BrickColor.new("Dark stone grey"), "Left Part02", vt())
  413. lprt3 = part(3, modelzorz, 0, 0, BrickColor.new("Black"), "Left Part03", vt())
  414. lprt4 = part(3, modelzorz, 0, 0, BrickColor.new(NewCol), "Left Part04", vt())
  415. lprt4n = part(3, modelzorz, 0, 1, BrickColor.new(NewCol), "Left Part04n", vt())
  416. lprt4n.Material = "Neon"
  417. lprt5 = part(3, modelzorz, 0, 0, BrickColor.new("Dark stone grey"), "Left Part05", vt())
  418. lprt6 = part(3, modelzorz, 0, 0, BrickColor.new("Dark stone grey"), "Left Part06", vt())
  419. lprt7 = part(3, modelzorz, 0, 0, BrickColor.new("Dark stone grey"), "Left Part07", vt())
  420. lprt8 = part(3, modelzorz, 0, 0, BrickColor.new("Black"), "Left Part08", vt())
  421. lprt9 = part(3, modelzorz, 0, 0, BrickColor.new(NewCol), "Left Part09", vt())
  422. lprt9n = part(3, modelzorz, 0, 1, BrickColor.new(NewCol), "Left Part09n", vt())
  423. lprt9n.Material = "Neon"
  424. lprt10 = part(3, modelzorz, 0, 0, BrickColor.new("Dark stone grey"), "Left Part10", vt())
  425. lprt11 = part(3, modelzorz, 0, 0, BrickColor.new("Dark stone grey"), "Left Part11", vt())
  426. lprt12 = part(3, modelzorz, 0, 0, BrickColor.new("Dark stone grey"), "Left Part12", vt())
  427. lprt13 = part(3, modelzorz, 0, 0, BrickColor.new("Dark stone grey"), "Left Part13", vt())
  428. lprt14 = part(3, modelzorz, 0, 0, BrickColor.new(NewCol), "Left Part14", vt())
  429. lprt15 = part(3, modelzorz, 0, 0, BrickColor.new(NewCol), "Left Part15", vt())
  430. lprt16 = part(3, modelzorz, 0, 0, BrickColor.new(NewCol), "Left Part16", vt())
  431. lprt14n = part(3, modelzorz, 0, 1, BrickColor.new(NewCol), "Left Part14n", vt())
  432. lprt14n.Material = "Neon"
  433. lprt15n = part(3, modelzorz, 0, 1, BrickColor.new(NewCol), "Left Part15n", vt())
  434. lprt15n.Material = "Neon"
  435. lprt16n = part(3, modelzorz, 0, 1, BrickColor.new(NewCol), "Left Part16n", vt())
  436. lprt16n.Material = "Neon"
  437. lprt17 = part(3, modelzorz, 0, 0, BrickColor.new("Dark stone grey"), "Left Part17", vt())
  438. lprt18 = part(3, modelzorz, 0, 0, BrickColor.new("Dark stone grey"), "Left Part18", vt())
  439. lprt19 = part(3, modelzorz, 0, 0, BrickColor.new("Dark stone grey"), "Left Part19", vt())
  440. lprt20 = part(3, modelzorz, 0, 0, BrickColor.new("Medium stone grey"), "Left Part20", vt())
  441. lprt21 = part(3, modelzorz, 0, 0, BrickColor.new("Dark stone grey"), "Left Part21", vt())
  442. lprt22 = part(3, modelzorz, 0, 0, BrickColor.new("Really black"), "Left Part22", vt())
  443. lprt23 = part(3, modelzorz, 0, 0, BrickColor.new(NewCol), "Left Part23", vt())
  444. lprt24 = part(3, modelzorz, 0, 0, BrickColor.new(NewCol), "Left Part24", vt())
  445. lprt25 = part(3, modelzorz, 0, 0, BrickColor.new(NewCol), "Left Part25", vt())
  446. lprt23n = part(3, modelzorz, 0, 1, BrickColor.new(NewCol), "Left Part23n", vt())
  447. lprt23n.Material = "Neon"
  448. lprt24n = part(3, modelzorz, 0, 1, BrickColor.new(NewCol), "Left Part24n", vt())
  449. lprt24n.Material = "Neon"
  450. lprt25n = part(3, modelzorz, 0, 1, BrickColor.new(NewCol), "Left Part25n", vt())
  451. lprt25n.Material = "Neon"
  452. lprt26 = part(3, modelzorz, 0, 0, BrickColor.new("Dark stone grey"), "Left Part26", vt())
  453. lprt27 = part(3, modelzorz, 0, 0, BrickColor.new("Dark stone grey"), "Left Part27", vt())
  454. lprt28 = part(3, modelzorz, 0, 0, BrickColor.new("Medium stone grey"), "Left Part28", vt())
  455. lprt29 = part(3, modelzorz, 0, 0, BrickColor.new("Medium stone grey"), "Left Part29", vt())
  456. lprt30 = part(3, modelzorz, 0, 0, BrickColor.new("Medium stone grey"), "Left Part30", vt())
  457. lprt31 = part(3, modelzorz, 0, 0, BrickColor.new("Medium stone grey"), "Left Part31", vt())
  458. lprt32 = part(3, modelzorz, 0, 0, BrickColor.new("Dark stone grey"), "Left Part32", vt())
  459. lprt33 = part(3, modelzorz, 0, 0, BrickColor.new("Dark stone grey"), "Left Part33", vt())
  460. lprt34 = part(3, modelzorz, 0, 0, BrickColor.new("Dark stone grey"), "Left Part34", vt())
  461. lprt35 = part(3, modelzorz, 0, 0, BrickColor.new("Black"), "Left Part35", vt())
  462. lprt36 = part(3, modelzorz, 0, 0, BrickColor.new("Black"), "Left Part36", vt())
  463. rmsh1 = mesh("BlockMesh", rprt1, "", "", vt(0, 0, 0), vt(1, 1, 1))
  464. rmsh2 = mesh("BlockMesh", rprt2, "", "", vt(0, 0, 0), vt(1, 6, 1.5))
  465. rmsh3 = mesh("BlockMesh", rprt3, "", "", vt(0, 0, 0), vt(1.01, 4.51, 1.01))
  466. rmsh4 = mesh("BlockMesh", rprt4, "", "", vt(0, 0, 0), vt(1.01, 0.49, 0.99))
  467. rmsh4n = mesh("BlockMesh", rprt4n, "", "", vt(0, 0, 0), vt(1.05, 0.54, 1.04))
  468. rmsh5 = mesh("SpecialMesh", rprt5, "Wedge", "nil", vt(0, 0, 0), vt(1, 1.5, 1))
  469. rmsh6 = mesh("BlockMesh", rprt6, "", "", vt(0, 0, 0), vt(1, 6, 1))
  470. rmsh7 = mesh("SpecialMesh", rprt7, "Wedge", "nil", vt(0, 0, 0), vt(1, 1, 1))
  471. rmsh8 = mesh("BlockMesh", rprt8, "", "", vt(0, 0, 0), vt(1.01, 3, 1.01))
  472. rmsh9 = mesh("BlockMesh", rprt9, "", "", vt(0, 0, 0), vt(0.5, 6.5, 1))
  473. rmsh9n = mesh("BlockMesh", rprt9n, "", "", vt(0, 0, 0), vt(0.55, 6.55, 1.05))
  474. rmsh10 = mesh("BlockMesh", rprt10, "", "", vt(0, 0, 0), vt(0.9, 2, 1.01))
  475. rmsh11 = mesh("SpecialMesh", rprt11, "Wedge", "nil", vt(0, 0, 0), vt(1.1, 1, 1.6))
  476. rmsh12 = mesh("BlockMesh", rprt12, "", "", vt(0, 0, 0), vt(1.1, 1, 1.6))
  477. rmsh13 = mesh("SpecialMesh", rprt13, "Wedge", "nil", vt(0, 0, 0), vt(1.1, 1, 1.6))
  478. rmsh14 = mesh("BlockMesh", rprt14, "", "", vt(0, 0, 0), vt(1, 7, 1))
  479. rmsh15 = mesh("SpecialMesh", rprt15, "Wedge", "nil", vt(0, 0, 0), vt(1, 1, 1))
  480. rmsh16 = mesh("SpecialMesh", rprt16, "Wedge", "nil", vt(0, 0, 0), vt(1, 1, 1))
  481. rmsh14n = mesh("BlockMesh", rprt14n, "", "", vt(0, 0, 0), vt(1.05, 7.05, 1.05))
  482. rmsh15n = mesh("SpecialMesh", rprt15n, "Wedge", "nil", vt(0, 0, 0), vt(1.05, 1.05, 1.05))
  483. rmsh16n = mesh("SpecialMesh", rprt16n, "Wedge", "nil", vt(0, 0, 0), vt(1.05, 1.05, 1.05))
  484. rmsh17 = mesh("BlockMesh", rprt17, "", "", vt(0, 0, 0), vt(0.8, 10, 1.5))
  485. rmsh18 = mesh("BlockMesh", rprt18, "", "", vt(0, 0, 0), vt(0.8, 1, 0.5))
  486. rmsh19 = mesh("SpecialMesh", rprt19, "Wedge", "nil", vt(0, 0, 0), vt(0.8, 0.5, 0.5))
  487. rmsh20 = mesh("BlockMesh", rprt20, "", "", vt(0, 0, 0), vt(1, 10.5, 0.5))
  488. rmsh21 = mesh("BlockMesh", rprt21, "", "", vt(0, 0, 0), vt(1, 13.5, 1))
  489. rmsh22 = mesh("CylinderMesh", rprt22, "", "", vt(0, 0, 0), vt(0.8, 13.5, 0.8))
  490. rmsh23 = mesh("BlockMesh", rprt23, "", "", vt(0, 0, 0), vt(1.5, 11.5, 1))
  491. rmsh24 = mesh("SpecialMesh", rprt24, "Wedge", "nil", vt(0, 0, 0), vt(1.5, 1, 1))
  492. rmsh25 = mesh("SpecialMesh", rprt25, "Wedge", "nil", vt(0, 0, 0), vt(1.5, 0.5, 1))
  493. rmsh23n = mesh("BlockMesh", rprt23n, "", "", vt(0, 0, 0), vt(1.55, 11.55, 1.05))
  494. rmsh24n = mesh("SpecialMesh", rprt24n, "Wedge", "nil", vt(0, 0, 0), vt(1.55, 1.05, 1.05))
  495. rmsh25n = mesh("SpecialMesh", rprt25n, "Wedge", "nil", vt(0, 0, 0), vt(1.55, 0.55, 1.05))
  496. rmsh26 = mesh("BlockMesh", rprt26, "", "", vt(0, 0, 0), vt(1.5, 6, 1))
  497. rmsh27 = mesh("SpecialMesh", rprt27, "Wedge", "nil", vt(0, 0, 0), vt(1.5, 1, 1))
  498. rmsh28 = mesh("BlockMesh", rprt28, "", "", vt(0, 0, 0), vt(2, 1, 1.5))
  499. rmsh29 = mesh("SpecialMesh", rprt29, "Wedge", "nil", vt(0, 0, 0), vt(2, 2, 1.5))
  500. rmsh30 = mesh("BlockMesh", rprt30, "", "", vt(0, 0, 0), vt(2, 2, 0.75))
  501. rmsh31 = mesh("BlockMesh", rprt31, "", "", vt(0, 0, 0), vt(2, 1, 1.5))
  502. rmsh32 = mesh("BlockMesh", rprt32, "", "", vt(0, 0, 0), vt(2.01, 1.5, 1))
  503. rmsh33 = mesh("SpecialMesh", rprt33, "Wedge", "nil", vt(0, 0, 0), vt(2.01, 1, 1))
  504. rmsh34 = mesh("SpecialMesh", rprt34, "Wedge", "nil", vt(0, 0, 0), vt(2.01, 1, 1))
  505. rmsh35 = mesh("BlockMesh", rprt35, "", "", vt(0, 0, 0), vt(1.49, 1, 1.99))
  506. rmsh36 = mesh("SpecialMesh", rprt36, "Wedge", "nil", vt(0, 0, 0), vt(1.49, 2, 1.99))
  507. lmsh1 = mesh("BlockMesh", lprt1, "", "", vt(0, 0, 0), vt(1, 1, 1))
  508. lmsh2 = mesh("BlockMesh", lprt2, "", "", vt(0, 0, 0), vt(1, 6, 1.5))
  509. lmsh3 = mesh("BlockMesh", lprt3, "", "", vt(0, 0, 0), vt(1.01, 4.51, 1.01))
  510. lmsh4 = mesh("BlockMesh", lprt4, "", "", vt(0, 0, 0), vt(1.01, 0.49, 0.99))
  511. lmsh4n = mesh("BlockMesh", lprt4n, "", "", vt(0, 0, 0), vt(1.06, 0.54, 1.04))
  512. lmsh5 = mesh("SpecialMesh", lprt5, "Wedge", "nil", vt(0, 0, 0), vt(1, 1.5, 1))
  513. lmsh6 = mesh("BlockMesh", lprt6, "", "", vt(0, 0, 0), vt(1, 6, 1))
  514. lmsh7 = mesh("SpecialMesh", lprt7, "Wedge", "nil", vt(0, 0, 0), vt(1, 1, 1))
  515. lmsh8 = mesh("BlockMesh", lprt8, "", "", vt(0, 0, 0), vt(1.01, 3, 1.01))
  516. lmsh9 = mesh("BlockMesh", lprt9, "", "", vt(0, 0, 0), vt(0.5, 6.5, 1))
  517. lmsh9n = mesh("BlockMesh", lprt9n, "", "", vt(0, 0, 0), vt(0.55, 6.55, 1.05))
  518. lmsh10 = mesh("BlockMesh", lprt10, "", "", vt(0, 0, 0), vt(0.9, 2, 1.01))
  519. lmsh11 = mesh("SpecialMesh", lprt11, "Wedge", "nil", vt(0, 0, 0), vt(1.1, 1, 1.6))
  520. lmsh12 = mesh("BlockMesh", lprt12, "", "", vt(0, 0, 0), vt(1.1, 1, 1.6))
  521. lmsh13 = mesh("SpecialMesh", lprt13, "Wedge", "nil", vt(0, 0, 0), vt(1.1, 1, 1.6))
  522. lmsh14 = mesh("BlockMesh", lprt14, "", "", vt(0, 0, 0), vt(1, 7, 1))
  523. lmsh15 = mesh("SpecialMesh", lprt15, "Wedge", "nil", vt(0, 0, 0), vt(1, 1, 1))
  524. lmsh16 = mesh("SpecialMesh", lprt16, "Wedge", "nil", vt(0, 0, 0), vt(1, 1, 1))
  525. lmsh14n = mesh("BlockMesh", lprt14n, "", "", vt(0, 0, 0), vt(1.05, 7.05, 1.05))
  526. lmsh15n = mesh("SpecialMesh", lprt15n, "Wedge", "nil", vt(0, 0, 0), vt(1.05, 1.05, 1.05))
  527. lmsh16n = mesh("SpecialMesh", lprt16n, "Wedge", "nil", vt(0, 0, 0), vt(1.05, 1.05, 1.05))
  528. lmsh17 = mesh("BlockMesh", lprt17, "", "", vt(0, 0, 0), vt(0.8, 10, 1.5))
  529. lmsh18 = mesh("BlockMesh", lprt18, "", "", vt(0, 0, 0), vt(0.8, 1, 0.5))
  530. lmsh19 = mesh("SpecialMesh", lprt19, "Wedge", "nil", vt(0, 0, 0), vt(0.8, 0.5, 0.5))
  531. lmsh20 = mesh("BlockMesh", lprt20, "", "", vt(0, 0, 0), vt(1, 10.5, 0.5))
  532. lmsh21 = mesh("BlockMesh", lprt21, "", "", vt(0, 0, 0), vt(1, 13.5, 1))
  533. lmsh22 = mesh("CylinderMesh", lprt22, "", "", vt(0, 0, 0), vt(0.8, 13.5, 0.8))
  534. lmsh23 = mesh("BlockMesh", lprt23, "", "", vt(0, 0, 0), vt(1.5, 11.5, 1))
  535. lmsh24 = mesh("SpecialMesh", lprt24, "Wedge", "nil", vt(0, 0, 0), vt(1.5, 1, 1))
  536. lmsh25 = mesh("SpecialMesh", lprt25, "Wedge", "nil", vt(0, 0, 0), vt(1.5, 0.5, 1))
  537. lmsh23n = mesh("BlockMesh", lprt23n, "", "", vt(0, 0, 0), vt(1.55, 11.55, 1.05))
  538. lmsh24n = mesh("SpecialMesh", lprt24n, "Wedge", "nil", vt(0, 0, 0), vt(1.55, 1.05, 1.05))
  539. lmsh25n = mesh("SpecialMesh", lprt25n, "Wedge", "nil", vt(0, 0, 0), vt(1.55, 0.55, 1.05))
  540. lmsh26 = mesh("BlockMesh", lprt26, "", "", vt(0, 0, 0), vt(1.5, 6, 1))
  541. lmsh27 = mesh("SpecialMesh", lprt27, "Wedge", "nil", vt(0, 0, 0), vt(1.5, 1, 1))
  542. lmsh28 = mesh("BlockMesh", lprt28, "", "", vt(0, 0, 0), vt(2, 1, 1.5))
  543. lmsh29 = mesh("SpecialMesh", lprt29, "Wedge", "nil", vt(0, 0, 0), vt(2, 2, 1.5))
  544. lmsh30 = mesh("BlockMesh", lprt30, "", "", vt(0, 0, 0), vt(2, 2, 0.75))
  545. lmsh31 = mesh("BlockMesh", lprt31, "", "", vt(0, 0, 0), vt(2, 1, 1.5))
  546. lmsh32 = mesh("BlockMesh", lprt32, "", "", vt(0, 0, 0), vt(2.01, 1.5, 1))
  547. lmsh33 = mesh("SpecialMesh", lprt33, "Wedge", "nil", vt(0, 0, 0), vt(2.01, 1, 1))
  548. lmsh34 = mesh("SpecialMesh", lprt34, "Wedge", "nil", vt(0, 0, 0), vt(2.01, 1, 1))
  549. lmsh35 = mesh("BlockMesh", lprt35, "", "", vt(0, 0, 0), vt(1.49, 1, 1.99))
  550. lmsh36 = mesh("SpecialMesh", lprt36, "Wedge", "nil", vt(0, 0, 0), vt(1.49, 2, 1.99))
  551. rwld1 = weld(RightArm, rprt1, LeftLeg, euler(2.2, 0.5, 0) * cf(0.5, -1.5, 0.5))
  552. rwld2 = weld(rprt1, rprt2, rprt1, euler(0.5, 0, 0) * cf(0, 0, 0))
  553. rwld3 = weld(rprt1, rprt3, rprt2, euler(0, 0, 0) * cf(0, -0.15, 0.05))
  554. rwld4 = weld(rprt1, rprt4, rprt2, euler(0, 0, 0) * cf(0, 0.55, -0.05))
  555. rwld4n = weld(rprt1, rprt4n, rprt4, euler(0, 0, 0) * cf(0, 0, 0))
  556. rwld5 = weld(rprt1, rprt5, rprt2, euler(0, 0, 0) * cf(0, 0.45, 0.25))
  557. rwld6 = weld(rprt1, rprt6, rprt2, cf(0, -1, -0.3) * euler(1.07, 0, 0))
  558. rwld7 = weld(rprt1, rprt7, rprt6, euler(0, 0, 3.14) * cf(0, 0.7, 0))
  559. rwld8 = weld(rprt1, rprt8, rprt6, euler(0, 0, 0) * cf(0, -0.4, 0))
  560. rwld9 = weld(rprt1, rprt9, rprt6, euler(0, 0, 0) * cf(0, -0.05, 0.1))
  561. rwld9n = weld(rprt1, rprt9n, rprt9, euler(0, 0, 0) * cf(0, 0, 0))
  562. rwld10 = weld(rprt1, rprt10, rprt6, euler(0, 0, 0) * cf(0, 0.1, 0.1))
  563. rwld11 = weld(rprt1, rprt11, rprt6, euler(3.14, 0, 0) * cf(0, -0.6, 0.05))
  564. rwld12 = weld(rprt1, rprt12, rprt11, euler(0, 0, 0) * cf(0, 0.2, 0))
  565. rwld13 = weld(rprt1, rprt13, rprt12, euler(3.14, 0, 0) * cf(0, 0.2, 0))
  566. rwld14 = weld(rprt1, rprt14, rprt6, euler(0, 0, 0) * cf(0, -0.4, -0.2))
  567. rwld15 = weld(rprt1, rprt15, rprt14, euler(0, 0, 0) * cf(0, -0.8, 0))
  568. rwld16 = weld(rprt1, rprt16, rprt14, euler(3.14, 0, 0) * cf(0, 0.8, 0))
  569. rwld14n = weld(rprt1, rprt14n, rprt14, euler(0, 0, 0) * cf(0, 0, 0))
  570. rwld15n = weld(rprt1, rprt15n, rprt15, euler(0, 0, 0) * cf(0, -0.005, 0))
  571. rwld16n = weld(rprt1, rprt16n, rprt16, euler(0, 0, 0) * cf(0, -0.005, 0))
  572. rwld17 = weld(rprt1, rprt17, rprt14, euler(0, 0, 0) * cf(0, 0.3, -0.05))
  573. rwld18 = weld(rprt1, rprt18, rprt14, euler(0, 0, 0) * cf(0, -0.8, -0.15))
  574. rwld19 = weld(rprt1, rprt19, rprt18, euler(0, 0, 0) * cf(0, -0.15, 0))
  575. rwld20 = weld(rprt1, rprt20, rprt17, euler(0, 0, 0) * cf(0, -0.05, -0.2))
  576. rwld21 = weld(rprt1, rprt21, rprt20, euler(0, 0, 0) * cf(0, -0.2, -0.15))
  577. rwld22 = weld(rprt1, rprt22, rprt21, euler(0, 0, 0) * cf(0, -0.01, 0))
  578. rwld23 = weld(rprt1, rprt23, rprt21, euler(0, 0, 0) * cf(0, 0.25, 0.1))
  579. rwld24 = weld(rprt1, rprt24, rprt23, euler(0, 3.14, 0) * cf(0, -1.25, 0))
  580. rwld25 = weld(rprt1, rprt25, rprt23, euler(3.14, 0, 0) * cf(0, 1.2, 0))
  581. rwld23n = weld(rprt1, rprt23n, rprt23, euler(0, 0, 0) * cf(0, 0, 0))
  582. rwld24n = weld(rprt1, rprt24n, rprt24, euler(0, 0, 0) * cf(0, -0.005, 0))
  583. rwld25n = weld(rprt1, rprt25n, rprt25, euler(0, 0, 0) * cf(0, -0.005, 0))
  584. rwld26 = weld(rprt1, rprt26, rprt23, euler(0, 0, 0) * cf(0, -0.55, -0.2))
  585. rwld27 = weld(rprt1, rprt27, rprt26, euler(0, 0, 0) * cf(0, -0.7, 0))
  586. rwld28 = weld(rprt1, rprt28, rprt26, euler(0, 0, 0) * cf(0, 0.6, 0.049))
  587. rwld29 = weld(rprt1, rprt29, rprt28, euler(0, 0, 0) * cf(0, -0.3, 0))
  588. rwld30 = weld(rprt1, rprt30, rprt28, euler(0, 0, 0) * cf(0, 0.3, 0.075))
  589. rwld31 = weld(rprt1, rprt31, rprt28, euler(0, 0, 0) * cf(0, 0.6, 0))
  590. rwld32 = weld(rprt1, rprt32, rprt31, euler(0, 0, 0) * cf(0, 0.25, -0.06))
  591. rwld33 = weld(rprt1, rprt33, rprt32, euler(0, 0, 0) * cf(0, -0.25, 0))
  592. rwld34 = weld(rprt1, rprt34, rprt32, euler(3.14, 0, 0) * cf(0, 0.25, 0))
  593. rwld35 = weld(rprt1, rprt35, rprt26, euler(0, 0, 0) * cf(0, -0.7, 0.1))
  594. rwld36 = weld(rprt1, rprt36, rprt26, euler(0, 0, 0) * cf(0, -1, 0.1))
  595. lwld1 = weld(lprt1, lprt1, RightLeg, euler(2.2, -0.5, 0) * cf(-0.5, -1.5, 0.5))
  596. lwld2 = weld(rprt1, lprt2, lprt1, euler(0.5, 0, 0) * cf(0, 0, 0))
  597. lwld3 = weld(rprt1, lprt3, lprt2, euler(0, 0, 0) * cf(0, -0.15, 0.05))
  598. lwld4 = weld(rprt1, lprt4, lprt2, euler(0, 0, 0) * cf(0, 0.55, -0.05))
  599. lwld4n = weld(rprt1, lprt4n, lprt4, euler(0, 0, 0) * cf(0, 0, 0))
  600. lwld5 = weld(rprt1, lprt5, lprt2, euler(0, 0, 0) * cf(0, 0.45, 0.25))
  601. lwld6 = weld(rprt1, lprt6, lprt2, cf(0, -1, -0.3) * euler(1.07, 0, 0))
  602. lwld7 = weld(rprt1, lprt7, lprt6, euler(0, 0, 3.14) * cf(0, 0.7, 0))
  603. lwld8 = weld(rprt1, lprt8, lprt6, euler(0, 0, 0) * cf(0, -0.4, 0))
  604. lwld9 = weld(rprt1, lprt9, lprt6, euler(0, 0, 0) * cf(0, -0.05, 0.1))
  605. lwld9n = weld(rprt1, lprt9n, lprt9, euler(0, 0, 0) * cf(0, 0, 0))
  606. lwld10 = weld(rprt1, lprt10, lprt6, euler(0, 0, 0) * cf(0, 0.1, 0.1))
  607. lwld11 = weld(rprt1, lprt11, lprt6, euler(3.14, 0, 0) * cf(0, -0.6, 0.05))
  608. lwld12 = weld(rprt1, lprt12, lprt11, euler(0, 0, 0) * cf(0, 0.2, 0))
  609. lwld13 = weld(rprt1, lprt13, lprt12, euler(3.14, 0, 0) * cf(0, 0.2, 0))
  610. lwld14 = weld(rprt1, lprt14, lprt6, euler(0, 0, 0) * cf(0, -0.4, -0.2))
  611. lwld15 = weld(rprt1, lprt15, lprt14, euler(0, 0, 0) * cf(0, -0.8, 0))
  612. lwld16 = weld(rprt1, lprt16, lprt14, euler(3.14, 0, 0) * cf(0, 0.8, 0))
  613. lwld14n = weld(rprt1, lprt14n, lprt14, euler(0, 0, 0) * cf(0, 0, 0))
  614. lwld15n = weld(rprt1, lprt15n, lprt15, euler(0, 0, 0) * cf(0, -0.005, 0))
  615. lwld16n = weld(rprt1, lprt16n, lprt16, euler(0, 0, 0) * cf(0, -0.005, 0))
  616. lwld17 = weld(rprt1, lprt17, lprt14, euler(0, 0, 0) * cf(0, 0.3, -0.05))
  617. lwld18 = weld(rprt1, lprt18, lprt14, euler(0, 0, 0) * cf(0, -0.8, -0.15))
  618. lwld19 = weld(rprt1, lprt19, lprt18, euler(0, 0, 0) * cf(0, -0.15, 0))
  619. lwld20 = weld(rprt1, lprt20, lprt17, euler(0, 0, 0) * cf(0, -0.05, -0.2))
  620. lwld21 = weld(rprt1, lprt21, lprt20, euler(0, 0, 0) * cf(0, -0.2, -0.15))
  621. lwld22 = weld(rprt1, lprt22, lprt21, euler(0, 0, 0) * cf(0, -0.01, 0))
  622. lwld23 = weld(rprt1, lprt23, lprt21, euler(0, 0, 0) * cf(0, 0.25, 0.1))
  623. lwld24 = weld(rprt1, lprt24, lprt23, euler(0, 3.14, 0) * cf(0, -1.25, 0))
  624. lwld25 = weld(rprt1, lprt25, lprt23, euler(3.14, 0, 0) * cf(0, 1.2, 0))
  625. lwld23n = weld(rprt1, lprt23n, lprt23, euler(0, 0, 0) * cf(0, 0, 0))
  626. lwld24n = weld(rprt1, lprt24n, lprt24, euler(0, 0, 0) * cf(0, -0.005, 0))
  627. lwld25n = weld(rprt1, lprt25n, lprt25, euler(0, 0, 0) * cf(0, -0.005, 0))
  628. lwld26 = weld(rprt1, lprt26, lprt23, euler(0, 0, 0) * cf(0, -0.55, -0.2))
  629. lwld27 = weld(rprt1, lprt27, lprt26, euler(0, 0, 0) * cf(0, -0.7, 0))
  630. lwld28 = weld(rprt1, lprt28, lprt26, euler(0, 0, 0) * cf(0, 0.6, 0.049))
  631. lwld29 = weld(rprt1, lprt29, lprt28, euler(0, 0, 0) * cf(0, -0.3, 0))
  632. lwld30 = weld(rprt1, lprt30, lprt28, euler(0, 0, 0) * cf(0, 0.3, 0.075))
  633. lwld31 = weld(rprt1, lprt31, lprt28, euler(0, 0, 0) * cf(0, 0.6, 0))
  634. lwld32 = weld(rprt1, lprt32, lprt31, euler(0, 0, 0) * cf(0, 0.25, -0.06))
  635. lwld33 = weld(rprt1, lprt33, lprt32, euler(0, 0, 0) * cf(0, -0.25, 0))
  636. lwld34 = weld(rprt1, lprt34, lprt32, euler(3.14, 0, 0) * cf(0, 0.25, 0))
  637. lwld35 = weld(rprt1, lprt35, lprt26, euler(0, 0, 0) * cf(0, -0.7, 0.1))
  638. lwld36 = weld(rprt1, lprt36, lprt26, euler(0, 0, 0) * cf(0, -1, 0.1))
  639. for _,c in pairs(modelzorz:children()) do
  640. table.insert(Weapon, c)
  641. end
  642. for _,c in pairs(rprt1:children()) do
  643. if c.className == "Motor" then
  644. table.insert(Welds, c)
  645. end
  646. end
  647. local hitbox = part(3, modelzorz, 0, 1, BrickColor.new("Black"), "Hitbox2", vt())
  648. hitbox.Anchored = false
  649. local hbwld = weld(hitbox, hitbox, RootPart, euler(0, 0, 0) * cf(0, 0, 0))
  650. local hitbox2 = part(3, nil, 0, 1, BrickColor.new("Black"), "Hitbox", vt(1, 1, 1))
  651. hitbox2.Anchored = true
  652. local hitboxCF = cf(0, 0, 0)
  653. hboxpos = Instance.new("BodyPosition", nil)
  654. hboxpos.P = 2000
  655. hboxpos.D = 100
  656. hboxpos.maxForce = Vector3.new(545000, 545000, 545000)
  657. hitboxweld = function()
  658. hbwld.Parent = modelzorz
  659. hbwld.Part0 = hitbox
  660. hbwld.Part1 = lprt17
  661. end
  662. local gunpart = rprt36
  663. local gunpart2 = rprt22
  664. Tool = Instance.new("HopperBin")
  665. Tool.Parent = Backpack
  666. Tool.Name = "Joy"
  667. script.Parent = Tool
  668. Bin = script.Parent
  669. if Bin.Name == "Trooper: Rambo Gunner" then
  670. Bin.Name = "Joy"
  671. end
  672. local bodvel = Instance.new("BodyVelocity")
  673. local bg = Instance.new("BodyGyro")
  674. so = function(id, par, vol, pit)
  675. local sou = Instance.new("Sound", par or workspace)
  676. sou.Volume = vol
  677. sou.Pitch = pit or 1
  678. sou.SoundId = "http://www.roblox.com/asset/?id=" .. id
  679. coroutine.resume(coroutine.create(function(Sound)
  680. swait()
  681. Sound:play()
  682. end), sou)
  683. game:GetService("Debris"):AddItem(sou, 6)
  684. end
  685.  
  686. function clerp(a,b,t)
  687. local qa = {QuaternionFromCFrame(a)}
  688. local qb = {QuaternionFromCFrame(b)}
  689. local ax, ay, az = a.x, a.y, a.z
  690. local bx, by, bz = b.x, b.y, b.z
  691. local _t = 1-t
  692. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  693. end
  694.  
  695. function QuaternionFromCFrame(cf)
  696. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  697. local trace = m00 + m11 + m22
  698. if trace > 0 then
  699. local s = math.sqrt(1 + trace)
  700. local recip = 0.5/s
  701. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  702. else
  703. local i = 0
  704. if m11 > m00 then
  705. i = 1
  706. end
  707. if m22 > (i == 0 and m00 or m11) then
  708. i = 2
  709. end
  710. if i == 0 then
  711. local s = math.sqrt(m00-m11-m22+1)
  712. local recip = 0.5/s
  713. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  714. elseif i == 1 then
  715. local s = math.sqrt(m11-m22-m00+1)
  716. local recip = 0.5/s
  717. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  718. elseif i == 2 then
  719. local s = math.sqrt(m22-m00-m11+1)
  720. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  721. end
  722. end
  723. end
  724.  
  725. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  726. local xs, ys, zs = x + x, y + y, z + z
  727. local wx, wy, wz = w*xs, w*ys, w*zs
  728. local xx = x*xs
  729. local xy = x*ys
  730. local xz = x*zs
  731. local yy = y*ys
  732. local yz = y*zs
  733. local zz = z*zs
  734. return CFrame.new(px, py, pz,1-(yy+zz), xy - wz, xz + wy,xy + wz, 1-(xx+zz), yz - wx, xz - wy, yz + wx, 1-(xx+yy))
  735. end
  736.  
  737. function QuaternionSlerp(a, b, t)
  738. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  739. local startInterp, finishInterp;
  740. if cosTheta >= 0.0001 then
  741. if (1 - cosTheta) > 0.0001 then
  742. local theta = math.acos(cosTheta)
  743. local invSinTheta = 1/math.sin(theta)
  744. startInterp = math.sin((1-t)*theta)*invSinTheta
  745. finishInterp = math.sin(t*theta)*invSinTheta
  746. else
  747. startInterp = 1-t
  748. finishInterp = t
  749. end
  750. else
  751. if (1+cosTheta) > 0.0001 then
  752. local theta = math.acos(-cosTheta)
  753. local invSinTheta = 1/math.sin(theta)
  754. startInterp = math.sin((t-1)*theta)*invSinTheta
  755. finishInterp = math.sin(t*theta)*invSinTheta
  756. else
  757. startInterp = t-1
  758. finishInterp = t
  759. end
  760. end
  761. return a[1]*startInterp + b[1]*finishInterp, a[2]*startInterp + b[2]*finishInterp, a[3]*startInterp + b[3]*finishInterp, a[4]*startInterp + b[4]*finishInterp
  762. end
  763.  
  764. hideanim = function()
  765. equipped = false
  766. for i = 0, 1, 0.1 do
  767. swait()
  768. GunLeft(0.7)
  769. GunRight(0.7)
  770. rwld1.C0 = clerp(rwld1.C0, euler(2.2, 0, -0.6) * cf(-0.2, 0.7, -0.6), 0.4)
  771. lwld1.C0 = clerp(lwld1.C0, euler(2.2, 0, 0.6) * cf(0.2, 0.7, -0.6), 0.4)
  772. Neck.C0 = clerp(Neck.C0, necko * euler(0.4, 0, 0), 0.4)
  773. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, 0), 0.4)
  774. RW.C0 = clerp(RW.C0, cf(0.2, 0.3, -0.5) * euler(0.2, 0, -1), 0.4)
  775. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  776. LW.C0 = clerp(LW.C0, cf(-0.2, 0.3, -0.5) * euler(0.2, 0, 1), 0.4)
  777. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  778. end
  779. lwld1.Part1 = RightLeg
  780. lwld1.C0 = euler(2.2, -0.5, 0) * cf(-0.5, -1.5, 0.5)
  781. rwld1.Part1 = LeftLeg
  782. rwld1.C0 = euler(2.2, 0.5, 0) * cf(0.5, -1.5, 0.5)
  783. for i = 0, 1, 0.3 do
  784. swait()
  785. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0), 0.4)
  786. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, 0), 0.4)
  787. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(0, 0, 0), 0.4)
  788. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  789. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(0, 0, 0), 0.4)
  790. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  791. RH.C0 = clerp(RH.C0, RHC0, 0.4)
  792. LH.C0 = clerp(LH.C0, LHC0, 0.4)
  793. end
  794. mdec2.Parent = nil
  795. mdec.Parent = Decrease
  796. end
  797. mdec.Parent = Decrease
  798. equipanim = function()
  799. equipped = true
  800. mdec.Parent = nil
  801. mdec2.Parent = Decrease
  802. for i = 0, 1, 0.2 do
  803. swait()
  804. Neck.C0 = clerp(Neck.C0, necko * euler(0.4, 0, 0), 0.4)
  805. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, 0), 0.4)
  806. RW.C0 = clerp(RW.C0, cf(0.2, 0.3, -0.5) * euler(0.2, 0, -1), 0.4)
  807. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  808. LW.C0 = clerp(LW.C0, cf(-0.2, 0.3, -0.5) * euler(0.2, 0, 1), 0.4)
  809. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  810. end
  811. rwld1.Part1 = RightArm
  812. lwld1.Part1 = LeftArm
  813. rwld1.C0 = euler(2.2, 0, -0.6) * cf(-0.2, 0.7, -0.6)
  814. lwld1.C0 = euler(2.2, 0, 0.6) * cf(0.2, 0.7, -0.6)
  815. end
  816. StaggerAnim = function()
  817. attack = true
  818. removeControl()
  819. for i = 1, math.random(2, 4) do
  820. ClangEffect(BrickColor.new("New Yeller"), cf(hitbox.Position) * euler(math.random(-50, 50) / 100, math.random(-50, 50), math.random(-50, 50) / 100), 0, 0.1, 0.2, math.random(150, 300) / 1000)
  821. end
  822. for i = 0, 1, 0.35 do
  823. swait()
  824. if Rooted.Value == false then
  825. Torso.Velocity = RootPart.CFrame.lookVector * -40
  826. end
  827. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0.5) * euler(0.1, 0, 0), 0.3)
  828. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(-0.2, 0, -0.4), 0.3)
  829. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.2, 0, 0.7) * euler(0, -0.7, 0), 0.3)
  830. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  831. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.2, 0, -0.4) * euler(0, 0.4, 0), 0.3)
  832. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  833. RH.C0 = clerp(RH.C0, cf(1, -0.8, 0) * euler(0, 1.57, 0) * euler(-0.5, 0, 0.6), 0.3)
  834. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, -1.57, 0) * euler(0, 0.2, 0.2), 0.3)
  835. if StunT.Value <= Stun.Value then
  836. break
  837. end
  838. end
  839. do
  840. for i = 0, 1, 0.2 do
  841. swait()
  842. if Rooted.Value == false then
  843. Torso.Velocity = RootPart.CFrame.lookVector * -40
  844. end
  845. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0.5) * euler(0.1, 0, 0), 0.4)
  846. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.2) * euler(-0.5, 0, -0.4), 0.4)
  847. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.2, 0, 0.7) * euler(0, -0.7, 0), 0.4)
  848. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  849. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.2, 0, -0.4) * euler(0, 0.4, 0), 0.4)
  850. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  851. RH.C0 = clerp(RH.C0, cf(1, -0.8, 0) * euler(0, 1.57, 0) * euler(-0.5, 0, 0.6), 0.4)
  852. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, -1.57, 0) * euler(0, 0.2, 0.5), 0.4)
  853. if StunT.Value <= Stun.Value then
  854. break
  855. end
  856. end
  857. do
  858. for i = 0, 1, 0.1 do
  859. swait()
  860. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0.4) * euler(0.5, 0, 0), 0.3)
  861. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -1.8) * euler(-0.2, 0, -0.4), 0.3)
  862. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.5, 0, 0.8) * euler(0, -0.4, 0), 0.3)
  863. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  864. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.5, 0, -0.6) * euler(0, 0.4, 0), 0.3)
  865. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  866. RH.C0 = clerp(RH.C0, cf(1, -0.8, 0) * euler(0, 1.57, 0) * euler(-0.5, 0, 1.2), 0.3)
  867. LH.C0 = clerp(LH.C0, cf(-1, 0, -1) * euler(0, -1.57, 0) * euler(0, 0.2, 0.2), 0.3)
  868. if StunT.Value <= Stun.Value then
  869. break
  870. end
  871. end
  872. do
  873. for i = 1, 40 do
  874. swait()
  875. if StunT.Value <= Stun.Value then
  876. break
  877. end
  878. end
  879. do
  880. resumeControl()
  881. combo = 0
  882. attack = false
  883. end
  884. end
  885. end
  886. end
  887. end
  888. StaggerHitt = function()
  889. attack = true
  890. for i = 1, math.random(2, 4) do
  891. ClangEffect(BrickColor.new("New Yeller"), cf(hitbox.Position) * euler(math.random(-50, 50) / 100, math.random(-50, 50), math.random(-50, 50) / 100), 0, 0.1, 0.2, math.random(150, 300) / 1000)
  892. end
  893. for i = 0, 1, 0.1 do
  894. swait()
  895. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0) * euler(0.1, 0, 0), 0.3)
  896. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(-0.2, 0, 0), 0.3)
  897. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.4, 0, 0.9), 0.3)
  898. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  899. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.2, 0, -0.6), 0.3)
  900. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  901. RH.C0 = clerp(RH.C0, cf(1, -0.8, 0) * euler(0, 1.57, 0) * euler(-0.2, 0, -0.4), 0.3)
  902. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, -1.57, 0) * euler(0, 0.2, 0.2), 0.3)
  903. end
  904. attack = false
  905. end
  906. StunAnim = function()
  907. attack = true
  908. removeControl()
  909. Stunned.Value = true
  910. showDamage(Character, "Stunned", "Interrupt")
  911. local dec = Instance.new("NumberValue", Decrease)
  912. dec.Name = "DecreaseMvmt"
  913. dec.Value = 10
  914. for i = 0, 1, 0.3 do
  915. swait()
  916. Neck.C0 = clerp(Neck.C0, necko * euler(-0.2, 0, -0.5), 0.2)
  917. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0.2, 0, -3), 0.2)
  918. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.2, 0, 1.3), 0.2)
  919. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  920. LW.C0 = clerp(LW.C0, cf(-1.2, 0.5, -0.4) * euler(1, 0, 0.4) * euler(0, -0.1, 0), 0.2)
  921. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  922. RH.C0 = clerp(RH.C0, cf(1, -0.6, 0) * euler(0, 1.57, 0) * euler(-0.5, 0, 0.3), 0.25)
  923. LH.C0 = clerp(LH.C0, cf(-1, -0.8, 0) * euler(0, -1.57, 0) * euler(-0.2, 0, 0), 0.25)
  924. end
  925. for i = 0, 1, 0.3 do
  926. swait()
  927. Neck.C0 = clerp(Neck.C0, necko * euler(-0.3, 0, -0.5), 0.2)
  928. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.5) * euler(0.8, 0, -3), 0.2)
  929. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.8, 0, 1.3), 0.2)
  930. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  931. LW.C0 = clerp(LW.C0, cf(-1.2, 0.5, -0.4) * euler(1.2, 0, 0.8) * euler(0, -0.1, 0), 0.2)
  932. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  933. RH.C0 = clerp(RH.C0, cf(1, -0.6, 0) * euler(0, 1.57, 0) * euler(-0.5, 0, 0.6), 0.25)
  934. LH.C0 = clerp(LH.C0, cf(-1, -0.8, 0) * euler(0, -1.57, 0) * euler(0.1, 0, 0.7), 0.25)
  935. end
  936. for i = 0, 1, 0.3 do
  937. swait()
  938. Neck.C0 = clerp(Neck.C0, necko * euler(-0.3, 0, -1), 0.2)
  939. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -2) * euler(1.57, 0, -3), 0.2)
  940. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.8, 0, 1.3), 0.2)
  941. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  942. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(1.2, 0, -0.8) * euler(0, -0.1, 0), 0.2)
  943. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  944. RH.C0 = clerp(RH.C0, cf(1, -0.6, 0) * euler(0, 1.57, 0) * euler(-0.2, 0, 0.6), 0.25)
  945. LH.C0 = clerp(LH.C0, cf(-1, -0.8, 0) * euler(0, -1.57, 0) * euler(-0.1, 0, 0.3), 0.25)
  946. end
  947. local gairost = Instance.new("BodyGyro")
  948. gairost.Parent = RootPart
  949. gairost.maxTorque = Vector3.new(400000, 0, 400000) * math.huge
  950. gairost.P = 20000
  951. gairost.cframe = cf(0, 0, 0)
  952. for i = 0, 1, 0.1 do
  953. swait()
  954. if hitfloor ~= nil then
  955. Torso.Velocity = vt(0, 0, 0)
  956. end
  957. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, -1.57), 0.3)
  958. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -2.5) * euler(1.57, 0, -3.14), 0.3)
  959. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-1.57, 0, 1.5) * euler(0.2, 3.14, 0), 0.3)
  960. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  961. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(1.5, 0, -1.57) * euler(0, 0, 0), 0.3)
  962. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  963. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0, 1.57, 0) * euler(-0.3, 0.5, 0), 0.3)
  964. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, -1.57, 0) * euler(-0.1, 0.2, 0), 0.3)
  965. end
  966. for i = 1, 70 do
  967. swait()
  968. gairost.cframe = RootPart.CFrame
  969. if hitfloor ~= nil then
  970. Torso.Velocity = vt(0, 0, 0)
  971. end
  972. end
  973. for i = 0, 1, 0.2 do
  974. swait()
  975. Stun.Value = 0
  976. gairost.cframe = RootPart.CFrame
  977. Neck.C0 = clerp(Neck.C0, necko * euler(0.2, 0, 0), 0.3)
  978. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -2) * euler(1, 0, -4), 0.3)
  979. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-1.57, 0, 1) * euler(0.2, -1, 0), 0.3)
  980. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  981. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(1.2, 0, 0.2) * euler(0, 0, 0), 0.3)
  982. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  983. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0, 1.57, 0) * euler(-0.3, 0.5, 0.4), 0.3)
  984. LH.C0 = clerp(LH.C0, cf(-1, -1, -1) * euler(0, -1.57, 0) * euler(-0.1, 0.2, 1), 0.3)
  985. end
  986. resumeControl()
  987. gairost.Parent = nil
  988. dec.Parent = nil
  989. Stun.Value = 0
  990. combo = 0
  991. Stunned.Value = false
  992. attack = false
  993. for i = 1, 10 do
  994. swait()
  995. Stun.Value = 0
  996. end
  997. end
  998. GunLeft = function(i)
  999. gunleft = true
  1000. lwld2.C0 = clerp(lwld2.C0, euler(0.5, 0, 0) * cf(0, 0, 0), i)
  1001. lwld6.C0 = clerp(lwld6.C0, cf(0, -1, -0.3) * euler(1.07, 0, 0), i)
  1002. lwld23.C0 = clerp(lwld23.C0, euler(0, 0, 0) * cf(0, 0.25, 0.1), i)
  1003. end
  1004. TonfaLeft = function(i)
  1005. gunleft = false
  1006. lwld2.C0 = clerp(lwld2.C0, euler(3.14, 0, 0) * cf(0, 0, 0), i)
  1007. lwld6.C0 = clerp(lwld6.C0, cf(0, -0.8, -0.5) * euler(1.57, 0, 0), i)
  1008. lwld23.C0 = clerp(lwld23.C0, euler(0, 0, 0) * cf(0, 0.9, 0.1), i)
  1009. end
  1010. GunRight = function(i)
  1011. gunright = true
  1012. rwld2.C0 = clerp(rwld2.C0, euler(0.5, 0, 0) * cf(0, 0, 0), i)
  1013. rwld6.C0 = clerp(rwld6.C0, cf(0, -1, -0.3) * euler(1.07, 0, 0), i)
  1014. rwld23.C0 = clerp(rwld23.C0, euler(0, 0, 0) * cf(0, 0.25, 0.1), i)
  1015. end
  1016. TonfaRight = function(i)
  1017. gunright = false
  1018. rwld2.C0 = clerp(rwld2.C0, euler(3.14, 0, 0) * cf(0, 0, 0), i)
  1019. rwld6.C0 = clerp(rwld6.C0, cf(0, -0.8, -0.5) * euler(1.57, 0, 0), i)
  1020. rwld23.C0 = clerp(rwld23.C0, euler(0, 0, 0) * cf(0, 0.9, 0.1), i)
  1021. end
  1022. attackone = function()
  1023. attack = true
  1024. for i = 0, 1, 0.15 do
  1025. swait()
  1026. TonfaLeft(0.6)
  1027. Neck.C0 = clerp(Neck.C0, necko * euler(0.2, 0, -1.2), 0.3)
  1028. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.2) * euler(0, 0, 1.2), 0.3)
  1029. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(1.6, 0, 1) * euler(0, 1.7, 0), 0.3)
  1030. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  1031. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(1.5, 0, -0.7) * euler(0, -1.57, 0), 0.3)
  1032. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  1033. RH.C0 = clerp(RH.C0, cf(0.9, -1, 0.4) * euler(0, 0.57, -0.1), 0.2)
  1034. LH.C0 = clerp(LH.C0, cf(-0.9, -0.9, -0.4) * euler(0, -2.57, 0.4), 0.2)
  1035. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  1036. do
  1037. if StaggerHit.Value == true then
  1038. break
  1039. end
  1040. end
  1041. end
  1042. end
  1043. so("199145095", lprt17, 1, 1.2)
  1044. hbwld.Parent = nil
  1045. hboxpos.Parent = hitbox
  1046. hitbox.Parent = modelzorz
  1047. hitbox.Size = vt(0.5, 3, 1)
  1048. hitboxCF = lprt17.CFrame * cf(0, -0.2, 0)
  1049. hitbox.CFrame = hitboxCF
  1050. for i = 0, 1, 0.5 do
  1051. swait()
  1052. TonfaLeft(0.5)
  1053. hitboxCF = lprt17.CFrame * cf(0, -0.2, 0)
  1054. hitbox.CFrame = hitboxCF
  1055. MagniDamage(hitbox, 3, 7, 9, math.random(5, 10), "Normal", RootPart, 0.5, 1, (math.random(3, 8)), nil, true, false)
  1056. Neck.C0 = clerp(Neck.C0, necko * euler(0.2, 0, 1.2), 0.3)
  1057. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.2) * euler(0, 0, -1.2), 0.3)
  1058. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(1.2, 0, 1) * euler(0, 1.7, 0), 0.3)
  1059. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  1060. LW.C0 = clerp(LW.C0, cf(-1, 0.5, -0.5) * euler(1.5, 0, -0.7) * euler(0, -1.57, 0), 0.3)
  1061. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  1062. RH.C0 = clerp(RH.C0, cf(0.9, -1, -0.4) * euler(0, 2.57, -0.4), 0.2)
  1063. LH.C0 = clerp(LH.C0, cf(-0.9, -0.9, 0.4) * euler(0, -0.57, 0.1), 0.2)
  1064. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  1065. do
  1066. if StaggerHit.Value == true then
  1067. break
  1068. end
  1069. end
  1070. end
  1071. end
  1072. for i = 0, 1, 0.3 do
  1073. swait()
  1074. hitboxCF = lprt17.CFrame * cf(0, -0.2, 0)
  1075. hitbox.CFrame = hitboxCF
  1076. MagniDamage(hitbox, 3, 7, 9, math.random(5, 10), "Normal", RootPart, 0.5, 1, (math.random(3, 8)), nil, true, false)
  1077. Neck.C0 = clerp(Neck.C0, necko * euler(0.2, 0, 1.2), 0.4)
  1078. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.2) * euler(0, 0, -1.2), 0.4)
  1079. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(1.2, 0, 1) * euler(0, 1.7, 0), 0.4)
  1080. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  1081. LW.C0 = clerp(LW.C0, cf(-1, 0.5, -0.5) * euler(1, 0, 0.2) * euler(0, -1.57, 0), 0.4)
  1082. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  1083. RH.C0 = clerp(RH.C0, cf(0.9, -1, -0.4) * euler(0, 2.57, -0.4), 0.3)
  1084. LH.C0 = clerp(LH.C0, cf(-0.9, -0.9, 0.4) * euler(0, -0.57, 0.1), 0.3)
  1085. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  1086. do
  1087. if StaggerHit.Value == true then
  1088. break
  1089. end
  1090. -- DECOMPILER ERROR at PC638: LeaveBlock: unexpected jumping out IF_THEN_STMT
  1091.  
  1092. -- DECOMPILER ERROR at PC638: LeaveBlock: unexpected jumping out IF_STMT
  1093.  
  1094. end
  1095. end
  1096. end
  1097. hitbox.Parent = modelzorz
  1098. hitbox.Size = vt()
  1099. hitboxweld()
  1100. hboxpos.Parent = nil
  1101. attack = false
  1102. end
  1103. attacktwo = function()
  1104. attack = true
  1105. for i = 0, 1, 0.15 do
  1106. swait()
  1107. TonfaRight(0.6)
  1108. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 1.4) * euler(0.2, 0, 0), 0.3)
  1109. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.2) * euler(0, 0, -1.4), 0.3)
  1110. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(0.7, 0, 0.5) * euler(0, 1, 0), 0.3)
  1111. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  1112. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(0.5, 0, -0.4) * euler(0, -1.57, 0), 0.3)
  1113. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  1114. RH.C0 = clerp(RH.C0, cf(0.9, -1, -0.4) * euler(0, 2.77, -0.4), 0.2)
  1115. LH.C0 = clerp(LH.C0, cf(-0.9, -0.9, 0.4) * euler(0, -0.37, 0.1), 0.2)
  1116. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  1117. do
  1118. if StaggerHit.Value == true then
  1119. break
  1120. end
  1121. -- DECOMPILER ERROR at PC186: LeaveBlock: unexpected jumping out IF_THEN_STMT
  1122.  
  1123. -- DECOMPILER ERROR at PC186: LeaveBlock: unexpected jumping out IF_STMT
  1124.  
  1125. end
  1126. end
  1127. end
  1128. so("199145204", rprt17, 1, 1.2)
  1129. hbwld.Parent = nil
  1130. hboxpos.Parent = hitbox
  1131. hitbox.Parent = modelzorz
  1132. hitbox.Size = vt(0.5, 3, 1)
  1133. hitboxCF = rprt17.CFrame * cf(0, -0.2, 0)
  1134. hitbox.CFrame = hitboxCF
  1135. for i = 0, 1, 0.5 do
  1136. swait()
  1137. TonfaRight(0.5)
  1138. hitboxCF = rprt17.CFrame * cf(0, -0.2, 0)
  1139. hitbox.CFrame = hitboxCF
  1140. MagniDamage(hitbox, 3, 7, 9, math.random(5, 10), "Normal", RootPart, 0.5, 1, (math.random(3, 8)), nil, true, false)
  1141. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, -1) * euler(-0.05, 0, 0), 0.5)
  1142. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.2) * euler(0, 0, 1), 0.5)
  1143. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(2.5, 0, 0) * euler(0, 1.4, 0) * euler(0, -0.2, 0), 0.3)
  1144. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  1145. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(0.2, 0, -0.6), 0.3)
  1146. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  1147. RH.C0 = clerp(RH.C0, cf(0.9, -1, 0.4) * euler(0, 0.67, -0.1), 0.2)
  1148. LH.C0 = clerp(LH.C0, cf(-0.9, -0.9, -0.4) * euler(0, -2.47, 0.4), 0.2)
  1149. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  1150. do
  1151. if StaggerHit.Value == true then
  1152. break
  1153. end
  1154. -- DECOMPILER ERROR at PC439: LeaveBlock: unexpected jumping out IF_THEN_STMT
  1155.  
  1156. -- DECOMPILER ERROR at PC439: LeaveBlock: unexpected jumping out IF_STMT
  1157.  
  1158. end
  1159. end
  1160. end
  1161. for i = 0, 1, 0.3 do
  1162. swait()
  1163. TonfaRight(0.4)
  1164. hitboxCF = rprt17.CFrame * cf(0, -0.2, 0)
  1165. hitbox.CFrame = hitboxCF
  1166. MagniDamage(hitbox, 3, 7, 9, math.random(5, 10), "Normal", RootPart, 0.5, 1, (math.random(3, 8)), nil, true, false)
  1167. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, -1.2) * euler(-0.1, 0, 0), 0.4)
  1168. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.2) * euler(0, 0, 1.2), 0.4)
  1169. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(2.8, 0, 0) * euler(0, 1.5, 0) * euler(0, -0.2, 0), 0.4)
  1170. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  1171. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(0.2, 0, -0.6), 0.4)
  1172. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  1173. RH.C0 = clerp(RH.C0, cf(0.9, -1, 0.4) * euler(0, 0.47, -0.1), 0.3)
  1174. LH.C0 = clerp(LH.C0, cf(-0.9, -0.9, -0.4) * euler(0, -2.67, 0.4), 0.3)
  1175. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  1176. do
  1177. if StaggerHit.Value == true then
  1178. break
  1179. end
  1180. -- DECOMPILER ERROR at PC659: LeaveBlock: unexpected jumping out IF_THEN_STMT
  1181.  
  1182. -- DECOMPILER ERROR at PC659: LeaveBlock: unexpected jumping out IF_STMT
  1183.  
  1184. end
  1185. end
  1186. end
  1187. hitbox.Parent = modelzorz
  1188. hitbox.Size = vt()
  1189. hitboxweld()
  1190. hboxpos.Parent = nil
  1191. attack = false
  1192. end
  1193. attackthree = function()
  1194. attack = true
  1195. for i = 0, 1, 0.15 do
  1196. swait()
  1197. TonfaLeft(0.6)
  1198. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0.5), 0.3)
  1199. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, -0.5), 0.3)
  1200. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(0.4, 0, 0.2), 0.3)
  1201. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  1202. LW.C0 = clerp(LW.C0, cf(-0.5, 0.5, -0.5) * euler(1.57, 0, 1) * euler(0, -1.57, 0), 0.3)
  1203. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  1204. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0, 1.57, 0) * euler(0, 0.5, -0.4), 0.3)
  1205. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, -1.57, 0) * euler(0, 0.5, 0.1), 0.3)
  1206. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  1207. do
  1208. if StaggerHit.Value == true then
  1209. break
  1210. end
  1211. -- DECOMPILER ERROR at PC180: LeaveBlock: unexpected jumping out IF_THEN_STMT
  1212.  
  1213. -- DECOMPILER ERROR at PC180: LeaveBlock: unexpected jumping out IF_STMT
  1214.  
  1215. end
  1216. end
  1217. end
  1218. so("199145095", lprt17, 1, 1)
  1219. hbwld.Parent = nil
  1220. hboxpos.Parent = hitbox
  1221. hitbox.Parent = modelzorz
  1222. hitbox.Size = vt(0.5, 3, 1)
  1223. hitboxCF = lprt17.CFrame * cf(0, -0.2, 0)
  1224. hitbox.CFrame = hitboxCF
  1225. for i = 0, 1, 0.3 do
  1226. swait()
  1227. TonfaLeft(0.6)
  1228. hitboxCF = lprt17.CFrame * cf(0, -0.2, 0)
  1229. hitbox.CFrame = hitboxCF
  1230. MagniDamage(hitbox, 3, 7, 9, math.random(5, 10), "Normal", RootPart, 0.5, 1, (math.random(3, 8)), nil, true, false)
  1231. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0), 0.3)
  1232. RootJoint.C0 = RootCF * euler(0, 0, -0.5 + 6.28 * i)
  1233. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.4, 0, 1), 0.3)
  1234. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  1235. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(1.57, 0, -1.57) * euler(0, -1.57, 0), 0.3)
  1236. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  1237. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0, 1.57, 0) * euler(0, 0, 0), 0.3)
  1238. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, -1.57, 0) * euler(0, 0, 0), 0.3)
  1239. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  1240. do
  1241. if StaggerHit.Value == true then
  1242. break
  1243. end
  1244. -- DECOMPILER ERROR at PC423: LeaveBlock: unexpected jumping out IF_THEN_STMT
  1245.  
  1246. -- DECOMPILER ERROR at PC423: LeaveBlock: unexpected jumping out IF_STMT
  1247.  
  1248. end
  1249. end
  1250. end
  1251. for i = 0, 1, 0.4 do
  1252. swait()
  1253. hitboxCF = lprt17.CFrame * cf(0, -0.2, 0)
  1254. hitbox.CFrame = hitboxCF
  1255. MagniDamage(hitbox, 3, 7, 9, math.random(5, 10), "Normal", RootPart, 0.5, 1, (math.random(3, 8)), nil, true, false)
  1256. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0), 0.3)
  1257. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, 0), 0.3)
  1258. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.4, 0, 1), 0.3)
  1259. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  1260. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(1.3, 0, -1.57) * euler(0, -1.2, 0), 0.3)
  1261. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  1262. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  1263. do
  1264. if StaggerHit.Value == true then
  1265. break
  1266. end
  1267. -- DECOMPILER ERROR at PC586: LeaveBlock: unexpected jumping out IF_THEN_STMT
  1268.  
  1269. -- DECOMPILER ERROR at PC586: LeaveBlock: unexpected jumping out IF_STMT
  1270.  
  1271. end
  1272. end
  1273. end
  1274. hitbox.Parent = modelzorz
  1275. hitbox.Size = vt()
  1276. hitboxweld()
  1277. hboxpos.Parent = nil
  1278. attack = false
  1279. end
  1280. attackfour = function()
  1281. attack = true
  1282. if Ammo >= 2 then
  1283. for i = 0, 1, 0.15 do
  1284. swait()
  1285. GunRight(0.4)
  1286. GunLeft(0.4)
  1287. rwld1.C0 = clerp(rwld1.C0, euler(1.57, 0, 0) * cf(0, 0.9, -0.2), 0.3)
  1288. lwld1.C0 = clerp(lwld1.C0, euler(1.57, 0, 0) * cf(0, 0.9, -0.2), 0.3)
  1289. Neck.C0 = clerp(Neck.C0, necko * euler(0.2, 0, 0), 0.3)
  1290. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.2) * euler(0, 0, 0), 0.4)
  1291. RW.C0 = clerp(RW.C0, cf(1, 0.5, -0.5) * euler(1, 0, -0.8) * euler(0, 1.5, 0), 0.4)
  1292. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  1293. LW.C0 = clerp(LW.C0, cf(-1, 0.5, -0.5) * euler(1.7, 0, 0.8) * euler(0, -1.5, 0), 0.4)
  1294. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  1295. RH.C0 = clerp(RH.C0, cf(1.1, -1, 0) * euler(0, 1.57, -0.1), 0.4)
  1296. LH.C0 = clerp(LH.C0, cf(-1, -0.9, 0) * euler(0, -1.57, 0.4), 0.4)
  1297. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  1298. do
  1299. if StaggerHit.Value == true then
  1300. break
  1301. end
  1302. -- DECOMPILER ERROR at PC222: LeaveBlock: unexpected jumping out IF_THEN_STMT
  1303.  
  1304. -- DECOMPILER ERROR at PC222: LeaveBlock: unexpected jumping out IF_STMT
  1305.  
  1306. end
  1307. end
  1308. end
  1309. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  1310. if StaggerHit.Value ~= true or Rooted.Value == false then
  1311. Torso.Velocity = RootPart.CFrame.lookVector * -50
  1312. end
  1313. Ammo = Ammo - 2
  1314. Explosion(true, true, 8, 10)
  1315. end
  1316. for i = 0, 1, 0.1 do
  1317. swait()
  1318. GunRight(0.4)
  1319. GunLeft(0.4)
  1320. rwld1.C0 = clerp(rwld1.C0, euler(1.57, 0, 0) * cf(0, 0.9, -0.2), 0.3)
  1321. lwld1.C0 = clerp(lwld1.C0, euler(1.57, 0, 0) * cf(0, 0.9, -0.2), 0.3)
  1322. Neck.C0 = clerp(Neck.C0, necko * euler(0.1, 0, 0), 0.3)
  1323. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.2) * euler(0, 0, 0), 0.4)
  1324. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(2, 0, 1.8) * euler(0, 2, 0), 0.4)
  1325. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  1326. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(2, 0, -1.8) * euler(0, -2, 0), 0.4)
  1327. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  1328. RH.C0 = clerp(RH.C0, cf(1.1, -1, 0) * euler(0, 1.57, -0.1), 0.4)
  1329. LH.C0 = clerp(LH.C0, cf(-1, -0.9, 0) * euler(0, -1.57, 0.4), 0.4)
  1330. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  1331. do
  1332. if StaggerHit.Value == true then
  1333. break
  1334. end
  1335. -- DECOMPILER ERROR at PC474: LeaveBlock: unexpected jumping out IF_THEN_STMT
  1336.  
  1337. -- DECOMPILER ERROR at PC474: LeaveBlock: unexpected jumping out IF_STMT
  1338.  
  1339. end
  1340. end
  1341. end
  1342. else
  1343. for i = 0, 1, 0.15 do
  1344. swait()
  1345. TonfaLeft(0.6)
  1346. TonfaRight(0.6)
  1347. rwld1.C0 = clerp(rwld1.C0, euler(1.57, 0, 0) * cf(0, 0.9, -0.2), 0.3)
  1348. lwld1.C0 = clerp(lwld1.C0, euler(1.57, 0, 0) * cf(0, 0.9, -0.2), 0.3)
  1349. Neck.C0 = clerp(Neck.C0, necko * euler(0.1, 0, 0), 0.3)
  1350. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.2) * euler(0, 0, 0), 0.4)
  1351. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(2, 0, 1.8) * euler(0, 2, 0), 0.4)
  1352. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  1353. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(2, 0, -1.8) * euler(0, -2, 0), 0.4)
  1354. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  1355. RH.C0 = clerp(RH.C0, cf(1.1, -1, 0) * euler(0, 1.57, -0.1), 0.4)
  1356. LH.C0 = clerp(LH.C0, cf(-1, -0.9, 0) * euler(0, -1.57, 0.4), 0.4)
  1357. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  1358. do
  1359. if StaggerHit.Value == true then
  1360. break
  1361. end
  1362. -- DECOMPILER ERROR at PC693: LeaveBlock: unexpected jumping out IF_THEN_STMT
  1363.  
  1364. -- DECOMPILER ERROR at PC693: LeaveBlock: unexpected jumping out IF_STMT
  1365.  
  1366. end
  1367. end
  1368. end
  1369. so("199145146", lprt17, 1, 1.1)
  1370. so("199145146", rprt17, 1, 1.1)
  1371. hbwld.Parent = nil
  1372. hboxpos.Parent = hitbox
  1373. hitbox.Parent = modelzorz
  1374. hitbox.Size = vt(0.5, 3, 1)
  1375. hitboxCF = lprt17.CFrame * cf(0, -0.2, 0)
  1376. hitbox.CFrame = hitboxCF
  1377. for i = 0, 1, 0.13 do
  1378. swait()
  1379. TonfaLeft(0.7)
  1380. TonfaRight(0.7)
  1381. hitboxCF = lprt17.CFrame * cf(0, -0.2, 0)
  1382. hitbox.CFrame = hitboxCF
  1383. MagniDamage(hitbox, 3, 7, 9, math.random(5, 10), "Normal", RootPart, 0.5, 1, (math.random(3, 8)), nil, true, false)
  1384. hitboxCF = rprt17.CFrame * cf(0, -0.2, 0)
  1385. hitbox.CFrame = hitboxCF
  1386. MagniDamage(hitbox, 3, 7, 9, math.random(5, 10), "Normal", RootPart, 0.5, 1, (math.random(3, 8)), nil, true, false)
  1387. rwld1.C0 = clerp(rwld1.C0, euler(1.57, 0, 0) * cf(0, 0.9, -0.2), 0.3)
  1388. lwld1.C0 = clerp(lwld1.C0, euler(1.57, 0, 0) * cf(0, 0.9, -0.2), 0.3)
  1389. Neck.C0 = clerp(Neck.C0, necko * euler(0.2, 0, 0), 0.3)
  1390. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.2) * euler(0, 0, 0), 0.4)
  1391. RW.C0 = clerp(RW.C0, cf(1, 0.5, -0.5) * euler(1, 0, -1.2) * euler(0, 1.5, 0), 0.4)
  1392. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  1393. LW.C0 = clerp(LW.C0, cf(-1, 0.5, -0.5) * euler(1.7, 0, 1.2) * euler(0, -1.5, 0), 0.4)
  1394. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  1395. RH.C0 = clerp(RH.C0, cf(1.1, -1, 0) * euler(0, 1.57, -0.1), 0.4)
  1396. LH.C0 = clerp(LH.C0, cf(-1, -0.9, 0) * euler(0, -1.57, 0.4), 0.4)
  1397. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  1398. do
  1399. if StaggerHit.Value == true then
  1400. break
  1401. end
  1402. -- DECOMPILER ERROR at PC1020: LeaveBlock: unexpected jumping out IF_THEN_STMT
  1403.  
  1404. -- DECOMPILER ERROR at PC1020: LeaveBlock: unexpected jumping out IF_STMT
  1405.  
  1406. end
  1407. end
  1408. end
  1409. hitbox.Parent = modelzorz
  1410. hitbox.Size = vt()
  1411. hitboxweld()
  1412. hboxpos.Parent = nil
  1413. end
  1414. attack = false
  1415. end
  1416. GunStance = function()
  1417. attack = true
  1418. gun = true
  1419. quickoblit = true
  1420. local dec = Instance.new("NumberValue", Decrease)
  1421. dec.Name = "DecreaseMvmt"
  1422. dec.Value = 0.7
  1423. --Humanoid.AutoRotate = false
  1424. for i = 0, 1, 0.15 do
  1425. swait()
  1426. if shootgun == 1 then
  1427. GunRight(1)
  1428. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, -1.57) * euler(0.1, 0, 0), 0.4)
  1429. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.2) * euler(0, 0, 1.57), 0.4)
  1430. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(1.57, 0, 1.57), 0.4)
  1431. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  1432. LW.C0 = clerp(LW.C0, cf(-1, 0.5, -0.8) * euler(1.7, 0, 1) * euler(0, -1, 0), 0.4)
  1433. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  1434. RH.C0 = clerp(RH.C0, cf(0.6, -1, 0.4) * euler(0, 1.57, 0) * euler(0.2, -1.57, 0), 0.4)
  1435. LH.C0 = clerp(LH.C0, cf(-0.6, -1, -0.4) * euler(0, -1.57, 0) * euler(-0.4, -1.57, 0), 0.4)
  1436. --[[if Stagger.Value ~= true and StunT.Value > Stun.Value then -- 3
  1437. if StaggerHit.Value == true then -- 4
  1438. break
  1439. end
  1440. end
  1441. end--]]
  1442. elseif shootgun == 2 then
  1443. GunLeft(1)
  1444. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 1.57) * euler(0.1, 0, 0), 0.4)
  1445. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.2) * euler(0, 0, -1.57), 0.4)
  1446. RW.C0 = clerp(RW.C0, cf(1, 0.5, -0.8) * euler(1.7, 0, -1) * euler(0, 1, 0), 0.4)
  1447. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  1448. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(1.57, 0, -1.57), 0.4)
  1449. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  1450. RH.C0 = clerp(RH.C0, cf(0.5, -1, -0.2) * euler(0, 1.57, 0) * euler(-0.4, 1.57, 0), 0.4)
  1451. LH.C0 = clerp(LH.C0, cf(-0.5, -1, 0.2) * euler(0, -1.57, 0) * euler(0.2, 1.57, 0), 0.4)
  1452. --[[if Stagger.Value ~= true and StunT.Value > Stun.Value then do -- 5
  1453. if StaggerHit.Value == true then
  1454. break
  1455. end
  1456. end
  1457. end--]]
  1458. end
  1459. end
  1460. gairo = Instance.new("BodyGyro")
  1461. gairo.Parent = RootPart
  1462. gairo.maxTorque = Vector3.new(400000, 400000, 400000) * math.huge
  1463. gairo.P = 20000
  1464. gairo.cframe = RootPart.CFrame
  1465. local offset = nil
  1466. while gun == true do
  1467. if gun == true then
  1468. swait()
  1469. --[[if Stagger.Value ~= true and StunT.Value > Stun.Value then
  1470. if StaggerHit.Value == true then
  1471. end
  1472. else--]]
  1473. local gunpos = vt(MMouse.Hit.p.x, Head.Position.Y, MMouse.Hit.p.z)
  1474. offset = (gunpart.Position.y - MMouse.Hit.p.y) / 60
  1475. mag = (gunpart.Position - MMouse.Hit.p).magnitude / 66
  1476. offset = offset / mag
  1477. newpos = vt(MMouse.Hit.p.x, Torso.Position.Y, MMouse.Hit.p.z)
  1478. MoveCF = cf(RootPart.Position, newpos)
  1479. gairo.cframe = cf(Head.Position, gunpos)
  1480. local mpos = Torso.CFrame * euler(0, 0, 0)
  1481. local cff = CFrame.new(mpos.p, newpos) * CFrame.Angles(math.pi / 2, 0, 0)
  1482. local x, y, z = RootPart.CFrame:toObjectSpace(cff):toEulerAnglesXYZ()
  1483. if shootgun == 1 then
  1484. Neck.C0 = necko * euler(0, 0, -1.57) * euler(offset, 0, 0)
  1485. RW.C1 = clerp(RW.C1, cf(0, 0.5, 0) * euler(offset, 0, 0), 0.3)
  1486. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(offset, 0, 0), 0.3)
  1487. RootJoint.C0 = RootJoint.C0:lerp(CFrame.Angles(x, y, z) * euler(0, 3.14, 0) * euler(0, 0, 1.57) * cf(0, 0, -0.2), 0.3)
  1488. elseif shootgun == 2 then
  1489. Neck.C0 = necko * euler(0, 0, 1.57) * euler(offset, 0, 0)
  1490. RW.C1 = clerp(RW.C1, cf(0, 0.5, 0) * euler(offset, 0, 0), 0.3)
  1491. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(offset, 0, 0), 0.3)
  1492. RootJoint.C0 = RootJoint.C0:lerp(CFrame.Angles(x, y, z) * euler(0, -3.14, 0) * euler(0, 0, -1.57) * cf(0, 0, 0.2), 0.3)
  1493. end
  1494. end
  1495. end
  1496. --[[Neck.C0 = necko * euler(0, 0, 1.57) * euler(offset, 0, 0)
  1497. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(offset, 0, 0), 0.3)
  1498. RootJoint.C0 = RootJoint.C0:lerp(CFrame.Angles(x, y, z) * euler(0, 3.14, 0) * euler(0, 0, -1.57) * cf(0, 0, -0.2), 0.3)--]]
  1499. do
  1500. dec.Parent = nil
  1501. if shoot == true then
  1502. quickoblit = false
  1503. for i = 0, 1, 0.15 do
  1504. swait()
  1505. if shootgun == 1 then
  1506. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(1.57, 0, 1.57) * euler(1, 0, 0), 0.4)
  1507. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  1508. LW.C0 = clerp(LW.C0, cf(-1, 0.5, -0.8) * euler(1.7, 0, 1) * euler(0, -1, 0), 0.4)
  1509. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  1510. elseif shootgun == 2 then
  1511. RW.C0 = clerp(RW.C0, cf(1, 0.5, -0.8) * euler(1.7, 0, -1) * euler(0, 1, 0), 0.4)
  1512. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  1513. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(1.57, 0, -1.57) * euler(1, 0, 0), 0.4)
  1514. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  1515. end
  1516. end
  1517. if shootgun == 1 then
  1518. shootgun = 2
  1519. gunpart = lprt36
  1520. gunpart2 = lprt22
  1521. else
  1522. gunpart = rprt36
  1523. gunpart2 = rprt22
  1524. shootgun = 1
  1525. end
  1526. if quickoblit == true then
  1527. local oldgunpart = gunpart
  1528. local oldgunpart2 = gunpart2
  1529. if shootgun == 1 then
  1530. gunpart = lprt36
  1531. gunpart2 = lprt22
  1532. else
  1533. gunpart = rprt36
  1534. gunpart2 = rprt22
  1535. end
  1536. for i = 0, 1, 0.2 do
  1537. swait()
  1538. if shootgun == 2 then
  1539. RootJoint.C0 = RootJoint.C0 * euler(0, 0, -1)
  1540. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(1.57, 0, 1.57) * euler(1, 0, -1.5), 0.4)
  1541. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  1542. LW.C0 = clerp(LW.C0, cf(-1, 0.5, -0.8) * euler(1.2, 0, 1) * euler(0, -1, 0), 0.4)
  1543. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  1544. else
  1545. RootJoint.C0 = RootJoint.C0 * euler(0, 0, 1)
  1546. RW.C0 = clerp(RW.C0, cf(1, 0.5, -0.8) * euler(1.2, 0, -1) * euler(0, 1, 0), 0.4)
  1547. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  1548. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(1.57, 0, -1.57) * euler(1, 0, 1.5), 0.4)
  1549. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  1550. end
  1551. end
  1552. for i = 0, 1, 0.2 do
  1553. swait()
  1554. if i < 0.6 then
  1555. so("203691885", gunpart, 1, 1)
  1556. Shootcombo2()
  1557. end
  1558. if shootgun == 2 then
  1559. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 1), 0.4)
  1560. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.2) * euler(0, 0, -1), 0.4)
  1561. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(1.57, 0, 1.57) * euler(-0.5, 0, 0) * euler(0, 1.57, 0), 0.4)
  1562. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  1563. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(0.5, 0, -1) * euler(0, 0, 0), 0.4)
  1564. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  1565. else
  1566. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, -1), 0.4)
  1567. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.2) * euler(0, 0, 1), 0.4)
  1568. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(0.5, 0, 1) * euler(0, 0, 0), 0.4)
  1569. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  1570. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(1.57, 0, -1.57) * euler(-0.5, 0, 0) * euler(0, -1.57, 0), 0.4)
  1571. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  1572. end
  1573. end
  1574. gunpart = oldgunpart
  1575. gunpart2 = oldgunpart2
  1576. end
  1577. end
  1578. do
  1579. quickoblit = false
  1580. gairo.Parent = nil
  1581. Humanoid.AutoRotate = true
  1582. shoot = false
  1583. attack = false
  1584. end
  1585. end
  1586. end
  1587. do1 = function()
  1588. if attack == true then
  1589. return
  1590. end
  1591. if Stagger.Value == true or StunT.Value <= Stun.Value or StaggerHit.Value == true then
  1592. return
  1593. end
  1594. if cooldownmax <= cooldowns[1] and mana.Value >= 30 then
  1595. attack = true
  1596. cooldowns[1] = 0
  1597. local dec = Instance.new("NumberValue", Decrease)
  1598. dec.Name = "DecreaseMvmt"
  1599. dec.Value = 10
  1600. so("203691857", rprt1, 1, 1)
  1601. so("203691857", lprt1, 1, 1)
  1602. for i = 0, 1, 0.1 do
  1603. swait()
  1604. TonfaLeft(1)
  1605. TonfaRight(1)
  1606. rwld1.C0 = clerp(rwld1.C0, euler(1.57, 0, 0) * cf(0, 0.9, -0.2), 0.3)
  1607. lwld1.C0 = clerp(lwld1.C0, euler(1.57, 0, 0) * cf(0, 0.9, -0.2), 0.3)
  1608. Neck.C0 = clerp(Neck.C0, necko * euler(0.2, 0, 0), 0.3)
  1609. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.2) * euler(0, 0, 0), 0.3)
  1610. RW.C0 = clerp(RW.C0, cf(1, 0.5, -0.5) * euler(1, 0, -1.2) * euler(0, 0, 0), 0.3)
  1611. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  1612. LW.C0 = clerp(LW.C0, cf(-1, 0.5, -0.5) * euler(1.7, 0, 1.2) * euler(0, 0, 0), 0.3)
  1613. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  1614. RH.C0 = clerp(RH.C0, cf(1.1, -1, 0) * euler(0, 1.57, -0.1), 0.4)
  1615. LH.C0 = clerp(LH.C0, cf(-1, -0.9, 0) * euler(0, -1.57, 0.4), 0.4)
  1616. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  1617. do
  1618. if StaggerHit.Value == true then
  1619. break
  1620. end
  1621. end
  1622. end
  1623. end
  1624. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  1625. if StaggerHit.Value ~= true or Ammo > 0 then
  1626. for i = 1, Ammo / 2 do
  1627. Bullet(rprt22)
  1628. Bullet(lprt22)
  1629. end
  1630. end
  1631. do
  1632. mana.Value = mana.Value - 25
  1633. Ammo = 16
  1634. so("203691878", rprt1, 1, 1)
  1635. so("203691878", lprt1, 1, 1)
  1636. so("203691326", rprt36, 1, 1.5)
  1637. so("203691326", lprt36, 1, 1.5)
  1638. overcharge = true
  1639. for i = 1, 0, -0.07 do
  1640. swait()
  1641. rprt4n.Transparency = i
  1642. rprt9n.Transparency = i
  1643. rprt14n.Transparency = i
  1644. rprt15n.Transparency = i
  1645. rprt16n.Transparency = i
  1646. rprt23n.Transparency = i
  1647. rprt24n.Transparency = i
  1648. rprt25n.Transparency = i
  1649. lprt4n.Transparency = i
  1650. lprt9n.Transparency = i
  1651. lprt14n.Transparency = i
  1652. lprt15n.Transparency = i
  1653. lprt16n.Transparency = i
  1654. lprt23n.Transparency = i
  1655. lprt24n.Transparency = i
  1656. lprt25n.Transparency = i
  1657. GunLeft(1)
  1658. GunRight(1)
  1659. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.8, 0, 1), 0.2)
  1660. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  1661. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.8, 0, -1), 0.2)
  1662. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  1663. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  1664. do
  1665. if StaggerHit.Value == true then
  1666. break
  1667. end
  1668. end
  1669. end
  1670. end
  1671. i = 0
  1672. rprt4n.Transparency = i
  1673. rprt9n.Transparency = i
  1674. rprt14n.Transparency = i
  1675. rprt15n.Transparency = i
  1676. rprt16n.Transparency = i
  1677. rprt23n.Transparency = i
  1678. rprt24n.Transparency = i
  1679. rprt25n.Transparency = i
  1680. lprt4n.Transparency = i
  1681. lprt9n.Transparency = i
  1682. lprt14n.Transparency = i
  1683. lprt15n.Transparency = i
  1684. lprt16n.Transparency = i
  1685. lprt23n.Transparency = i
  1686. lprt24n.Transparency = i
  1687. lprt25n.Transparency = i
  1688. dec.Parent = nil
  1689. attack = false
  1690. end
  1691. end
  1692. end
  1693. end
  1694. do2 = function()
  1695. if attack == true then
  1696. return
  1697. end
  1698. if Stagger.Value == true or StunT.Value <= Stun.Value or StaggerHit.Value == true then
  1699. return
  1700. end
  1701. if cooldownmax <= cooldowns[2] then
  1702. attack = true
  1703. for i = 0, 1, 0.15 do
  1704. swait()
  1705. TonfaLeft(0.6)
  1706. Neck.C0 = clerp(Neck.C0, necko * euler(0.2, 0, -1.2), 0.3)
  1707. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.2) * euler(0, 0, 1.2), 0.3)
  1708. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(1.6, 0, 1) * euler(0, 1.7, 0), 0.3)
  1709. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  1710. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(1.5, 0, -0.7) * euler(0, -1.57, 0), 0.3)
  1711. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  1712. RH.C0 = clerp(RH.C0, cf(0.9, -1, 0.4) * euler(0, 0.57, -0.1), 0.2)
  1713. LH.C0 = clerp(LH.C0, cf(-0.9, -0.9, -0.4) * euler(0, -2.57, 0.4), 0.2)
  1714. if Stagger.Value ~= true and StunT.Value > Stun.Value then do
  1715. if StaggerHit.Value == true then
  1716. break
  1717. end
  1718. end
  1719. end
  1720. end
  1721. so("199145935", lprt17, 1, 1.2)
  1722. hbwld.Parent = nil
  1723. hboxpos.Parent = hitbox
  1724. hitbox.Parent = modelzorz
  1725. hitbox.Size = vt(0.5, 3, 1)
  1726. hitboxCF = lprt17.CFrame * cf(0, -0.2, 0)
  1727. hitbox.CFrame = hitboxCF
  1728. dist = 100
  1729. if hitfloor == nil then
  1730. dist = 60
  1731. else
  1732. if hitfloor.CanCollide == false then
  1733. dist = 60
  1734. end
  1735. end
  1736. if Rooted.Value == false then
  1737. Torso.Velocity = RootPart.CFrame.lookVector * dist
  1738. end
  1739. for i = 0, 1, 0.4 do
  1740. swait()
  1741. TonfaLeft(0.5)
  1742. hitboxCF = lprt17.CFrame * cf(0, -0.2, 0)
  1743. hitbox.CFrame = hitboxCF
  1744. MagniDamage(hitbox, 3, 5, 10, math.random(10, 20), "Normal", RootPart, 0.3, 1, (math.random(3, 8)), nil, true, false, "Movement", 0.4, 200)
  1745. Neck.C0 = clerp(Neck.C0, necko * euler(0.2, 0, 1.2), 0.3)
  1746. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.2) * euler(0, 0, -1.2), 0.3)
  1747. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(1, 0, 1), 0.3)
  1748. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  1749. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(2, 0, -1) * euler(0, -0.5, 0), 0.3)
  1750. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  1751. RH.C0 = clerp(RH.C0, cf(0.9, -1, -0.4) * euler(0, 2.57, -0.4), 0.2)
  1752. LH.C0 = clerp(LH.C0, cf(-0.9, -0.9, 0.4) * euler(0, -0.57, 0.1), 0.2)
  1753. if Stagger.Value ~= true and StunT.Value > Stun.Value then do
  1754. if StaggerHit.Value == true then
  1755. break
  1756. end
  1757. end
  1758. end
  1759. for i = 0, 1, 0.15 do
  1760. swait()
  1761. hitboxCF = lprt17.CFrame * cf(0, -0.2, 0)
  1762. hitbox.CFrame = hitboxCF
  1763. MagniDamage(hitbox, 3, 5, 10, math.random(10, 20), "Normal", RootPart, 0.3, 1, (math.random(3, 8)), nil, true, false, "Movement", 0.4, 200)
  1764. Neck.C0 = clerp(Neck.C0, necko * euler(0.2, 0, 1.2), 0.3)
  1765. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.2) * euler(0, 0, -1.2), 0.3)
  1766. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(1, 0, 1), 0.3)
  1767. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  1768. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(2.5, 0, -1) * euler(0, -1, 0), 0.3)
  1769. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  1770. RH.C0 = clerp(RH.C0, cf(0.9, -1, -0.4) * euler(0, 2.57, -0.4), 0.2)
  1771. LH.C0 = clerp(LH.C0, cf(-0.9, -0.9, 0.4) * euler(0, -0.57, 0.1), 0.2)
  1772. if StaggerHit.Value == true or mana.Value <= 20 then
  1773. break
  1774. end
  1775. end
  1776. end
  1777. print("umadeit")
  1778. hitbox.Parent = modelzorz
  1779. hitbox.Size = vt()
  1780. hitboxweld()
  1781. hboxpos.Parent = nil
  1782. cooldowns[2] = 50
  1783. if mana.Value >= 20 and Ammo >= 2 then--1
  1784. Torso.Velocity = vt(0, 0, 0)
  1785. local dec = Instance.new("NumberValue", Decrease)
  1786. dec.Name = "DecreaseMvmt"
  1787. dec.Value = 10
  1788. for i = 0, 1, 0.1 do--2
  1789. swait()
  1790. GunRight(1)
  1791. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, -1) * euler(0.4, 0, 0), 0.3)
  1792. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.2) * euler(0, 0, 1), 0.3)
  1793. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(1, 0, 1) * euler(0, -0.5, 0) * euler(-0.5, 0, 0), 0.3)
  1794. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  1795. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(0.5, 0, -1), 0.3)
  1796. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  1797. RH.C0 = clerp(RH.C0, cf(0.9, -1, 0.4) * euler(0, 0.57, -0.1), 0.2)
  1798. LH.C0 = clerp(LH.C0, cf(-0.9, -0.9, -0.4) * euler(0, -2.57, 0.4), 0.2)
  1799. if Stagger.Value ~= true and StunT.Value > Stun.Value then do
  1800. if StaggerHit.Value == true then
  1801. break
  1802. end
  1803. end
  1804. end
  1805. end
  1806. print("Faster")
  1807. cooldowns[2] = 0
  1808. mana.Value = mana.Value - 20
  1809. Ammo = Ammo - 2
  1810. Bullet(rprt22)
  1811. num = 10
  1812. for i = 0, 1, 0.1 do
  1813. swait()
  1814. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, -1) * euler(-0.4, 0, 0), 0.3)
  1815. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.2) * euler(0, 0, 1), 0.3)
  1816. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(1, 0, 1) * euler(0, -0.5, 0) * euler(1.5, 0, 0), 0.3)
  1817. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  1818. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(0.3, 0, -1.2), 0.3)
  1819. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  1820. RH.C0 = clerp(RH.C0, cf(0.9, -1, 0.4) * euler(0, 0.57, -0.1), 0.2)
  1821. LH.C0 = clerp(LH.C0, cf(-0.9, -0.9, -0.4) * euler(0, -2.57, 0.4), 0.2)
  1822. if num >= 3 then
  1823. num = 0
  1824. Explosion(false, true, 8, 10)
  1825. end
  1826. num = num + 1
  1827. if Stagger.Value ~= true and StunT.Value > Stun.Value then do
  1828. if StaggerHit.Value == true then
  1829. break
  1830. end
  1831. end
  1832. end
  1833. dec.Parent = nil
  1834. attack = false
  1835. end
  1836. end
  1837. end
  1838. end
  1839. do3 = function()
  1840. if attack == true then
  1841. return
  1842. end
  1843. if Stagger.Value == true or StunT.Value <= Stun.Value or StaggerHit.Value == true then
  1844. return
  1845. end
  1846. if cooldownmax <= cooldowns[3] and mana.Value >= 20 then
  1847. attack = true
  1848. mana.Value = mana.Value - 20
  1849. cooldowns[3] = 0
  1850. if overcharge == true then
  1851. for i = 0, 1, 0.15 do
  1852. swait()
  1853. GunRight(1)
  1854. GunLeft(1)
  1855. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 1) * euler(0.5, 0, 0), 0.5)
  1856. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.2) * euler(0, 0, 1.57), 0.5)
  1857. RW.C0 = clerp(RW.C0, cf(1, 0.5, -0.8) * euler(0.2, 0, -1) * euler(0, 2, 0), 0.5)
  1858. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.5)
  1859. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(1.57, 0, -1.57) * euler(-0.6, 0, 0), 0.5)
  1860. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.5)
  1861. RH.C0 = clerp(RH.C0, cf(0.6, -1, 0.4) * euler(0, 1.57, 0) * euler(0.2, -1.57, 0), 0.5)
  1862. LH.C0 = clerp(LH.C0, cf(-0.6, -1, -0.4) * euler(0, -1.57, 0) * euler(-0.4, -1.57, 0), 0.5)
  1863. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  1864. do
  1865. if StaggerHit.Value == true then
  1866. break
  1867. end
  1868. -- DECOMPILER ERROR at PC239: LeaveBlock: unexpected jumping out IF_THEN_STMT
  1869.  
  1870. -- DECOMPILER ERROR at PC239: LeaveBlock: unexpected jumping out IF_STMT
  1871.  
  1872. end
  1873. end
  1874. end
  1875. Explosion(true, true, 6, 8)
  1876. Look = RootPart.CFrame.lookVector
  1877. Humanoid.Jump = true
  1878. if Rooted.Value == false then
  1879. Torso.Velocity = RootPart.CFrame.lookVector * 80 + vt(0, 1, 0) * 70
  1880. end
  1881. for i = 0, 1, 0.4 do
  1882. swait()
  1883. GunRight(1)
  1884. GunLeft(1)
  1885. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0), 0.6)
  1886. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * euler(3.14, 0, 0), 0.6)
  1887. RW.C0 = clerp(RW.C0, cf(1, 0.5, -0.5) * euler(1, 0, -1.2) * euler(0, 1.5, 0), 0.6)
  1888. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.6)
  1889. LW.C0 = clerp(LW.C0, cf(-1, 0.5, -0.5) * euler(1.7, 0, 1.2) * euler(0, -1.5, 0), 0.6)
  1890. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.6)
  1891. RH.C0 = clerp(RH.C0, cf(0.9, -1, 0.4) * euler(0, 0.57, -0.1), 0.6)
  1892. LH.C0 = clerp(LH.C0, cf(-0.9, -0.9, -0.4) * euler(0, -2.57, 0.4), 0.6)
  1893. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  1894. do
  1895. if StaggerHit.Value == true then
  1896. break
  1897. end
  1898. end
  1899. end
  1900. end
  1901. num = 10
  1902. for i = 0, 1, 0.07 do
  1903. swait()
  1904. RootJoint.C0 = RootJoint.C0 * euler(0, 0, 1)
  1905. Neck.C0 = clerp(Neck.C0, necko * euler(-1, 0, 0), 0.1)
  1906. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(3.2, 0, 0.5) * euler(0, 2, 0), 0.1)
  1907. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.1)
  1908. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(3.6, 0, -0.5) * euler(0, -2, 0), 0.1)
  1909. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.1)
  1910. RH.C0 = clerp(RH.C0, cf(0.9, -1, -0.4) * euler(0, 2.57, -0.4), 0.1)
  1911. LH.C0 = clerp(LH.C0, cf(-0.9, -0.9, 0.4) * euler(0, -0.57, 0.1), 0.1)
  1912. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  1913. do
  1914. if StaggerHit.Value == true then
  1915. break
  1916. end
  1917. if num >= 4 then
  1918. Explosion(true, true, 8, 10)
  1919. num = 0
  1920. end
  1921. num = num + 1
  1922. -- DECOMPILER ERROR at PC632: LeaveBlock: unexpected jumping out IF_THEN_STMT
  1923.  
  1924. -- DECOMPILER ERROR at PC632: LeaveBlock: unexpected jumping out IF_STMT
  1925.  
  1926. end
  1927. end
  1928. end
  1929. else
  1930. for i = 0, 1, 0.15 do
  1931. swait()
  1932. TonfaRight(0.6)
  1933. TonfaLeft(0.6)
  1934. Neck.C0 = clerp(Neck.C0, necko * euler(0.2, 0, 0), 0.5)
  1935. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.4) * euler(0, 0, 0), 0.5)
  1936. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(2, 0, 2.2) * euler(0, 2, 0), 0.5)
  1937. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.5)
  1938. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(2, 0, -2.2) * euler(0, -2, 0), 0.5)
  1939. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.5)
  1940. RH.C0 = clerp(RH.C0, cf(1.1, -1, -0.2) * euler(0, 1.57, 0.4), 0.5)
  1941. LH.C0 = clerp(LH.C0, cf(-1, -0.9, 0) * euler(0, -1.57, 0.4), 0.5)
  1942. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  1943. do
  1944. if StaggerHit.Value == true then
  1945. break
  1946. end
  1947. -- DECOMPILER ERROR at PC815: LeaveBlock: unexpected jumping out IF_THEN_STMT
  1948.  
  1949. -- DECOMPILER ERROR at PC815: LeaveBlock: unexpected jumping out IF_STMT
  1950.  
  1951. end
  1952. end
  1953. end
  1954. so("158149887", Torso, 0.5, 0.8)
  1955. Humanoid.Jump = true
  1956. if Rooted.Value == false then
  1957. Torso.Velocity = RootPart.CFrame.lookVector * 60 + vt(0, 1, 0) * 50
  1958. end
  1959. for i = 0, 1, 0.15 do
  1960. swait()
  1961. GunRight(0.6)
  1962. GunLeft(0.6)
  1963. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 1) * euler(3.14, 0, 0), 0.6)
  1964. Neck.C0 = clerp(Neck.C0, necko * euler(-1, 0, 0), 0.5)
  1965. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(3.2, 0, 0.1) * euler(0, 2, 0), 0.5)
  1966. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.5)
  1967. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(3.6, 0, -0.1) * euler(0, -2, 0), 0.5)
  1968. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.5)
  1969. RH.C0 = clerp(RH.C0, cf(0.9, -1, -0.4) * euler(0, 2.57, -0.4), 0.5)
  1970. LH.C0 = clerp(LH.C0, cf(-0.9, -0.9, 0.4) * euler(0, -0.57, 0.1), 0.5)
  1971. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  1972. do
  1973. if StaggerHit.Value == true then
  1974. break
  1975. end
  1976. -- DECOMPILER ERROR at PC1022: LeaveBlock: unexpected jumping out IF_THEN_STMT
  1977.  
  1978. -- DECOMPILER ERROR at PC1022: LeaveBlock: unexpected jumping out IF_STMT
  1979.  
  1980. end
  1981. end
  1982. end
  1983. Explosion(true, true, 8, 10)
  1984. if Rooted.Value == false then
  1985. Torso.Velocity = RootPart.CFrame.lookVector * 30 + vt(0, 1, 0) * 60
  1986. end
  1987. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 1) * euler(4, 0, 0), 0.6)
  1988. end
  1989. attack = false
  1990. end
  1991. end
  1992. do4 = function()
  1993. if obliterate == true then
  1994. obliterate = false
  1995. return
  1996. end
  1997. if attack == true then
  1998. return
  1999. end
  2000. if Stagger.Value == true or StunT.Value <= Stun.Value or StaggerHit.Value == true then
  2001. return
  2002. end
  2003. if cooldownmax <= cooldowns[4] and mana.Value >= 3 then
  2004. attack = true
  2005. obliterate = true
  2006. Humanoid.AutoRotate = false
  2007. Look = RootPart.CFrame.lookVector
  2008. local anim = 0
  2009. local oldanim = 0
  2010. if overcharge == false then
  2011. so("203691326", rprt36, 1, 1.5)
  2012. so("203691326", lprt36, 1, 1.5)
  2013. local dec = Instance.new("NumberValue", Decrease)
  2014. dec.Name = "DecreaseMvmt"
  2015. dec.Value = 10
  2016. for i = 1, 0, -0.1 do
  2017. swait()
  2018. rprt4n.Transparency = i
  2019. rprt9n.Transparency = i
  2020. rprt14n.Transparency = i
  2021. rprt15n.Transparency = i
  2022. rprt16n.Transparency = i
  2023. rprt23n.Transparency = i
  2024. rprt24n.Transparency = i
  2025. rprt25n.Transparency = i
  2026. lprt4n.Transparency = i
  2027. lprt9n.Transparency = i
  2028. lprt14n.Transparency = i
  2029. lprt15n.Transparency = i
  2030. lprt16n.Transparency = i
  2031. lprt23n.Transparency = i
  2032. lprt24n.Transparency = i
  2033. lprt25n.Transparency = i
  2034. Neck.C0 = clerp(Neck.C0, necko * euler(0.2, 0, 0), 0.5)
  2035. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.2) * euler(0, 0, 0), 0.5)
  2036. RW.C0 = clerp(RW.C0, cf(1, 0.5, -0.5) * euler(1, 0, -1.2) * euler(0, 1.5, 0), 0.5)
  2037. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.5)
  2038. LW.C0 = clerp(LW.C0, cf(-1, 0.5, -0.5) * euler(1.7, 0, 1.2) * euler(0, -1.5, 0), 0.5)
  2039. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.5)
  2040. RH.C0 = clerp(RH.C0, cf(1.1, -1, 0) * euler(0, 1.57, -0.1), 0.5)
  2041. LH.C0 = clerp(LH.C0, cf(-1, -0.9, 0) * euler(0, -1.57, 0.4), 0.5)
  2042. if Stagger.Value ~= true and StunT.Value > Stun.Value and StaggerHit.Value ~= true then
  2043. do
  2044. if Humanoid.Health <= 0 then
  2045. break
  2046. end
  2047. -- DECOMPILER ERROR at PC279: LeaveBlock: unexpected jumping out IF_THEN_STMT
  2048.  
  2049. -- DECOMPILER ERROR at PC279: LeaveBlock: unexpected jumping out IF_STMT
  2050.  
  2051. end
  2052. end
  2053. end
  2054. dec.Parent = nil
  2055. end
  2056. do
  2057. for i = 1, 15 do
  2058. if mana.Value >= 3 then
  2059. do
  2060. if obliterate == false then
  2061. break
  2062. end
  2063. mana.Value = mana.Value - 3
  2064. repeat
  2065. anim = math.random(1, 12)
  2066. if i == 1 then
  2067. anim = 12
  2068. end
  2069. until anim ~= oldanim
  2070. oldanim = anim
  2071. for i = 0, 1, 0.15 do
  2072. swait()
  2073. if Stagger.Value ~= true and StunT.Value > Stun.Value and StaggerHit.Value ~= true then
  2074. do
  2075. if Humanoid.Health <= 0 then
  2076. break
  2077. end
  2078. GunRight(1)
  2079. GunLeft(1)
  2080. if Rooted.Value == false then
  2081. Torso.Velocity = Look * 25
  2082. end
  2083. if anim == 1 then
  2084. Neck.C0 = clerp(Neck.C0, necko * euler(0.2, 0, -1.2), 0.5)
  2085. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.2) * euler(0, 0, 1.2), 0.5)
  2086. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(1.6, 0, 1) * euler(0, 1.7, 0), 0.5)
  2087. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.5)
  2088. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(1.5, 0, -0.7) * euler(0, -1.57, 0), 0.5)
  2089. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.5)
  2090. RH.C0 = clerp(RH.C0, cf(0.9, -1, 0.4) * euler(0, 0.57, -0.1), 0.5)
  2091. LH.C0 = clerp(LH.C0, cf(-0.9, -0.9, -0.4) * euler(0, -2.57, 0.4), 0.5)
  2092. else
  2093. if anim == 2 then
  2094. Neck.C0 = clerp(Neck.C0, necko * euler(0.2, 0, 1.2), 0.5)
  2095. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.2) * euler(0, 0, -1.2), 0.5)
  2096. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(1.2, 0, 1) * euler(0, 1.7, 0), 0.5)
  2097. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.5)
  2098. LW.C0 = clerp(LW.C0, cf(-1, 0.5, -0.5) * euler(1.5, 0, -0.7) * euler(0, -1.57, 0), 0.5)
  2099. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.5)
  2100. RH.C0 = clerp(RH.C0, cf(0.9, -1, -0.4) * euler(0, 2.57, -0.4), 0.5)
  2101. LH.C0 = clerp(LH.C0, cf(-0.9, -0.9, 0.4) * euler(0, -0.57, 0.1), 0.5)
  2102. else
  2103. if anim == 3 then
  2104. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, -1.57), 0.5)
  2105. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, 1.57), 0.5)
  2106. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.4, 0, 1), 0.5)
  2107. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.5)
  2108. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(1.57, 0, -1.57) * euler(0, -1.57, 0), 0.5)
  2109. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.5)
  2110. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0, 1.57, 0) * euler(0, 0, 0), 0.5)
  2111. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, -1.57, 0) * euler(0, 0, 0), 0.5)
  2112. else
  2113. if anim == 4 then
  2114. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, -1), 0.5)
  2115. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, 1), 0.5)
  2116. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(0.4, 0, 1), 0.5)
  2117. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.5)
  2118. LW.C0 = clerp(LW.C0, cf(-0.5, 0.5, -0.5) * euler(1.57, 0, 1) * euler(0, -1.57, 0), 0.5)
  2119. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.5)
  2120. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0, 1.57, 0) * euler(0, 0.5, -0.4), 0.5)
  2121. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, -1.57, 0) * euler(0, 0.5, 0.1), 0.5)
  2122. else
  2123. if anim == 5 then
  2124. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0) * euler(-0.05, 0, 0), 0.5)
  2125. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.2) * euler(0, 0, 0), 0.5)
  2126. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(2.5, 0, 0) * euler(0, 1.4, 0) * euler(0, -0.2, 0), 0.5)
  2127. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.5)
  2128. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(1.5, 0, -0.6), 0.5)
  2129. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.5)
  2130. RH.C0 = clerp(RH.C0, cf(0.9, -1, 0.4) * euler(0, 0.67, -0.1), 0.5)
  2131. LH.C0 = clerp(LH.C0, cf(-0.9, -0.9, -0.4) * euler(0, -2.47, 0.4), 0.5)
  2132. else
  2133. if anim == 6 then
  2134. Neck.C0 = clerp(Neck.C0, necko * euler(0.2, 0, 0), 0.5)
  2135. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.2) * euler(0, 0, 0), 0.5)
  2136. RW.C0 = clerp(RW.C0, cf(1, 0.5, -0.5) * euler(1, 0, -1.2) * euler(0, 1.5, 0), 0.5)
  2137. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.5)
  2138. LW.C0 = clerp(LW.C0, cf(-1, 0.5, -0.5) * euler(1.7, 0, 1.2) * euler(0, -1.5, 0), 0.5)
  2139. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.5)
  2140. RH.C0 = clerp(RH.C0, cf(1.1, -1, 0) * euler(0, 1.57, -0.1), 0.5)
  2141. LH.C0 = clerp(LH.C0, cf(-1, -0.9, 0) * euler(0, -1.57, 0.4), 0.5)
  2142. else
  2143. if anim == 7 then
  2144. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, -1.57) * euler(0.1, 0, 0), 0.5)
  2145. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.2) * euler(0, 0, 1.57), 0.5)
  2146. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(1.57, 0, 1.57), 0.5)
  2147. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.5)
  2148. LW.C0 = clerp(LW.C0, cf(-1, 0.5, -0.8) * euler(1.7, 0, 1) * euler(0, -1, 0), 0.5)
  2149. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.5)
  2150. RH.C0 = clerp(RH.C0, cf(0.6, -1, 0.4) * euler(0, 1.57, 0) * euler(0.2, -1.57, 0), 0.5)
  2151. LH.C0 = clerp(LH.C0, cf(-0.6, -1, -0.4) * euler(0, -1.57, 0) * euler(-0.4, -1.57, 0), 0.5)
  2152. else
  2153. if anim == 8 then
  2154. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 1.57) * euler(0.1, 0, 0), 0.5)
  2155. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.2) * euler(0, 0, -1.57), 0.5)
  2156. RW.C0 = clerp(RW.C0, cf(1, 0.5, -0.8) * euler(1.7, 0, -1) * euler(0, 1, 0), 0.5)
  2157. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.5)
  2158. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(1.57, 0, -1.57), 0.5)
  2159. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.5)
  2160. RH.C0 = clerp(RH.C0, cf(0.5, -1, -0.2) * euler(0, 1.57, 0) * euler(-0.4, 1.57, 0), 0.5)
  2161. LH.C0 = clerp(LH.C0, cf(-0.5, -1, 0.2) * euler(0, -1.57, 0) * euler(0.2, 1.57, 0), 0.5)
  2162. else
  2163. if anim == 9 then
  2164. Neck.C0 = clerp(Neck.C0, necko * euler(0.2, 0, -1.2), 0.5)
  2165. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.2) * euler(0, 0, 1.2), 0.5)
  2166. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(1.6, 0, 1) * euler(0, 1.7, 0), 0.5)
  2167. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.5)
  2168. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(1.5, 0, -0.7) * euler(0, -1.57, 0), 0.5)
  2169. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.5)
  2170. RH.C0 = clerp(RH.C0, cf(0.9, -1, 0.4) * euler(0, 0.57, -0.1), 0.5)
  2171. LH.C0 = clerp(LH.C0, cf(-0.9, -0.9, -0.4) * euler(0, -2.57, 0.4), 0.5)
  2172. else
  2173. if anim == 10 then
  2174. Neck.C0 = clerp(Neck.C0, necko * euler(0.2, 0, 1.2), 0.5)
  2175. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.2) * euler(0, 0, -1.2), 0.5)
  2176. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(1, 0, 1), 0.5)
  2177. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.5)
  2178. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(2, 0, -1) * euler(0, -0.5, 0), 0.5)
  2179. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.5)
  2180. RH.C0 = clerp(RH.C0, cf(0.9, -1, -0.4) * euler(0, 2.57, -0.4), 0.5)
  2181. LH.C0 = clerp(LH.C0, cf(-0.9, -0.9, 0.4) * euler(0, -0.57, 0.1), 0.5)
  2182. else
  2183. if anim == 11 then
  2184. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, -1) * euler(0.4, 0, 0), 0.5)
  2185. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.2) * euler(0, 0, 1), 0.5)
  2186. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(1, 0, 1) * euler(0, 1, 0), 0.5)
  2187. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.5)
  2188. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(0.5, 0, -1), 0.5)
  2189. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.5)
  2190. RH.C0 = clerp(RH.C0, cf(0.9, -1, 0.4) * euler(0, 0.57, -0.1), 0.5)
  2191. LH.C0 = clerp(LH.C0, cf(-0.9, -0.9, -0.4) * euler(0, -2.57, 0.4), 0.5)
  2192. else
  2193. if anim == 12 then
  2194. Neck.C0 = clerp(Neck.C0, necko * euler(0.1, 0, 0), 0.5)
  2195. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.2) * euler(0, 0, 0), 0.5)
  2196. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(2, 0, 1.8) * euler(0, 2, 0), 0.5)
  2197. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.5)
  2198. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(2, 0, -1.8) * euler(0, -2, 0), 0.5)
  2199. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.5)
  2200. RH.C0 = clerp(RH.C0, cf(1.1, -1, 0) * euler(0, 1.57, -0.1), 0.5)
  2201. LH.C0 = clerp(LH.C0, cf(-1, -0.9, 0) * euler(0, -1.57, 0.4), 0.5)
  2202. end
  2203. end
  2204. end
  2205. end
  2206. end
  2207. end
  2208. end
  2209. end
  2210. end
  2211. end
  2212. end
  2213. end
  2214. -- DECOMPILER ERROR at PC2256: LeaveBlock: unexpected jumping out IF_THEN_STMT
  2215.  
  2216. -- DECOMPILER ERROR at PC2256: LeaveBlock: unexpected jumping out IF_STMT
  2217.  
  2218. end
  2219. end
  2220. end
  2221. Explosion(true, true, 4, 5)
  2222. -- DECOMPILER ERROR at PC2263: LeaveBlock: unexpected jumping out IF_THEN_STMT
  2223.  
  2224. -- DECOMPILER ERROR at PC2263: LeaveBlock: unexpected jumping out IF_STMT
  2225.  
  2226. end
  2227. end
  2228. end
  2229. Humanoid.AutoRotate = true
  2230. attack = false
  2231. cooldowns[4] = 0
  2232. if overcharge == false then
  2233. for i = 0, 1.1, 0.05 do
  2234. swait()
  2235. rprt4n.Transparency = i
  2236. rprt9n.Transparency = i
  2237. rprt14n.Transparency = i
  2238. rprt15n.Transparency = i
  2239. rprt16n.Transparency = i
  2240. rprt23n.Transparency = i
  2241. rprt24n.Transparency = i
  2242. rprt25n.Transparency = i
  2243. lprt4n.Transparency = i
  2244. lprt9n.Transparency = i
  2245. lprt14n.Transparency = i
  2246. lprt15n.Transparency = i
  2247. lprt16n.Transparency = i
  2248. lprt23n.Transparency = i
  2249. lprt24n.Transparency = i
  2250. lprt25n.Transparency = i
  2251. end
  2252. end
  2253. end
  2254. end
  2255. end
  2256. Explosion = function(left, right, dam1, dam2)
  2257. if left == true then
  2258. Bullet(lprt22)
  2259. so("203691837", lprt36, 1, math.random(80, 120) / 100)
  2260. MagniDamage(lprt36, 10, dam1, dam2, 0, "Normal", RootPart, 0.2, 1, (math.random(1, 5)), nil, nil, true)
  2261. MagicBlock(BrickColor.new(NewCol), cf(lprt36.Position), 1, 1, 1, 5, 5, 5, 0.1, 1)
  2262. MagicCircle(BrickColor.new(NewCol), cf(lprt36.Position), 1, 1, 1, 5, 5, 5, 0.1)
  2263. MagicRing(BrickColor.new("Bright yellow"), cf(lprt36.Position) * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 1, 1, 0.1, 2, 2, 0.1, 0.1)
  2264. end
  2265. if right == true then
  2266. Bullet(rprt22)
  2267. so("203691837", rprt36, 1, math.random(80, 120) / 100)
  2268. MagniDamage(rprt36, 10, dam1, dam2, 0, "Normal", RootPart, 0.2, 1, (math.random(1, 5)), nil, nil, true)
  2269. MagicBlock(BrickColor.new(NewCol), cf(rprt36.Position), 1, 1, 1, 5, 5, 5, 0.1, 1)
  2270. MagicCircle(BrickColor.new(NewCol), cf(rprt36.Position), 1, 1, 1, 5, 5, 5, 0.1)
  2271. MagicRing(BrickColor.new("Bright yellow"), cf(rprt36.Position) * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 1, 1, 0.1, 2, 2, 0.1, 0.1)
  2272. end
  2273. end
  2274. Shootcombo = function()
  2275. spread = vt(math.random(-50, 50) / 100, math.random(-50, 50) / 100, math.random(-50, 50) / 100) * (gunpart.Position - MMouse.Hit.p).magnitude / 100
  2276. local MouseLook = cf((gunpart.Position + MMouse.Hit.p) / 2, MMouse.Hit.p + spread)
  2277. table.insert(Effects, {MouseLook.lookVector, "Shoot", 30, gunpart.Position, 5, 7, 0, 1})
  2278. Bullet(gunpart2)
  2279. end
  2280. XVShot = function()
  2281. local MouseLook = cf((gunpart.Position + MMouse.Hit.p) / 2, MMouse.Hit.p)
  2282. table.insert(Effects, {MouseLook.lookVector, "Shoot", 30, gunpart.Position, 5, 7, 0, 2})
  2283. Bullet(gunpart2)
  2284. end
  2285. Bullet = function(Part)
  2286. bullet = part(3, workspace, 0, 0, BrickColor.new("Bright yellow"), "Bullet", vt())
  2287. bmsh = mesh("CylinderMesh", bullet, "", "", vt(0, 0, 0), vt(0.8, 1.5, 0.8))
  2288. bullet.CanCollide = true
  2289. bullet.CFrame = Part.CFrame * cf(math.random(-200, 200) / 100, math.random(-200, 200) / 100, math.random(-200, 200) / 100)
  2290. bullet.Velocity = Torso.CFrame.lookVector * math.random(10, 40) + vt(1, 0, 0) * math.random(0, 1000) / 100 + vt(0, 1, 0) * math.random(0, 1000) / 100 + vt(0, 0, 1) * math.random(0, 1000) / 100
  2291. game:GetService("Debris"):AddItem(bullet, 5)
  2292. end
  2293. DecreaseStat = function(Model, Stat, Amount, Duration)
  2294. if Model:findFirstChild("Stats") ~= nil and Model.Stats[Stat] ~= nil then
  2295. Model.Stats[Stat].Value = Model.Stats[Stat].Value - Amount
  2296. d = Instance.new("NumberValue", Model.Stats.Decrease)
  2297. dur = Instance.new("NumberValue", d)
  2298. dur.Name = "Duration"
  2299. dur.Value = Duration
  2300. game:GetService("Debris"):AddItem(d, 20)
  2301. if Stat == "Damage" then
  2302. d.Name = "DecreaseAtk"
  2303. else
  2304. if Stat == "Defense" then
  2305. d.Name = "DecreaseDef"
  2306. else
  2307. if Stat == "Movement" then
  2308. d.Name = "DecreaseMvmt"
  2309. end
  2310. end
  2311. end
  2312. if Model:findFirstChild("Torso") ~= nil then
  2313. display = ""
  2314. if Stat == "Damage" then
  2315. if Amount > 0 then
  2316. display = "-Damage"
  2317. else
  2318. display = "+Damage"
  2319. end
  2320. else
  2321. if Stat == "Defense" then
  2322. if Amount > 0 then
  2323. display = "-Defense"
  2324. else
  2325. display = "+Defense"
  2326. end
  2327. else
  2328. if Stat == "Movement" then
  2329. if Amount > 0 then
  2330. display = "-Movement"
  2331. else
  2332. display = "+Movement"
  2333. end
  2334. end
  2335. end
  2336. end
  2337. showDamage(Model, display, "Debuff")
  2338. end
  2339. d.Value = Amount
  2340. end
  2341. end
  2342. GetDist = function(Part1, Part2, magni)
  2343. local targ = Part1.Position - Part2.Position
  2344. local mag = targ.magnitude
  2345. if mag <= magni then
  2346. return true
  2347. else
  2348. return false
  2349. end
  2350. end
  2351. MagniDamage = function(Part, magni, minim, maxim, knockback, Type, Property, Delay, KnockbackType, incstun, stagger, staghit, ranged, DecreaseState, DecreaseAmount, Duration, Sound)
  2352. for _,c in pairs(workspace:children()) do
  2353. local hum = c:findFirstChild("Humanoid")
  2354. if hum ~= nil then
  2355. local head = nil
  2356. for _,d in pairs(c:children()) do
  2357. if d.className == "Model" and ranged ~= true then
  2358. head = d:findFirstChild("Hitbox")
  2359. if d.Parent == Character then
  2360. break
  2361. end
  2362. if head ~= nil then
  2363. local targ = head.Position - Part.Position
  2364. local mag = targ.magnitude
  2365. if mag <= magni and c.Name ~= Player.Name then
  2366. ref = part(3, workspace, 0, 1, BrickColor.new("Black"), "Reference", vt())
  2367. ref.Anchored = true
  2368. ref.CFrame = cf(head.Position)
  2369. game:GetService("Debris"):AddItem(ref, 1)
  2370. hitnum = math.random(1, 5)
  2371. if hitnum == 1 then
  2372. so("199148971", ref, 1, 1)
  2373. else
  2374. if hitnum == 2 then
  2375. so("199149025", ref, 1, 1)
  2376. else
  2377. if hitnum == 3 then
  2378. so("199149072", ref, 1, 1)
  2379. else
  2380. if hitnum == 4 then
  2381. so("199149109", ref, 1, 1)
  2382. else
  2383. if hitnum == 5 then
  2384. so("199149119", ref, 1, 1)
  2385. end
  2386. end
  2387. end
  2388. end
  2389. end
  2390. StaggerHit.Value = true
  2391. end
  2392. end
  2393. end
  2394. do
  2395. if d.className == "Part" then
  2396. head = d
  2397. if head ~= nil then
  2398. local targ = head.Position - Part.Position
  2399. local mag = targ.magnitude
  2400. if mag <= magni and c.Name ~= Player.Name then
  2401. if stun == nil then
  2402. stun = math.random(5, 10)
  2403. end
  2404. local Rang = nil
  2405. if Ranged == false then
  2406. Rang = true
  2407. end
  2408. local stag = nil
  2409. if shbash == true then
  2410. stag = true
  2411. end
  2412. Damagefunc(head, minim, maxim, knockback, Type, Property, Delay, KnockbackType, incstun, stagger, staghit, ranged, DecreaseState, DecreaseAmount, Duration, Sound)
  2413. end
  2414. end
  2415. end
  2416. do
  2417. -- DECOMPILER ERROR at PC184: LeaveBlock: unexpected jumping out DO_STMT
  2418.  
  2419. end
  2420. end
  2421. end
  2422. end
  2423. end
  2424. end
  2425. rayCast = function(Pos, Dir, Max, Ignore)
  2426. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  2427. end
  2428. local Point = Torso.CFrame * cf(0, Torso.Size.Y, 0)
  2429. LastPoint = Point
  2430. effect = function(Color, Ref, LP, P1, returnn)
  2431. if LP == nil or P1 == nil then
  2432. return
  2433. end
  2434. local effectsmsh = Instance.new("CylinderMesh")
  2435. effectsmsh.Scale = Vector3.new(0.2, 1, 0.2)
  2436. effectsmsh.Name = "Mesh"
  2437. local effectsg = Instance.new("Part")
  2438. NoOutline(effectsg)
  2439. effectsg.formFactor = 3
  2440. effectsg.CanCollide = false
  2441. effectsg.Name = "Eff"
  2442. effectsg.Locked = true
  2443. effectsg.Anchored = true
  2444. effectsg.Size = Vector3.new(0.5, 1, 0.5)
  2445. effectsg.Parent = workspace
  2446. effectsmsh.Parent = effectsg
  2447. effectsg.BrickColor = BrickColor.new(Color)
  2448. effectsg.Reflectance = Ref
  2449. local point1 = P1
  2450. local mg = (LP.p - point1.p).magnitude
  2451. effectsg.Size = Vector3.new(0.5, mg, 0.5)
  2452. effectsg.CFrame = cf((LP.p + point1.p) / 2, point1.p) * CFrame.Angles(math.rad(90), 0, 0)
  2453. effectsmsh.Scale = Vector3.new(0.2, 1, 0.2)
  2454. game:GetService("Debris"):AddItem(effectsg, 2)
  2455. if returnn then
  2456. return effectsg
  2457. end
  2458. if not returnn then
  2459. table.insert(Effects, {effectsg, "Cylinder", 0.2, 0.01, 0, 0.01, effectsmsh})
  2460. end
  2461. end
  2462. local CFrameFromTopBack = function(at, top, back)
  2463. local right = top:Cross(back)
  2464. return CFrame.new(at.x, at.y, at.z, right.x, top.x, back.x, right.y, top.y, back.y, right.z, top.z, back.z)
  2465. end
  2466. Triangle = function(a, b, c)
  2467. local edg1 = c - a:Dot(b - a.unit)
  2468. local edg2 = a - b:Dot(c - b.unit)
  2469. local edg3 = b - c:Dot(a - c.unit)
  2470. if edg1 <= b - a.magnitude and edg1 >= 0 then
  2471. a = a
  2472. else
  2473. -- DECOMPILER ERROR at PC35: Overwrote pending register: R1 in 'AssignReg'
  2474.  
  2475. if edg2 <= c - b.magnitude and edg2 >= 0 then
  2476. a = b
  2477. else
  2478. -- DECOMPILER ERROR at PC46: Overwrote pending register: R2 in 'AssignReg'
  2479.  
  2480. -- DECOMPILER ERROR at PC47: Overwrote pending register: R1 in 'AssignReg'
  2481.  
  2482. if edg3 <= a - c.magnitude and edg3 >= 0 then
  2483. a = c
  2484. else
  2485. assert(false, "unreachable")
  2486. end
  2487. end
  2488. end
  2489. local len1 = c - a:Dot(b - a.unit)
  2490. local len2 = b - a.magnitude - len1
  2491. local width = a + b - a.unit * len1 - c.magnitude
  2492. local maincf = CFrameFromTopBack(a, b - a:Cross(c - b).unit, -b - a.unit)
  2493. local list = {}
  2494. if len1 > 0.01 then
  2495. local w1 = Instance.new("WedgePart", m)
  2496. game:GetService("Debris"):AddItem(w1, 5)
  2497. w1.Material = "SmoothPlastic"
  2498. w1.FormFactor = "Custom"
  2499. w1.BrickColor = BrickColor.new("Bright red")
  2500. w1.Transparency = 0
  2501. w1.Reflectance = 0
  2502. w1.Material = "SmoothPlastic"
  2503. w1.CanCollide = false
  2504. NoOutline(w1)
  2505. local sz = Vector3.new(0.2, width, len1)
  2506. w1.Size = sz
  2507. local sp = Instance.new("SpecialMesh", w1)
  2508. sp.MeshType = "Wedge"
  2509. sp.Scale = Vector3.new(0, 1, 1) * sz / w1.Size
  2510. w1:BreakJoints()
  2511. w1.Anchored = true
  2512. w1.Parent = workspace
  2513. w1.Transparency = 0.7
  2514. table.insert(Effects, {w1, "Disappear", 0.05})
  2515. w1.CFrame = maincf * CFrame.Angles(math.pi, 0, math.pi / 2) * CFrame.new(0, width / 2, len1 / 2)
  2516. table.insert(list, w1)
  2517. end
  2518. do
  2519. if len2 > 0.01 then
  2520. local w2 = Instance.new("WedgePart", m)
  2521. game:GetService("Debris"):AddItem(w2, 5)
  2522. w2.Material = "SmoothPlastic"
  2523. w2.FormFactor = "Custom"
  2524. w2.BrickColor = BrickColor.new("Bright red")
  2525. w2.Transparency = 0
  2526. w2.Reflectance = 0
  2527. w2.Material = "SmoothPlastic"
  2528. w2.CanCollide = false
  2529. NoOutline(w2)
  2530. local sz = Vector3.new(0.2, width, len2)
  2531. w2.Size = sz
  2532. local sp = Instance.new("SpecialMesh", w2)
  2533. sp.MeshType = "Wedge"
  2534. sp.Scale = Vector3.new(0, 1, 1) * sz / w2.Size
  2535. w2:BreakJoints()
  2536. w2.Anchored = true
  2537. w2.Parent = workspace
  2538. w2.Transparency = 0.7
  2539. table.insert(Effects, {w2, "Disappear", 0.05})
  2540. w2.CFrame = maincf * CFrame.Angles(math.pi, math.pi, -math.pi / 2) * CFrame.new(0, width / 2, -len1 - len2 / 2)
  2541. table.insert(list, w2)
  2542. end
  2543. do
  2544. return unpack(list)
  2545. end
  2546. end
  2547. end
  2548. MagicBlock = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type, parent)
  2549. local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt())
  2550. prt.Anchored = true
  2551. prt.CFrame = cframe
  2552. msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
  2553. game:GetService("Debris"):AddItem(prt, 10)
  2554. if Type == 1 or Type == nil then
  2555. table.insert(Effects, {prt, "Block1", delay, x3, y3, z3, msh})
  2556. else
  2557. if Type == 2 then
  2558. table.insert(Effects, {prt, "Block2", delay, x3, y3, z3, msh})
  2559. end
  2560. end
  2561. end
  2562. MagicCircle = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  2563. local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt())
  2564. prt.Anchored = true
  2565. prt.CFrame = cframe
  2566. local msh = mesh("SpecialMesh", prt, "Sphere", "nil", vt(0, 0, 0), vt(x1, y1, z1))
  2567. game:GetService("Debris"):AddItem(prt, 10)
  2568. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  2569. end
  2570. MagicCylinder = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  2571. local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt())
  2572. prt.Anchored = true
  2573. prt.CFrame = cframe
  2574. local msh = mesh("CylinderMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
  2575. game:GetService("Debris"):AddItem(prt, 10)
  2576. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  2577. end
  2578. MagicHead = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  2579. local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt())
  2580. prt.Anchored = true
  2581. prt.CFrame = cframe
  2582. local msh = mesh("SpecialMesh", prt, "Head", "nil", vt(0, 0, 0), vt(x1, y1, z1))
  2583. game:GetService("Debris"):AddItem(prt, 10)
  2584. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  2585. end
  2586. ClangEffect = function(brickcolor, cframe, duration, decrease, size, power)
  2587. local prt = part(3, workspace, 0, 1, brickcolor, "Effect", vt())
  2588. prt.Anchored = true
  2589. prt.CFrame = cframe
  2590. local msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(5, 5, 5))
  2591. game:GetService("Debris"):AddItem(prt, 10)
  2592. table.insert(Effects, {prt, "CylinderClang", duration, decrease, size, power, prt.CFrame, nil})
  2593. end
  2594. MagicWave = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  2595. local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt())
  2596. prt.Anchored = true
  2597. prt.CFrame = cframe
  2598. local msh = mesh("SpecialMesh", prt, "FileMesh", "20329976", vt(0, 0, 0), vt(x1, y1, z1))
  2599. game:GetService("Debris"):AddItem(prt, 10)
  2600. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  2601. end
  2602. MagicRing = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  2603. local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  2604. prt.Anchored = true
  2605. prt.CFrame = cframe * cf(x2, y2, z2)
  2606. local msh = mesh("SpecialMesh", prt, "FileMesh", "3270017", vt(0, 0, 0), vt(x1, y1, z1))
  2607. game:GetService("Debris"):AddItem(prt, 10)
  2608. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  2609. end
  2610. MagicFire = function(brickcolor, cframe, x1, y1, z1, delay)
  2611. local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt())
  2612. prt.Anchored = true
  2613. prt.CFrame = cframe
  2614. msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
  2615. game:GetService("Debris"):AddItem(prt, 10)
  2616. table.insert(Effects, {prt, "Fire", delay, 1, 1, 1, msh})
  2617. end
  2618. MagicFireWave = function(brickcolor, cframe, x1, y1, z1)
  2619. local prt = part(3, workspace, 0, 1, brickcolor, "Effect", vt())
  2620. prt.Anchored = true
  2621. prt.CFrame = cframe
  2622. msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
  2623. d = Instance.new("Decal")
  2624. d.Parent = prt
  2625. d.Texture = "http://www.roblox.com/asset/?id=26356434"
  2626. d.Face = "Top"
  2627. d = Instance.new("Decal")
  2628. d.Parent = prt
  2629. d.Texture = "http://www.roblox.com/asset/?id=26356434"
  2630. d.Face = "Bottom"
  2631. game:GetService("Debris"):AddItem(prt, 10)
  2632. table.insert(Effects, {prt, "FireWave", 1, 30, math.random(400, 600) / 100, msh})
  2633. end
  2634. ElecEffect = function(cff, x, y, z)
  2635. local prt = part(3, workspace, 0, 0, BrickColor.new("Bright red"), "Part", vt(1, 1, 1))
  2636. prt.Anchored = true
  2637. prt.CFrame = cff * cf(math.random(-x, x), math.random(-y, y), math.random(-z, z))
  2638. prt.CFrame = cf(prt.Position)
  2639. game:GetService("Debris"):AddItem(prt, 10)
  2640. xval = math.random() / 3
  2641. yval = math.random() / 3
  2642. zval = math.random() / 3
  2643. msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(xval, yval, zval))
  2644. Effects[#Effects + 1] = {prt, "Elec", 0.2, x, y, z, xval, yval, zval, msh}
  2645. end
  2646. Damagefunc = function(hit, minim, maxim, knockback, Type, Property, Delay, KnockbackType, incstun, stagger, staghit, ranged, DecreaseState, DecreaseAmount, Duration, Sound)
  2647. if hit.Parent == nil then
  2648. return
  2649. end
  2650. if hit.Name == "Hitbox" and hit.Parent ~= modelzorz and ranged ~= true then
  2651. ref = part(3, workspace, 0, 1, BrickColor.new("Black"), "Reference", vt())
  2652. ref.Anchored = true
  2653. ref.CFrame = cf(hit.Position)
  2654. game:GetService("Debris"):AddItem(ref, 1)
  2655. hitnum = math.random(1, 5)
  2656. if hitnum == 1 then
  2657. so("199148971", ref, 1, 1)
  2658. else
  2659. if hitnum == 2 then
  2660. so("199149025", ref, 1, 1)
  2661. else
  2662. if hitnum == 3 then
  2663. so("199149072", ref, 1, 1)
  2664. else
  2665. if hitnum == 4 then
  2666. so("199149109", ref, 1, 1)
  2667. else
  2668. if hitnum == 5 then
  2669. so("199149119", ref, 1, 1)
  2670. end
  2671. end
  2672. end
  2673. end
  2674. end
  2675. StaggerHit.Value = true
  2676. end
  2677. if hit.Parent.Parent:FindFirstChild("Torso") ~= nil then
  2678. hit = hit.Parent.Parent:findFirstChild("Torso")
  2679. h = hit.Parent.Parent:FindFirstChild("Humanoid")
  2680. end
  2681. if hit.Parent.className == "Hat" then
  2682. hit = hit.Parent.Parent:findFirstChild("Head")
  2683. end
  2684. h = hit.Parent:FindFirstChild("Humanoid")
  2685. if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
  2686. if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then
  2687. return
  2688. end
  2689. if Player.Neutral == false then
  2690. if hit.Parent:findFirstChild("Alignment") ~= nil and hit.Parent.Alignment.Value == Player.TeamColor.Color then
  2691. return
  2692. end
  2693. if game.Players:GetPlayerFromCharacter(hit.Parent) ~= nil and game.Players:GetPlayerFromCharacter(hit.Parent).TeamColor == Player.TeamColor then
  2694. return
  2695. end
  2696. end
  2697. if Sound == "Shatter" then
  2698. so("199146069", hit, 1, 1)
  2699. end
  2700. c = Instance.new("ObjectValue")
  2701. c.Name = "creator"
  2702. c.Value = game:service("Players").LocalPlayer
  2703. c.Parent = hit.Parent.Humanoid
  2704. RecentEnemy.Value = hit.Parent
  2705. game:GetService("Debris"):AddItem(c, 0.5)
  2706. minim = minim * Atk.Value
  2707. maxim = maxim * Atk.Value
  2708. Damage = 0
  2709. if minim == maxim then
  2710. Damage = maxim
  2711. else
  2712. Damage = math.random(minim, maxim)
  2713. end
  2714. blocked = false
  2715. enblock = nil
  2716. Stats = hit.Parent:findFirstChild("Stats")
  2717. if Stats ~= nil then
  2718. invis = Stats:findFirstChild("Invisibility")
  2719. isinvis = Stats:findFirstChild("IsInvisible")
  2720. if (ranged == false or ranged == nil) and invis ~= nil and isinvis.Value == true then
  2721. invis.Value = 0
  2722. end
  2723. enblock = Stats:findFirstChild("Block")
  2724. if enblock ~= nil and enblock.Value == true then
  2725. blocked = true
  2726. end
  2727. if Stats:findFirstChild("Defense") ~= nil then
  2728. Damage = Damage / Stats.Defense.Value
  2729. if Damage <= 3 and (ranged == false or ranged == nil or Sound == "Slash") and blocked ~= true then
  2730. hitnum = math.random(1, 5)
  2731. if hitnum == 1 then
  2732. so("199149321", hit, 1, 1)
  2733. else
  2734. if hitnum == 2 then
  2735. so("199149338", hit, 1, 1)
  2736. else
  2737. if hitnum == 3 then
  2738. so("199149367", hit, 1, 1)
  2739. else
  2740. if hitnum == 4 then
  2741. so("199149409", hit, 1, 1)
  2742. else
  2743. if hitnum == 5 then
  2744. so("199149452", hit, 1, 1)
  2745. end
  2746. end
  2747. end
  2748. end
  2749. end
  2750. else
  2751. if (ranged == false or ranged == nil or Sound == "Slash") and blocked ~= true then
  2752. hitnum = math.random(1, 6)
  2753. if hitnum == 1 then
  2754. so("199149137", hit, 1, 1)
  2755. else
  2756. if hitnum == 2 then
  2757. so("199149186", hit, 1, 1)
  2758. else
  2759. if hitnum == 3 then
  2760. so("199149221", hit, 1, 1)
  2761. else
  2762. if hitnum == 4 then
  2763. so("199149235", hit, 1, 1)
  2764. else
  2765. if hitnum == 5 then
  2766. so("199149269", hit, 1, 1)
  2767. else
  2768. if hitnum == 6 then
  2769. so("199149297", hit, 1, 1)
  2770. end
  2771. end
  2772. end
  2773. end
  2774. end
  2775. end
  2776. end
  2777. end
  2778. if Damage <= 3 and staghit == true and ranged ~= true then
  2779. StaggerHit.Value = true
  2780. end
  2781. end
  2782. if Stats:findFirstChild("Stun") ~= nil then
  2783. if blocked == true then
  2784. incstun = incstun / 2
  2785. end
  2786. if Stats.Stun.Value < Stats.StunThreshold.Value then
  2787. Stats.Stun.Value = Stats.Stun.Value + incstun
  2788. end
  2789. end
  2790. if Stats:findFirstChild("Stagger") ~= nil and stagger == true then
  2791. Stats.Stagger.Value = true
  2792. end
  2793. end
  2794. if blocked == true then
  2795. showDamage(hit.Parent, "Block", "Damage")
  2796. if ranged ~= true then
  2797. enblock.Value = false
  2798. Stagger.Value = true
  2799. hitnum = math.random(1, 2)
  2800. if hitnum == 1 then
  2801. so("199148933", hit, 1, 1)
  2802. else
  2803. if hitnum == 2 then
  2804. so("199148947", hit, 1, 1)
  2805. end
  2806. end
  2807. end
  2808. if ranged == true and Sound == "Slash" then
  2809. hitnum = math.random(1, 2)
  2810. if hitnum == 1 then
  2811. so("199148933", hit, 1, 1)
  2812. else
  2813. if hitnum == 2 then
  2814. so("199148947", hit, 1, 1)
  2815. end
  2816. end
  2817. end
  2818. else
  2819. Damage = math.floor(Damage)
  2820. coroutine.resume(coroutine.create(function(Hum, Dam)
  2821. hit.Parent.Humanoid:TakeDamage(Damage)
  2822. end
  2823. ), h, Damage)
  2824. if obliterate == false then
  2825. if overcharge == true then
  2826. passive.Value = passive.Value - 0.08
  2827. else
  2828. passive.Value = passive.Value - 0.04
  2829. end
  2830. else
  2831. passive.Value = passive.Value - 0.02
  2832. end
  2833. showDamage(hit.Parent, Damage, "Damage")
  2834. if DecreaseState ~= nil then
  2835. if DecreaseState == "Shatter" then
  2836. DecreaseStat(hit.Parent, "Movement", DecreaseAmount, Duration)
  2837. DecreaseStat(hit.Parent, "Damage", DecreaseAmount, Duration)
  2838. else
  2839. DecreaseStat(hit.Parent, DecreaseState, DecreaseAmount, Duration)
  2840. end
  2841. end
  2842. if Type == "Knockdown" then
  2843. hum = hit.Parent.Humanoid
  2844. hum.PlatformStand = true
  2845. coroutine.resume(coroutine.create(function(HHumanoid)
  2846. swait(1)
  2847. HHumanoid.PlatformStand = false
  2848. end), hum)
  2849. local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit
  2850. local bodvol = Instance.new("BodyVelocity")
  2851. bodvol.velocity = angle * knockback
  2852. bodvol.P = 5000
  2853. bodvol.maxForce = Vector3.new(8000, 8000, 8000)
  2854. bodvol.Parent = hit
  2855. rl = Instance.new("BodyAngularVelocity")
  2856. rl.P = 3000
  2857. rl.maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000
  2858. rl.angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10))
  2859. rl.Parent = hit
  2860. game:GetService("Debris"):AddItem(bodvol, 0.5)
  2861. game:GetService("Debris"):AddItem(rl, 0.5)
  2862. else
  2863. do
  2864. if Type == "Shatter" then
  2865. for i = 1, 10 do
  2866. BreakEffect(BrickColor.new("Cyan"), hit.CFrame, math.random(20, 80) / 100, math.random(2, 10), math.random(20, 80) / 100)
  2867. end
  2868. else
  2869. do
  2870. if Type == "Knockdown2" then
  2871. hum = hit.Parent.Humanoid
  2872. local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit
  2873. local bodvol = Instance.new("BodyVelocity")
  2874. bodvol.velocity = angle * knockback
  2875. bodvol.P = 5000
  2876. bodvol.maxForce = Vector3.new(8000, 8000, 8000)
  2877. bodvol.Parent = hit
  2878. game:GetService("Debris"):AddItem(bodvol, 0.5)
  2879. else
  2880. do
  2881. if Type == "Normal" then
  2882. vp = Instance.new("BodyVelocity")
  2883. vp.P = 500
  2884. vp.maxForce = Vector3.new(math.huge, 0, math.huge)
  2885. if KnockbackType == 1 then
  2886. vp.velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05
  2887. else
  2888. if KnockbackType == 2 then
  2889. vp.velocity = Property.CFrame.lookVector * knockback
  2890. end
  2891. end
  2892. game:GetService("Debris"):AddItem(vp, 0.5)
  2893. if knockback > 0 then
  2894. vp.Parent = hit.Parent.Torso
  2895. end
  2896. end
  2897. debounce = Instance.new("BoolValue")
  2898. debounce.Name = "DebounceHit"
  2899. debounce.Parent = hit.Parent
  2900. debounce.Value = true
  2901. game:GetService("Debris"):AddItem(debounce, Delay)
  2902. c = Instance.new("ObjectValue")
  2903. c.Name = "creator"
  2904. c.Value = Player
  2905. c.Parent = h
  2906. game:GetService("Debris"):AddItem(c, 0.5)
  2907. CRIT = false
  2908. end
  2909. end
  2910. end
  2911. end
  2912. end
  2913. end
  2914. end
  2915. end
  2916. end
  2917. showDamage = function(Char, Dealt, Type)
  2918. m = Instance.new("Model")
  2919. m.Name = "Effect"
  2920. c = Instance.new("Part")
  2921. c.Transparency = 1
  2922. c.Name = "Head"
  2923. c.TopSurface = 0
  2924. c.BottomSurface = 0
  2925. c.formFactor = "Plate"
  2926. c.Size = Vector3.new(1, 0.4, 1)
  2927. b = Instance.new("BillboardGui", c)
  2928. b.Size = UDim2.new(5, 0, 5, 0)
  2929. b.AlwaysOnTop = true
  2930. damgui = gui("TextLabel", b, tostring(Dealt), 1, Color3.new(0, 0, 0), UDim2.new(0, 0, 0, 0), UDim2.new(1, 0, 1, 0))
  2931. if Type == "Damage" then
  2932. damgui.Font = "SourceSans"
  2933. if Dealt == "Block" then
  2934. damgui.TextColor3 = BrickColor.new("Bright blue").Color
  2935. else
  2936. if Dealt < 3 then
  2937. damgui.TextColor3 = BrickColor.new("White").Color
  2938. else
  2939. if Dealt >= 3 and Dealt < 20 then
  2940. damgui.TextColor3 = BrickColor.new("Bright yellow").Color
  2941. else
  2942. damgui.TextColor3 = BrickColor.new("Really red").Color
  2943. damgui.Font = "SourceSansBold"
  2944. end
  2945. end
  2946. end
  2947. else
  2948. if Type == "Debuff" then
  2949. damgui.TextColor3 = BrickColor.new("White").Color
  2950. else
  2951. if Type == "Interrupt" then
  2952. damgui.TextColor3 = BrickColor.new("New Yeller").Color
  2953. end
  2954. end
  2955. end
  2956. damgui.TextScaled = true
  2957. ms = Instance.new("CylinderMesh")
  2958. ms.Scale = Vector3.new(0.8, 0.8, 0.8)
  2959. ms.Parent = c
  2960. c.Reflectance = 0
  2961. Instance.new("BodyGyro").Parent = c
  2962. c.Parent = m
  2963. if Char:findFirstChild("Head") ~= nil then
  2964. c.CFrame = cf(Char.Head.CFrame.p + Vector3.new(math.random(-100, 100) / 100, 3, math.random(-100, 100) / 100))
  2965. else
  2966. if Char.Parent:findFirstChild("Head") ~= nil then
  2967. c.CFrame = cf(Char.Parent.Head.CFrame.p + Vector3.new(math.random(-100, 100) / 100, 3, math.random(-100, 100) / 100))
  2968. end
  2969. end
  2970. f = Instance.new("BodyPosition")
  2971. f.P = 2000
  2972. f.D = 100
  2973. f.maxForce = Vector3.new(545000, 545000, 545000)
  2974. if Type == "Damage" then
  2975. f.position = c.Position + Vector3.new(0, 3, 0)
  2976. else
  2977. if Type == "Debuff" or Type == "Interrupt" then
  2978. f.position = c.Position + Vector3.new(0, 5, 0)
  2979. end
  2980. end
  2981. f.Parent = c
  2982. game:GetService("Debris"):AddItem(m, 5)
  2983. table.insert(Effects, {m, "showDamage", damgui, f, 10, 1, 15, 50, 100})
  2984. c.CanCollide = false
  2985. m.Parent = workspace
  2986. c.CanCollide = false
  2987. end
  2988. combo = 0
  2989. ob1d = function(mouse)
  2990. if gun == true then
  2991. shoot = true
  2992. if Ammo > 0 then
  2993. Ammo = Ammo - 1
  2994. so("203691885", gunpart, 1, 1)
  2995. if XVbullet == false then
  2996. Shootcombo()
  2997. else
  2998. XVShot()
  2999. end
  3000. else
  3001. so("203691822", gunpart, 1, 1)
  3002. end
  3003. gun = false
  3004. end
  3005. if attack == true or equipped == false then
  3006. return
  3007. end
  3008. hold = true
  3009. if combo == 0 then
  3010. combo = 1
  3011. attackone()
  3012. else
  3013. if combo == 1 then
  3014. combo = 2
  3015. attacktwo()
  3016. else
  3017. if combo == 2 then
  3018. combo = 3
  3019. attackthree()
  3020. else
  3021. if combo == 3 then
  3022. combo = 0
  3023. attackfour()
  3024. end
  3025. end
  3026. end
  3027. end
  3028. coroutine.resume(coroutine.create(function()
  3029. for i = 1, 50 do
  3030. if attack == false then
  3031. swait()
  3032. end
  3033. end
  3034. if attack == false then
  3035. combo = 0
  3036. end
  3037. end))
  3038. end
  3039. ob1u = function(mouse)
  3040. hold = false
  3041. end
  3042. buttonhold = false
  3043. fenbarmove1.MouseButton1Click:connect(do1)
  3044. fenbarmove2.MouseButton1Click:connect(do2)
  3045. fenbarmove3.MouseButton1Click:connect(do3)
  3046. fenbarmove4.MouseButton1Click:connect(do4)
  3047. eul = 0
  3048. equipped = false
  3049. key = function(key)
  3050. if key == "e" and gun == true then
  3051. gun = false
  3052. end
  3053. if key == "v" and obliterate == true then
  3054. do4()
  3055. end
  3056. if attack == true then
  3057. return
  3058. end
  3059. if key == "f" then
  3060. pressedf = true
  3061. fnumb = 0
  3062. attack = true
  3063. if equipped == false then
  3064. equipped = true
  3065. RSH = ch.Torso["Right Shoulder"]
  3066. LSH = ch.Torso["Left Shoulder"]
  3067. RSH.Parent = nil
  3068. LSH.Parent = nil
  3069. RW.Name = "Right Shoulder"
  3070. RW.Part0 = ch.Torso
  3071. RW.C0 = cf(1.5, 0.5, 0)
  3072. RW.C1 = cf(0, 0.5, 0)
  3073. RW.Part1 = ch["Right Arm"]
  3074. RW.Parent = ch.Torso
  3075. LW.Name = "Left Shoulder"
  3076. LW.Part0 = ch.Torso
  3077. LW.C0 = cf(-1.5, 0.5, 0)
  3078. LW.C1 = cf(0, 0.5, 0)
  3079. LW.Part1 = ch["Left Arm"]
  3080. LW.Parent = ch.Torso
  3081. Animate.Parent = nil
  3082. equipanim()
  3083. else
  3084. equipped = false
  3085. hideanim()
  3086. LH.C1 = LHC1
  3087. RH.C1 = RHC1
  3088. Animate.Parent = Humanoid
  3089. swait(0)
  3090. RW.Parent = nil
  3091. LW.Parent = nil
  3092. RSH.Parent = player.Character.Torso
  3093. LSH.Parent = player.Character.Torso
  3094. end
  3095. attack = false
  3096. end
  3097. if equipped == false then
  3098. return
  3099. end
  3100. if key == "e" and gun == false then
  3101. GunStance()
  3102. end
  3103. if key == "z" then
  3104. do1()
  3105. end
  3106. if key == "x" then
  3107. do2()
  3108. end
  3109. if key == "c" then
  3110. do3()
  3111. end
  3112. if key == "v" then
  3113. do4()
  3114. end
  3115. -- DECOMPILER ERROR at PC169: Unhandled construct in 'MakeBoolean' P1
  3116.  
  3117. if key ~= "h" or attack == false then
  3118. RecentEnemy.Value = nil
  3119. end
  3120. end
  3121. key2 = function(key)
  3122. end
  3123. s = function(mouse)
  3124. mouse.Button1Down:connect(function()
  3125. ob1d(mouse)
  3126. end)
  3127. mouse.Button1Up:connect(function()
  3128. ob1u(mouse)
  3129. end)
  3130. mouse.KeyDown:connect(key)
  3131. mouse.KeyUp:connect(key2)
  3132. player = Player
  3133. ch = Character
  3134. MMouse = mouse
  3135. end
  3136. ds = function(mouse)
  3137. end
  3138. Bin.Selected:connect(s)
  3139. Bin.Deselected:connect(ds)
  3140. print("Trooper loaded.")
  3141. local mananum = 0
  3142. local donum = 0
  3143. local stunnum = 0
  3144. local passivenum = 0
  3145. local staggeranim = false
  3146. local stunanim = false
  3147. local Point, LastPoint = nil, nil
  3148. local moving = 0
  3149. local walk = 0
  3150. local walkforw = true
  3151. while 1 do
  3152. swait()
  3153. if 60 <= cooldowns[1] then
  3154. overcharge = false
  3155. if rprt4n.Transparency < 1 and obliterate == false then
  3156. rprt4n.Transparency = rprt4n.Transparency + 0.1
  3157. rprt9n.Transparency = rprt4n.Transparency
  3158. rprt14n.Transparency = rprt4n.Transparency
  3159. rprt15n.Transparency = rprt4n.Transparency
  3160. rprt16n.Transparency = rprt4n.Transparency
  3161. rprt23n.Transparency = rprt4n.Transparency
  3162. rprt24n.Transparency = rprt4n.Transparency
  3163. rprt25n.Transparency = rprt4n.Transparency
  3164. lprt4n.Transparency = rprt4n.Transparency
  3165. lprt9n.Transparency = rprt4n.Transparency
  3166. lprt14n.Transparency = rprt4n.Transparency
  3167. lprt15n.Transparency = rprt4n.Transparency
  3168. lprt16n.Transparency = rprt4n.Transparency
  3169. lprt23n.Transparency = rprt4n.Transparency
  3170. lprt24n.Transparency = rprt4n.Transparency
  3171. lprt25n.Transparency = rprt4n.Transparency
  3172. end
  3173. end
  3174. if Humanoid.Health <= 0 then
  3175. attack = true
  3176. resumeControl()
  3177. modelzorz.Parent = workspace
  3178. game:GetService("Debris"):AddItem(modelzorz, 30)
  3179. for i = 1, #Weapon do
  3180. Weapon[i].Parent = modelzorz
  3181. Weapon[i].CanCollide = true
  3182. end
  3183. for i = 1, #Welds do
  3184. if Welds[i].Part0.Parent == Character or Welds[i].Part1.Parent == Character then
  3185. Welds[i].Parent = nil
  3186. else
  3187. Welds[i].Parent = rprt1
  3188. end
  3189. end
  3190. end
  3191. do
  3192. if fnumb < 21 then
  3193. fnumb = fnumb + 1
  3194. if pressedf == false then
  3195. fenframe5.BackgroundTransparency = fenframe5.BackgroundTransparency - 0.025
  3196. tellbar.TextTransparency = tellbar.TextTransparency - 0.05
  3197. tellbar.TextStrokeTransparency = tellbar.TextStrokeTransparency - 0.05
  3198. else
  3199. if fnumb == 20 then
  3200. fenframe5.Parent = nil
  3201. print("daigui")
  3202. end
  3203. fenframe5.BackgroundTransparency = fenframe5.BackgroundTransparency + 0.025
  3204. tellbar.TextTransparency = tellbar.TextTransparency + 0.05
  3205. tellbar.TextStrokeTransparency = tellbar.TextStrokeTransparency + 0.05
  3206. end
  3207. end
  3208. if hbwld.Parent == nil then
  3209. hitbox2.Name = "Hitbox"
  3210. else
  3211. hitbox2.Name = "Hitbox2"
  3212. end
  3213. hitbox2.Parent = hitbox.Parent
  3214. hitbox2.Size = hitbox.Size
  3215. hitbox2.CFrame = hitboxCF
  3216. hboxpos.position = hitbox2.Position + vt(math.random(-100, 100) / 100, math.random(-100, 100) / 100, math.random(-100, 100) / 100)
  3217. passivenum = passivenum + 1
  3218. if 100 <= passivenum then
  3219. passivenum = 0
  3220. if passive.Value < 0 then
  3221. passive.Value = passive.Value / 2
  3222. if 0 < passive.Value then
  3223. passive.Value = 0
  3224. end
  3225. end
  3226. end
  3227. if Stagger.Value == true and staggeranim == false then
  3228. coroutine.resume(coroutine.create(function()
  3229. staggeranim = true
  3230. while attack == true do
  3231. swait()
  3232. end
  3233. StaggerAnim()
  3234. StaggerHit.Value = false
  3235. Stagger.Value = false
  3236. staggeranim = false
  3237. end))
  3238. end
  3239. if StaggerHit.Value == true and staggeranim == false then
  3240. coroutine.resume(coroutine.create(function()
  3241. staggeranim = true
  3242. while attack == true do
  3243. swait()
  3244. end
  3245. StaggerHitt()
  3246. StaggerHit.Value = false
  3247. Stagger.Value = false
  3248. staggeranim = false
  3249. end))
  3250. end
  3251. if Mvmt.Value < 0 or Stagger.Value == true or StunT.Value <= Stun.Value or StaggerHit.Value == true or Rooted.Value == true then
  3252. Humanoid.WalkSpeed = 0
  3253. else
  3254. Humanoid.WalkSpeed = 16 * Mvmt.Value
  3255. end
  3256. if StunT.Value <= Stun.Value and stunanim == false then
  3257. coroutine.resume(coroutine.create(function()
  3258. stunanim = true
  3259. while attack == true do
  3260. swait()
  3261. end
  3262. StunAnim()
  3263. Stun.Value = 0
  3264. stunanim = false
  3265. end))
  3266. end
  3267. local stunnum2 = 40
  3268. if stunnum2 <= stunnum then
  3269. if 0 < Stun.Value then
  3270. Stun.Value = Stun.Value - 1
  3271. end
  3272. stunnum = 0
  3273. end
  3274. stunnum = stunnum + 1
  3275. if 0.5 <= donum then
  3276. handidle = true
  3277. else
  3278. if donum <= 0 then
  3279. handidle = false
  3280. end
  3281. end
  3282. if handidle == false then
  3283. donum = donum + 0.003
  3284. else
  3285. donum = donum - 0.003
  3286. end
  3287. local torvel = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  3288. local velderp = RootPart.Velocity.y
  3289. hitfloor, posfloor = rayCast(RootPart.Position, CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0)).lookVector, 4, Character)
  3290. if equipped == true then
  3291. if attack == false then
  3292. idle = idle + 1
  3293. else
  3294. idle = 0
  3295. end
  3296. if (500 <= idle and attack ~= false) or Anim == "Walk" then
  3297. if walkforw == true then
  3298. RH.C1 = clerp(RH.C1, RHC1 * cf(0.2, -0.2, 0) * euler(0, 0, 1), Mvmt.Value * 10 / 50)
  3299. LH.C1 = clerp(LH.C1, LHC1 * cf(0.1, 0.2, 0) * euler(0, 0, 1), Mvmt.Value * 10 / 50)
  3300. else
  3301. RH.C1 = clerp(RH.C1, RHC1 * cf(-0.1, 0.2, 0) * euler(0, 0, -1), Mvmt.Value * 10 / 50)
  3302. LH.C1 = clerp(LH.C1, LHC1 * cf(-0.2, -0.2, 0) * euler(0, 0, -1), Mvmt.Value * 10 / 50)
  3303. end
  3304. else
  3305. RH.C1 = clerp(RH.C1, RHC1, 0.2)
  3306. LH.C1 = clerp(LH.C1, LHC1, 0.2)
  3307. end
  3308. if 1 < RootPart.Velocity.y and hitfloor == nil then
  3309. Anim = "Jump"
  3310. if attack == false then
  3311. Neck.C0 = clerp(Neck.C0, necko * euler(-0.2, 0, 0), 0.2)
  3312. Neck.C1 = clerp(Neck.C1, necko2 * euler(0, 0, 0), 0.2)
  3313. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, 0), 0.2)
  3314. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.3, 0, 0.8) * euler(0, 0.3, 0), 0.2)
  3315. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  3316. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.3, 0, -0.8) * euler(0, -0.3, 0), 0.2)
  3317. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  3318. RH.C0 = clerp(RH.C0, cf(1, -1, -0.3) * euler(-0.5, 1.57, 0) * euler(-0.2, 0, 0), 0.2)
  3319. LH.C0 = clerp(LH.C0, cf(-1, -1, -0.3) * euler(-0.5, -1.57, 0) * euler(-0.2, 0, 0), 0.2)
  3320. end
  3321. else
  3322. if RootPart.Velocity.y < -1 and hitfloor == nil then
  3323. Anim = "Fall"
  3324. if attack == false then
  3325. Neck.C0 = clerp(Neck.C0, necko * euler(0.4, 0, 0), 0.2)
  3326. Neck.C1 = clerp(Neck.C1, necko2 * euler(0, 0, 0), 0.2)
  3327. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, 0), 0.2)
  3328. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(0.2, 0, 1.2), 0.2)
  3329. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  3330. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(0.2, 0, -1.2), 0.3)
  3331. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  3332. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0.4, 1.57, 0), 0.2)
  3333. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(-0.2, -1.57, 0), 0.2)
  3334. end
  3335. else
  3336. if torvel < 1 and hitfloor ~= nil then
  3337. Anim = "Idle"
  3338. if attack == false then
  3339. if gunleft == true and gunright == true then
  3340. rwld1.C0 = clerp(rwld1.C0, euler(1.57, 0, 0) * cf(0, 0.9, -0.2), 0.15)
  3341. lwld1.C0 = clerp(lwld1.C0, euler(1.57, 0, 0) * cf(0, 0.9, -0.2), 0.15)
  3342. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, -0.5) * euler(0.1, 0, 0), 0.2)
  3343. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.2) * euler(0, 0, 0.5), 0.2)
  3344. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(1.6 - (donum) / 5, 0, 0.3 + (donum) / 7) * euler(0, 0.2, 0), 0.2)
  3345. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  3346. LW.C0 = clerp(LW.C0, cf(-1, 0.5, -0.5) * euler(1.7 - (donum) / 5, 0, 0.4 - (donum) / 7) * euler(0, -1.57, 0), 0.2)
  3347. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  3348. RH.C0 = clerp(RH.C0, cf(1.1, -1, 0) * euler(0, 1.07, -0.1), 0.2)
  3349. LH.C0 = clerp(LH.C0, cf(-1, -0.9, 0) * euler(0, -2.07, 0.4), 0.2)
  3350. else
  3351. if gunleft == false and gunright == false then
  3352. rwld1.C0 = clerp(rwld1.C0, euler(1.57, 0, 0) * cf(0, 0.9, -0.2), 0.15)
  3353. lwld1.C0 = clerp(lwld1.C0, euler(1.57, 0, 0) * cf(0, 0.9, -0.2), 0.15)
  3354. Neck.C0 = clerp(Neck.C0, necko * euler(0.2, 0, -0.8), 0.2)
  3355. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.2) * euler(0, 0, 0.8), 0.2)
  3356. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(1.6 - (donum) / 2, 0, 0.6 + (donum) / 2) * euler(0, 1.57, 0), 0.2)
  3357. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  3358. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(1.7 - (donum) / 2, 0, -0.2 - (donum) / 2) * euler(0, -1.57, 0), 0.2)
  3359. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  3360. RH.C0 = clerp(RH.C0, cf(0.9, -1, 0.4) * euler(0, 0.77, -0.1), 0.2)
  3361. LH.C0 = clerp(LH.C0, cf(-0.9, -0.9, -0.4) * euler(0, -2.37, 0.4), 0.2)
  3362. else
  3363. rwld1.C0 = clerp(rwld1.C0, euler(1.57, 0, 0) * cf(0, 0.9, -0.2), 0.15)
  3364. lwld1.C0 = clerp(lwld1.C0, euler(1.57, 0, 0) * cf(0, 0.9, -0.2), 0.15)
  3365. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0), 0.2)
  3366. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.2) * euler(0, 0, 0), 0.2)
  3367. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(1.3 - (donum) / 3, 0, 0.3 + (donum) / 3) * euler(0, 0.6, 0), 0.2)
  3368. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  3369. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(1.3 - (donum) / 3, 0, -0.3 - (donum) / 3) * euler(0, -0.6, 0), 0.2)
  3370. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  3371. RH.C0 = clerp(RH.C0, cf(1.1, -1, 0) * euler(0, 1.57, 0.1), 0.2)
  3372. LH.C0 = clerp(LH.C0, cf(-1, -0.9, 0) * euler(0, -1.57, 0.4), 0.2)
  3373. end
  3374. end
  3375. end
  3376. else
  3377. if 2 < torvel and torvel < 30 and hitfloor ~= nil then
  3378. Anim = "Walk"
  3379. walk = walk + 1
  3380. if 15 - 5 * Mvmt.Value <= walk then
  3381. walk = 0
  3382. if walkforw == true then
  3383. walkforw = false
  3384. else
  3385. if walkforw == false then
  3386. walkforw = true
  3387. end
  3388. end
  3389. end
  3390. if attack == false then
  3391. rwld1.C0 = clerp(rwld1.C0, euler(1.57, 0, 0) * cf(0, 0.9, -0.2), 0.2)
  3392. lwld1.C0 = clerp(lwld1.C0, euler(1.57, 0, 0) * cf(0, 0.9, -0.2), 0.2)
  3393. Neck.C0 = clerp(Neck.C0, necko * euler(0.05, 0, 0), 0.2)
  3394. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, 0), 0.2)
  3395. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.5, 0, 0.5) * euler(0, 0.6, 0), 0.2)
  3396. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  3397. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.5, 0, -0.5) * euler(0, -0.6, 0), 0.2)
  3398. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  3399. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0, 1.57, 0), 0.2)
  3400. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, -1.57, 0), 0.2)
  3401. end
  3402. else
  3403. if 30 <= torvel and hitfloor ~= nil then
  3404. Anim = "Run"
  3405. if attack == false then
  3406. rwld1.C0 = clerp(rwld1.C0, euler(1.57, 0, 0) * cf(0, 0.9, -0.2), 0.4)
  3407. lwld1.C0 = clerp(lwld1.C0, euler(1.57, 0, 0) * cf(0, 0.9, -0.2), 0.4)
  3408. Neck.C0 = clerp(Neck.C0, necko * euler(0.2, 0, 0), 0.4)
  3409. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.5) * euler(0.2, 0, 0), 0.4)
  3410. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.5, 0, 0.5) * euler(0, 0.6, 0), 0.4)
  3411. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  3412. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.5, 0, -0.5) * euler(0, -0.6, 0), 0.4)
  3413. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  3414. RH.C0 = clerp(RH.C0, cf(1, -0.7, 0) * euler(0, 1.57, 0) * euler(-0.2, 0, 0.4), 0.4)
  3415. LH.C0 = clerp(LH.C0, cf(-1, -0.7, 0) * euler(0, -1.57, 0) * euler(-0.2, 0, -0.4), 0.4)
  3416. end
  3417. end
  3418. end
  3419. end
  3420. end
  3421. end
  3422. end
  3423. if 0 < #Effects then
  3424. for e = 1, #Effects do
  3425. if Effects[e] ~= nil then
  3426. local Thing = Effects[e]
  3427. if Thing ~= nil then
  3428. local Part = Thing[1]
  3429. local Mode = Thing[2]
  3430. local Delay = Thing[3]
  3431. local IncX = Thing[4]
  3432. local IncY = Thing[5]
  3433. local IncZ = Thing[6]
  3434. if Thing[2] == "Shoot" then
  3435. local Look = Thing[1]
  3436. local hit, pos = rayCast(Thing[4], Look, 30, modelzorz)
  3437. local mag = (Thing[4] - pos).magnitude
  3438. MagicHead(BrickColor.new(NewCol), CFrame.new((Thing[4] + pos) / 2, pos) * angles(1.57, 0, 0), 1, mag * 5, 1, 0.5, 0, 0.5, 0.2)
  3439. if Thing[8] == 2 then
  3440. MagicRing(BrickColor.new(NewCol), CFrame.new((Thing[4] + pos) / 2, pos) * angles(1.57, 0, 0) * euler(1.57, 0, 0), 1, 1, 0.1, 0.5, 0.5, 0.1, 0.1, 1)
  3441. end
  3442. if 2 < Thing[5] then
  3443. Thing[5] = Thing[5] - 0.3
  3444. Thing[6] = Thing[6] - 0.3
  3445. end
  3446. Thing[4] = Thing[4] + Look * 30
  3447. Thing[3] = Thing[3] - 1
  3448. if hit ~= nil then
  3449. Thing[3] = 0
  3450. if Thing[8] == 1 then
  3451. Damagefunc(hit, Thing[5], Thing[6], Thing[7], "Normal", RootPart, 0, 2, (math.random(1, 5)), nil, nil, true)
  3452. else
  3453. if Thing[8] == 2 then
  3454. Damagefunc(hit, Thing[5], Thing[6], Thing[7], "Normal", RootPart, 0.1, 2, (math.random(3, 8)), nil, nil, true, "Defense", 0.05, 100)
  3455. if (hit.Parent:findFirstChild("Humanoid")) ~= nil or (hit.Parent.Parent:findFirstChild("Humanoid")) ~= nil then
  3456. ref = part(3, workspace, 0, 1, BrickColor.new("Really red"), "Reference", vt())
  3457. ref.Anchored = true
  3458. ref.CFrame = cf(pos)
  3459. so("161006093", ref, 1, 1.2)
  3460. game:GetService("Debris"):AddItem(ref, 0.2)
  3461. MagicBlock(BrickColor.new(NewCol), cf(ref.Position) * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 1, 1, 1, 10, 10, 10, 0.1, 2)
  3462. MagicRing(BrickColor.new("Bright yellow"), cf(ref.Position) * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 1, 1, 0.1, 4, 4, 0.1, 0.1)
  3463. MagniDamage(ref, 15, Thing[5] / 1.5, Thing[6] / 1.5, 0, "Normal", ref, 0, 1, (math.random(3, 8)), nil, nil, true, "Defense", 0.025, 100)
  3464. end
  3465. end
  3466. end
  3467. ref = part(3, workspace, 0, 1, BrickColor.new("Really red"), "Reference", vt())
  3468. ref.Anchored = true
  3469. ref.CFrame = cf(pos)
  3470. MagicCircle(BrickColor.new(NewCol), cf(pos), 5, 5, 5, 1, 1, 1, 0.07)
  3471. game:GetService("Debris"):AddItem(ref, 1)
  3472. end
  3473. if Thing[3] <= 0 then
  3474. table.remove(Effects, e)
  3475. end
  3476. end
  3477. do
  3478. do
  3479. if Thing[2] == "CylinderClang" then
  3480. if Thing[3] <= 1 then
  3481. Thing[1].CFrame = Thing[1].CFrame * CFrame.new(0, 2.5 * Thing[5], 0) * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0)
  3482. Thing[7] = Thing[1].CFrame
  3483. effect("New Yeller", 0, Thing[8], Thing[7])
  3484. Thing[8] = Thing[7]
  3485. Thing[3] = Thing[3] + Thing[4]
  3486. else
  3487. Part.Parent = nil
  3488. table.remove(Effects, e)
  3489. end
  3490. end
  3491. if Thing[2] == "FireWave" then
  3492. if Thing[3] <= Thing[4] then
  3493. Thing[1].CFrame = Thing[1].CFrame * euler(0, 1, 0)
  3494. Thing[3] = Thing[3] + 1
  3495. Thing[6].Scale = Thing[6].Scale + vt(Thing[5], 0, Thing[5])
  3496. else
  3497. Part.Parent = nil
  3498. table.remove(Effects, e)
  3499. end
  3500. end
  3501. if Thing[2] == "showDamage" then
  3502. if Thing[6] < Thing[5] then
  3503. Thing[6] = Thing[6] + 1
  3504. else
  3505. if Thing[6] < Thing[7] then
  3506. Thing[4].position = Thing[4].position + vt(0, -0.2, 0)
  3507. Thing[6] = Thing[6] + 1
  3508. else
  3509. if Thing[6] < Thing[8] then
  3510. Thing[6] = Thing[6] + 1
  3511. else
  3512. if Thing[6] < Thing[9] then
  3513. Thing[6] = Thing[6] + 1
  3514. Thing[4].position = Thing[4].position + vt(0, 0.2, 0)
  3515. Thing[3].TextStrokeTransparency = Thing[3].TextStrokeTransparency + 0.1
  3516. Thing[3].TextTransparency = Thing[3].TextTransparency + 0.1
  3517. else
  3518. Thing[1].Parent = nil
  3519. table.remove(Effects, e)
  3520. end
  3521. end
  3522. end
  3523. end
  3524. end
  3525. if Thing[2] ~= "Shoot" and Thing[2] ~= "DecreaseStat" and Thing[2] ~= "Wave" and Thing[2] ~= "FireWave" and Thing[2] ~= "showDamage" then
  3526. if Thing[1].Transparency <= 1 then
  3527. if Thing[2] == "Block1" then
  3528. Thing[1].CFrame = Thing[1].CFrame * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  3529. Mesh = Thing[7]
  3530. Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6])
  3531. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  3532. else
  3533. if Thing[2] == "Block2" then
  3534. Thing[1].CFrame = Thing[1].CFrame
  3535. Mesh = Thing[7]
  3536. Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6])
  3537. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  3538. else
  3539. if Thing[2] == "Fire" then
  3540. Thing[1].CFrame = cf(Thing[1].Position) + vt(0, 0.2, 0)
  3541. Thing[1].CFrame = Thing[1].CFrame * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  3542. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  3543. else
  3544. if Thing[2] == "Cylinder" then
  3545. Mesh = Thing[7]
  3546. Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6])
  3547. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  3548. else
  3549. if Thing[2] == "Blood" then
  3550. Mesh = Thing[7]
  3551. Thing[1].CFrame = Thing[1].CFrame * cf(0, 0.5, 0)
  3552. Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6])
  3553. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  3554. else
  3555. if Thing[2] == "Elec" then
  3556. Mesh = Thing[10]
  3557. Mesh.Scale = Mesh.Scale + vt(Thing[7], Thing[8], Thing[9])
  3558. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  3559. else
  3560. if Thing[2] == "Disappear" then
  3561. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  3562. end
  3563. end
  3564. end
  3565. end
  3566. end
  3567. end
  3568. end
  3569. else
  3570. Part.Parent = nil
  3571. table.remove(Effects, e)
  3572. end
  3573. end
  3574. -- DECOMPILER ERROR at PC9148: LeaveBlock: unexpected jumping out DO_STMT
  3575.  
  3576. -- DECOMPILER ERROR at PC9148: LeaveBlock: unexpected jumping out IF_THEN_STMT
  3577.  
  3578. -- DECOMPILER ERROR at PC9148: LeaveBlock: unexpected jumping out IF_STMT
  3579.  
  3580. -- DECOMPILER ERROR at PC9148: LeaveBlock: unexpected jumping out IF_THEN_STMT
  3581.  
  3582. -- DECOMPILER ERROR at PC9148: LeaveBlock: unexpected jumping out IF_STMT
  3583.  
  3584. end
  3585. end
  3586. end
  3587. end
  3588. end
  3589. end
  3590. fenbarmana2:TweenSize((UDim2.new(0.4, 0, -4 * mana.Value / 100, 0)), nil, 1, 0.4, true)
  3591. fenbarmana4.Text = "Mana(" .. mana.Value .. ")"
  3592. fenbarhp2.BackgroundColor3 = Color3.new(Humanoid.Health / Humanoid.MaxHealth, 0, 0)
  3593. fenbarhp2:TweenSize((UDim2.new(Humanoid.Health / Humanoid.MaxHealth, 0, 1, 0)), nil, 1, 0.4, true)
  3594. fenbarhp3.Text = "(" .. math.floor(Humanoid.Health) .. ")"
  3595. fenbarmove1b:TweenSize((UDim2.new(1 * cooldowns[1] / cooldownmax, 0, 1, 0)), nil, 1, 0.4, true)
  3596. fenbarmove2b:TweenSize((UDim2.new(1 * cooldowns[2] / cooldownmax, 0, 1, 0)), nil, 1, 0.4, true)
  3597. fenbarmove3b:TweenSize((UDim2.new(1 * cooldowns[3] / cooldownmax, 0, 1, 0)), nil, 1, 0.4, true)
  3598. fenbarmove4b:TweenSize((UDim2.new(1 * cooldowns[4] / cooldownmax, 0, 1, 0)), nil, 1, 0.4, true)
  3599. for _,c in pairs(Decrease:children()) do
  3600. if (c:findFirstChild("Duration")) ~= nil then
  3601. c.Duration.Value = c.Duration.Value - 1
  3602. if c.Duration.Value <= 0 then
  3603. c.Parent = nil
  3604. end
  3605. end
  3606. if c.Name == "DecreaseAtk" then
  3607. decreaseatk = decreaseatk + c.Value
  3608. else
  3609. if c.Name == "DecreaseDef" then
  3610. decreasedef = decreasedef + c.Value
  3611. else
  3612. if c.Name == "DecreaseMvmt" then
  3613. decreasemvmt = decreasemvmt + c.Value
  3614. end
  3615. end
  3616. end
  3617. end
  3618. Atk.Value = 1 - (decreaseatk)
  3619. if Atk.Value <= 0 then
  3620. Atk.Value = 0
  3621. end
  3622. Def.Value = 1 - (decreasedef)
  3623. if Def.Value <= 0 then
  3624. Def.Value = 0.01
  3625. end
  3626. Mvmt.Value = 1 - (decreasemvmt)
  3627. if Mvmt.Value <= 0 then
  3628. Mvmt.Value = 0
  3629. end
  3630. decreaseatk = 0
  3631. decreasedef = 0
  3632. decreasemvmt = 0
  3633. AtkVal = Atk.Value * 100
  3634. AtkVal = math.floor(AtkVal)
  3635. AtkVal = AtkVal / 100
  3636. fenbardamage.Text = "Damage\n(" .. AtkVal .. ")"
  3637. DefVal = Def.Value * 100
  3638. DefVal = math.floor(DefVal)
  3639. DefVal = DefVal / 100
  3640. fenbardef.Text = "Defense\n(" .. DefVal .. ")"
  3641. MvmtVal = Mvmt.Value * 100
  3642. MvmtVal = math.floor(MvmtVal)
  3643. MvmtVal = MvmtVal / 100
  3644. if Rooted.Value == true then
  3645. MvmtVal = 0
  3646. end
  3647. fenbarmove.Text = "Walkspeed\n(" .. MvmtVal .. ")"
  3648. fenbarammo1.Text = "Ammo\n(" .. Ammo .. ")"
  3649. if StunT.Value <= Stun.Value then
  3650. fenbarstun2:TweenSize((UDim2.new(0.4, 0, -4, 0)), nil, 1, 0.4, true)
  3651. else
  3652. fenbarstun2:TweenSize((UDim2.new(0.4, 0, -4 * Stun.Value / StunT.Value, 0)), nil, 1, 0.4, true)
  3653. end
  3654. fenbarstun3.Text = "Stun(" .. Stun.Value .. ")"
  3655. if 100 <= mana.Value then
  3656. mana.Value = 100
  3657. else
  3658. if mananum <= 8 then
  3659. mananum = mananum + 1
  3660. else
  3661. mananum = 0
  3662. mana.Value = mana.Value + 1
  3663. end
  3664. end
  3665. for i = 1, #cooldowns do
  3666. if cooldownmax <= cooldowns[i] then
  3667. cooldowns[i] = cooldownmax
  3668. else
  3669. cooldowns[i] = cooldowns[i] + cooldownsadd[i]
  3670. end
  3671. end
  3672. -- DECOMPILER ERROR at PC9514: LeaveBlock: unexpected jumping out DO_STMT
  3673.  
  3674. end
  3675. end
Add Comment
Please, Sign In to add comment