Advertisement
Dark_EccentricYT

Untitled

May 21st, 2017
1,447
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 193.68 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. Face = Head.face
  9. LeftArm = Character["Left Arm"]
  10. LeftLeg = Character["Left Leg"]
  11. RightArm = Character["Right Arm"]
  12. RightLeg = Character["Right Leg"]
  13. LS = Torso["Left Shoulder"]
  14. LH = Torso["Left Hip"]
  15. RS = Torso["Right Shoulder"]
  16. RH = Torso["Right Hip"]
  17. Neck = Torso.Neck
  18. it = Instance.new
  19. vt = Vector3.new
  20. cf = CFrame.new
  21. euler = CFrame.fromEulerAnglesXYZ
  22. angles = CFrame.Angles
  23. necko = cf(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  24. necko2 = cf(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  25. LHC0 = cf(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  26. LHC1 = cf(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  27. RHC0 = cf(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  28. RHC1 = cf(0.5, 1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  29. RootPart = Character.HumanoidRootPart
  30. RootJoint = RootPart.RootJoint
  31. RootCF = euler(-1.57, 0, 3.14)
  32. attack = false
  33. attackdebounce = false
  34. MMouse = nil
  35. combo = 0
  36. local hitfloor, posfloor = nil, nil
  37. local idle = 0
  38. local Anim = "Idle"
  39. local Effects = {}
  40. local decreaseatk = 0
  41. local decreasedef = 0
  42. local decreasemvmt = 0
  43. local equipped = false
  44. local manainc = 9
  45. local triangparent = workspace
  46. local dynamomove = true
  47. local Mode = "Classic"
  48. local overload = 0
  49. local defending = false
  50. local choosemode = false
  51. local move1 = "(Z)\n[MORPH SHIELD]\nVital Stab"
  52. local move2 = "(X)\n[DYNAMIC BLADE]\nKinetic Strike"
  53. local move3 = "(C)\n[ENERGY REACTOR]\nLaser Barrage"
  54. local move4 = "(V)\n"
  55. local cooldowns = {}
  56. local cooldown1 = 0
  57. table.insert(cooldowns, cooldown1)
  58. local cooldown2 = 0
  59. table.insert(cooldowns, cooldown2)
  60. local cooldown3 = 0
  61. table.insert(cooldowns, cooldown3)
  62. local cooldown4 = 0
  63. table.insert(cooldowns, cooldown4)
  64. local cooldownsadd = {}
  65. local cooldownadd1 = 0.48
  66. table.insert(cooldownsadd, cooldownadd1)
  67. local cooldownadd2 = 0.34
  68. table.insert(cooldownsadd, cooldownadd2)
  69. local cooldownadd3 = 0.45
  70. table.insert(cooldownsadd, cooldownadd3)
  71. local cooldownadd4 = 0.1
  72. table.insert(cooldownsadd, cooldownadd4)
  73. local cooldownmax = 100
  74. player = nil
  75. RSH,LSH = nil,nil
  76. RW,LW = Instance.new("Motor"),Instance.new("Motor")
  77. RW.Name = "Right Shoulder"
  78. LW.Name = "Left Shoulder"
  79. LH = Torso["Left Hip"]
  80. RH = Torso["Right Hip"]
  81. TorsoColor = Torso.BrickColor
  82. TorsoRed = TorsoColor.Color.r
  83. TorsoGreen = TorsoColor.Color.g
  84. TorsoBlue = TorsoColor.Color.b
  85. NewCol = BrickColor.new("Institutional white").Color
  86. NewCol2 = BrickColor.new("Institutional white").Color
  87. NewCol3 = BrickColor.new("Grey").Color
  88. if Player:findFirstChild("Color1") ~= nil then
  89. NewCol = Player.Color1.Value
  90. end
  91. if Player:findFirstChild("Color2") ~= nil then
  92. NewCol2 = Player.Color2.Value
  93. end
  94. print(BrickColor.new(NewCol))
  95. local mdec = Instance.new("NumberValue", Decrease)
  96. mdec.Name = "DecreaseDef"
  97. mdec.Value = 0.4
  98. local mdec2 = Instance.new("NumberValue", Decrease)
  99. mdec2.Name = "DecreaseMvmt"
  100. mdec2.Value = 0.1
  101. local Animate = Humanoid.Animator
  102. local canjump = true
  103.  
  104. ArtificialHB = Instance.new("BindableEvent", script)
  105. ArtificialHB.Name = "Heartbeat"
  106.  
  107. script:WaitForChild("Heartbeat")
  108.  
  109. frame = 1 / 40
  110. tf = 0
  111. allowframeloss = false
  112. tossremainder = false
  113. lastframe = tick()
  114. script.Heartbeat:Fire()
  115.  
  116. game:GetService("RunService").Heartbeat:connect(function(s, p)
  117. tf = tf + s
  118. if tf >= frame then
  119. if allowframeloss then
  120. script.Heartbeat:Fire()
  121. lastframe = tick()
  122. else
  123. for i = 1, math.floor(tf / frame) do
  124. script.Heartbeat:Fire()
  125. end
  126. lastframe = tick()
  127. end
  128. if tossremainder then
  129. tf = 0
  130. else
  131. tf = tf - frame * math.floor(tf / frame)
  132. end
  133. end
  134. end)
  135.  
  136. function swait(num)
  137. if num == 0 or num == nil then
  138. ArtificialHB.Event:wait()
  139. else
  140. for i = 0, num do
  141. ArtificialHB.Event:wait()
  142. end
  143. end
  144. end
  145.  
  146. createpassgui = function(parent)
  147. print("makegui111")
  148. local g = Instance.new("ScreenGui", parent)
  149. local f = Instance.new("Frame", g)
  150. f.Position = UDim2.new(0.3, 0, 0.25, 0)
  151. f.Size = UDim2.new(0.4, 0, 0.4, 0)
  152. f.Style = "DropShadow"
  153. local t = Instance.new("TextBox", f)
  154. t.BackgroundColor3 = Color3.new(0, 0, 0)
  155. t.BackgroundTransparency = 0.5
  156. t.BorderSizePixel = 0
  157. t.Position = UDim2.new(0.15, 0, 0.2, 0)
  158. t.Size = UDim2.new(0.7, 0, 0.2, 0)
  159. t.Font = "SourceSansLight"
  160. t.Text = "Enter Access Code."
  161. t.TextScaled = true
  162. t.TextColor3 = Color3.new(1, 1, 1)
  163. t.TextStrokeTransparency = 0
  164. local t2 = Instance.new("TextButton", f)
  165. t2.BackgroundColor3 = Color3.new(0, 0, 0)
  166. t2.BackgroundTransparency = 0.5
  167. t2.BorderSizePixel = 0
  168. t2.Position = UDim2.new(0.3, 0, 0.5, 0)
  169. t2.Size = UDim2.new(0.4, 0, 0.15, 0)
  170. t2.TextScaled = true
  171. t2.Font = "SourceSansLight"
  172. t2.Text = "Submit"
  173. t2.TextColor3 = Color3.new(1, 1, 1)
  174. t2.TextStrokeTransparency = 0
  175. print("done1")
  176. return t2
  177. end
  178.  
  179. if Character:findFirstChild("Permanence", true) ~= nil then
  180. Character:findFirstChild("Permanence", true).Parent = nil
  181. end
  182. if Character:findFirstChild("Dynamo", true) ~= nil then
  183. Character:findFirstChild("Dynamo", true).Parent = nil
  184. end
  185. if Player.PlayerGui:findFirstChild("WeaponGUI", true) ~= nil then
  186. Player.PlayerGui:findFirstChild("WeaponGUI", true).Parent = nil
  187. end
  188. if Character:findFirstChild("Stats", true) ~= nil then
  189. Character:findFirstChild("Stats", true).Parent = nil
  190. end
  191. local Stats = Instance.new("BoolValue")
  192. Stats.Name = "Stats"
  193. Stats.Parent = Character
  194. local Atk = Instance.new("NumberValue")
  195. Atk.Name = "Damage"
  196. Atk.Parent = Stats
  197. Atk.Value = 1
  198. local Def = Instance.new("NumberValue")
  199. Def.Name = "Defense"
  200. Def.Parent = Stats
  201. Def.Value = 1
  202. local Mvmt = Instance.new("NumberValue")
  203. Mvmt.Name = "Movement"
  204. Mvmt.Parent = Stats
  205. Mvmt.Value = 1
  206. local Block = Instance.new("BoolValue")
  207. Block.Name = "Block"
  208. Block.Parent = Stats
  209. Block.Value = false
  210. local Stun = Instance.new("NumberValue")
  211. Stun.Name = "Stun"
  212. Stun.Parent = Stats
  213. Stun.Value = 0
  214. local StunT = Instance.new("NumberValue")
  215. StunT.Name = "StunThreshold"
  216. StunT.Parent = Stats
  217. StunT.Value = 100
  218. local Rooted = Instance.new("BoolValue")
  219. Rooted.Name = "Rooted"
  220. Rooted.Parent = Stats
  221. Rooted.Value = false
  222. local Stunned = Instance.new("BoolValue")
  223. Stunned.Name = "Stunned"
  224. Stunned.Parent = Stats
  225. Stunned.Value = false
  226. local Stagger = Instance.new("BoolValue")
  227. Stagger.Name = "Stagger"
  228. Stagger.Parent = Stats
  229. Stagger.Value = false
  230. local StaggerHit = Instance.new("BoolValue")
  231. StaggerHit.Name = "StaggerHit"
  232. StaggerHit.Parent = Stats
  233. StaggerHit.Value = false
  234. local RecentEnemy = Instance.new("ObjectValue")
  235. RecentEnemy.Name = "RecentEnemy"
  236. RecentEnemy.Parent = Stats
  237. RecentEnemy.Value = nil
  238. local Decrease = Instance.new("BoolValue")
  239. Decrease.Name = "Decrease"
  240. Decrease.Parent = Stats
  241. Decrease.Value = false
  242. local mana = Instance.new("NumberValue")
  243. mana.Name = "Mana"
  244. mana.Parent = Stats
  245. mana.Value = 0
  246. local passive1 = Instance.new("NumberValue", Decrease)
  247. passive1.Name = "DecreaseAtk"
  248. passive1.Value = 0
  249. local passive2 = Instance.new("NumberValue", Decrease)
  250. passive2.Name = "DecreaseDef"
  251. passive2.Value = 0
  252. local passive3 = Instance.new("NumberValue", Decrease)
  253. passive3.Name = "DecreaseMvmt"
  254. passive3.Value = 0
  255. passive1.Value = 0.1
  256. passive2.Value = -0.05
  257. passive3.Value = -0.1
  258. local passive4 = Instance.new("NumberValue", nil)
  259. passive4.Name = "DecreaseDef"
  260. passive4.Value = -0.4
  261. local passive5 = Instance.new("NumberValue", nil)
  262. passive5.Name = "DecreaseMvmt"
  263. passive5.Value = 0.6
  264. NoOutline = function(Part)
  265. Part.TopSurface = 10
  266. end
  267.  
  268. part = function(formfactor, parent, reflectance, transparency, brickcolor, name, size)
  269. local fp = it("Part")
  270. fp.formFactor = formfactor
  271. fp.Parent = parent
  272. fp.Reflectance = reflectance
  273. fp.Transparency = transparency
  274. fp.CanCollide = false
  275. fp.Locked = true
  276. fp.BrickColor = brickcolor
  277. fp.Name = name
  278. fp.Size = size
  279. fp.Position = Torso.Position
  280. NoOutline(fp)
  281. fp.Material = "SmoothPlastic"
  282. fp:BreakJoints()
  283. return fp
  284. end
  285.  
  286. mesh = function(Mesh, part, meshtype, meshid, offset, scale)
  287. local mesh = it(Mesh)
  288. mesh.Parent = part
  289. if Mesh == "SpecialMesh" then
  290. mesh.MeshType = meshtype
  291. if meshid ~= "nil" then
  292. mesh.MeshId = "http://www.roblox.com/asset/?id=" .. meshid
  293. end
  294. end
  295. mesh.Offset = offset
  296. mesh.Scale = scale
  297. return mesh
  298. end
  299.  
  300. weld = function(parent, part0, part1, c0)
  301. local weld = it("Motor")
  302. weld.Parent = parent
  303. weld.Part0 = part0
  304. weld.Part1 = part1
  305. weld.C0 = c0
  306. return weld
  307. end
  308.  
  309. gui = function(GuiType, parent, text, backtrans, backcol, pos, size)
  310. local gui = it(GuiType)
  311. gui.Parent = parent
  312. gui.Text = text
  313. gui.BackgroundTransparency = backtrans
  314. gui.BackgroundColor3 = backcol
  315. gui.SizeConstraint = "RelativeXY"
  316. gui.TextXAlignment = "Center"
  317. gui.TextYAlignment = "Center"
  318. gui.Position = pos
  319. gui.Size = size
  320. gui.Font = "SourceSans"
  321. gui.FontSize = "Size14"
  322. gui.TextWrapped = false
  323. gui.TextStrokeTransparency = 0
  324. gui.TextColor = BrickColor.new("White")
  325. return gui
  326. end
  327.  
  328. local Color1 = Torso.BrickColor
  329. local fengui = it("GuiMain")
  330. fengui.Parent = Player.PlayerGui
  331. fengui.Name = "WeaponGUI"
  332. local fenframe = it("Frame")
  333. fenframe.Parent = fengui
  334. fenframe.BackgroundColor3 = Color3.new(255, 255, 255)
  335. fenframe.BackgroundTransparency = 1
  336. fenframe.BorderColor3 = Color3.new(17, 17, 17)
  337. fenframe.Size = UDim2.new(0.1, 0, 0.1, 0)
  338. fenframe.Position = UDim2.new(0.95, 0, 0.7, 0)
  339. local fenframe2 = it("Frame")
  340. fenframe2.Parent = fengui
  341. fenframe2.BackgroundColor3 = Color3.new(255, 255, 255)
  342. fenframe2.BackgroundTransparency = 1
  343. fenframe2.BorderColor3 = Color3.new(17, 17, 17)
  344. fenframe2.Size = UDim2.new(0.2, 0, 0.1, 0)
  345. fenframe2.Position = UDim2.new(0.4, 0, 0.85, 0)
  346. local fenframe3 = it("Frame")
  347. fenframe3.Parent = fengui
  348. fenframe3.BackgroundColor3 = Color3.new(255, 255, 255)
  349. fenframe3.BackgroundTransparency = 1
  350. fenframe3.BorderColor3 = Color3.new(17, 17, 17)
  351. fenframe3.Size = UDim2.new(0.2, 0, 0.2, 0)
  352. fenframe3.Position = UDim2.new(0.8, 0, 0.8, 0)
  353. fenframe3.Name = "MoveFrame"
  354. local fenframe4 = it("Frame")
  355. fenframe4.Parent = fengui
  356. fenframe4.BackgroundColor3 = Color3.new(255, 255, 255)
  357. fenframe4.BackgroundTransparency = 1
  358. fenframe4.BorderColor3 = Color3.new(17, 17, 17)
  359. fenframe4.Size = UDim2.new(0.1, 0, 0.1, 0)
  360. fenframe4.Position = UDim2.new(0, 0, 0.7, 0)
  361. local pressedf = false
  362. local fenframe5 = it("Frame")
  363. fenframe5.Parent = fengui
  364. fenframe5.BackgroundColor3 = Color3.new(0, 0, 0)
  365. fenframe5.BackgroundTransparency = 1
  366. fenframe5.BorderColor3 = Color3.new(0, 0, 0)
  367. fenframe5.Size = UDim2.new(1, 0, 1, 0)
  368. fenframe5.Position = UDim2.new(0, 0, 0, 0)
  369. fenframe5.ZIndex = 2
  370. local tellbar = gui("TextLabel", fenframe5, "Press 'F' to equip.", 1, Color3.new(0, 0, 0), UDim2.new(0.25, 0, 0.25, 0), UDim2.new(0.5, 0, 0.5, 0))
  371. tellbar.Font = "Arial"
  372. tellbar.TextScaled = true
  373. tellbar.TextTransparency = 1
  374. tellbar.TextStrokeTransparency = 1
  375. tellbar.ZIndex = 2
  376. local fnumb = 0
  377. local fenbarmana1 = gui("TextLabel", fenframe, "", 0, Color3.new(0, 0, 0), UDim2.new(0, 0, 0, 0), UDim2.new(0.4, 0, -4, 0))
  378. local fenbarmana2 = gui("TextLabel", fenframe, "", 0, BrickColor.new(NewCol3).Color, UDim2.new(0, 0, 0, 0), UDim2.new(0.4, 0, 0, 0))
  379. 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))
  380. local fenbarblock1 = gui("TextLabel", fenframe, "", 0, Color3.new(0, 0, 0), UDim2.new(-0.7, 0, 0, 0), UDim2.new(0.4, 0, -4, 0))
  381. local fenbarblock2 = gui("TextLabel", fenframe, "", 0, BrickColor.new("White").Color, UDim2.new(-0.7, 0, 0, 0), UDim2.new(0.4, 0, 0, 0))
  382. local fenbarblock3 = gui("TextLabel", fenframe, "Overload(" .. overload .. ")", 1, Color3.new(0, 0, 0), UDim2.new(-0.7, 0, 0.2, 0), UDim2.new(0.4, 0, 0.2, 0))
  383. 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))
  384. 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))
  385. 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))
  386. 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))
  387. local fenbarhp2 = gui("TextLabel", fenbarhp1, "", 0, Color3.new(1, 0, 0), UDim2.new(0, 0, 0, 0), UDim2.new(0, 0, 1, 0))
  388. local fenbarhp3 = gui("TextLabel", fenbarhp1, "(100)", 1, Color3.new(0, 0, 0), UDim2.new(0, 0, 0, 0), UDim2.new(1, 0, 1, 0))
  389. 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))
  390. 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))
  391. 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))
  392. 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))
  393. fenbarmove1.ZIndex = 2
  394. local fenbarmove1b = gui("TextLabel", fenbarmove1, "", 0.55, BrickColor.new(NewCol3).Color, UDim2.new(0, 0, 0, 0), UDim2.new(0, 0, 1, 0))
  395. 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))
  396. fenbarmove2.ZIndex = 2
  397. local fenbarmove2b = gui("TextLabel", fenbarmove2, "", 0.55, BrickColor.new(NewCol3).Color, UDim2.new(0, 0, 0, 0), UDim2.new(0, 0, 1, 0))
  398. 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))
  399. fenbarmove3.ZIndex = 2
  400. local fenbarmove3b = gui("TextLabel", fenbarmove3, "", 0.55, BrickColor.new(NewCol3).Color, UDim2.new(0, 0, 0, 0), UDim2.new(0, 0, 1, 0))
  401. 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))
  402. fenbarmove4.ZIndex = 2
  403. local fenbarmove4b = gui("TextLabel", fenbarmove4, "", 0.55, BrickColor.new(NewCol3).Color, UDim2.new(0, 0, 0, 0), UDim2.new(0, 0, 1, 0))
  404. local modelzorz = Instance.new("Model")
  405. modelzorz.Parent = Character
  406. modelzorz.Name = "Permanence"
  407. local modelzorz2 = Instance.new("Model")
  408. modelzorz2.Parent = Character
  409. modelzorz2.Name = "Dynamo"
  410. prt1 = part(3, modelzorz, 0, 0, BrickColor.new("Medium stone grey"), "Part01", vt())
  411. prt2 = part(3, modelzorz, 0, 0, BrickColor.new("Dark stone grey"), "Part02", vt())
  412. prt3 = part(3, modelzorz, 0, 0, BrickColor.new("Dark stone grey"), "Part03", vt())
  413. prt4 = part(3, modelzorz, 0, 0, BrickColor.new("Dark stone grey"), "Part04", vt())
  414. prt5 = part(3, modelzorz, 0, 0, BrickColor.new("Dark stone grey"), "Part05", vt())
  415. prt6 = part(3, modelzorz, 0, 0, BrickColor.new("Dark stone grey"), "Part06", vt())
  416. prt7 = part(3, modelzorz, 0, 0, BrickColor.new("Black"), "Part07", vt())
  417. prt8 = part(3, modelzorz, 0, 0, BrickColor.new("Black"), "Part08", vt())
  418. prt9 = part(3, modelzorz, 0, 0, BrickColor.new(NewCol), "Part09", vt())
  419. prt10 = part(3, modelzorz, 0, 0, BrickColor.new(NewCol), "Part10", vt())
  420. prt11 = part(3, modelzorz, 0, 0, BrickColor.new(NewCol), "Part11", vt())
  421. prt13 = part(3, modelzorz, 0, 0, BrickColor.new(NewCol), "Part13", vt())
  422. prt14 = part(3, modelzorz, 0, 0, BrickColor.new(NewCol), "Part14", vt())
  423. prt15 = part(3, modelzorz, 0, 0, BrickColor.new(NewCol), "Part15", vt())
  424. prt16 = part(3, modelzorz, 0, 0, BrickColor.new(NewCol), "Part16", vt())
  425. prt17 = part(3, modelzorz, 0, 0, BrickColor.new(NewCol), "Part17", vt())
  426. prt18 = part(3, modelzorz, 0, 0, BrickColor.new(NewCol), "Part18", vt())
  427. prt19 = part(3, modelzorz, 0, 0, BrickColor.new("Dark stone grey"), "Part19", vt())
  428. prt20 = part(3, modelzorz, 0, 0, BrickColor.new("Dark stone grey"), "Part20", vt())
  429. prt21 = part(3, modelzorz, 0, 0, BrickColor.new("Dark stone grey"), "Part21", vt())
  430. prt23 = part(3, modelzorz, 0, 0, BrickColor.new("Dark stone grey"), "Part23", vt())
  431. prt29 = part(3, modelzorz, 0.3, 0.05, BrickColor.new(NewCol2), "Part29", vt())
  432. prt31 = part(3, modelzorz, 0.2, 0.5, BrickColor.new(NewCol2), "Part31", vt())
  433. msh1 = mesh("BlockMesh", prt1, "", "", vt(0, 0, 0), vt(1, 4.99, 1))
  434. msh2 = mesh("SpecialMesh", prt2, "Wedge", "nil", vt(0, 0, 0), vt(1.1, 2, 1.1))
  435. msh3 = mesh("BlockMesh", prt3, "", "", vt(0, 0, 0), vt(1.1, 1, 1.1))
  436. msh4 = mesh("SpecialMesh", prt4, "Wedge", "nil", vt(0, 0, 0), vt(1.1, 1, 1.1))
  437. msh5 = mesh("BlockMesh", prt5, "", "", vt(0, 0, 0), vt(1.1, 1, 1.1))
  438. msh6 = mesh("BlockMesh", prt6, "", "", vt(0, 0, 0), vt(1.1, 1, 2))
  439. msh7 = mesh("SpecialMesh", prt7, "Wedge", "nil", vt(0, 0, 0), vt(0.5, 2, 2))
  440. msh8 = mesh("SpecialMesh", prt8, "Wedge", "nil", vt(0, 0, 0), vt(0.5, 2, 2))
  441. msh9 = mesh("CylinderMesh", prt9, "", "", vt(0, 0, 0), vt(3, 2, 3))
  442. msh10 = mesh("BlockMesh", prt10, "", "", vt(0, 0, 0), vt(2, 4, 2))
  443. msh11 = mesh("CylinderMesh", prt11, "", "", vt(0, 0, 0), vt(2, 2, 2))
  444. msh13 = mesh("BlockMesh", prt13, "", "", vt(0, 0, 0), vt(2, 2, 2))
  445. msh14 = mesh("CylinderMesh", prt14, "", "", vt(0, 0, 0), vt(2, 1.99, 2))
  446. msh15 = mesh("BlockMesh", prt15, "", "", vt(0, 0, 0), vt(0.5, 1, 3))
  447. msh16 = mesh("SpecialMesh", prt16, "Wedge", "nil", vt(0, 0, 0), vt(0.5, 1, 2))
  448. msh17 = mesh("BlockMesh", prt17, "", "", vt(0, 0, 0), vt(0.5, 1, 3))
  449. msh18 = mesh("SpecialMesh", prt18, "Wedge", "nil", vt(0, 0, 0), vt(0.5, 1, 2))
  450. msh19 = mesh("BlockMesh", prt19, "", "", vt(0, 0, 0), vt(1.5, 2, 1.5))
  451. msh20 = mesh("SpecialMesh", prt20, "FileMesh", "1778999", vt(0, 0, 0), vt(0.3, 0.3, 0.3))
  452. msh21 = mesh("CylinderMesh", prt21, "", "", vt(0, 0, 0), vt(2.5, 3, 2.5))
  453. msh23 = mesh("SpecialMesh", prt23, "FileMesh", "1778999", vt(0, 0, 0), vt(0.375, 0.4, 0.375))
  454. msh29 = mesh("BlockMesh", prt29, "", "", vt(0, 0, 0), vt(0.5, 15, 2))
  455. msh31 = mesh("BlockMesh", prt31, "", "", vt(0, 0, 0), vt(0.2, 16, 3))
  456. local wld1 = weld(prt1, prt1, Torso, euler(-1.2, 0, -0.5) * euler(0, 0, 3.14) * cf(-0.8, 1, 1.5))
  457. local wld2 = weld(prt2, prt2, prt1, euler(0, 0, 0) * cf(0, 0.1, 0))
  458. local wld3 = weld(prt3, prt3, prt2, euler(0, 0, 0) * cf(0, 0.3, 0))
  459. local wld4 = weld(prt4, prt4, prt1, euler(0, 0, 3.14) * cf(0, -0.2, 0))
  460. local wld5 = weld(prt5, prt5, prt4, euler(0, 0, 0) * cf(0, 0.2, 0))
  461. local wld6 = weld(prt6, prt6, prt1, euler(0, 0, 0) * cf(0, -0.6, 0))
  462. local wld7 = weld(prt7, prt7, prt6, euler(1.1, 0, 0) * cf(0, 0.08, 0.2))
  463. local wld8 = weld(prt8, prt8, prt6, euler(1.1, 0, 0) * cf(0, 0.08, 0.2) * euler(0, 3.14, 0))
  464. local wld9 = weld(prt9, prt9, prt6, euler(0, 0, 1.57) * cf(0, -0.3, 0))
  465. local wld10 = weld(prt10, prt10, prt9, euler(0, 0, 1.57) * cf(0.6, 0, 0) * euler(0, -1.6, 0))
  466. local wld11 = weld(prt11, prt11, prt10, euler(0, 0, 1.57) * cf(0, 0.4, 0))
  467. local wld13 = weld(prt13, prt13, prt9, euler(0, 0, 1.57) * cf(0.4, 0, 0) * euler(0, 2.4, 0))
  468. local wld14 = weld(prt14, prt14, prt13, euler(0, 0, 1.57) * cf(0, 0.2, 0))
  469. local wld15 = weld(prt15, prt15, prt14, euler(0, 0, 1.57) * cf(0, 0.1, 0.4) * euler(0, 1, 0))
  470. local wld16 = weld(prt16, prt16, prt15, euler(0, 0, 0) * cf(0, 0, 0.5))
  471. local wld17 = weld(prt17, prt17, prt14, euler(0, 0, 1.57) * cf(0, -0.1, 0.4) * euler(0, 1, 0))
  472. local wld18 = weld(prt18, prt18, prt17, euler(0, 0, 0) * cf(0, 0, 0.5))
  473. local wld19 = weld(prt19, prt19, prt9, euler(0, 0, 1.57) * cf(0.3, 0, 0))
  474. local wld20 = weld(prt20, prt20, prt19, euler(0, 0, 0) * cf(0, 0, 0))
  475. local wld21 = weld(prt21, prt21, prt19, euler(0, 0, 0) * cf(0, 0.5, 0))
  476. local wld23 = weld(prt23, prt23, prt21, euler(3.14, 0, 0) * cf(0, 0.62, 0))
  477. local wld29 = weld(prt29, prt29, prt23, euler(0, 0, 0) * cf(0, -1.2, 0))
  478. local wld31 = weld(prt31, prt31, prt23, euler(0, 0, 0) * cf(0, -1.3, 0))
  479. for i = -0.2, 0.2, 0.4 do
  480. local prt12 = part(3, modelzorz, 0, 0, BrickColor.new(NewCol), "Part12", vt())
  481. msh12 = mesh("SpecialMesh", prt12, "Wedge", "nil", vt(0, 0, 0), vt(1, 1, 1))
  482. local wld12 = weld(prt12, prt12, prt10, euler(0, 0, 0) * cf(0, i, 0.3))
  483. end
  484. for i = 1.57, 6.28 do
  485. local prt22 = part(3, modelzorz, 0, 0, BrickColor.new("Dark stone grey"), "Part22", vt())
  486. msh22 = mesh("SpecialMesh", prt22, "Wedge", "nil", vt(0, 0, 0), vt(0.5, 2, 1))
  487. local wld22 = weld(prt22, prt22, prt19, euler(0.2, 0, 0) * cf(0, 0.1, 0.22) * euler(0, i, 0))
  488. end
  489. for i = 0, 3.14, 3.14 do
  490. local prt24 = part(3, modelzorz, 0, 0, BrickColor.new("Dark stone grey"), "Part24", vt())
  491. local prt25 = part(3, modelzorz, 0, 0, BrickColor.new("Dark stone grey"), "Part25", vt())
  492. local prt26 = part(3, modelzorz, 0, 0, BrickColor.new("Dark stone grey"), "Part26", vt())
  493. local prt27 = part(3, modelzorz, 0, 0, BrickColor.new("Dark stone grey"), "Part27", vt())
  494. local prt28 = part(3, modelzorz, 0, 0, BrickColor.new("Dark stone grey"), "Part28", vt())
  495. msh24 = mesh("BlockMesh", prt24, "", "", vt(0, 0, 0), vt(1, 2, 0.5))
  496. msh25 = mesh("BlockMesh", prt25, "", "", vt(0, 0, 0), vt(1, 7, 0.5))
  497. msh26 = mesh("SpecialMesh", prt26, "Wedge", "nil", vt(0, 0, 0), vt(1, 1, 1))
  498. msh27 = mesh("SpecialMesh", prt27, "Wedge", "nil", vt(0, 0, 0), vt(1, 1, 0.5))
  499. msh28 = mesh("SpecialMesh", prt28, "Wedge", "nil", vt(0, 0, 0), vt(1, 1, 0.5))
  500. local wld24 = weld(prt24, prt24, prt21, euler(0, 0, 0) * cf(0, 0.1, 0.25) * euler(0, i, 0))
  501. local wld25 = weld(prt25, prt25, prt24, euler(0, 0, 0) * cf(0, 0.5, 0.1))
  502. local wld26 = weld(prt26, prt26, prt24, euler(0, 0, 0) * cf(0, -0.3, 0.05))
  503. local wld27 = weld(prt27, prt27, prt24, euler(3.14, 0, 0) * cf(0, 0.3, 0))
  504. local wld28 = weld(prt28, prt28, prt25, euler(3.14, 3.14, 0) * cf(0, 0.8, 0))
  505. end
  506. local prt30 = part(3, modelzorz, 0.3, 0.05, BrickColor.new(NewCol2), "Part30", vt())
  507. msh30 = mesh("SpecialMesh", prt30, "Wedge", "nil", vt(0, 0, 0), vt(0.5, 3, 1))
  508. local wld30 = weld(prt30, prt30, prt29, euler(0, 0, 0) * cf(0, -1.8, 0.1) * euler(0, 0, 0))
  509. local prt30b = part(3, modelzorz, 0.3, 0.05, BrickColor.new(NewCol2), "Part30B", vt())
  510. msh30b = mesh("SpecialMesh", prt30b, "Wedge", "nil", vt(0, 0, 0), vt(0.5, 3, 1))
  511. local wld30b = weld(prt30b, prt30b, prt29, euler(0, 0, 0) * cf(0, -1.8, 0.1) * euler(0, 3.14, 0))
  512. local prt32 = part(3, modelzorz, 0.2, 0.5, BrickColor.new(NewCol2), "Part32", vt())
  513. msh32 = mesh("SpecialMesh", prt32, "Wedge", "nil", vt(0, 0, 0), vt(0.5, 5, 1.5))
  514. local wld32 = weld(prt32, prt32, prt31, euler(0, 0, 0) * cf(0, -2.1, 0.15) * euler(0, 0, 0))
  515. local prt32b = part(3, modelzorz, 0.2, 0.5, BrickColor.new(NewCol2), "Part32B", vt())
  516. msh32b = mesh("SpecialMesh", prt32b, "Wedge", "nil", vt(0, 0, 0), vt(0.5, 5, 1.5))
  517. local wld32b = weld(prt32b, prt32b, prt31, euler(0, 0, 0) * cf(0, -2.1, 0.15) * euler(0, 3.14, 0))
  518. local prt33 = part(3, modelzorz, 0.3, 1.1, BrickColor.new(NewCol2), "Part33", vt())
  519. local prt34 = part(3, modelzorz, 0.3, 1.1, BrickColor.new(NewCol2), "Part34", vt())
  520. local prt35 = part(3, modelzorz, 0.3, 1.1, BrickColor.new(NewCol2), "Part35", vt())
  521. local prt36 = part(3, modelzorz, 0.5, 1.5, BrickColor.new(NewCol2), "Part36", vt())
  522. local prt37 = part(3, modelzorz, 0.5, 1.5, BrickColor.new(NewCol2), "Part37", vt())
  523. local prt38 = part(3, modelzorz, 0.5, 1.5, BrickColor.new(NewCol2), "Part38", vt())
  524. local prt39 = part(3, modelzorz, 0.5, 1.5, BrickColor.new(NewCol2), "Part39", vt())
  525. msh33 = mesh("BlockMesh", prt33, "", "", vt(0, 0, 0), vt(0.5, 23, 3))
  526. msh34 = mesh("SpecialMesh", prt34, "Wedge", "nil", vt(0, 0, 0), vt(0.5, 5, 1.5))
  527. msh35 = mesh("SpecialMesh", prt35, "Wedge", "nil", vt(0, 0, 0), vt(0.5, 5, 1.5))
  528. msh36 = mesh("SpecialMesh", prt36, "Wedge", "nil", vt(0, 0, 0), vt(0.5, 30, 9))
  529. msh37 = mesh("SpecialMesh", prt37, "Wedge", "nil", vt(0, 0, 0), vt(0.5, 30, 9))
  530. msh38 = mesh("SpecialMesh", prt38, "Wedge", "nil", vt(0, 0, 0), vt(0.5, 2, 9))
  531. msh39 = mesh("SpecialMesh", prt39, "Wedge", "nil", vt(0, 0, 0), vt(0.5, 2, 9))
  532. local wld33 = weld(prt33, prt33, prt23, euler(0, 0, 0) * cf(0, -2, 0))
  533. local wld34 = weld(prt34, prt34, prt33, euler(0, 0, 0) * cf(0, -2.8, 0.15) * euler(0, 0, 0))
  534. local wld35 = weld(prt35, prt35, prt33, euler(0, 0, 0) * cf(0, -2.8, 0.15) * euler(0, 3.14, 0))
  535. local wld36 = weld(prt36, prt36, prt23, euler(0, 0, 0) * cf(0, -2.7, 0.9) * euler(0, 0, 0))
  536. local wld37 = weld(prt37, prt37, prt23, euler(0, 0, 0) * cf(0, -2.7, 0.9) * euler(0, 3.14, 0))
  537. local wld38 = weld(prt38, prt38, prt23, euler(0, 0, 3.14) * cf(0, 0.5, 0.9) * euler(0, 0, 0))
  538. local wld39 = weld(prt39, prt39, prt23, euler(0, 0, 3.14) * cf(0, 0.5, 0.9) * euler(0, 3.14, 0))
  539. handle = part(3, modelzorz2, 0, 1, BrickColor.new("Black"), "Handle", vt())
  540. dprt1 = part(3, modelzorz2, 0, 0, BrickColor.new(NewCol), "Part01", vt())
  541. dprt2 = part(3, modelzorz2, 0, 0, BrickColor.new(NewCol), "Part02", vt())
  542. dprt3 = part(3, modelzorz2, 0, 0, BrickColor.new(NewCol), "Part03", vt())
  543. dprt4 = part(3, modelzorz2, 0.4, 0.5, BrickColor.new(NewCol2), "Part04", vt())
  544. dprt5 = part(3, modelzorz2, 0.4, 0.5, BrickColor.new(NewCol2), "Part05", vt())
  545. dprt6 = part(3, modelzorz2, 0, 0, BrickColor.new(NewCol), "Part06", vt())
  546. dprt7 = part(3, modelzorz2, 0, 0, BrickColor.new(NewCol), "Part07", vt())
  547. dprt8 = part(3, modelzorz2, 0, 0, BrickColor.new(NewCol), "Part08", vt())
  548. dprt9 = part(3, modelzorz2, 0, 0, BrickColor.new(NewCol), "Part09", vt())
  549. dprt10 = part(3, modelzorz2, 0, 0, BrickColor.new(NewCol), "Part10", vt())
  550. dprt11 = part(3, modelzorz2, 0, 0, BrickColor.new(NewCol), "Part11", vt())
  551. dprt12 = part(3, modelzorz2, 0, 0, BrickColor.new(NewCol), "Part12", vt())
  552. dprt13 = part(3, modelzorz2, 0, 0, BrickColor.new(NewCol), "Part13", vt())
  553. dprt14 = part(3, modelzorz2, 0, 0, BrickColor.new(NewCol), "Part14", vt())
  554. dprt15 = part(3, modelzorz2, 0, 0, BrickColor.new(NewCol), "Part15", vt())
  555. dprt16 = part(3, modelzorz2, 0.4, 0.5, BrickColor.new(NewCol2), "Part16", vt())
  556. dprt17 = part(3, modelzorz2, 0.4, 0.5, BrickColor.new(NewCol2), "Part17", vt())
  557. dprt18 = part(3, modelzorz2, 0.4, 0.5, BrickColor.new(NewCol2), "Part18", vt())
  558. dprt19 = part(3, modelzorz2, 0.4, 0.5, BrickColor.new(NewCol2), "Part19", vt())
  559. dprt20 = part(3, modelzorz2, 0.4, 0.5, BrickColor.new(NewCol2), "Part20", vt())
  560. dprt21 = part(3, modelzorz2, 0.4, 0.5, BrickColor.new(NewCol2), "Part21", vt())
  561. dprt22 = part(3, modelzorz2, 0.4, 0.5, BrickColor.new(NewCol2), "Part22", vt())
  562. dprtb1 = part(3, modelzorz2, 0, 0, BrickColor.new(NewCol), "PartB01", vt())
  563. dprtb2 = part(3, modelzorz2, 0, 0, BrickColor.new(NewCol), "PartB02", vt())
  564. dprtb3 = part(3, modelzorz2, 0, 0, BrickColor.new(NewCol), "PartB03", vt())
  565. dprtb4 = part(3, modelzorz2, 0.4, 0.5, BrickColor.new(NewCol2), "PartB04", vt())
  566. dprtb5 = part(3, modelzorz2, 0.4, 0.5, BrickColor.new(NewCol2), "PartB05", vt())
  567. dprtb6 = part(3, modelzorz2, 0, 0, BrickColor.new(NewCol), "PartB06", vt())
  568. dprtb7 = part(3, modelzorz2, 0, 0, BrickColor.new(NewCol), "PartB07", vt())
  569. dprtb8 = part(3, modelzorz2, 0, 0, BrickColor.new(NewCol), "PartB08", vt())
  570. dprtb9 = part(3, modelzorz2, 0, 0, BrickColor.new(NewCol), "PartB09", vt())
  571. dprtb10 = part(3, modelzorz2, 0, 0, BrickColor.new(NewCol), "PartB10", vt())
  572. dprtb11 = part(3, modelzorz2, 0, 0, BrickColor.new(NewCol), "PartB11", vt())
  573. dprtb12 = part(3, modelzorz2, 0, 0, BrickColor.new(NewCol), "PartB12", vt())
  574. dprtb13 = part(3, modelzorz2, 0, 0, BrickColor.new(NewCol), "PartB13", vt())
  575. dprtb14 = part(3, modelzorz2, 0, 0, BrickColor.new(NewCol), "PartB14", vt())
  576. dprtb15 = part(3, modelzorz2, 0, 0, BrickColor.new(NewCol), "PartB15", vt())
  577. dprtb16 = part(3, modelzorz2, 0.4, 0.5, BrickColor.new(NewCol2), "PartB16", vt())
  578. dprtb17 = part(3, modelzorz2, 0.4, 0.5, BrickColor.new(NewCol2), "PartB17", vt())
  579. dprtb18 = part(3, modelzorz2, 0.4, 0.5, BrickColor.new(NewCol2), "PartB18", vt())
  580. dprtb19 = part(3, modelzorz2, 0.4, 0.5, BrickColor.new(NewCol2), "PartB19", vt())
  581. dprtb20 = part(3, modelzorz2, 0.4, 0.5, BrickColor.new(NewCol2), "PartB20", vt())
  582. dprtb21 = part(3, modelzorz2, 0.4, 0.5, BrickColor.new(NewCol2), "PartB21", vt())
  583. dprtb22 = part(3, modelzorz2, 0.4, 0.5, BrickColor.new(NewCol2), "PartB22", vt())
  584. dmsh1 = mesh("BlockMesh", dprt1, "", "", vt(0, 0, 0), vt(1.5, 6, 1))
  585. dmsh2 = mesh("SpecialMesh", dprt2, "Wedge", "nil", vt(0, 0, 0), vt(1, 1.5, 1))
  586. dmsh3 = mesh("SpecialMesh", dprt3, "Wedge", "nil", vt(0, 0, 0), vt(1, 1, 1.5))
  587. dmsh4 = mesh("SpecialMesh", dprt4, "Wedge", "nil", vt(0, 0, 0), vt(0.5, 10, 3))
  588. dmsh5 = mesh("SpecialMesh", dprt5, "Wedge", "nil", vt(0, 0, 0), vt(0.5, 1.5, 1.5))
  589. dmsh6 = mesh("BlockMesh", dprt6, "", "", vt(0, 0, 0), vt(1.5, 3, 1))
  590. dmsh7 = mesh("SpecialMesh", dprt7, "Wedge", "nil", vt(0, 0, 0), vt(1, 1, 1.5))
  591. dmsh8 = mesh("SpecialMesh", dprt8, "Wedge", "nil", vt(0, 0, 0), vt(1, 1, 1.5))
  592. dmsh9 = mesh("SpecialMesh", dprt9, "Torso", "nil", vt(0, 0, 0), vt(7, 1, 1))
  593. dmsh10 = mesh("BlockMesh", dprt10, "", "", vt(0, 0, 0), vt(2, 4, 1))
  594. dmsh11 = mesh("SpecialMesh", dprt11, "Wedge", "nil", vt(0, 0, 0), vt(1, 1, 1.5))
  595. dmsh12 = mesh("SpecialMesh", dprt12, "Wedge", "nil", vt(0, 0, 0), vt(1, 1, 0.5))
  596. dmsh13 = mesh("BlockMesh", dprt13, "", "", vt(0, 0, 0), vt(1, 4, 1))
  597. dmsh14 = mesh("SpecialMesh", dprt14, "Wedge", "nil", vt(0, 0, 0), vt(1, 1, 1))
  598. dmsh15 = mesh("SpecialMesh", dprt15, "Wedge", "nil", vt(0, 0, 0), vt(1, 4, 1))
  599. dmsh16 = mesh("BlockMesh", dprt16, "", "", vt(0, 0, 0), vt(0.5, 7, 3))
  600. dmsh17 = mesh("SpecialMesh", dprt17, "Wedge", "nil", vt(0, 0, 0), vt(0.5, 2.5, 3))
  601. dmsh18 = mesh("SpecialMesh", dprt18, "Wedge", "nil", vt(0, 0, 0), vt(0.5, 12, 3))
  602. dmsh19 = mesh("BlockMesh", dprt19, "", "", vt(0, 0, 0), vt(0.5, 5, 1))
  603. dmsh20 = mesh("SpecialMesh", dprt20, "Wedge", "nil", vt(0, 0, 0), vt(0.5, 3, 1))
  604. dmsh21 = mesh("SpecialMesh", dprt21, "Wedge", "nil", vt(0, 0, 0), vt(0.5, 1.5, 1))
  605. dmsh22 = mesh("SpecialMesh", dprt22, "Wedge", "nil", vt(0, 0, 0), vt(0.5, 11, 3))
  606. dmshb1 = mesh("BlockMesh", dprtb1, "", "", vt(0, 0, 0), vt(1.5, 6, 1))
  607. dmshb2 = mesh("SpecialMesh", dprtb2, "Wedge", "nil", vt(0, 0, 0), vt(1, 1.5, 1))
  608. dmshb3 = mesh("SpecialMesh", dprtb3, "Wedge", "nil", vt(0, 0, 0), vt(1, 1, 1.5))
  609. dmshb4 = mesh("SpecialMesh", dprtb4, "Wedge", "nil", vt(0, 0, 0), vt(0.5, 10, 3))
  610. dmshb5 = mesh("SpecialMesh", dprtb5, "Wedge", "nil", vt(0, 0, 0), vt(0.5, 1.5, 1.5))
  611. dmshb6 = mesh("BlockMesh", dprtb6, "", "", vt(0, 0, 0), vt(1.5, 3, 1))
  612. dmshb7 = mesh("SpecialMesh", dprtb7, "Wedge", "nil", vt(0, 0, 0), vt(1, 1, 1.5))
  613. dmshb8 = mesh("SpecialMesh", dprtb8, "Wedge", "nil", vt(0, 0, 0), vt(1, 1, 1.5))
  614. dmshb9 = mesh("SpecialMesh", dprtb9, "Torso", "nil", vt(0, 0, 0), vt(7, 1, 1))
  615. dmshb10 = mesh("BlockMesh", dprtb10, "", "", vt(0, 0, 0), vt(2, 4, 1))
  616. dmshb11 = mesh("SpecialMesh", dprtb11, "Wedge", "nil", vt(0, 0, 0), vt(1, 1, 1.5))
  617. dmshb12 = mesh("SpecialMesh", dprtb12, "Wedge", "nil", vt(0, 0, 0), vt(1, 1, 0.5))
  618. dmshb13 = mesh("BlockMesh", dprtb13, "", "", vt(0, 0, 0), vt(1, 4, 1))
  619. dmshb14 = mesh("SpecialMesh", dprtb14, "Wedge", "nil", vt(0, 0, 0), vt(1, 1, 1))
  620. dmshb15 = mesh("SpecialMesh", dprtb15, "Wedge", "nil", vt(0, 0, 0), vt(1, 4, 1))
  621. dmshb16 = mesh("BlockMesh", dprtb16, "", "", vt(0, 0, 0), vt(0.5, 7, 3))
  622. dmshb17 = mesh("SpecialMesh", dprtb17, "Wedge", "nil", vt(0, 0, 0), vt(0.5, 2.5, 3))
  623. dmshb18 = mesh("SpecialMesh", dprtb18, "Wedge", "nil", vt(0, 0, 0), vt(0.5, 12, 3))
  624. dmshb19 = mesh("BlockMesh", dprtb19, "", "", vt(0, 0, 0), vt(0.5, 5, 1))
  625. dmshb20 = mesh("SpecialMesh", dprtb20, "Wedge", "nil", vt(0, 0, 0), vt(0.5, 3, 1))
  626. dmshb21 = mesh("SpecialMesh", dprtb21, "Wedge", "nil", vt(0, 0, 0), vt(0.5, 1.5, 1))
  627. dmshb22 = mesh("SpecialMesh", dprtb22, "Wedge", "nil", vt(0, 0, 0), vt(0.5, 11, 3))
  628. hwld = weld(handle, handle, RightArm, euler(0, 0, 0) * cf(0, 0, 0))
  629. dwld1 = weld(dprt1, dprt1, handle, euler(0, 1.57, 0) * cf(-0.6, -1.5, -0.4))
  630. dwld2 = weld(dprt2, dprt2, dprt1, euler(1.57, -1.57, 0) * cf(0, 0.7, 0))
  631. dwld3 = weld(dprt3, dprt3, dprt1, euler(0, 1.57, 0) * cf(0, -0.7, 0))
  632. dwld4 = weld(dprt4, dprt4, dprt1, euler(0, 1.57, 0) * cf(-0.15, -0.5, 0))
  633. dwld5 = weld(dprt5, dprt5, dprt1, euler(0, -1.57, 3.14) * cf(-0.3, 0.65, 0))
  634. dwld6 = weld(dprt6, dprt6, handle, euler(0, 1.57, 0) * cf(-0.6, -0.4, -0.35))
  635. dwld7 = weld(dprt7, dprt7, dprt6, euler(0, 1.57, 0) * cf(0, -0.4, 0))
  636. dwld8 = weld(dprt8, dprt8, dprt6, euler(3.14, -1.57, 0) * cf(0, 0.4, 0))
  637. dwld9 = weld(dprt9, dprt9, dprt6, euler(0, 0, -1.57) * cf(0.25, -0.2, 0))
  638. dwld10 = weld(dprt10, dprt10, handle, euler(0, 1.57, 0) * cf(-0.6, 0.5, -0.45))
  639. dwld11 = weld(dprt11, dprt11, dprt10, euler(0, -1.57, 0) * cf(0.05, -0.5, 0))
  640. dwld12 = weld(dprt12, dprt12, dprt10, euler(0, 1.57, 0) * cf(-0.15, -0.5, 0))
  641. dwld13 = weld(dprt13, dprt13, dprt10, euler(0, 0, 0) * cf(0.1, 0.8, 0))
  642. dwld14 = weld(dprt14, dprt14, dprt10, euler(3.14, -1.57, 0) * cf(-0.1, 0.5, 0))
  643. dwld15 = weld(dprt15, dprt15, dprt13, euler(3.14, -1.57, 0) * cf(0, 0.8, 0))
  644. dwld16 = weld(dprt16, dprt16, dprt10, euler(0, 1.57, 0) * cf(-0.1, -0.3, 0))
  645. dwld17 = weld(dprt17, dprt17, dprt10, euler(0, -1.57, 0) * cf(-0.1, -1.25, 0))
  646. dwld18 = weld(dprt18, dprt18, dprt10, euler(0, -1.57, 3.14) * cf(-0.1, 1.6, 0))
  647. dwld19 = weld(dprt19, dprt19, dprt16, euler(0, 0, 0) * cf(0, -0.1, 0.4))
  648. dwld20 = weld(dprt20, dprt20, dprt19, euler(0, 0, 0) * cf(0, -0.8, 0))
  649. dwld21 = weld(dprt21, dprt21, dprt19, euler(0, 0, 3.14) * cf(0, 0.65, 0))
  650. dwld22 = weld(dprt22, dprt22, dprt9, euler(0, -1.57, 1.57) * cf(-0.4, -0.2, 0))
  651. dwldb1 = weld(dprtb1, dprtb1, handle, euler(0, -1.57, 0) * cf(-0.6, -1.5, 0.4))
  652. dwldb2 = weld(dprtb2, dprtb2, dprtb1, euler(1.57, -1.57, 0) * cf(0, 0.7, 0))
  653. dwldb3 = weld(dprtb3, dprtb3, dprtb1, euler(0, 1.57, 0) * cf(0, -0.7, 0))
  654. dwldb4 = weld(dprtb4, dprtb4, dprtb1, euler(0, 1.57, 0) * cf(-0.15, -0.5, 0))
  655. dwldb5 = weld(dprtb5, dprtb5, dprtb1, euler(0, -1.57, 3.14) * cf(-0.3, 0.65, 0))
  656. dwldb6 = weld(dprtb6, dprtb6, handle, euler(0, -1.57, 0) * cf(-0.6, -0.4, 0.35))
  657. dwldb7 = weld(dprtb7, dprtb7, dprtb6, euler(0, 1.57, 0) * cf(0, -0.4, 0))
  658. dwldb8 = weld(dprtb8, dprtb8, dprtb6, euler(3.14, -1.57, 0) * cf(0, 0.4, 0))
  659. dwldb9 = weld(dprtb9, dprtb9, dprtb6, euler(0, 0, -1.57) * cf(0.25, -0.2, 0))
  660. dwldb10 = weld(dprtb10, dprtb10, handle, euler(0, -1.57, 0) * cf(-0.6, 0.5, 0.45))
  661. dwldb11 = weld(dprtb11, dprtb11, dprtb10, euler(0, -1.57, 0) * cf(0.05, -0.5, 0))
  662. dwldb12 = weld(dprtb12, dprtb12, dprtb10, euler(0, 1.57, 0) * cf(-0.15, -0.5, 0))
  663. dwldb13 = weld(dprtb13, dprtb13, dprtb10, euler(0, 0, 0) * cf(0.1, 0.8, 0))
  664. dwldb14 = weld(dprtb14, dprtb14, dprtb10, euler(3.14, -1.57, 0) * cf(-0.1, 0.5, 0))
  665. dwldb15 = weld(dprtb15, dprtb15, dprtb13, euler(3.14, -1.57, 0) * cf(0, 0.8, 0))
  666. dwldb16 = weld(dprtb16, dprtb16, dprtb10, euler(0, 1.57, 0) * cf(-0.1, -0.3, 0))
  667. dwldb17 = weld(dprtb17, dprtb17, dprtb10, euler(0, -1.57, 0) * cf(-0.1, -1.25, 0))
  668. dwldb18 = weld(dprtb18, dprtb18, dprtb10, euler(0, -1.57, 3.14) * cf(-0.1, 1.6, 0))
  669. dwldb19 = weld(dprtb19, dprtb19, dprtb16, euler(0, 0, 0) * cf(0, -0.1, 0.4))
  670. dwldb20 = weld(dprtb20, dprtb20, dprtb19, euler(0, 0, 0) * cf(0, -0.8, 0))
  671. dwldb21 = weld(dprtb21, dprtb21, dprtb19, euler(0, 0, 3.14) * cf(0, 0.65, 0))
  672. dwldb22 = weld(dprtb22, dprtb22, dprtb9, euler(0, -1.57, 1.57) * cf(-0.4, -0.2, 0))
  673. local hitbox = part(3, modelzorz, 0, 1, BrickColor.new("Black"), "Hitbox2", vt())
  674. hitbox.Anchored = false
  675. local hbwld = weld(hitbox, hitbox, RootPart, euler(0, 0, 0) * cf(0, 0, 0))
  676. local hitbox2 = part(3, nil, 0, 1, BrickColor.new("Black"), "Hitbox", vt(1, 1, 1))
  677. hitbox2.Anchored = true
  678. local hitboxCF = cf(0, 0, 0)
  679. hboxpos = Instance.new("BodyPosition", nil)
  680. hboxpos.P = 2000
  681. hboxpos.D = 100
  682. hboxpos.maxForce = Vector3.new(545000, 545000, 545000)
  683. local DemTable = {}
  684. table.insert(DemTable, {prt29, 0.05})
  685. table.insert(DemTable, {prt30, 0.05})
  686. table.insert(DemTable, {prt30b, 0.05})
  687. table.insert(DemTable, {prt31, 0.5})
  688. table.insert(DemTable, {prt32, 0.5})
  689. table.insert(DemTable, {prt32b, 0.5})
  690. table.insert(DemTable, {dprt4, 0.5})
  691. table.insert(DemTable, {dprt5, 0.5})
  692. table.insert(DemTable, {dprt16, 0.5})
  693. table.insert(DemTable, {dprt17, 0.5})
  694. table.insert(DemTable, {dprt18, 0.5})
  695. table.insert(DemTable, {dprt19, 0.5})
  696. table.insert(DemTable, {dprt20, 0.5})
  697. table.insert(DemTable, {dprt21, 0.5})
  698. table.insert(DemTable, {dprt22, 0.5})
  699. table.insert(DemTable, {dprtb4, 0.5})
  700. table.insert(DemTable, {dprtb5, 0.5})
  701. table.insert(DemTable, {dprtb16, 0.5})
  702. table.insert(DemTable, {dprtb17, 0.5})
  703. table.insert(DemTable, {dprtb18, 0.5})
  704. table.insert(DemTable, {dprtb19, 0.5})
  705. table.insert(DemTable, {dprtb20, 0.5})
  706. table.insert(DemTable, {dprtb21, 0.5})
  707. table.insert(DemTable, {dprtb22, 0.5})
  708. local DynamPrt = {}
  709. table.insert(DynamPrt, dprt1)
  710. table.insert(DynamPrt, dprt6)
  711. table.insert(DynamPrt, dprt10)
  712. table.insert(DynamPrt, dprtb1)
  713. table.insert(DynamPrt, dprtb6)
  714. table.insert(DynamPrt, dprtb10)
  715. hitboxweld = function()
  716. hbwld.Parent = modelzorz
  717. hbwld.Part0 = hitbox
  718. hbwld.Part1 = prt6
  719. end
  720.  
  721. if script.Parent.className ~= "HopperBin" then
  722. Tool = Instance.new("HopperBin")
  723. Tool.Parent = Backpack
  724. Tool.Name = "Dynamo & Permanence"
  725. script.Parent = Tool
  726. end
  727. Bin = Tool
  728. if Bin.Name == "Dynamence" then
  729. Bin.Name = "Dynamo & Permanence"
  730. end
  731. local bodvel = Instance.new("BodyVelocity")
  732. local bg = Instance.new("BodyGyro")
  733. so = function(id, par, vol, pit)
  734. local sou = Instance.new("Sound", par or workspace)
  735. sou.Volume = vol
  736. sou.Pitch = pit or 1
  737. sou.SoundId = "http://www.roblox.com/asset/?id=" .. id
  738. coroutine.resume(coroutine.create(function(Sound)
  739. swait()
  740. Sound:play()
  741. end
  742. ), sou)
  743. game:GetService("Debris"):AddItem(sou, 6)
  744. end
  745.  
  746. so2 = function(id, par, vol, pit)
  747. local sou = Instance.new("Sound", par or workspace)
  748. sou.Volume = vol
  749. sou.Pitch = pit or 1
  750. sou.SoundId = id
  751. sou:play()
  752. game:GetService("Debris"):AddItem(sou, 6)
  753. end
  754.  
  755. function clerp(a,b,t)
  756. local qa = {QuaternionFromCFrame(a)}
  757. local qb = {QuaternionFromCFrame(b)}
  758. local ax, ay, az = a.x, a.y, a.z
  759. local bx, by, bz = b.x, b.y, b.z
  760. local _t = 1-t
  761. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  762. end
  763.  
  764. function QuaternionFromCFrame(cf)
  765. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  766. local trace = m00 + m11 + m22
  767. if trace > 0 then
  768. local s = math.sqrt(1 + trace)
  769. local recip = 0.5/s
  770. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  771. else
  772. local i = 0
  773. if m11 > m00 then
  774. i = 1
  775. end
  776. if m22 > (i == 0 and m00 or m11) then
  777. i = 2
  778. end
  779. if i == 0 then
  780. local s = math.sqrt(m00-m11-m22+1)
  781. local recip = 0.5/s
  782. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  783. elseif i == 1 then
  784. local s = math.sqrt(m11-m22-m00+1)
  785. local recip = 0.5/s
  786. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  787. elseif i == 2 then
  788. local s = math.sqrt(m22-m00-m11+1)
  789. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  790. end
  791. end
  792. end
  793.  
  794. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  795. local xs, ys, zs = x + x, y + y, z + z
  796. local wx, wy, wz = w*xs, w*ys, w*zs
  797. local xx = x*xs
  798. local xy = x*ys
  799. local xz = x*zs
  800. local yy = y*ys
  801. local yz = y*zs
  802. local zz = z*zs
  803. 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))
  804. end
  805.  
  806. function QuaternionSlerp(a, b, t)
  807. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  808. local startInterp, finishInterp;
  809. if cosTheta >= 0.0001 then
  810. if (1 - cosTheta) > 0.0001 then
  811. local theta = math.acos(cosTheta)
  812. local invSinTheta = 1/math.sin(theta)
  813. startInterp = math.sin((1-t)*theta)*invSinTheta
  814. finishInterp = math.sin(t*theta)*invSinTheta
  815. else
  816. startInterp = 1-t
  817. finishInterp = t
  818. end
  819. else
  820. if (1+cosTheta) > 0.0001 then
  821. local theta = math.acos(-cosTheta)
  822. local invSinTheta = 1/math.sin(theta)
  823. startInterp = math.sin((t-1)*theta)*invSinTheta
  824. finishInterp = math.sin(t*theta)*invSinTheta
  825. else
  826. startInterp = t-1
  827. finishInterp = t
  828. end
  829. end
  830. 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
  831. end
  832.  
  833. hideanim = function()
  834. equipped = false
  835. for i = 0, 1, 0.2 do
  836. swait()
  837. if Mode == "Classic" then
  838. hwld.C0 = clerp(hwld.C0, euler(0, 0, 0) * cf(0, 0, 0), 0.4)
  839. dwld1.C0 = clerp(dwld1.C0, euler(0, 1.57, 0) * cf(-0.6, -1.5, -0.4), 0.4)
  840. dwld6.C0 = clerp(dwld6.C0, euler(0, 1.57, 0) * cf(-0.6, -0.4, -0.35), 0.4)
  841. dwld10.C0 = clerp(dwld10.C0, euler(0, 1.57, 0) * cf(-0.6, 0.5, -0.45), 0.4)
  842. dwldb1.C0 = clerp(dwldb1.C0, euler(0, -1.57, 0) * cf(-0.6, -1.5, 0.4), 0.4)
  843. dwldb6.C0 = clerp(dwldb6.C0, euler(0, -1.57, 0) * cf(-0.6, -0.4, 0.35), 0.4)
  844. dwldb10.C0 = clerp(dwldb10.C0, euler(0, -1.57, 0) * cf(-0.6, 0.5, 0.45), 0.4)
  845. else
  846. if Mode == "Dynamic Blade" then
  847. dwld1.C0 = clerp(dwld1.C0, euler(0, 1.57, 0) * cf(0.2, -2.5, -0.4), 0.4)
  848. dwld6.C0 = clerp(dwld6.C0, euler(0, 1.57, 0) * cf(0.2, -1.4, -0.35), 0.4)
  849. dwld10.C0 = clerp(dwld10.C0, euler(0, 1.57, 0) * cf(0.2, -0.5, -0.45), 0.4)
  850. dwldb1.C0 = clerp(dwldb1.C0, euler(0, -1.57, 0) * cf(0.2, -2.5, 0.4), 0.4)
  851. dwldb6.C0 = clerp(dwldb6.C0, euler(0, -1.57, 0) * cf(0.2, -1.4, 0.35), 0.4)
  852. dwldb10.C0 = clerp(dwldb10.C0, euler(0, -1.57, 0) * cf(0.2, -0.5, 0.45), 0.4)
  853. else
  854. if Mode == "Energy Reactor" then
  855. hwld.Part1 = Torso
  856. hwld.C0 = clerp(hwld.C0, euler(0, 1.57, 1) * cf(0, 0, 0), 0.4)
  857. dwld1.C0 = clerp(dwld1.C0, euler(0, 1.57, 0) * cf(-0.6, -1.5, -0.4), 0.4)
  858. dwld6.C0 = clerp(dwld6.C0, euler(0, 1.57, 0) * cf(-0.6, -0.4, -0.35), 0.4)
  859. dwld10.C0 = clerp(dwld10.C0, euler(0, 1.57, 0) * cf(-0.6, 0.5, -0.45), 0.4)
  860. dwldb1.C0 = clerp(dwldb1.C0, euler(0, -1.57, 0) * cf(-0.6, -1.5, 0.4), 0.4)
  861. dwldb6.C0 = clerp(dwldb6.C0, euler(0, -1.57, 0) * cf(-0.6, -0.4, 0.35), 0.4)
  862. dwldb10.C0 = clerp(dwldb10.C0, euler(0, -1.57, 0) * cf(-0.6, 0.5, 0.45), 0.4)
  863. end
  864. end
  865. end
  866. wld1.C0 = clerp(wld1.C0, euler(1.7, 0, 0) * cf(0, 1, 0), 0.5)
  867. Neck.C0 = clerp(Neck.C0, necko * euler(0.2, 0, -0.6), 0.5)
  868. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, 0), 0.5)
  869. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(0, 0, 0.2), 0.5)
  870. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.5)
  871. LW.C0 = clerp(LW.C0, cf(0, 0.2, -1) * euler(0.2, 0, 0.6) * euler(0, -3, 0), 0.5)
  872. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.5)
  873. RH.C0 = clerp(RH.C0, RHC0, 0.4)
  874. RH.C1 = clerp(RH.C1, RHC1, 0.4)
  875. LH.C0 = clerp(LH.C0, LHC0, 0.4)
  876. LH.C1 = clerp(LH.C1, LHC1, 0.4)
  877. end
  878. wld1.Part1 = Torso
  879. wld1.C0 = euler(-1.2, 0, -0.5) * euler(0, 0, 3.14) * cf(-0.8, 1, 1.5)
  880. mdec2.Parent = nil
  881. mdec.Parent = Decrease
  882. for i = 0, 1, 0.1 do
  883. swait()
  884. if Mode == "Classic" then
  885. dwld1.C0 = clerp(dwld1.C0, euler(0, 1.57, 0) * cf(-0.6, -1.5, -0.4), 0.4)
  886. dwld6.C0 = clerp(dwld6.C0, euler(0, 1.57, 0) * cf(-0.6, -0.4, -0.35), 0.4)
  887. dwld10.C0 = clerp(dwld10.C0, euler(0, 1.57, 0) * cf(-0.6, 0.5, -0.45), 0.4)
  888. dwldb1.C0 = clerp(dwldb1.C0, euler(0, -1.57, 0) * cf(-0.6, -1.5, 0.4), 0.4)
  889. dwldb6.C0 = clerp(dwldb6.C0, euler(0, -1.57, 0) * cf(-0.6, -0.4, 0.35), 0.4)
  890. dwldb10.C0 = clerp(dwldb10.C0, euler(0, -1.57, 0) * cf(-0.6, 0.5, 0.45), 0.4)
  891. else
  892. if Mode == "Dynamic Blade" then
  893. dwld1.C0 = clerp(dwld1.C0, euler(0, 1.57, 0) * cf(0.2, -2.5, -0.4), 0.4)
  894. dwld6.C0 = clerp(dwld6.C0, euler(0, 1.57, 0) * cf(0.2, -1.4, -0.35), 0.4)
  895. dwld10.C0 = clerp(dwld10.C0, euler(0, 1.57, 0) * cf(0.2, -0.5, -0.45), 0.4)
  896. dwldb1.C0 = clerp(dwldb1.C0, euler(0, -1.57, 0) * cf(0.2, -2.5, 0.4), 0.4)
  897. dwldb6.C0 = clerp(dwldb6.C0, euler(0, -1.57, 0) * cf(0.2, -1.4, 0.35), 0.4)
  898. dwldb10.C0 = clerp(dwldb10.C0, euler(0, -1.57, 0) * cf(0.2, -0.5, 0.45), 0.4)
  899. else
  900. if Mode == "Energy Reactor" then
  901. hwld.C0 = clerp(hwld.C0, euler(0, 1.57, 1) * cf(0, 0, 0), 0.4)
  902. dwld1.C0 = clerp(dwld1.C0, euler(0, 1.57, 0) * cf(-0.6, -1.5, -0.4), 0.4)
  903. dwld6.C0 = clerp(dwld6.C0, euler(0, 1.57, 0) * cf(-0.6, -0.4, -0.35), 0.4)
  904. dwld10.C0 = clerp(dwld10.C0, euler(0, 1.57, 0) * cf(-0.6, 0.5, -0.45), 0.4)
  905. dwldb1.C0 = clerp(dwldb1.C0, euler(0, -1.57, 0) * cf(-0.6, -1.5, 0.4), 0.4)
  906. dwldb6.C0 = clerp(dwldb6.C0, euler(0, -1.57, 0) * cf(-0.6, -0.4, 0.35), 0.4)
  907. dwldb10.C0 = clerp(dwldb10.C0, euler(0, -1.57, 0) * cf(-0.6, 0.5, 0.45), 0.4)
  908. end
  909. end
  910. end
  911. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0), 0.4)
  912. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, 0), 0.4)
  913. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(0, 0, 0), 0.4)
  914. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  915. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(0, 0, 0), 0.4)
  916. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  917. end
  918. end
  919.  
  920. mdec.Parent = Decrease
  921. equipanim = function()
  922. equipped = true
  923. mdec.Parent = nil
  924. for i = 0, 1, 0.2 do
  925. swait()
  926. Neck.C0 = clerp(Neck.C0, necko * euler(0.2, 0, -0.6), 0.5)
  927. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, 0), 0.5)
  928. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(0, 0, 0.2), 0.5)
  929. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.5)
  930. LW.C0 = clerp(LW.C0, cf(0, 0.2, -1) * euler(0.2, 0, 0.6) * euler(0, -3, 0), 0.5)
  931. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.5)
  932. end
  933. wld1.Part1 = LeftArm
  934. wld1.C0 = euler(1.7, 0, 0) * cf(0, 1, 0)
  935. mdec2.Parent = Decrease
  936. end
  937.  
  938. StaggerAnim = function()
  939. attack = true
  940. for i = 1, math.random(2, 4) do
  941. 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)
  942. end
  943. for i = 0, 1, 0.35 do
  944. swait()
  945. if Rooted.Value == false then
  946. Torso.Velocity = RootPart.CFrame.lookVector * -40
  947. end
  948. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0.5) * euler(0.1, 0, 0), 0.3)
  949. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(-0.2, 0, -0.4), 0.3)
  950. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.2, 0, 0.7) * euler(0, -0.7, 0), 0.3)
  951. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  952. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.2, 0, -0.4) * euler(0, 0.4, 0), 0.3)
  953. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  954. RH.C0 = clerp(RH.C0, cf(1, -0.8, 0) * euler(0, 1.57, 0) * euler(-0.5, 0, 0.6), 0.3)
  955. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, -1.57, 0) * euler(0, 0.2, 0.2), 0.3)
  956. if StunT.Value <= Stun.Value then
  957. break
  958. end
  959. end
  960. do
  961. for i = 0, 1, 0.2 do
  962. swait()
  963. if Rooted.Value == false then
  964. Torso.Velocity = RootPart.CFrame.lookVector * -40
  965. end
  966. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0.5) * euler(0.1, 0, 0), 0.4)
  967. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.2) * euler(-0.5, 0, -0.4), 0.4)
  968. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.2, 0, 0.7) * euler(0, -0.7, 0), 0.4)
  969. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  970. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.2, 0, -0.4) * euler(0, 0.4, 0), 0.4)
  971. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  972. RH.C0 = clerp(RH.C0, cf(1, -0.8, 0) * euler(0, 1.57, 0) * euler(-0.5, 0, 0.6), 0.4)
  973. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, -1.57, 0) * euler(0, 0.2, 0.5), 0.4)
  974. if StunT.Value <= Stun.Value then
  975. break
  976. end
  977. end
  978. do
  979. for i = 0, 1, 0.1 do
  980. swait()
  981. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0.4) * euler(0.5, 0, 0), 0.3)
  982. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -1.8) * euler(-0.2, 0, -0.4), 0.3)
  983. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.3, 0, 0.4) * euler(0, -0.4, 0), 0.3)
  984. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  985. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.3, 0, -0.2) * euler(0, 0.4, 0), 0.3)
  986. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  987. RH.C0 = clerp(RH.C0, cf(1, -0.8, 0) * euler(0, 1.57, 0) * euler(-0.5, 0, 1.2), 0.3)
  988. LH.C0 = clerp(LH.C0, cf(-1, 0, -1) * euler(0, -1.57, 0) * euler(0, 0.2, 0.2), 0.3)
  989. if StunT.Value <= Stun.Value then
  990. break
  991. end
  992. end
  993. do
  994. for i = 1, 50 do
  995. swait()
  996. if StunT.Value <= Stun.Value then
  997. break
  998. end
  999. end
  1000. do
  1001. combo = 0
  1002. attack = false
  1003. end
  1004. end
  1005. end
  1006. end
  1007. end
  1008.  
  1009. StaggerHitt = function()
  1010. attack = true
  1011. if invisible == true then
  1012. Clone(0.1)
  1013. end
  1014. for i = 1, math.random(2, 4) do
  1015. 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)
  1016. end
  1017. for i = 0, 1, 0.1 do
  1018. swait()
  1019. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0.7) * euler(0.1, 0, 0), 0.3)
  1020. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(-0.2, 0, -0.6), 0.3)
  1021. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.4, 0, 0.9) * euler(0, -0.7, 0), 0.3)
  1022. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  1023. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.2, 0, -0.4) * euler(0, 0.4, 0), 0.3)
  1024. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  1025. RH.C0 = clerp(RH.C0, cf(1, -0.8, 0) * euler(0, 1.57, 0) * euler(-0.2, 0, -0.4), 0.3)
  1026. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, -1.57, 0) * euler(0, 0.2, 0.2), 0.3)
  1027. end
  1028. attack = false
  1029. end
  1030.  
  1031. StunAnim = function()
  1032. attack = true
  1033. Stunned.Value = true
  1034. showDamage(Character, "Stunned", "Interrupt")
  1035. local dec = Instance.new("NumberValue", Decrease)
  1036. dec.Name = "DecreaseMvmt"
  1037. dec.Value = 10
  1038. for i = 0, 1, 0.3 do
  1039. swait()
  1040. Neck.C0 = clerp(Neck.C0, necko * euler(-0.2, 0, -0.5), 0.2)
  1041. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0.2, 0, -3), 0.2)
  1042. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.2, 0, 1.3), 0.2)
  1043. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  1044. LW.C0 = clerp(LW.C0, cf(-1.2, 0.5, -0.4) * euler(1, 0, 0.4) * euler(0, -0.1, 0), 0.2)
  1045. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  1046. RH.C0 = clerp(RH.C0, cf(1, -0.6, 0) * euler(0, 1.57, 0) * euler(-0.5, 0, 0.3), 0.25)
  1047. LH.C0 = clerp(LH.C0, cf(-1, -0.8, 0) * euler(0, -1.57, 0) * euler(-0.2, 0, 0), 0.25)
  1048. end
  1049. for i = 0, 1, 0.3 do
  1050. swait()
  1051. Neck.C0 = clerp(Neck.C0, necko * euler(-0.3, 0, -0.5), 0.2)
  1052. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.5) * euler(0.8, 0, -3), 0.2)
  1053. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.8, 0, 1.3), 0.2)
  1054. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  1055. 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)
  1056. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  1057. RH.C0 = clerp(RH.C0, cf(1, -0.6, 0) * euler(0, 1.57, 0) * euler(-0.5, 0, 0.6), 0.25)
  1058. LH.C0 = clerp(LH.C0, cf(-1, -0.8, 0) * euler(0, -1.57, 0) * euler(0.1, 0, 0.7), 0.25)
  1059. end
  1060. for i = 0, 1, 0.3 do
  1061. swait()
  1062. Neck.C0 = clerp(Neck.C0, necko * euler(-0.3, 0, -1), 0.2)
  1063. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -2) * euler(1.57, 0, -3), 0.2)
  1064. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.8, 0, 1.3), 0.2)
  1065. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  1066. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(1.2, 0, -0.8) * euler(0, -0.1, 0), 0.2)
  1067. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  1068. RH.C0 = clerp(RH.C0, cf(1, -0.6, 0) * euler(0, 1.57, 0) * euler(-0.2, 0, 0.6), 0.25)
  1069. LH.C0 = clerp(LH.C0, cf(-1, -0.8, 0) * euler(0, -1.57, 0) * euler(-0.1, 0, 0.3), 0.25)
  1070. end
  1071. local gairost = Instance.new("BodyGyro")
  1072. gairost.Parent = RootPart
  1073. gairost.maxTorque = Vector3.new(400000, 0, 400000) * 1000
  1074. gairost.P = 20000
  1075. gairost.cframe = cf(0, 0, 0)
  1076. for i = 0, 1, 0.1 do
  1077. swait()
  1078. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, -1.57), 0.3)
  1079. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -2.5) * euler(1.57, 0, -3.14), 0.3)
  1080. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-1.57, 0, 1.5) * euler(0.2, 0, 0), 0.3)
  1081. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  1082. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(1.5, 0, -1.57) * euler(0, 0, 0), 0.3)
  1083. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  1084. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0, 1.57, 0) * euler(-0.3, 0.5, 0), 0.3)
  1085. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, -1.57, 0) * euler(-0.1, 0.2, 0), 0.3)
  1086. end
  1087. for i = 1, 70 do
  1088. swait()
  1089. gairost.cframe = RootPart.CFrame
  1090. end
  1091. for i = 0, 1, 0.2 do
  1092. swait()
  1093. Stun.Value = 0
  1094. gairost.cframe = RootPart.CFrame
  1095. Neck.C0 = clerp(Neck.C0, necko * euler(0.2, 0, 0), 0.3)
  1096. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -2) * euler(1, 0, -4), 0.3)
  1097. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-1.57, 0, 1) * euler(0.2, -1, 0), 0.3)
  1098. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  1099. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(1.2, 0, 0.2) * euler(0, 0, 0), 0.3)
  1100. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  1101. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0, 1.57, 0) * euler(-0.3, 0.5, 0.4), 0.3)
  1102. LH.C0 = clerp(LH.C0, cf(-1, -1, -1) * euler(0, -1.57, 0) * euler(-0.1, 0.2, 1), 0.3)
  1103. end
  1104. dynamove = true
  1105. gairost.Parent = nil
  1106. dec.Parent = nil
  1107. Stun.Value = 0
  1108. combo = 0
  1109. Stunned.Value = false
  1110. attack = false
  1111. for i = 1, 10 do
  1112. swait()
  1113. Stun.Value = 0
  1114. end
  1115. end
  1116.  
  1117. attackone = function()
  1118. attack = true
  1119. for i = 0, 1, 0.15 do
  1120. swait()
  1121. if Mode == "Classic" then
  1122. hwld.C0 = clerp(hwld.C0, euler(0, 0, 0) * cf(0, 0, 0), 0.5)
  1123. dwld1.C0 = clerp(dwld1.C0, euler(0, 1.57, 0) * cf(-0.6, -1.5, -0.4), 0.5)
  1124. dwld6.C0 = clerp(dwld6.C0, euler(0, 1.57, 0) * cf(-0.6, -0.4, -0.35), 0.5)
  1125. dwld10.C0 = clerp(dwld10.C0, euler(0, 1.57, 0) * cf(-0.6, 0.5, -0.45), 0.5)
  1126. dwldb1.C0 = clerp(dwldb1.C0, euler(0, -1.57, 0) * cf(-0.6, -1.5, 0.4), 0.5)
  1127. dwldb6.C0 = clerp(dwldb6.C0, euler(0, -1.57, 0) * cf(-0.6, -0.4, 0.35), 0.5)
  1128. dwldb10.C0 = clerp(dwldb10.C0, euler(0, -1.57, 0) * cf(-0.6, 0.5, 0.45), 0.5)
  1129. end
  1130. if Mode == "Dynamic Blade" then
  1131. hwld.C0 = clerp(hwld.C0, euler(0, 0, 0) * cf(0, 0, 0), 0.6)
  1132. dwld1.C0 = clerp(dwld1.C0, euler(0, 1.57, 0) * euler(0, 0, 0) * cf(0, -6.5, -0.15), 0.6)
  1133. dwld6.C0 = clerp(dwld6.C0, euler(0, -1.57, 0) * euler(0, 0, 0) * cf(0, -5, -0.4), 0.6)
  1134. dwld10.C0 = clerp(dwld10.C0, euler(3.14, 1.57, 0) * cf(0, -4, -0.5), 0.6)
  1135. dwldb1.C0 = clerp(dwldb1.C0, euler(0, -1.57, 0) * euler(0, 0, 0) * cf(0, -6.5, 0.15), 0.6)
  1136. dwldb6.C0 = clerp(dwldb6.C0, euler(0, 1.57, 0) * euler(0, 0, 0) * cf(0, -5, 0.4), 0.6)
  1137. dwldb10.C0 = clerp(dwldb10.C0, euler(3.14, -1.57, 0) * cf(0, -4, 0.5), 0.6)
  1138. end
  1139. wld1.C0 = clerp(wld1.C0, euler(1, 0, 0) * cf(0, 1, 0), 0.2)
  1140. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0.5), 0.3)
  1141. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, -0.5), 0.3)
  1142. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.4, 0, 0.2), 0.3)
  1143. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  1144. LW.C0 = clerp(LW.C0, cf(-0.5, 0.5, -0.5) * euler(2, 0, 1) * euler(0, -1, 0), 0.3)
  1145. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  1146. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0, 1.57, 0) * euler(0, 0.5, 0), 0.3)
  1147. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, -1.57, 0) * euler(0, 0.5, 0), 0.3)
  1148. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  1149. do
  1150. if StaggerHit.Value == true then
  1151. break
  1152. end
  1153. -- DECOMPILER ERROR at PC477: LeaveBlock: unexpected jumping out IF_THEN_STMT
  1154.  
  1155. -- DECOMPILER ERROR at PC477: LeaveBlock: unexpected jumping out IF_STMT
  1156.  
  1157. end
  1158. end
  1159. end
  1160. num = 1
  1161. dam1 = 6
  1162. dam2 = 8
  1163. knock = math.random(5, 10)
  1164. stun = math.random(5, 7)
  1165. typ = "Normal"
  1166. if Mode == "Dynamic Blade" then
  1167. num = 2
  1168. dam1 = 7
  1169. dam2 = 9
  1170. knock = math.random(10, 15)
  1171. stun = math.random(6, 8)
  1172. typ = "Normal"
  1173. end
  1174. hbwld.Parent = nil
  1175. hboxpos.Parent = hitbox
  1176. hitbox.Parent = modelzorz
  1177. hitbox.Size = vt(0.5, 5.4, 1)
  1178. local size = 5
  1179. if Mode == "Dynamic Blade" then
  1180. hitbox.Size = vt(1, 8, 2)
  1181. size = 7
  1182. end
  1183. hitboxCF = prt31.CFrame * cf(0, 0, 0)
  1184. hitbox.CFrame = hitboxCF
  1185. blcf = nil
  1186. scfr = nil
  1187. so("200633281", prt31, 1, 0.9)
  1188. for i = 0, 1, 0.1 do
  1189. swait()
  1190. hitboxCF = prt31.CFrame * cf(0, 0, 0)
  1191. hitbox.CFrame = hitboxCF
  1192. MagniDamage(hitbox, size, dam1, dam2, knock, typ, RootPart, 0.5, num, stun, nil, true)
  1193. wld1.C0 = clerp(wld1.C0, euler(2.5, 0, 0) * cf(0, 1, 0), 0.2)
  1194. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, -0.8) * euler(0.2, 0, 0), 0.5)
  1195. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, 0.8), 0.5)
  1196. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.6, 0, 0.4), 0.5)
  1197. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.5)
  1198. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(0.5, 0, -1) * euler(0, -0.6, 0), 0.5)
  1199. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.5)
  1200. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0, 1.57, 0) * euler(0, -0.5, 0), 0.5)
  1201. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, -1.57, 0) * euler(0, -0.5, 0), 0.5)
  1202. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  1203. do
  1204. if StaggerHit.Value == true then
  1205. break
  1206. end
  1207. -- DECOMPILER ERROR at PC795: LeaveBlock: unexpected jumping out IF_THEN_STMT
  1208.  
  1209. -- DECOMPILER ERROR at PC795: LeaveBlock: unexpected jumping out IF_STMT
  1210.  
  1211. end
  1212. end
  1213. end
  1214. hitbox.Parent = modelzorz
  1215. hitbox.Size = vt()
  1216. hitboxweld()
  1217. hboxpos.Parent = nil
  1218. attack = false
  1219. end
  1220.  
  1221. attacktwo = function()
  1222. attack = true
  1223. if Mode == "Classic" then
  1224. for i = 0, 1, 0.1 do
  1225. swait()
  1226. Neck.C0 = clerp(Neck.C0, necko * euler(0.2, 0, 0) * euler(0, 0, -0.8), 0.2)
  1227. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.2) * euler(0, 0, -0.7), 0.2)
  1228. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.2, 0, 1.4) * euler(0, 0, 0), 0.2)
  1229. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  1230. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.3, 0, -0.4) * euler(0, 0, 0), 0.2)
  1231. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  1232. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0, 1.57, 0) * euler(0, 0.7, 0) * euler(0, 0, -0.4), 0.2)
  1233. LH.C0 = clerp(LH.C0, cf(-0.9, -0.8, -0.1) * euler(0, -1.57, 0) * euler(0, 0.7, 0) * euler(0, 0, 0.1), 0.2)
  1234. dwld1.C0 = clerp(dwld1.C0, euler(0, 1.57, 0) * euler(0.24, 3.14, 0) * cf(-0.6, 0, 0.3), 0.3)
  1235. dwld6.C0 = clerp(dwld6.C0, euler(3.14, 1.57, 0) * euler(-0.24, 0, 0) * cf(-0.6, 1.4, 0.3), 0.3)
  1236. dwld10.C0 = clerp(dwld10.C0, euler(0, -1.57, 0) * euler(2.9, 0, 0) * cf(-0.6, 0.6, -0.1), 0.3)
  1237. dwldb1.C0 = clerp(dwldb1.C0, euler(0, 1.57, 0) * euler(0.24, 3.14, 0) * cf(-0.9, 0, 0.3), 0.3)
  1238. dwldb6.C0 = clerp(dwldb6.C0, euler(3.14, 1.57, 0) * euler(-0.24, 0, 0) * cf(-0.9, 1.4, 0.3), 0.3)
  1239. dwldb10.C0 = clerp(dwldb10.C0, euler(0, -1.57, 0) * euler(2.9, 0, 0) * cf(-0.9, 0.6, -0.1), 0.3)
  1240. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  1241. do
  1242. if StaggerHit.Value == true then
  1243. break
  1244. end
  1245. -- DECOMPILER ERROR at PC354: LeaveBlock: unexpected jumping out IF_THEN_STMT
  1246.  
  1247. -- DECOMPILER ERROR at PC354: LeaveBlock: unexpected jumping out IF_STMT
  1248.  
  1249. end
  1250. end
  1251. end
  1252. hbwld.Parent = nil
  1253. hboxpos.Parent = hitbox
  1254. hitbox.Parent = modelzorz
  1255. hitbox.Size = vt(0.8, 5.4, 1.3)
  1256. size = 5
  1257. hitboxCF = handle.CFrame * euler(0.14, 0, 0) * cf(0.75, -1, 0)
  1258. hitbox.CFrame = hitboxCF
  1259. blcf = nil
  1260. scfr = nil
  1261. so("200633108", handle, 1, 1.1)
  1262. so("200633148", handle, 1, 1.1)
  1263. for i = 0, 1, 0.1 do
  1264. swait()
  1265. hitboxCF = handle.CFrame * euler(0.14, 0, 0) * cf(0.75, -1, 0)
  1266. hitbox.CFrame = hitboxCF
  1267. MagniDamage(hitbox, size, 5, 6, math.random(5, 10), "Normal", RootPart, 0.5, 1, (math.random(10, 12)), nil, true)
  1268. wld1.C0 = clerp(wld1.C0, euler(1, 0, 0) * cf(0, 1, 0), 0.4)
  1269. Neck.C0 = clerp(Neck.C0, necko * euler(0.1, 0, 0) * euler(0, 0, -0.7), 0.4)
  1270. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * euler(0, 0, 0.7), 0.4)
  1271. RW.C0 = clerp(RW.C0, cf(1, 0.5, -0.5) * euler(1.4, 0, -0.6) * euler(0, 1.6, 0), 0.4)
  1272. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  1273. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.6, 0, -0.6) * euler(0, 0, 0), 0.4)
  1274. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  1275. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0, 1.57, 0) * euler(0, -0.7, 0) * euler(0, 0, 0), 0.4)
  1276. LH.C0 = clerp(LH.C0, cf(-0.9, -1, -0.1) * euler(0, -1.57, 0) * euler(0, -0.7, 0) * euler(0, 0, 0.2), 0.4)
  1277. dwld1.C0 = clerp(dwld1.C0, euler(0, 1.57, 0) * euler(0.24, 3.14, 0) * cf(-0.6, 0.4, 0.3), 0.6)
  1278. dwld6.C0 = clerp(dwld6.C0, euler(3.14, 1.57, 0) * euler(-0.24, 0, 0) * cf(-0.6, 1.8, 0.3), 0.6)
  1279. dwld10.C0 = clerp(dwld10.C0, euler(0, -1.57, 0) * euler(2.9, 0, 0) * cf(-0.6, 1, -0.1), 0.6)
  1280. dwldb1.C0 = clerp(dwldb1.C0, euler(0, 1.57, 0) * euler(0.24, 3.14, 0) * cf(-0.9, 0.4, 0.3), 0.6)
  1281. dwldb6.C0 = clerp(dwldb6.C0, euler(3.14, 1.57, 0) * euler(-0.24, 0, 0) * cf(-0.9, 1.8, 0.3), 0.6)
  1282. dwldb10.C0 = clerp(dwldb10.C0, euler(0, -1.57, 0) * euler(2.9, 0, 0) * cf(-0.9, 1, -0.1), 0.6)
  1283. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  1284. do
  1285. if StaggerHit.Value == true then
  1286. break
  1287. end
  1288. -- DECOMPILER ERROR at PC813: LeaveBlock: unexpected jumping out IF_THEN_STMT
  1289.  
  1290. -- DECOMPILER ERROR at PC813: LeaveBlock: unexpected jumping out IF_STMT
  1291.  
  1292. end
  1293. end
  1294. end
  1295. hitbox.Parent = modelzorz
  1296. hitbox.Size = vt()
  1297. hitboxweld()
  1298. hboxpos.Parent = nil
  1299. else
  1300. for i = 0, 1, 0.15 do
  1301. swait()
  1302. if Mode == "Dynamic Blade" then
  1303. hwld.C0 = clerp(hwld.C0, euler(0, 0, 0) * cf(0, 0, 0), 0.6)
  1304. dwld1.C0 = clerp(dwld1.C0, euler(0, 1.57, 0) * cf(0, -5.5, -0.2), 0.6)
  1305. dwld6.C0 = clerp(dwld6.C0, euler(0, 1.57, 0) * euler(-3.64, 0, 0) * cf(0, -3.4, -0.7), 0.6)
  1306. dwld10.C0 = clerp(dwld10.C0, euler(3.14, 1.57, 0) * euler(0.2, 0, 0) * cf(0, -5, -0.8), 0.6)
  1307. dwldb1.C0 = clerp(dwldb1.C0, euler(0, -1.57, 0) * cf(0, -5.5, 0.2), 0.6)
  1308. dwldb6.C0 = clerp(dwldb6.C0, euler(0, -1.57, 0) * euler(3.64, 0, 0) * cf(0, -3.4, 0.7), 0.6)
  1309. dwldb10.C0 = clerp(dwldb10.C0, euler(3.14, -1.57, 0) * euler(-0.2, 0, 0) * cf(0, -5, 0.8), 0.6)
  1310. end
  1311. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0.3), 0.4)
  1312. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, 0.8), 0.4)
  1313. RW.C0 = clerp(RW.C0, cf(-0.5, 0.7, -0.5) * euler(2.2, 0, -1), 0.4)
  1314. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  1315. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(2, 0, -0.4) * euler(0, 1, 0), 0.4)
  1316. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  1317. RH.C0 = clerp(RH.C0, cf(0.9, -1, 0.2) * euler(0, 1.57, 0) * euler(0, -0.8, 0), 0.4)
  1318. LH.C0 = clerp(LH.C0, cf(-0.9, -1, -0.2) * euler(0, -1.57, 0) * euler(0, -0.8, 0), 0.4)
  1319. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  1320. do
  1321. if StaggerHit.Value == true then
  1322. break
  1323. end
  1324. -- DECOMPILER ERROR at PC1154: LeaveBlock: unexpected jumping out IF_THEN_STMT
  1325.  
  1326. -- DECOMPILER ERROR at PC1154: LeaveBlock: unexpected jumping out IF_STMT
  1327.  
  1328. end
  1329. end
  1330. end
  1331. num = 1
  1332. dam1 = 6
  1333. dam2 = 8
  1334. knock = math.random(5, 10)
  1335. stun = math.random(5, 7)
  1336. typ = "Normal"
  1337. if Mode == "Dynamic Blade" then
  1338. num = 2
  1339. dam1 = 7
  1340. dam2 = 9
  1341. knock = math.random(15, 20)
  1342. stun = math.random(6, 8)
  1343. typ = "Normal"
  1344. end
  1345. hbwld.Parent = nil
  1346. hboxpos.Parent = hitbox
  1347. hitbox.Parent = modelzorz
  1348. hitbox.Size = vt(0.5, 5.4, 1)
  1349. size = 5
  1350. so("200633148", prt31, 1, 0.9)
  1351. if Mode == "Dynamic Blade" then
  1352. hitbox.Size = vt(1, 8, 2)
  1353. size = 7
  1354. end
  1355. hitboxCF = prt31.CFrame * cf(0, 0, 0)
  1356. hitbox.CFrame = hitboxCF
  1357. blcf = nil
  1358. scfr = nil
  1359. for i = 0, 1, 0.1 do
  1360. swait()
  1361. hitboxCF = prt31.CFrame * cf(0, 0, 0)
  1362. hitbox.CFrame = hitboxCF
  1363. MagniDamage(hitbox, size, dam1, dam2, knock, typ, RootPart, 0.5, num, stun, nil, true)
  1364. wld1.C0 = clerp(wld1.C0, euler(2, 0, 0) * cf(0, 1, 0), 0.4)
  1365. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0.3) * euler(0.2, 0, 0), 0.4)
  1366. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, -0.8), 0.4)
  1367. RW.C0 = clerp(RW.C0, cf(0.5, 0.3, -0.2) * euler(0.2, 0, -0.3), 0.4)
  1368. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  1369. LW.C0 = clerp(LW.C0, cf(-0.8, 0.5, -0.2) * euler(0.3, 0, 0.5) * euler(0, 0.5, 0), 0.4)
  1370. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  1371. RH.C0 = clerp(RH.C0, cf(0.9, -1, -0.3) * euler(0, 1.57, 0) * euler(0, 0.8, 0), 0.4)
  1372. LH.C0 = clerp(LH.C0, cf(-0.9, -1, 0.3) * euler(0, -1.57, 0) * euler(0, 0.8, 0), 0.4)
  1373. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  1374. do
  1375. if StaggerHit.Value == true then
  1376. break
  1377. end
  1378. -- DECOMPILER ERROR at PC1474: LeaveBlock: unexpected jumping out IF_THEN_STMT
  1379.  
  1380. -- DECOMPILER ERROR at PC1474: LeaveBlock: unexpected jumping out IF_STMT
  1381.  
  1382. end
  1383. end
  1384. end
  1385. hitbox.Parent = modelzorz
  1386. hitbox.Size = vt()
  1387. hitboxweld()
  1388. hboxpos.Parent = nil
  1389. end
  1390. attack = false
  1391. end
  1392.  
  1393. attackthree = function()
  1394. attack = true
  1395. if Mode == "Energy Reactor" then
  1396. dynamomove = false
  1397. for i = 0, 1, 0.15 do
  1398. swait()
  1399. hwld.Part1 = RootPart
  1400. wld1.C0 = clerp(wld1.C0, euler(1.4, 0, 0) * cf(0, 1, 0), 0.3)
  1401. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0) * euler(0.2, 0, -0.5), 0.3)
  1402. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.2) * euler(0, 0, 0.5), 0.3)
  1403. RW.C0 = clerp(RW.C0, cf(1.2, 0.5, -0.3) * euler(1.5, 0, 0.5) * euler(0, 1.57, 0), 0.3)
  1404. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  1405. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.4, 0, -0.6) * euler(0, 0, 0), 0.3)
  1406. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  1407. RH.C0 = clerp(RH.C0, cf(1, -0.8, 0) * euler(0, 1.57, 0) * euler(0, -0.3, 0) * euler(0, 0, -0.1), 0.3)
  1408. LH.C0 = clerp(LH.C0, cf(-0.9, -1, -0.1) * euler(0, -1.57, 0) * euler(0, -0.3, 0) * euler(0, 0, 0.4), 0.3)
  1409. hwld.C0 = clerp(hwld.C0, euler(0, 0, -2.5) * cf(0, 0, 2), 0.6)
  1410. dwld1.C0 = clerp(dwld1.C0, euler(0, 1.57, 0.5) * cf(2, -1, 0) * euler(0, 0, 0) * euler(1.57, 0, 0), 0.6)
  1411. dwld6.C0 = clerp(dwld6.C0, euler(0, 4.71, 0.5) * cf(2, -1, 0) * euler(0, 1.046, 0) * euler(1.57, 0, 0), 0.6)
  1412. dwld10.C0 = clerp(dwld10.C0, euler(3.14, 1.57, 0.5) * cf(2, -1, 0) * euler(0, 2.092, 0) * euler(1.57, 0, 0), 0.6)
  1413. dwldb1.C0 = clerp(dwldb1.C0, euler(0, 1.57, 0.5) * cf(2, -1, 0) * euler(0, 3.138, 0) * euler(1.57, 0, 0), 0.6)
  1414. dwldb6.C0 = clerp(dwldb6.C0, euler(0, 4.71, 0.5) * cf(2, -1, 0) * euler(0, 4.184, 0) * euler(1.57, 0, 0), 0.6)
  1415. dwldb10.C0 = clerp(dwldb10.C0, euler(3.14, 1.57, 0.5) * cf(2, -1, 0) * euler(0, 5.23, 0) * euler(1.57, 0, 0), 0.6)
  1416. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  1417. do
  1418. if StaggerHit.Value == true then
  1419. break
  1420. end
  1421. -- DECOMPILER ERROR at PC431: LeaveBlock: unexpected jumping out IF_THEN_STMT
  1422.  
  1423. -- DECOMPILER ERROR at PC431: LeaveBlock: unexpected jumping out IF_STMT
  1424.  
  1425. end
  1426. end
  1427. end
  1428. eulmov = 0
  1429. damov = -2
  1430. ai = 4
  1431. for i = 0, 1, 0.1 do
  1432. swait()
  1433. CF = handle.CFrame * cf(0, 0, damov)
  1434. damov = damov - 3
  1435. if ai % 4 == 0 then
  1436. ref = part(3, workspace, 0, 1, BrickColor.new("Black"), "Reference", vt())
  1437. ref.Anchored = true
  1438. ref.CFrame = CF
  1439. game:GetService("Debris"):AddItem(ref, 1)
  1440. so("300916105", ref, 1, 2)
  1441. MagicCircle(BrickColor.new(NewCol2), CF, 5, 5, 5, 2, 2, 2, 0.1)
  1442. MagicCircle(BrickColor.new(NewCol2), CF, 1, 1, 1, 3, 3, 3, 0.05)
  1443. MagicRing(BrickColor.new(NewCol2), CF, 1, 1, 1, 0.8, 0.8, 0.2, 0.03)
  1444. MagniDamage(ref, 8, 5, 7, 0, "Normal", RootPart, 0, 1, (math.random(3, 5)), nil, true, true)
  1445. end
  1446. ai = ai + 1
  1447. eulmov = eulmov - 0.4
  1448. wld1.C0 = clerp(wld1.C0, euler(1.4, 0, 0) * cf(0, 1, 0), 0.3)
  1449. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0) * euler(0.2, 0, -0.5), 0.3)
  1450. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.2) * euler(0, 0, 0.5), 0.3)
  1451. RW.C0 = clerp(RW.C0, cf(1.2, 0.5, -0.3) * euler(1.5, 0, 0.5) * euler(0, 1.57, 0), 0.3)
  1452. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  1453. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.4, 0, -0.6) * euler(0, 0, 0), 0.3)
  1454. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  1455. RH.C0 = clerp(RH.C0, cf(1, -0.8, 0) * euler(0, 1.57, 0) * euler(0, -0.3, 0) * euler(0, 0, -0.1), 0.3)
  1456. LH.C0 = clerp(LH.C0, cf(-0.9, -1, -0.1) * euler(0, -1.57, 0) * euler(0, -0.3, 0) * euler(0, 0, 0.4), 0.3)
  1457. hwld.C0 = clerp(hwld.C0, euler(0, 0, -2.5 - eulmov) * cf(0, 0, 0), 0.3)
  1458. dwld1.C0 = clerp(dwld1.C0, euler(0, 1.57, 0.5) * cf(3, -1, 0) * euler(0, 0, 0) * euler(1.57, 0, 0), 0.2)
  1459. dwld6.C0 = clerp(dwld6.C0, euler(0, 4.71, 0.2) * cf(3, -1.5, 0) * euler(0, 1.046, 0) * euler(1.57, 0, 0), 0.2)
  1460. dwld10.C0 = clerp(dwld10.C0, euler(3.14, 1.57, 0.2) * cf(3, -1.5, 0) * euler(0, 2.092, 0) * euler(1.57, 0, 0), 0.2)
  1461. dwldb1.C0 = clerp(dwldb1.C0, euler(0, 1.57, 0.2) * cf(3, -1.5, 0) * euler(0, 3.138, 0) * euler(1.57, 0, 0), 0.2)
  1462. dwldb6.C0 = clerp(dwldb6.C0, euler(0, 4.71, 0.2) * cf(3, -1.5, 0) * euler(0, 4.184, 0) * euler(1.57, 0, 0), 0.2)
  1463. dwldb10.C0 = clerp(dwldb10.C0, euler(3.14, 1.57, 0.2) * cf(3, -1.5, 0) * euler(0, 5.23, 0) * euler(1.57, 0, 0), 0.2)
  1464. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  1465. do
  1466. if StaggerHit.Value == true then
  1467. break
  1468. end
  1469. -- DECOMPILER ERROR at PC976: LeaveBlock: unexpected jumping out IF_THEN_STMT
  1470.  
  1471. -- DECOMPILER ERROR at PC976: LeaveBlock: unexpected jumping out IF_STMT
  1472.  
  1473. end
  1474. end
  1475. end
  1476. dynamomove = true
  1477. else
  1478. for i = 0, 1, 0.15 do
  1479. swait()
  1480. if Mode == "Classic" then
  1481. hwld.C0 = clerp(hwld.C0, euler(0, 0, 0) * cf(0, 0, 0), 0.5)
  1482. dwld1.C0 = clerp(dwld1.C0, euler(0, 1.57, 0) * cf(-0.6, -1.5, -0.4), 0.5)
  1483. dwld6.C0 = clerp(dwld6.C0, euler(0, 1.57, 0) * cf(-0.6, -0.4, -0.35), 0.5)
  1484. dwld10.C0 = clerp(dwld10.C0, euler(0, 1.57, 0) * cf(-0.6, 0.5, -0.45), 0.5)
  1485. dwldb1.C0 = clerp(dwldb1.C0, euler(0, -1.57, 0) * cf(-0.6, -1.5, 0.4), 0.5)
  1486. dwldb6.C0 = clerp(dwldb6.C0, euler(0, -1.57, 0) * cf(-0.6, -0.4, 0.35), 0.5)
  1487. dwldb10.C0 = clerp(dwldb10.C0, euler(0, -1.57, 0) * cf(-0.6, 0.5, 0.45), 0.5)
  1488. end
  1489. if Mode == "Dynamic Blade" then
  1490. hwld.C0 = clerp(hwld.C0, euler(0, 0, 0) * cf(0, 0, 0), 0.6)
  1491. dwld1.C0 = clerp(dwld1.C0, euler(0, 1.57, 0) * euler(0, 0, 0) * cf(0, -6.5, -0.15), 0.6)
  1492. dwld6.C0 = clerp(dwld6.C0, euler(0, -1.57, 0) * euler(0, 0, 0) * cf(0, -5, -0.4), 0.6)
  1493. dwld10.C0 = clerp(dwld10.C0, euler(3.14, 1.57, 0) * cf(0, -4, -0.5), 0.6)
  1494. dwldb1.C0 = clerp(dwldb1.C0, euler(0, -1.57, 0) * euler(0, 0, 0) * cf(0, -6.5, 0.15), 0.6)
  1495. dwldb6.C0 = clerp(dwldb6.C0, euler(0, 1.57, 0) * euler(0, 0, 0) * cf(0, -5, 0.4), 0.6)
  1496. dwldb10.C0 = clerp(dwldb10.C0, euler(3.14, -1.57, 0) * cf(0, -4, 0.5), 0.6)
  1497. end
  1498. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0.5), 0.3)
  1499. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, -0.5), 0.3)
  1500. wld1.C0 = clerp(wld1.C0, euler(1.57, 0, 0) * cf(0, 1, 0), 0.3)
  1501. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(0.4, 0, 0.2), 0.3)
  1502. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  1503. LW.C0 = clerp(LW.C0, cf(-0.5, 0.5, -0.5) * euler(1.57, 0, 1) * euler(0, -1.57, 0), 0.3)
  1504. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  1505. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0, 1.57, 0) * euler(0, 0.5, -0.4), 0.3)
  1506. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, -1.57, 0) * euler(0, 0.5, 0.1), 0.3)
  1507. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  1508. do
  1509. if StaggerHit.Value == true then
  1510. break
  1511. end
  1512. -- DECOMPILER ERROR at PC1455: LeaveBlock: unexpected jumping out IF_THEN_STMT
  1513.  
  1514. -- DECOMPILER ERROR at PC1455: LeaveBlock: unexpected jumping out IF_STMT
  1515.  
  1516. end
  1517. end
  1518. end
  1519. num = 1
  1520. dam1 = 4
  1521. dam2 = 6
  1522. knock = math.random(5, 10)
  1523. stun = math.random(5, 7)
  1524. typ = "Normal"
  1525. if Mode == "Dynamic Blade" then
  1526. num = 2
  1527. dam1 = 5
  1528. dam2 = 7
  1529. knock = math.random(10, 15)
  1530. stun = math.random(6, 8)
  1531. typ = "Normal"
  1532. end
  1533. hbwld.Parent = nil
  1534. hboxpos.Parent = hitbox
  1535. hitbox.Parent = modelzorz
  1536. hitbox.Size = vt(0.5, 5.4, 1)
  1537. size = 5
  1538. so("200633108", prt31, 1, 1.1)
  1539. if Mode == "Dynamic Blade" then
  1540. hitbox.Size = vt(1, 8, 2)
  1541. size = 7
  1542. end
  1543. hitboxCF = prt31.CFrame * cf(0, 0, 0)
  1544. hitbox.CFrame = hitboxCF
  1545. blcf = nil
  1546. scfr = nil
  1547. for i = 0, 1, 0.15 do
  1548. swait()
  1549. hitboxCF = prt31.CFrame * cf(0, 0, 0)
  1550. hitbox.CFrame = hitboxCF
  1551. MagniDamage(hitbox, size, dam1, dam2, knock, typ, RootPart, 0.2, num, stun, nil, true)
  1552. wld1.C0 = clerp(wld1.C0, euler(2.5, 0, 0) * cf(0, 1, 0), 0.3)
  1553. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0), 0.3)
  1554. RootJoint.C0 = RootCF * euler(0, 0, -0.5 + 6.28 * i)
  1555. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.4, 0, 1), 0.3)
  1556. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  1557. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(1.57, 0, -1.57) * euler(0, -1.57, 0), 0.3)
  1558. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  1559. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0, 1.57, 0) * euler(0, 0, 0), 0.3)
  1560. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, -1.57, 0) * euler(0, 0, 0), 0.3)
  1561. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  1562. do
  1563. if StaggerHit.Value == true then
  1564. break
  1565. end
  1566. -- DECOMPILER ERROR at PC1765: LeaveBlock: unexpected jumping out IF_THEN_STMT
  1567.  
  1568. -- DECOMPILER ERROR at PC1765: LeaveBlock: unexpected jumping out IF_STMT
  1569.  
  1570. end
  1571. end
  1572. end
  1573. for i = 0, 1, 0.2 do
  1574. swait()
  1575. hitboxCF = prt31.CFrame * cf(0, 0, 0)
  1576. hitbox.CFrame = hitboxCF
  1577. MagniDamage(hitbox, size, dam1, dam2, knock, typ, RootPart, 0.2, num, stun, nil, true)
  1578. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0), 0.3)
  1579. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, 0.4), 0.3)
  1580. wld1.C0 = clerp(wld1.C0, euler(2.5, 0, 0) * cf(0, 1, 0), 0.3)
  1581. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.4, 0, 1), 0.3)
  1582. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  1583. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(1.3, 0, -1.57) * euler(0, -1.2, 0), 0.3)
  1584. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  1585. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  1586. do
  1587. if StaggerHit.Value == true then
  1588. break
  1589. end
  1590. -- DECOMPILER ERROR at PC1937: LeaveBlock: unexpected jumping out IF_THEN_STMT
  1591.  
  1592. -- DECOMPILER ERROR at PC1937: LeaveBlock: unexpected jumping out IF_STMT
  1593.  
  1594. end
  1595. end
  1596. end
  1597. hitbox.Parent = modelzorz
  1598. hitbox.Size = vt()
  1599. hitboxweld()
  1600. hboxpos.Parent = nil
  1601. end
  1602. attack = false
  1603. end
  1604.  
  1605. attackfour = function()
  1606. attack = true
  1607. if Mode == "Energy Reactor" then
  1608. dynamomove = false
  1609. for i = 0, 1, 0.1 do
  1610. swait()
  1611. hwld.Part1 = RootPart
  1612. wld1.C0 = clerp(wld1.C0, euler(1.57, 0, 0) * cf(0, 1, 0), 0.3)
  1613. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, -0.5) * euler(-0.6, 0, 0), 0.3)
  1614. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.2) * euler(0, 0, 0.5), 0.3)
  1615. RW.C0 = clerp(RW.C0, cf(1.2, 0.5, -0.3) * euler(1.5, 0, 0.5) * euler(0, 1.57, 0) * euler(0, 0, 1), 0.3)
  1616. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  1617. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.4, 0, -0.6) * euler(0, 0, 0), 0.3)
  1618. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  1619. RH.C0 = clerp(RH.C0, cf(1, -0.8, 0) * euler(0, 1.57, 0) * euler(0, -0.3, 0) * euler(0, 0, -0.1), 0.3)
  1620. LH.C0 = clerp(LH.C0, cf(-0.9, -1, -0.1) * euler(0, -1.57, 0) * euler(0, -0.3, 0) * euler(0, 0, 0.4), 0.3)
  1621. hwld.C0 = clerp(hwld.C0, euler(0, 0, 1) * euler(1.2, 0, 0) * cf(0, -8, 0), 0.3)
  1622. dwld1.C0 = clerp(dwld1.C0, euler(0, 1.57, -1) * cf(1, -0.5, 0) * euler(0, 0, 0) * euler(1.57, 0, 0), 0.3)
  1623. dwld6.C0 = clerp(dwld6.C0, euler(0, 4.71, -1) * cf(1, -0.5, 0) * euler(0, 1.046, 0) * euler(1.57, 0, 0), 0.3)
  1624. dwld10.C0 = clerp(dwld10.C0, euler(3.14, 1.57, -1) * cf(1, -0.5, 0) * euler(0, 2.092, 0) * euler(1.57, 0, 0), 0.3)
  1625. dwldb1.C0 = clerp(dwldb1.C0, euler(0, 1.57, -1) * cf(1, -0.5, 0) * euler(0, 3.138, 0) * euler(1.57, 0, 0), 0.3)
  1626. dwldb6.C0 = clerp(dwldb6.C0, euler(0, 4.71, -1) * cf(1, -0.5, 0) * euler(0, 4.184, 0) * euler(1.57, 0, 0), 0.3)
  1627. dwldb10.C0 = clerp(dwldb10.C0, euler(3.14, 1.57, -1) * cf(1, -0.5, 0) * euler(0, 5.23, 0) * euler(1.57, 0, 0), 0.3)
  1628. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  1629. do
  1630. if StaggerHit.Value == true then
  1631. break
  1632. end
  1633. -- DECOMPILER ERROR at PC443: LeaveBlock: unexpected jumping out IF_THEN_STMT
  1634.  
  1635. -- DECOMPILER ERROR at PC443: LeaveBlock: unexpected jumping out IF_STMT
  1636.  
  1637. end
  1638. end
  1639. end
  1640. eul = 0
  1641. dov = 0
  1642. doi = 0
  1643. for i = 0, 1, 0.05 do
  1644. swait()
  1645. eul = eul + 0.4
  1646. dov = dov + 0.05
  1647. doi = doi + 1
  1648. hwld.Part1 = RootPart
  1649. if doi % 2 == 0 then
  1650. lhit,lpos = rayCast(handle.Position, handle.CFrame.lookVector, 100, Character)
  1651. local mag = (handle.Position - lpos).magnitude
  1652. MagicHead2(BrickColor.new(NewCol2), CFrame.new((handle.Position + lpos) / 2, lpos) * angles(1.57, 0, 0), 12, mag * 5, 12, 0.4, 1, 0.4, 0.2)
  1653. if lhit ~= nil then
  1654. so("301031757", handle, 0.6, 1.5)
  1655. ref = part(3, workspace, 0, 1, BrickColor.new("Black"), "Reference", vt())
  1656. ref.Anchored = true
  1657. ref.CFrame = cf(lpos)
  1658. game:GetService("Debris"):AddItem(ref, 1)
  1659. MagniDamage(ref, 8, 4, 6, 0, "Normal", RootPart, 0.4, 1, (math.random(3, 5)), nil, true, true)
  1660. MagicRing(BrickColor.new(NewCol2), cf(lpos) * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 5, 5, 1, 0.8, 0.8, 0.2, 0.1)
  1661. MagicCircle(BrickColor.new(NewCol2), cf(lpos), 20, 20, 20, 3, 3, 3, 0.1)
  1662. end
  1663. end
  1664. do
  1665. wld1.C0 = clerp(wld1.C0, euler(1.57, 0, 0) * cf(0, 1, 0), 0.3)
  1666. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, -0.5) * euler(0, 0, 0), 0.3)
  1667. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.2) * euler(0, 0, 0.5), 0.3)
  1668. RW.C0 = clerp(RW.C0, cf(1.2, 0.5, -0.3) * euler(1.5, 0, 0.5) * euler(0, 1.57, 0), 0.3)
  1669. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  1670. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.4, 0, -0.6) * euler(0, 0, 0), 0.3)
  1671. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  1672. RH.C0 = clerp(RH.C0, cf(1, -0.8, 0) * euler(0, 1.57, 0) * euler(0, -0.3, 0) * euler(0, 0, -0.1), 0.3)
  1673. LH.C0 = clerp(LH.C0, cf(-0.9, -1, -0.1) * euler(0, -1.57, 0) * euler(0, -0.3, 0) * euler(0, 0, 0.4), 0.3)
  1674. hwld.C0 = clerp(hwld.C0, euler(1.2 - dov, 0, 0) * cf(0, -8, eul) * euler(0, 0, 0), 0.3)
  1675. dwld1.C0 = clerp(dwld1.C0, euler(0, 1.57, -1) * cf(1, -0.5, 0) * euler(0, 0 + eul, 0) * euler(1.57, 0, 0), 0.3)
  1676. dwld6.C0 = clerp(dwld6.C0, euler(0, 4.71, -1) * cf(1, -0.5, 0) * euler(0, 1.046 + eul, 0) * euler(1.57, 0, 0), 0.3)
  1677. dwld10.C0 = clerp(dwld10.C0, euler(3.14, 1.57, -1) * cf(1, -0.5, 0) * euler(0, 2.092 + eul, 0) * euler(1.57, 0, 0), 0.3)
  1678. dwldb1.C0 = clerp(dwldb1.C0, euler(0, 1.57, -1) * cf(1, -0.5, 0) * euler(0, 3.138 + eul, 0) * euler(1.57, 0, 0), 0.3)
  1679. dwldb6.C0 = clerp(dwldb6.C0, euler(0, 4.71, -1) * cf(1, -0.5, 0) * euler(0, 4.184 + eul, 0) * euler(1.57, 0, 0), 0.3)
  1680. dwldb10.C0 = clerp(dwldb10.C0, euler(3.14, 1.57, -1) * cf(1, -0.5, 0) * euler(0, 5.23 + eul, 0) * euler(1.57, 0, 0), 0.3)
  1681. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  1682. do
  1683. if StaggerHit.Value == true then
  1684. break
  1685. end
  1686. -- DECOMPILER ERROR at PC1051: LeaveBlock: unexpected jumping out IF_THEN_STMT
  1687.  
  1688. -- DECOMPILER ERROR at PC1051: LeaveBlock: unexpected jumping out IF_STMT
  1689.  
  1690. -- DECOMPILER ERROR at PC1051: LeaveBlock: unexpected jumping out DO_STMT
  1691.  
  1692. end
  1693. end
  1694. end
  1695. end
  1696. dynamomove = true
  1697. else
  1698. if Mode == "Classic" then
  1699. for i = 0, 1, 0.1 do
  1700. swait()
  1701. Neck.C0 = clerp(Neck.C0, necko * euler(0.2, 0, 0) * euler(0, 0, -0.5), 0.2)
  1702. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.2) * euler(0, 0, -0.3), 0.2)
  1703. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(1.4, 0, 0.4) * euler(0, 0, 0), 0.2)
  1704. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  1705. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(0.2, 0, -0.2) * euler(0, 0, 0), 0.2)
  1706. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  1707. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0, 1.57, 0) * euler(0, 0.3, 0) * euler(0, 0, -0.4), 0.2)
  1708. LH.C0 = clerp(LH.C0, cf(-0.9, -0.8, -0.1) * euler(0, -1.57, 0) * euler(0, 0.3, 0) * euler(0, 0, 0.1), 0.2)
  1709. dwld1.C0 = clerp(dwld1.C0, euler(3.14, 1.57, 0) * euler(-0.23, 0, 0) * cf(-0.6, 2.1, -0.5), 0.4)
  1710. dwld6.C0 = clerp(dwld6.C0, euler(0, -1.57, 0) * euler(-1, 0, 0) * cf(-0.6, 0.8, -1.1), 0.4)
  1711. dwld10.C0 = clerp(dwld10.C0, euler(0, 1.57, 0) * cf(-0.6, 0.6, -0.2), 0.4)
  1712. dwldb1.C0 = clerp(dwldb1.C0, euler(3.14, -1.57, 0) * euler(0.23, 0, 0) * cf(-0.6, 2.1, 0.5), 0.4)
  1713. dwldb6.C0 = clerp(dwldb6.C0, euler(0, 1.57, 0) * euler(1, 0, 0) * cf(-0.6, 0.8, 1.1), 0.4)
  1714. dwldb10.C0 = clerp(dwldb10.C0, euler(0, -1.57, 0) * cf(-0.6, 0.6, 0.2), 0.4)
  1715. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  1716. do
  1717. if StaggerHit.Value == true then
  1718. break
  1719. end
  1720. -- DECOMPILER ERROR at PC1395: LeaveBlock: unexpected jumping out IF_THEN_STMT
  1721.  
  1722. -- DECOMPILER ERROR at PC1395: LeaveBlock: unexpected jumping out IF_STMT
  1723.  
  1724. end
  1725. end
  1726. end
  1727. hbwld.Parent = nil
  1728. hboxpos.Parent = hitbox
  1729. hitbox.Parent = modelzorz
  1730. hitbox.Size = vt(0.8, 4.5, 2.5)
  1731. hitboxCF = handle.CFrame * cf(0.75, -1.9, 0)
  1732. hitbox.CFrame = hitboxCF
  1733. blcf = nil
  1734. scfr = nil
  1735. so("200633196", handle, 1, 0.8)
  1736. for i = 0, 1, 0.1 do
  1737. swait()
  1738. hitboxCF = handle.CFrame * cf(0.75, -1.9, 0)
  1739. hitbox.CFrame = hitboxCF
  1740. MagniDamage(hitbox, 4, 7, 8, math.random(10, 20), "Normal", RootPart, 0.5, 1, (math.random(10, 12)), nil, true)
  1741. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0) * euler(0.2, 0, -0.5), 0.4)
  1742. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.2) * euler(0, 0, 0.5), 0.4)
  1743. RW.C0 = clerp(RW.C0, cf(1.2, 0.5, -0.3) * euler(1.5, 0, -0.2) * euler(0, 1, 0), 0.4)
  1744. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  1745. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.4, 0, -0.6) * euler(0, 0, 0), 0.4)
  1746. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  1747. RH.C0 = clerp(RH.C0, cf(1, -0.8, 0) * euler(0, 1.57, 0) * euler(0, -0.3, 0) * euler(0, 0, -0.1), 0.4)
  1748. LH.C0 = clerp(LH.C0, cf(-0.9, -1, -0.1) * euler(0, -1.57, 0) * euler(0, -0.3, 0) * euler(0, 0, 0.4), 0.4)
  1749. dwld1.C0 = clerp(dwld1.C0, euler(3.14, 1.57, 0) * euler(-0.23, 0, 0) * cf(-0.6, 2.5, -0.5), 0.4)
  1750. dwld6.C0 = clerp(dwld6.C0, euler(0, -1.57, 0) * euler(-1, 0, 0) * cf(-0.6, 1.2, -1.1), 0.4)
  1751. dwld10.C0 = clerp(dwld10.C0, euler(0, 1.57, 0) * cf(-0.6, 1, -0.2), 0.4)
  1752. dwldb1.C0 = clerp(dwldb1.C0, euler(3.14, -1.57, 0) * euler(0.23, 0, 0) * cf(-0.6, 2.5, 0.5), 0.4)
  1753. dwldb6.C0 = clerp(dwldb6.C0, euler(0, 1.57, 0) * euler(1, 0, 0) * cf(-0.6, 1.2, 1.1), 0.4)
  1754. dwldb10.C0 = clerp(dwldb10.C0, euler(0, -1.57, 0) * cf(-0.6, 1, 0.2), 0.4)
  1755. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  1756. do
  1757. if StaggerHit.Value == true then
  1758. break
  1759. end
  1760. -- DECOMPILER ERROR at PC1804: LeaveBlock: unexpected jumping out IF_THEN_STMT
  1761.  
  1762. -- DECOMPILER ERROR at PC1804: LeaveBlock: unexpected jumping out IF_STMT
  1763.  
  1764. end
  1765. end
  1766. end
  1767. hitbox.Parent = modelzorz
  1768. hitbox.Size = vt()
  1769. hitboxweld()
  1770. hboxpos.Parent = nil
  1771. else
  1772. for i = 0, 1, 0.15 do
  1773. swait()
  1774. if Mode == "Dynamic Blade" then
  1775. hwld.C0 = clerp(hwld.C0, euler(0, 0, 0) * cf(0, 0, 0), 0.6)
  1776. dwld1.C0 = clerp(dwld1.C0, euler(0, 1.57, 0) * euler(0, 0, 0) * cf(0, -4.5, -0.45), 0.3)
  1777. dwld6.C0 = clerp(dwld6.C0, euler(0, -1.57, 0) * euler(0, 0, 0) * cf(0, -2.2, -0.55), 0.3)
  1778. dwld10.C0 = clerp(dwld10.C0, euler(3.14, 1.57, 0) * cf(0, -7.2, -0.2), 0.3)
  1779. dwldb1.C0 = clerp(dwldb1.C0, euler(0, -1.57, 0) * euler(0, 0, 0) * cf(0, -4.5, 0.45), 0.3)
  1780. dwldb6.C0 = clerp(dwldb6.C0, euler(0, 1.57, 0) * euler(0, 0, 0) * cf(0, -2.2, 0.55), 0.3)
  1781. dwldb10.C0 = clerp(dwldb10.C0, euler(3.14, -1.57, 0) * cf(0, -7.2, 0.2), 0.3)
  1782. end
  1783. wld1.C0 = clerp(wld1.C0, euler(1.57, 0, 0.8) * cf(0, 1, 0), 0.3)
  1784. Neck.C0 = clerp(Neck.C0, necko * euler(-0.4, 0, 0), 0.3)
  1785. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, 0), 0.3)
  1786. RW.C0 = clerp(RW.C0, cf(1, 1, -0.5) * euler(2.8, 0, -0.8) * euler(0, 0, 0), 0.3)
  1787. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  1788. LW.C0 = clerp(LW.C0, cf(-1, 1, -0.5) * euler(2.8, 0, 0.8), 0.3)
  1789. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  1790. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0, 1.57, 0) * euler(0, 0, 0), 0.3)
  1791. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, -1.57, 0) * euler(0, 0, 0), 0.3)
  1792. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  1793. do
  1794. if StaggerHit.Value == true then
  1795. break
  1796. end
  1797. -- DECOMPILER ERROR at PC2163: LeaveBlock: unexpected jumping out IF_THEN_STMT
  1798.  
  1799. -- DECOMPILER ERROR at PC2163: LeaveBlock: unexpected jumping out IF_STMT
  1800.  
  1801. end
  1802. end
  1803. end
  1804. num = 1
  1805. dam1 = 6
  1806. dam2 = 8
  1807. knock = math.random(5, 10)
  1808. stun = math.random(5, 7)
  1809. typ = "Normal"
  1810. if Mode == "Dynamic Blade" then
  1811. num = 2
  1812. dam1 = 7
  1813. dam2 = 9
  1814. knock = math.random(15, 20)
  1815. stun = math.random(6, 8)
  1816. typ = "Normal"
  1817. end
  1818. hbwld.Parent = nil
  1819. hboxpos.Parent = hitbox
  1820. hitbox.Parent = modelzorz
  1821. hitbox.Size = vt(0.5, 5.4, 1)
  1822. size = 5
  1823. if Mode == "Dynamic Blade" then
  1824. hitbox.Size = vt(1, 10, 3)
  1825. size = 8
  1826. end
  1827. hitboxCF = prt31.CFrame * cf(0, 0, 0)
  1828. hitbox.CFrame = hitboxCF
  1829. blcf = nil
  1830. scfr = nil
  1831. so("200633196", prt31, 1, 1)
  1832. for i = 0, 1, 0.1 do
  1833. swait()
  1834. if Mode == "Dynamic Blade" then
  1835. hitboxCF = prt31.CFrame * cf(0, 1, 0)
  1836. hitbox.CFrame = hitboxCF
  1837. else
  1838. hitboxCF = prt31.CFrame * cf(0, 1, 0)
  1839. hitbox.CFrame = hitboxCF
  1840. end
  1841. MagniDamage(hitbox, size, dam1, dam2, knock, typ, RootPart, 0.5, num, stun, nil, true)
  1842. if Mode == "Dynamic Blade" then
  1843. hwld.C0 = clerp(hwld.C0, euler(0, 0, 0) * cf(0, 0, 0), 0.6)
  1844. dwld1.C0 = clerp(dwld1.C0, euler(0, 1.57, 0) * euler(0, 0, 0) * cf(0, -4.5, -0.45), 0.3)
  1845. dwld6.C0 = clerp(dwld6.C0, euler(0, -1.57, 0) * euler(0, 0, 0) * cf(0, -2.2, -0.55), 0.3)
  1846. dwld10.C0 = clerp(dwld10.C0, euler(3.14, 1.57, 0) * cf(0, -7.2, -0.2), 0.3)
  1847. dwldb1.C0 = clerp(dwldb1.C0, euler(0, -1.57, 0) * euler(0, 0, 0) * cf(0, -4.5, 0.45), 0.3)
  1848. dwldb6.C0 = clerp(dwldb6.C0, euler(0, 1.57, 0) * euler(0, 0, 0) * cf(0, -2.2, 0.55), 0.3)
  1849. dwldb10.C0 = clerp(dwldb10.C0, euler(3.14, -1.57, 0) * cf(0, -7.2, 0.2), 0.3)
  1850. end
  1851. wld1.C0 = clerp(wld1.C0, euler(2, 0, 0.8) * cf(0, 1, 0), 0.6)
  1852. Neck.C0 = clerp(Neck.C0, necko * euler(0.4, 0, 0), 0.4)
  1853. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, 0), 0.4)
  1854. RW.C0 = clerp(RW.C0, cf(1, 0.1, -0.5) * euler(0.2, 0, -0.8) * euler(0, 0, 0), 0.4)
  1855. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  1856. LW.C0 = clerp(LW.C0, cf(-1, 0.1, -0.5) * euler(0.2, 0, 0.8), 0.4)
  1857. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  1858. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0, 1.57, 0) * euler(0, 0, 0), 0.4)
  1859. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, -1.57, 0) * euler(0, 0, 0), 0.4)
  1860. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  1861. do
  1862. if StaggerHit.Value == true then
  1863. break
  1864. end
  1865. -- DECOMPILER ERROR at PC2646: LeaveBlock: unexpected jumping out IF_THEN_STMT
  1866.  
  1867. -- DECOMPILER ERROR at PC2646: LeaveBlock: unexpected jumping out IF_STMT
  1868.  
  1869. end
  1870. end
  1871. end
  1872. hitbox.Parent = modelzorz
  1873. hitbox.Size = vt()
  1874. hitboxweld()
  1875. hboxpos.Parent = nil
  1876. end
  1877. end
  1878. attack = false
  1879. if Mode == "Classic" then
  1880. for i = 0, 1, 0.1 do
  1881. swait()
  1882. dwld1.C0 = clerp(dwld1.C0, euler(3.14, 1.57, 0) * euler(-0.23, 0, 0) * cf(-0.6, 1.6, -0.5), 0.4)
  1883. dwld6.C0 = clerp(dwld6.C0, euler(0, -1.57, 0) * euler(-1, 0, 0) * cf(-0.6, 0.3, -1.1), 0.4)
  1884. dwld10.C0 = clerp(dwld10.C0, euler(0, 1.57, 0) * cf(-0.6, 0.1, -0.2), 0.4)
  1885. dwldb1.C0 = clerp(dwldb1.C0, euler(3.14, -1.57, 0) * euler(0.23, 0, 0) * cf(-0.6, 1.6, 0.5), 0.4)
  1886. dwldb6.C0 = clerp(dwldb6.C0, euler(0, 1.57, 0) * euler(1, 0, 0) * cf(-0.6, 0.3, 1.1), 0.4)
  1887. dwldb10.C0 = clerp(dwldb10.C0, euler(0, -1.57, 0) * cf(-0.6, 0.1, 0.2), 0.4)
  1888. if Mode ~= "Classic" then
  1889. break
  1890. end
  1891. end
  1892. end
  1893. end
  1894.  
  1895. ModeChange = function()
  1896. attack = true
  1897. Mode = "Changing"
  1898. passive1.Value = 0
  1899. passive2.Value = 0
  1900. passive3.Value = 0
  1901. hwld.Part1 = RootPart
  1902. if Mode == "Classic" then
  1903. hwld.C0 = euler(0, 0, 0) * cf(-2, 0, 0)
  1904. else
  1905. if Mode == "Dynamic Blade" then
  1906. hwld.C0 = euler(1.57, 0, 0) * cf(2, 0, 0)
  1907. end
  1908. end
  1909. randangle = math.random(-50, 50)
  1910. for i = 0, 1, 0.1 do
  1911. swait()
  1912. hwld.C0 = clerp(hwld.C0, euler(0, randangle, 0) * cf(0, 0, 0), 0.3)
  1913. dwld1.C0 = clerp(dwld1.C0, euler(0, 0, -0.5) * cf(4, 1.5, 0) * euler(0, 0, 0), 0.3)
  1914. dwld6.C0 = clerp(dwld6.C0, euler(0, 3.14, -0.5) * cf(4, 1.5, 0) * euler(0, 1.046, 0), 0.3)
  1915. dwld10.C0 = clerp(dwld10.C0, euler(3.14, 0, -0.5) * cf(4, 1.5, 0) * euler(0, 2.092, 0), 0.3)
  1916. dwldb1.C0 = clerp(dwldb1.C0, euler(0, 0, -0.5) * cf(4, 1.5, 0) * euler(0, 3.138, 0), 0.3)
  1917. dwldb6.C0 = clerp(dwldb6.C0, euler(0, 3.14, -0.5) * cf(4, 1.5, 0) * euler(0, 4.184, 0), 0.3)
  1918. dwldb10.C0 = clerp(dwldb10.C0, euler(3.14, 0, -0.5) * cf(4, 1.5, 0) * euler(0, 5.23, 0), 0.3)
  1919. Neck.C0 = clerp(Neck.C0, necko * euler(0.1, 0, 0), 0.3)
  1920. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, 0), 0.3)
  1921. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(0, 0, 1.57) * euler(0, 0, 0), 0.3)
  1922. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  1923. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(0, 0, -1.57) * euler(0, 0, 0), 0.3)
  1924. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  1925. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0, 1.57, 0) * euler(0, 0, 0), 0.3)
  1926. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, -1.57, 0) * euler(0, 0, 0), 0.3)
  1927. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  1928. do
  1929. if StaggerHit.Value == true then
  1930. break
  1931. end
  1932. -- DECOMPILER ERROR at PC395: LeaveBlock: unexpected jumping out IF_THEN_STMT
  1933.  
  1934. -- DECOMPILER ERROR at PC395: LeaveBlock: unexpected jumping out IF_STMT
  1935.  
  1936. end
  1937. end
  1938. end
  1939. round = 0
  1940. choosemode = true
  1941. while choosemode == true do
  1942. swait()
  1943. hwld.C0 = euler(0, randangle, 0) * euler(0, round, 0)
  1944. dwld1.C0 = clerp(dwld1.C0, euler(0, 0, -0.5) * cf(4, 1.5, 0) * euler(0, 0, 0), 0.3)
  1945. dwld6.C0 = clerp(dwld6.C0, euler(0, 3.14, -0.5) * cf(4, 1.5, 0) * euler(0, 1.046, 0), 0.3)
  1946. dwld10.C0 = clerp(dwld10.C0, euler(3.14, 0, -0.5) * cf(4, 1.5, 0) * euler(0, 2.092, 0), 0.3)
  1947. dwldb1.C0 = clerp(dwldb1.C0, euler(0, 0, -0.5) * cf(4, 1.5, 0) * euler(0, 3.138, 0), 0.3)
  1948. dwldb6.C0 = clerp(dwldb6.C0, euler(0, 3.14, -0.5) * cf(4, 1.5, 0) * euler(0, 4.184, 0), 0.3)
  1949. dwldb10.C0 = clerp(dwldb10.C0, euler(3.14, 0, -0.5) * cf(4, 1.5, 0) * euler(0, 5.23, 0), 0.3)
  1950. Neck.C0 = clerp(Neck.C0, necko * euler(0.1, 0, 0), 0.3)
  1951. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, 0), 0.3)
  1952. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(0, 0, 1.57) * euler(0, 0, 0), 0.3)
  1953. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  1954. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(0, 0, -1.57) * euler(0, 0, 0), 0.3)
  1955. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  1956. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0, 1.57, 0) * euler(0, 0, 0), 0.3)
  1957. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, -1.57, 0) * euler(0, 0, 0), 0.3)
  1958. round = round + 0.01
  1959. if Stagger.Value == true or StunT.Value <= Stun.Value or StaggerHit.Value == true then
  1960. choosemode = false
  1961. dynamove = false
  1962. Mode = "Classic"
  1963. break
  1964. end
  1965. end
  1966. attack = false
  1967. end
  1968.  
  1969. Defend = function()
  1970. attack = true
  1971. defending = true
  1972. passive4.Parent = Decrease
  1973. passive5.Parent = Decrease
  1974. local eulmove = 0
  1975. while defending == true do
  1976. swait()
  1977. if Mode == "Classic" then
  1978. hwld.C0 = clerp(hwld.C0, euler(1.57, 0, 0) * cf(0, 0, 0), 0.3)
  1979. dwld1.C0 = clerp(dwld1.C0, euler(0, 1.57, 0) * cf(-0.6, 1, -0.15), 0.3)
  1980. dwld6.C0 = clerp(dwld6.C0, euler(0, -1.57, 0) * euler(2.2, 0, 0) * cf(-0.6, 0, 1.2), 0.3)
  1981. dwld10.C0 = clerp(dwld10.C0, euler(0, 1.57, 0) * euler(0, 3.14, 0) * cf(-0.6, -0.8, -0.6), 0.3)
  1982. dwldb1.C0 = clerp(dwldb1.C0, euler(0, -1.57, 0) * cf(-0.6, 1, 0.15), 0.3)
  1983. dwldb6.C0 = clerp(dwldb6.C0, euler(0, 1.57, 0) * euler(-2.2, 0, 0) * cf(-0.6, 0, -1.2), 0.3)
  1984. dwldb10.C0 = clerp(dwldb10.C0, euler(0, -1.57, 0) * euler(0, 3.14, 0) * cf(-0.6, -0.8, 0.6), 0.3)
  1985. wld1.C0 = clerp(wld1.C0, euler(1.57, 0, 0) * cf(0, 1, 0), 0.3)
  1986. Neck.C0 = clerp(Neck.C0, necko * euler(0.3, 0, 0) * euler(0, 0, -0.2), 0.3)
  1987. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.2) * euler(0, 0, 0.8), 0.3)
  1988. RW.C0 = clerp(RW.C0, cf(1, 0.45, -0.5) * euler(1.57, 0, -0.8) * euler(0, 0, 0), 0.3)
  1989. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  1990. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.2, 0, -0.6) * euler(0, -0.2, 0), 0.3)
  1991. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  1992. RH.C0 = clerp(RH.C0, cf(1.2, -1, 0.2) * euler(0, 1.57, 0) * euler(0, -0.8, 0) * euler(0, 0, -0.1), 0.3)
  1993. LH.C0 = clerp(LH.C0, cf(-0.9, -1, -0.4) * euler(0, -1.57, 0) * euler(0, -0.5, 0) * euler(0, 0, 0.6), 0.3)
  1994. -- DECOMPILER ERROR at PC371: LeaveBlock: unexpected jumping out IF_THEN_STMT
  1995.  
  1996. -- DECOMPILER ERROR at PC371: LeaveBlock: unexpected jumping out IF_STMT
  1997.  
  1998. -- DECOMPILER ERROR at PC371: LeaveBlock: unexpected jumping out IF_THEN_STMT
  1999.  
  2000. -- DECOMPILER ERROR at PC371: LeaveBlock: unexpected jumping out IF_STMT
  2001.  
  2002. end
  2003. if Mode == "Dynamic Blade" then
  2004. hwld.C0 = clerp(hwld.C0, euler(0, 0, 0) * cf(0, 0, 0), 0.3)
  2005. dwld1.C0 = clerp(dwld1.C0, euler(0, 1.57, 0) * cf(0, -4.5, -0.45), 0.3)
  2006. dwld6.C0 = clerp(dwld6.C0, euler(0, 1.57, 0) * euler(-3.34, 0, 0) * cf(0, -3.2, -0.6), 0.3)
  2007. dwld10.C0 = clerp(dwld10.C0, euler(3.14, 1.57, 0) * euler(0.3, 0, 0) * cf(0, -4.8, -0.85), 0.3)
  2008. dwldb1.C0 = clerp(dwldb1.C0, euler(0, -1.57, 0) * cf(0, -4.5, 0.45), 0.3)
  2009. dwldb6.C0 = clerp(dwldb6.C0, euler(0, -1.57, 0) * euler(3.34, 0, 0) * cf(0, -3.2, 0.6), 0.3)
  2010. dwldb10.C0 = clerp(dwldb10.C0, euler(3.14, -1.57, 0) * euler(-0.3, 0, 0) * cf(0, -4.8, 0.85), 0.3)
  2011. wld1.C0 = clerp(wld1.C0, euler(1.57, 0, -1.57) * euler(-0.8, 0, 0) * euler(0, 0, -0.4) * cf(0, 1.2, -0.2), 0.3)
  2012. Neck.C0 = clerp(Neck.C0, necko * euler(0.3, 0, 0) * euler(0, 0, -0.2), 0.3)
  2013. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.2) * euler(0, 0, 0.8), 0.3)
  2014. RW.C0 = clerp(RW.C0, cf(0.5, 0.6, -0.5) * euler(0, 0, -2.2) * euler(0.2, 0, 0), 0.3)
  2015. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  2016. LW.C0 = clerp(LW.C0, cf(-1, 0.6, -0.5) * euler(2.5, 0, 0.2) * euler(0, 0, -0.5) * euler(0, -2.2, 0), 0.3)
  2017. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  2018. RH.C0 = clerp(RH.C0, cf(1.2, -1, 0.2) * euler(0, 1.57, 0) * euler(0, -0.8, 0) * euler(0, 0, -0.1), 0.3)
  2019. LH.C0 = clerp(LH.C0, cf(-0.9, -1, -0.4) * euler(0, -1.57, 0) * euler(0, -0.5, 0) * euler(0, 0, 0.6), 0.3)
  2020. -- DECOMPILER ERROR at PC745: LeaveBlock: unexpected jumping out IF_THEN_STMT
  2021.  
  2022. -- DECOMPILER ERROR at PC745: LeaveBlock: unexpected jumping out IF_STMT
  2023.  
  2024. end
  2025. if Mode == "Energy Reactor" then
  2026. eulmove = eulmove + 0.2
  2027. dynamomove = false
  2028. hwld.Part1 = RootPart
  2029. wld1.C0 = clerp(wld1.C0, euler(1.8, 0, 0) * cf(0, 1, 0), 0.3)
  2030. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0) * euler(0.4, 0, 0), 0.3)
  2031. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.2) * euler(0, 0, 0), 0.3)
  2032. RW.C0 = clerp(RW.C0, cf(0.5, 0.5, -0.5) * euler(1.4, 0, 0) * euler(0, 0, -1.3), 0.3)
  2033. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  2034. LW.C0 = clerp(LW.C0, cf(-0.5, 0.5, -0.5) * euler(2, 0, 0) * euler(0, 0, 1.3) * euler(0, -1.5, 0), 0.3)
  2035. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  2036. RH.C0 = clerp(RH.C0, cf(1, -0.9, -0.2) * euler(0, 1.57, 0) * euler(0, 0, 0) * euler(0, 0, -0.1), 0.3)
  2037. LH.C0 = clerp(LH.C0, cf(-0.9, -1, -0.1) * euler(0, -1.57, 0) * euler(0, 0, 0) * euler(0, 0, 0.4), 0.3)
  2038. hwld.C0 = clerp(hwld.C0, euler(0, 0, -2.5 - (eulmove)) * cf(0, -0.5, 1), 0.3)
  2039. dwld1.C0 = clerp(dwld1.C0, euler(0, 1.57, 1.4) * cf(2, -1, 0) * euler(0, 0, 0) * euler(1.57, 0, 0), 0.3)
  2040. dwld6.C0 = clerp(dwld6.C0, euler(0, 4.71, 1.4) * cf(2, -1, 0) * euler(0, 1.046, 0) * euler(1.57, 0, 0), 0.3)
  2041. dwld10.C0 = clerp(dwld10.C0, euler(3.14, 1.57, 1.4) * cf(2, -1, 0) * euler(0, 2.092, 0) * euler(1.57, 0, 0), 0.3)
  2042. dwldb1.C0 = clerp(dwldb1.C0, euler(0, 1.57, 1.4) * cf(2, -1, 0) * euler(0, 3.138, 0) * euler(1.57, 0, 0), 0.3)
  2043. dwldb6.C0 = clerp(dwldb6.C0, euler(0, 4.71, 1.4) * cf(2, -1, 0) * euler(0, 4.184, 0) * euler(1.57, 0, 0), 0.3)
  2044. dwldb10.C0 = clerp(dwldb10.C0, euler(3.14, 1.57, 1.4) * cf(2, -1, 0) * euler(0, 5.23, 0) * euler(1.57, 0, 0), 0.3)
  2045. end
  2046. end
  2047. defending = false
  2048. dynamomove = true
  2049. passive4.Parent = nil
  2050. passive5.Parent = nil
  2051. attack = false
  2052. end
  2053.  
  2054. do1 = function()
  2055. if attack == true then
  2056. return
  2057. end
  2058. attack = true
  2059. if Stagger.Value == true or StunT.Value <= Stun.Value or StaggerHit.Value == true then
  2060. return
  2061. end
  2062. if cooldownmax <= cooldowns[1] and mana.Value >= 15 then
  2063. Mode = "Classic"
  2064. manainc = 13
  2065. choosemode = false
  2066. passive1.Value = 0.1
  2067. passive2.Value = -0.05
  2068. passive3.Value = -0.1
  2069. cooldowns[1] = 0
  2070. ref = part(3, workspace, 0, 1, BrickColor.new("Black"), "Reference", vt())
  2071. ref.Anchored = true
  2072. ref.CFrame = RightArm.CFrame * cf(0.6, 1, 0)
  2073. game:GetService("Debris"):AddItem(ref, 10)
  2074. dul = 0
  2075. dulinc = 0
  2076. so("203691326", handle, 0.6, 1.8)
  2077. for i = 0, 1, 0.1 do
  2078. swait()
  2079. dul = dul + dulinc
  2080. dulinc = dulinc + 0.08
  2081. ref.CFrame = RightArm.CFrame * cf(0.6, -1 - dulinc * 2, 0)
  2082. hwld.Part1 = RightArm
  2083. hwld.C0 = clerp(hwld.C0, euler(0, 0, 0) * cf(0, 0, 0), 0.5)
  2084. dwld1.C0 = clerp(dwld1.C0, euler(0, 1.57, 0) * euler(0, 1.57, -3.14) * cf(-1.5, 0.5, 0) * euler(0, dul, 0) * cf(-0.6, 0, 0), 0.5)
  2085. dwld6.C0 = clerp(dwld6.C0, euler(0, 1.57, 0) * euler(0, 0, 3.14) * cf(0, 0.5, 1.5) * euler(0, dul, 0) * cf(-0.6, 0, 0), 0.5)
  2086. dwld10.C0 = clerp(dwld10.C0, euler(0, 1.57, 0) * cf(-0.6, 0, -0.2), 0.5)
  2087. dwldb1.C0 = clerp(dwldb1.C0, euler(0, -1.57, 0) * euler(0, 1.57, -3.14) * cf(1.5, 0.5, 0) * euler(0, dul, 0) * cf(-0.6, 0, 0), 0.5)
  2088. dwldb6.C0 = clerp(dwldb6.C0, euler(0, -1.57, 0) * euler(0, 0, 3.14) * cf(0, 0.5, -1.5) * euler(0, dul, 0) * cf(-0.6, 0, 0), 0.5)
  2089. dwldb10.C0 = clerp(dwldb10.C0, euler(0, -1.57, 0) * cf(-0.6, 0, 0.2), 0.5)
  2090. wld1.C0 = clerp(wld1.C0, euler(1.4, 0, 0) * cf(0, 1, 0), 0.3)
  2091. Neck.C0 = clerp(Neck.C0, necko * euler(0.3, 0, -0.4), 0.2)
  2092. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.2) * euler(0, 0, 0.2), 0.2)
  2093. RW.C0 = clerp(RW.C0, cf(1.3, 0.45, 0.2) * euler(1.4, 0, 0.8) * euler(0, 1, 0), 0.2)
  2094. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  2095. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.4, 0, -0.2) * euler(0, 0.5, 0), 0.2)
  2096. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  2097. RH.C0 = clerp(RH.C0, cf(1, -0.9, -0.2) * euler(0, 1.57, 0) * euler(0, -0.2, 0) * euler(0, 0, 0.1), 0.2)
  2098. LH.C0 = clerp(LH.C0, cf(-1, -1, 0.1) * euler(0, -1.57, 0) * euler(0, 0, 0) * euler(0, 0, 0.3), 0.2)
  2099. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  2100. do
  2101. if StaggerHit.Value == true then
  2102. break
  2103. end
  2104. -- DECOMPILER ERROR at PC525: LeaveBlock: unexpected jumping out IF_THEN_STMT
  2105.  
  2106. -- DECOMPILER ERROR at PC525: LeaveBlock: unexpected jumping out IF_STMT
  2107.  
  2108. end
  2109. end
  2110. end
  2111. mana.Value = mana.Value - 15
  2112. RecentEnemy.Value = nil
  2113. da = 0
  2114. so("200633281", handle, 0.6, 1.2)
  2115. so("200633108", handle, 0.6, 1)
  2116. for i = 0, 1, 0.1 do
  2117. swait()
  2118. dul = dul + 0.5
  2119. if i <= 0.5 then
  2120. da = da + 0.9
  2121. end
  2122. ref.CFrame = RightArm.CFrame * cf(0.6, -1 - da, 0)
  2123. MagniDamage(ref, 5, 6, 8, math.random(40, 60), "Knockdown2", RootPart, 0.6, 1, (math.random(6, 8)), nil, true, false, "Damage", 0.4, 300)
  2124. hwld.Part1 = RightArm
  2125. hwld.C0 = clerp(hwld.C0, euler(0, 0, 0) * cf(0, 0, 0), 0.5)
  2126. dwld1.C0 = clerp(dwld1.C0, euler(0, 1.57, 0) * euler(0, 1.57, -2.84) * cf(-1, 6, 0) * euler(0, dul, 0) * cf(-0.6, 0, 0), 0.3)
  2127. dwld6.C0 = clerp(dwld6.C0, euler(0, 1.57, 0) * euler(-0.3, 0, 3.14) * cf(0, 6, 1) * euler(0, dul, 0) * cf(-0.6, 0, 0), 0.3)
  2128. dwld10.C0 = clerp(dwld10.C0, euler(0, 1.57, 0) * cf(-0.6, 0, -0.35), 0.3)
  2129. dwldb1.C0 = clerp(dwldb1.C0, euler(0, -1.57, 0) * euler(0, 1.57, -3.44) * cf(1, 6, 0) * euler(0, dul, 0) * cf(-0.6, 0, 0), 0.3)
  2130. dwldb6.C0 = clerp(dwldb6.C0, euler(0, -1.57, 0) * euler(0.3, 0, 3.14) * cf(0, 6, -1) * euler(0, dul, 0) * cf(-0.6, 0, 0), 0.3)
  2131. dwldb10.C0 = clerp(dwldb10.C0, euler(0, -1.57, 0) * cf(-0.6, 0, 0.35), 0.3)
  2132. wld1.C0 = clerp(wld1.C0, euler(1.4, 0, 0) * cf(0, 1, 0), 0.5)
  2133. Neck.C0 = clerp(Neck.C0, necko * euler(0.3, 0, -0.6), 0.5)
  2134. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.2) * euler(0, 0, 0.6), 0.5)
  2135. RW.C0 = clerp(RW.C0, cf(1, 0.45, -0.6) * euler(1.4, 0, 0.4) * euler(0, 1, 0), 0.5)
  2136. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  2137. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.6, 0, -0.4) * euler(0, 0.5, 0), 0.5)
  2138. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  2139. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0, 1.57, 0) * euler(0, -0.4, 0) * euler(0, 0, -0.1), 0.5)
  2140. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, -1.57, 0) * euler(0, -0.6, 0) * euler(0, 0, 0.3), 0.5)
  2141. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  2142. do
  2143. if StaggerHit.Value == true then
  2144. break
  2145. end
  2146. -- DECOMPILER ERROR at PC1010: LeaveBlock: unexpected jumping out IF_THEN_STMT
  2147.  
  2148. -- DECOMPILER ERROR at PC1010: LeaveBlock: unexpected jumping out IF_STMT
  2149.  
  2150. end
  2151. end
  2152. end
  2153. if overload >= 50 and RecentEnemy.Value ~= nil then
  2154. for i = 0, 1, 0.1 do
  2155. swait()
  2156. hwld.C0 = clerp(hwld.C0, euler(0, 0, 0) * cf(0, 0, 0), 0.4)
  2157. dwld1.C0 = clerp(dwld1.C0, euler(0, 1.57, 0) * cf(-0.6, -1.5, -0.4), 0.4)
  2158. dwld6.C0 = clerp(dwld6.C0, euler(0, 1.57, 0) * cf(-0.6, -0.4, -0.35), 0.4)
  2159. dwld10.C0 = clerp(dwld10.C0, euler(0, 1.57, 0) * cf(-0.6, 0.5, -0.45), 0.4)
  2160. dwldb1.C0 = clerp(dwldb1.C0, euler(0, -1.57, 0) * cf(-0.6, -1.5, 0.4), 0.4)
  2161. dwldb6.C0 = clerp(dwldb6.C0, euler(0, -1.57, 0) * cf(-0.6, -0.4, 0.35), 0.4)
  2162. dwldb10.C0 = clerp(dwldb10.C0, euler(0, -1.57, 0) * cf(-0.6, 0.5, 0.45), 0.4)
  2163. wld1.C0 = clerp(wld1.C0, euler(1.57, 0, 0) * cf(0, 1, 0), 0.3)
  2164. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0) * euler(0.4, 0, 0), 0.3)
  2165. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.2) * euler(0, 0, 0), 0.3)
  2166. RW.C0 = clerp(RW.C0, cf(0.5, 0.5, -0.5) * euler(1.4, 0, 0) * euler(0, 0, -1.3) * euler(0, 1.5, 0), 0.3)
  2167. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  2168. LW.C0 = clerp(LW.C0, cf(-0.5, 0.5, -0.5) * euler(1.2, 0, 0) * euler(0, 0, 1) * euler(0, -1.5, 0), 0.3)
  2169. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  2170. RH.C0 = clerp(RH.C0, cf(1, -0.9, -0.2) * euler(0, 1.57, 0) * euler(0, 0, 0) * euler(0, 0, -0.1), 0.3)
  2171. LH.C0 = clerp(LH.C0, cf(-0.9, -1, -0.1) * euler(0, -1.57, 0) * euler(0, 0, 0) * euler(0, 0, 0.4), 0.3)
  2172. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  2173. do
  2174. if StaggerHit.Value == true then
  2175. break
  2176. end
  2177. -- DECOMPILER ERROR at PC1379: LeaveBlock: unexpected jumping out IF_THEN_STMT
  2178.  
  2179. -- DECOMPILER ERROR at PC1379: LeaveBlock: unexpected jumping out IF_STMT
  2180.  
  2181. end
  2182. end
  2183. end
  2184. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  2185. overload = overload - 50
  2186. MagicWave(BrickColor.new(NewCol2), cf(RootPart.Position) * cf(0, -2, 0), 1, 5, 1, 1, -0.2, 1, 0.07)
  2187. --[[dec = Stats:FindFirstChild("Decrease")
  2188. if dec ~= nil then
  2189. for _,c in pairs(dec:children()) do
  2190. if c.className == "NumberValue" and c.Value > 0 and c:findFirstChild("Duration") ~= nil then
  2191. c.Parent = nil
  2192. end
  2193. end
  2194. end--]]
  2195. do
  2196. DecreaseStat(Character, "Damage", -0.4, 350)
  2197. DecreaseStat(Character, "Defense", -0.4, 350)
  2198. for i = 0, 1, 0.1 do
  2199. swait()
  2200. hwld.C0 = clerp(hwld.C0, euler(-0.5, 0, 0) * cf(0, 1, 0), 0.4)
  2201. dwld1.C0 = clerp(dwld1.C0, euler(0, 1.57, 0) * cf(-0.6, -1.5, -0.4), 0.4)
  2202. dwld6.C0 = clerp(dwld6.C0, euler(0, 1.57, 0) * cf(-0.6, -0.4, -0.35), 0.4)
  2203. dwld10.C0 = clerp(dwld10.C0, euler(0, 1.57, 0) * cf(-0.6, 0.5, -0.45), 0.4)
  2204. dwldb1.C0 = clerp(dwldb1.C0, euler(0, -1.57, 0) * cf(-0.6, -1.5, 0.4), 0.4)
  2205. dwldb6.C0 = clerp(dwldb6.C0, euler(0, -1.57, 0) * cf(-0.6, -0.4, 0.35), 0.4)
  2206. dwldb10.C0 = clerp(dwldb10.C0, euler(0, -1.57, 0) * cf(-0.6, 0.5, 0.45), 0.4)
  2207. wld1.C0 = clerp(wld1.C0, euler(1.57, 0, 0) * cf(0, 1, 0), 0.3)
  2208. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0) * euler(0.5, 0, 0), 0.3)
  2209. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.2) * euler(0, 0, 0), 0.3)
  2210. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(1.57, 0, 1.57) * euler(0, 1.5, 0), 0.3)
  2211. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  2212. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(1.57, 0, -1.57) * euler(0, -1.5, 0), 0.3)
  2213. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  2214. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0, 1.57, 0) * euler(0, 0, 0) * euler(0, 0, 0), 0.3)
  2215. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, -1.57, 0) * euler(0, 0, 0) * euler(0, 0, 0), 0.3)
  2216. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  2217. do
  2218. if StaggerHit.Value == true then
  2219. break
  2220. end
  2221. -- DECOMPILER ERROR at PC1810: LeaveBlock: unexpected jumping out IF_THEN_STMT
  2222.  
  2223. -- DECOMPILER ERROR at PC1810: LeaveBlock: unexpected jumping out IF_STMT
  2224.  
  2225. end
  2226. end
  2227. end
  2228. end
  2229. end
  2230. end
  2231. end
  2232. attack = false
  2233. end
  2234.  
  2235. do2 = function()
  2236. if attack == true then
  2237. return
  2238. end
  2239. attack = true
  2240. if Stagger.Value == true or StunT.Value <= Stun.Value or StaggerHit.Value == true then
  2241. return
  2242. end
  2243. if cooldownmax <= cooldowns[2] and mana.Value >= 20 then
  2244. Mode = "Dynamic Blade"
  2245. manainc = 18
  2246. choosemode = false
  2247. passive1.Value = -0.1
  2248. passive2.Value = 0.1
  2249. passive3.Value = 0.1
  2250. cooldowns[2] = 0
  2251. for i = 0, 1, 0.2 do
  2252. swait()
  2253. hwld.Part1 = prt1
  2254. hwld.C0 = clerp(hwld.C0, euler(0, 0, 0) * cf(0, 0, 0), 0.5)
  2255. dwld1.C0 = clerp(dwld1.C0, euler(3.14, 1.57, 0) * euler(-0.28, 0, 0) * euler(0, 0, 3.14) * cf(0, -6, -0.6), 0.7)
  2256. dwld6.C0 = clerp(dwld6.C0, euler(0, -1.57, 0) * euler(0.4, 0, 0) * euler(0, 0, 0) * cf(0, -5, -1.2), 0.7)
  2257. dwld10.C0 = clerp(dwld10.C0, euler(0, 1.57, 0) * euler(0, 0, 3.14) * cf(0, -4, -0.5), 0.7)
  2258. dwldb1.C0 = clerp(dwldb1.C0, euler(3.14, -1.57, 0) * euler(0.28, 0, 0) * euler(0, 0, 3.14) * cf(0, -6, 0.6), 0.7)
  2259. dwldb6.C0 = clerp(dwldb6.C0, euler(0, 1.57, 0) * euler(-0.4, 0, 0) * euler(0, 0, 0) * cf(0, -5, 1.2), 0.7)
  2260. dwldb10.C0 = clerp(dwldb10.C0, euler(0, -1.57, 0) * euler(0, 0, 3.14) * cf(0, -4, 0.5), 0.7)
  2261. wld1.C0 = clerp(wld1.C0, euler(0.6, 0, 0) * cf(0, 1.1, 0.2), 0.7)
  2262. Neck.C0 = clerp(Neck.C0, necko * euler(0.4, 0, -0.8), 0.5)
  2263. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, 0.8), 0.5)
  2264. RW.C0 = clerp(RW.C0, cf(-0.1, 0.5, -0.5) * euler(1.5, 0, -1) * euler(0, -1.5, 0), 0.5)
  2265. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.5)
  2266. LW.C0 = clerp(LW.C0, cf(-0.5, 0.5, -0.5) * euler(1.57, 0, -1.7) * euler(0, -1.57, 0), 0.5)
  2267. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.5)
  2268. RH.C0 = clerp(RH.C0, cf(0.9, -1, 0.2) * euler(0, 1.57, 0) * euler(0, -0.8, 0), 0.5)
  2269. LH.C0 = clerp(LH.C0, cf(-0.9, -1, -0.2) * euler(0, -1.57, 0) * euler(0, -0.8, 0), 0.5)
  2270. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  2271. do
  2272. if StaggerHit.Value == true then
  2273. break
  2274. end
  2275. -- DECOMPILER ERROR at PC432: LeaveBlock: unexpected jumping out IF_THEN_STMT
  2276.  
  2277. -- DECOMPILER ERROR at PC432: LeaveBlock: unexpected jumping out IF_STMT
  2278.  
  2279. end
  2280. end
  2281. end
  2282. MagicWave(BrickColor.new(NewCol2), handle.CFrame * euler(3.14, 0, 0) * cf(0, -6, 0), 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.05)
  2283. mana.Value = mana.Value - 20
  2284. hbwld.Parent = nil
  2285. hboxpos.Parent = hitbox
  2286. hitbox.Parent = modelzorz
  2287. hitbox.Size = vt(1, 8, 2)
  2288. RecentEnemy.Value = nil
  2289. da = 0
  2290. so("200633148", handle, 1, 0.8)
  2291. so("199145327", handle, 0.6, 1)
  2292. for i = 0, 1, 0.1 do
  2293. swait()
  2294. da = da + 1
  2295. if da % 3 == 0 then
  2296. MagicWave(BrickColor.new(NewCol2), handle.CFrame * euler(3.14, math.random(-50, 50), 0) * cf(0, -6, 0), 1, 1, 1, 0.5, 0.5, 0.5, 0.2)
  2297. end
  2298. hitboxCF = prt31.CFrame * cf(0, 0, 0)
  2299. hitbox.CFrame = hitboxCF
  2300. MagniDamage(hitbox, 6, 5, 7, math.random(20, 30), "Normal", RootPart, 0.2, 2, (math.random(4, 7)), nil, true)
  2301. if Rooted.Value == false then
  2302. Torso.Velocity = RootPart.CFrame.lookVector * 80
  2303. end
  2304. wld1.C0 = clerp(wld1.C0, euler(2.5, 0, 0) * euler(0, 0, 0.2) * cf(0, 1, -0.2), 0.5)
  2305. Neck.C0 = clerp(Neck.C0, necko * euler(0.2, 0, 0) * euler(0, 0, -0.4), 0.5)
  2306. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, 0.4), 0.5)
  2307. RW.C0 = clerp(RW.C0, cf(0, 0.4, -0.5) * euler(1.45, 0, -0.6) * euler(0, -1.5, 0), 0.5)
  2308. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.5)
  2309. LW.C0 = clerp(LW.C0, cf(-1, 0.5, -0.2) * euler(1.4, 0, 0.1) * euler(0, -1.4, 0), 0.5)
  2310. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.5)
  2311. RH.C0 = clerp(RH.C0, cf(0.9, -1, 0.2) * euler(0, 1.57, 0) * euler(0, -0.8, 0), 0.5)
  2312. LH.C0 = clerp(LH.C0, cf(-0.9, -1, -0.2) * euler(0, -1.57, 0) * euler(0, -0.8, 0), 0.5)
  2313. if Stagger.Value ~= true and StunT.Value > Stun.Value and StaggerHit.Value ~= true then
  2314. do
  2315. if RecentEnemy.Value ~= nil then
  2316. break
  2317. end
  2318. -- DECOMPILER ERROR at PC793: LeaveBlock: unexpected jumping out IF_THEN_STMT
  2319.  
  2320. -- DECOMPILER ERROR at PC793: LeaveBlock: unexpected jumping out IF_STMT
  2321.  
  2322. end
  2323. end
  2324. end
  2325. if RecentEnemy.Value ~= nil and hitfloor ~= nil and Rooted.Value == false then
  2326. Torso.Velocity = RootPart.CFrame.lookVector * 120
  2327. end
  2328. if overload >= 50 and RecentEnemy.Value ~= nil then
  2329. for i = 0, 1, 0.15 do
  2330. swait()
  2331. hwld.C0 = clerp(hwld.C0, euler(1.57, 0, 0) * cf(0, 0, 0), 0.6)
  2332. dwld1.C0 = clerp(dwld1.C0, euler(0, 1.57, 0) * euler(2.34, 0, 0) * cf(0, 1.8, -4), 0.6)
  2333. dwld6.C0 = clerp(dwld6.C0, euler(0, -1.57, 0) * euler(2.94, 3.14, 0) * cf(0, 1.2, -5.4), 0.6)
  2334. dwld10.C0 = clerp(dwld10.C0, euler(3.14, 1.57, 0) * euler(4.64, 0, 0) * cf(0, 0.5, -4), 0.6)
  2335. dwldb1.C0 = clerp(dwldb1.C0, euler(0, -1.57, 0) * euler(0.8, 0, 0) * cf(0, -1.8, -4), 0.6)
  2336. dwldb6.C0 = clerp(dwldb6.C0, euler(0, 1.57, 0) * euler(0.2, 3.14, 0) * cf(0, -1.2, -5.4), 0.6)
  2337. dwldb10.C0 = clerp(dwldb10.C0, euler(3.14, -1.57, 0) * euler(-1.5, 0, 0) * cf(0, -0.5, -4), 0.6)
  2338. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0.5), 0.3)
  2339. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, -0.5), 0.3)
  2340. wld1.C0 = clerp(wld1.C0, euler(1.57, 0, 0) * cf(0, 1, 0), 0.3)
  2341. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(1.4, 0, -0.4), 0.3)
  2342. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  2343. LW.C0 = clerp(LW.C0, cf(-0.5, 0.5, -0.5) * euler(1.57, 0, 1) * euler(0, -1.57, 0), 0.3)
  2344. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  2345. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0, 1.57, 0) * euler(0, 0.5, -0.4), 0.3)
  2346. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, -1.57, 0) * euler(0, 0.5, 0.1), 0.3)
  2347. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  2348. do
  2349. if StaggerHit.Value == true then
  2350. break
  2351. end
  2352. -- DECOMPILER ERROR at PC1173: LeaveBlock: unexpected jumping out IF_THEN_STMT
  2353.  
  2354. -- DECOMPILER ERROR at PC1173: LeaveBlock: unexpected jumping out IF_STMT
  2355.  
  2356. end
  2357. end
  2358. end
  2359. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  2360. overload = overload - 50
  2361. ref = part(3, workspace, 0, 1, BrickColor.new("Black"), "Reference", vt())
  2362. ref.Anchored = true
  2363. game:GetService("Debris"):AddItem(ref, 1)
  2364. for i = 0, 1, 0.15 do
  2365. swait()
  2366. for i = 1, 2 do
  2367. so("300916014", prt31, 0.5, 1)
  2368. end
  2369. for i = 1, 3 do
  2370. MagicBlock(BrickColor.new(NewCol2), prt31.CFrame * cf(math.random(-500, 500) / 100, 6 + math.random(-500, 500) / 100, math.random(-500, 500) / 100), 1, 1, 1, 1, 1, 1, 0.08, 1, workspace)
  2371. end
  2372. for i = 2, 6, 2 do
  2373. MagicCircle(BrickColor.new(NewCol2), prt31.CFrame * cf(0, 6, 0), 3, 3, 3, i, i, i, 0.1)
  2374. end
  2375. ref.CFrame = prt31.CFrame * cf(0, 6, 0)
  2376. MagniDamage(ref, 6, 6, 8, math.random(-60, -40), "Knockdown2", RootPart, 0.5, 2, (math.random(5, 8)), nil, true, true)
  2377. wld1.C0 = clerp(wld1.C0, euler(2.5, 0, 0) * cf(0, 1, 0), 0.3)
  2378. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0), 0.3)
  2379. RootJoint.C0 = RootCF * euler(0, 0, -0.2 + 6.28 * i)
  2380. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.4, 0, 1), 0.3)
  2381. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  2382. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(1.57, 0, -1.57) * euler(0, -1.57, 0), 0.3)
  2383. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  2384. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0, 1.57, 0) * euler(0, 0, 0), 0.3)
  2385. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, -1.57, 0) * euler(0, 0, 0), 0.3)
  2386. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  2387. do
  2388. if StaggerHit.Value == true then
  2389. break
  2390. end
  2391. -- DECOMPILER ERROR at PC1519: LeaveBlock: unexpected jumping out IF_THEN_STMT
  2392.  
  2393. -- DECOMPILER ERROR at PC1519: LeaveBlock: unexpected jumping out IF_STMT
  2394.  
  2395. end
  2396. end
  2397. end
  2398. ref.Parent = nil
  2399. for i = 0, 1, 0.1 do
  2400. swait()
  2401. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0), 0.3)
  2402. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, 0.4), 0.3)
  2403. wld1.C0 = clerp(wld1.C0, euler(2.5, 0, 0) * cf(0, 1, 0), 0.3)
  2404. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.4, 0, 1), 0.3)
  2405. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  2406. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(1.3, 0, -1.57) * euler(0, -1.2, 0), 0.3)
  2407. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  2408. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  2409. do
  2410. if StaggerHit.Value == true then
  2411. break
  2412. end
  2413. -- DECOMPILER ERROR at PC1667: LeaveBlock: unexpected jumping out IF_THEN_STMT
  2414.  
  2415. -- DECOMPILER ERROR at PC1667: LeaveBlock: unexpected jumping out IF_STMT
  2416.  
  2417. end
  2418. end
  2419. end
  2420. hitbox.Parent = modelzorz
  2421. hitbox.Size = vt()
  2422. hitboxweld()
  2423. hboxpos.Parent = nil
  2424. end
  2425. end
  2426. end
  2427. attack = false
  2428. end
  2429.  
  2430. do3 = function()
  2431. if attack == true then
  2432. return
  2433. end
  2434. attack = true
  2435. if Stagger.Value == true or StunT.Value <= Stun.Value or StaggerHit.Value == true then
  2436. return
  2437. end
  2438. if cooldownmax <= cooldowns[3] and mana.Value >= 15 then
  2439. doextra = false
  2440. da = 0
  2441. if overload >= 50 then
  2442. doextra = true
  2443. end
  2444. Mode = "Energy Reactor"
  2445. manainc = 10
  2446. choosemode = false
  2447. passive1.Value = 0.1
  2448. passive2.Value = -0.15
  2449. passive3.Value = 0.05
  2450. if Mode == "Classic" then
  2451. for i = 0, 1, 0.2 do
  2452. swait()
  2453. wld1.C0 = clerp(wld1.C0, euler(1.57, 0, 0) * cf(0, 1, 0), 0.5)
  2454. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0) * euler(0.2, 0, -0.5), 0.5)
  2455. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.2) * euler(0, 0, 0.5), 0.5)
  2456. RW.C0 = clerp(RW.C0, cf(1.2, 0.5, -0.3) * euler(1.5, 0, 0.5) * euler(0, 1.57, 0), 0.5)
  2457. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.5)
  2458. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.4, 0, -0.6) * euler(0, 0, 0), 0.5)
  2459. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.5)
  2460. RH.C0 = clerp(RH.C0, cf(1, -0.8, 0) * euler(0, 1.57, 0) * euler(0, -0.3, 0) * euler(0, 0, -0.1), 0.5)
  2461. LH.C0 = clerp(LH.C0, cf(-0.9, -1, -0.1) * euler(0, -1.57, 0) * euler(0, -0.3, 0) * euler(0, 0, 0.4), 0.5)
  2462. dwld1.C0 = clerp(dwld1.C0, euler(3.14, 1.57, 0) * euler(0, 0, 0) * cf(-1, 1, -1), 0.5)
  2463. dwld6.C0 = clerp(dwld6.C0, euler(0, -1.57, 0) * euler(3.14, 0, 0) * cf(0.3, 0.7, -1.5), 0.5)
  2464. dwld10.C0 = clerp(dwld10.C0, euler(0, 1.57, 0) * cf(-0.5, 0.5, -0.4), 0.5)
  2465. dwldb1.C0 = clerp(dwldb1.C0, euler(3.14, -1.57, 0) * euler(0, 0, 0) * cf(-1, 1, 1), 0.5)
  2466. dwldb6.C0 = clerp(dwldb6.C0, euler(0, 1.57, 0) * euler(3.14, 0, 0) * cf(0.3, 0.7, 1.5), 0.5)
  2467. dwldb10.C0 = clerp(dwldb10.C0, euler(0, -1.57, 0) * cf(-0.5, 0.5, 0.4), 0.5)
  2468. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  2469. do
  2470. if StaggerHit.Value == true then
  2471. break
  2472. end
  2473. -- DECOMPILER ERROR at PC409: LeaveBlock: unexpected jumping out IF_THEN_STMT
  2474.  
  2475. -- DECOMPILER ERROR at PC409: LeaveBlock: unexpected jumping out IF_STMT
  2476.  
  2477. end
  2478. end
  2479. end
  2480. else
  2481. if Mode == "Dynamic Blade" then
  2482. for i = 0, 1, 0.2 do
  2483. swait()
  2484. dwld1.C0 = clerp(dwld1.C0, euler(0, 1.57, 0) * cf(1, -4.5, -1), 0.6)
  2485. dwld6.C0 = clerp(dwld6.C0, euler(0, 1.57, 0) * euler(0, 0, 0) * cf(0, -3.4, -1), 0.6)
  2486. dwld10.C0 = clerp(dwld10.C0, euler(3.14, 1.57, 0) * euler(0, 0, 0) * cf(-1, -3, -1.5), 0.6)
  2487. dwldb1.C0 = clerp(dwldb1.C0, euler(0, -1.57, 0) * cf(1, -4.5, 1), 0.6)
  2488. dwldb6.C0 = clerp(dwldb6.C0, euler(0, -1.57, 0) * euler(0, 0, 0) * cf(0, -3.4, 1), 0.6)
  2489. dwldb10.C0 = clerp(dwldb10.C0, euler(3.14, -1.57, 0) * euler(0, 0, 0) * cf(-1, -3, 1.5), 0.6)
  2490. Neck.C0 = clerp(Neck.C0, necko * euler(0.4, 0, -0.8), 0.5)
  2491. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, 0.8), 0.5)
  2492. RW.C0 = clerp(RW.C0, cf(-0.8, 0.5, -0.5) * euler(1.8, 0, -1) * euler(0, 1, 0), 0.5)
  2493. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.5)
  2494. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(1.57, 0, -0.8) * euler(0, -1.57, 0), 0.5)
  2495. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.5)
  2496. RH.C0 = clerp(RH.C0, cf(0.9, -1, 0.2) * euler(0, 1.57, 0) * euler(0, -0.8, 0), 0.5)
  2497. LH.C0 = clerp(LH.C0, cf(-0.9, -1, -0.2) * euler(0, -1.57, 0) * euler(0, -0.8, 0), 0.5)
  2498. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  2499. do
  2500. if StaggerHit.Value == true then
  2501. break
  2502. end
  2503. -- DECOMPILER ERROR at PC727: LeaveBlock: unexpected jumping out IF_THEN_STMT
  2504.  
  2505. -- DECOMPILER ERROR at PC727: LeaveBlock: unexpected jumping out IF_STMT
  2506.  
  2507. end
  2508. end
  2509. end
  2510. else
  2511. if Mode == "Energy Reactor" then
  2512. dynamomove = false
  2513. for i = 0, 1, 0.1 do
  2514. swait()
  2515. if doextra == true then
  2516. da = da + 0.3
  2517. end
  2518. bb = -4
  2519. if doextra == true then
  2520. bb = -6
  2521. end
  2522. hwld.Part1 = RootPart
  2523. wld1.C0 = clerp(wld1.C0, euler(1.57, 0, 0) * cf(0, 1, 0), 0.5)
  2524. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0) * euler(0.2, 0, -0.5), 0.5)
  2525. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.2) * euler(0, 0, 0.5), 0.5)
  2526. RW.C0 = clerp(RW.C0, cf(1.2, 0.5, -0.3) * euler(1.5, 0, 0.5) * euler(0, 1.57, 0), 0.5)
  2527. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.5)
  2528. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.4, 0, -0.6) * euler(0, 0, 0), 0.5)
  2529. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.5)
  2530. RH.C0 = clerp(RH.C0, cf(1, -0.8, 0) * euler(0, 1.57, 0) * euler(0, -0.3, 0) * euler(0, 0, -0.1), 0.5)
  2531. LH.C0 = clerp(LH.C0, cf(-0.9, -1, -0.1) * euler(0, -1.57, 0) * euler(0, -0.3, 0) * euler(0, 0, 0.4), 0.5)
  2532. hwld.C0 = clerp(hwld.C0, euler(0, 0, -2) * euler(0, 0, -da) * cf(0, bb, 0), 0.6)
  2533. dwld1.C0 = clerp(dwld1.C0, euler(0, 1.57, 0) * cf(2, -1, 0) * euler(0, 0, 0) * euler(1.57, 0, 0), 0.6)
  2534. dwld6.C0 = clerp(dwld6.C0, euler(0, 4.71, 0) * cf(2, -1, 0) * euler(0, 1.046, 0) * euler(1.57, 0, 0), 0.6)
  2535. dwld10.C0 = clerp(dwld10.C0, euler(3.14, 1.57, 0) * cf(2, -1, 0) * euler(0, 2.092, 0) * euler(1.57, 0, 0), 0.6)
  2536. dwldb1.C0 = clerp(dwldb1.C0, euler(0, 1.57, 0) * cf(2, -1, 0) * euler(0, 3.138, 0) * euler(1.57, 0, 0), 0.6)
  2537. dwldb6.C0 = clerp(dwldb6.C0, euler(0, 4.71, 0) * cf(2, -1, 0) * euler(0, 4.184, 0) * euler(1.57, 0, 0), 0.6)
  2538. dwldb10.C0 = clerp(dwldb10.C0, euler(3.14, 1.57, 0) * cf(2, -1, 0) * euler(0, 5.23, 0) * euler(1.57, 0, 0), 0.6)
  2539. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  2540. do
  2541. if StaggerHit.Value == true then
  2542. break
  2543. end
  2544. -- DECOMPILER ERROR at PC1178: LeaveBlock: unexpected jumping out IF_THEN_STMT
  2545.  
  2546. -- DECOMPILER ERROR at PC1178: LeaveBlock: unexpected jumping out IF_STMT
  2547.  
  2548. end
  2549. end
  2550. end
  2551. end
  2552. end
  2553. end
  2554. mana.Value = mana.Value - 15
  2555. cooldowns[3] = 0
  2556. for i = 1, #DynamPrt do
  2557. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  2558. do
  2559. if StaggerHit.Value == true then
  2560. break
  2561. end
  2562. for d = 1, 2 do
  2563. swait()
  2564. da = da + 0.6
  2565. if doextra == true then
  2566. MagicCircle(BrickColor.new(NewCol2), handle.CFrame * cf(0, 0, -3), 1, 1, 1, 3, 3, 3, 0.1)
  2567. dwld1.C0 = clerp(dwld1.C0, euler(0, 1.57, 0.5) * cf(3, -1, 0) * euler(0, 0, 0) * euler(1.57, 0, 0), 0.2)
  2568. dwld6.C0 = clerp(dwld6.C0, euler(0, 4.71, 0.5) * cf(3, -1, 0) * euler(0, 1.046, 0) * euler(1.57, 0, 0), 0.2)
  2569. dwld10.C0 = clerp(dwld10.C0, euler(3.14, 1.57, 0.5) * cf(3, -1, 0) * euler(0, 2.092, 0) * euler(1.57, 0, 0), 0.2)
  2570. dwldb1.C0 = clerp(dwldb1.C0, euler(0, 1.57, 0.5) * cf(3, -1, 0) * euler(0, 3.138, 0) * euler(1.57, 0, 0), 0.2)
  2571. dwldb6.C0 = clerp(dwldb6.C0, euler(0, 4.71, 0.5) * cf(3, -1, 0) * euler(0, 4.184, 0) * euler(1.57, 0, 0), 0.2)
  2572. dwldb10.C0 = clerp(dwldb10.C0, euler(3.14, 1.57, 0.5) * cf(3, -1, 0) * euler(0, 5.23, 0) * euler(1.57, 0, 0), 0.2)
  2573. hwld.C0 = clerp(hwld.C0, euler(0, 0, -2) * euler(0, 0, -da) * cf(0, -6, 0), 0.6)
  2574. end
  2575. end
  2576. so("300916038", DynamPrt[i], 1, 2)
  2577. Shoot(DynamPrt[i].Position)
  2578. -- DECOMPILER ERROR at PC1457: LeaveBlock: unexpected jumping out IF_THEN_STMT
  2579.  
  2580. -- DECOMPILER ERROR at PC1457: LeaveBlock: unexpected jumping out IF_STMT
  2581.  
  2582. end
  2583. end
  2584. end
  2585. if doextra == true then
  2586. overload = overload - 50
  2587. so("300916038", handle, 1, 1.5)
  2588. Shoot2(handle.Position)
  2589. end
  2590. end
  2591. attack = false
  2592. end
  2593.  
  2594. do4 = function()
  2595. if attack == true then
  2596. return
  2597. end
  2598. if Stagger.Value == true or StunT.Value <= Stun.Value or StaggerHit.Value == true then
  2599. return
  2600. end
  2601. end
  2602.  
  2603. DecreaseStat = function(Model, Stat, Amount, Duration)
  2604. if Model:findFirstChild("Stats") ~= nil and Model.Stats[Stat] ~= nil then
  2605. Model.Stats[Stat].Value = Model.Stats[Stat].Value - Amount
  2606. d = Instance.new("NumberValue", Model.Stats.Decrease)
  2607. dur = Instance.new("NumberValue", d)
  2608. dur.Name = "Duration"
  2609. dur.Value = Duration
  2610. game:GetService("Debris"):AddItem(d, 20)
  2611. if Stat == "Damage" then
  2612. d.Name = "DecreaseAtk"
  2613. else
  2614. if Stat == "Defense" then
  2615. d.Name = "DecreaseDef"
  2616. else
  2617. if Stat == "Movement" then
  2618. d.Name = "DecreaseMvmt"
  2619. end
  2620. end
  2621. end
  2622. if Model:findFirstChild("Torso") ~= nil then
  2623. display = ""
  2624. if Stat == "Damage" then
  2625. if Amount > 0 then
  2626. display = "-Damage"
  2627. else
  2628. display = "+Damage"
  2629. end
  2630. else
  2631. if Stat == "Defense" then
  2632. if Amount > 0 then
  2633. display = "-Defense"
  2634. else
  2635. display = "+Defense"
  2636. end
  2637. else
  2638. if Stat == "Movement" then
  2639. if Amount > 0 then
  2640. display = "-Movement"
  2641. else
  2642. display = "+Movement"
  2643. end
  2644. end
  2645. end
  2646. end
  2647. showDamage(Model, display, "Debuff")
  2648. end
  2649. d.Value = Amount
  2650. end
  2651. end
  2652.  
  2653. GetDist = function(Part1, Part2, magni)
  2654. local targ = Part1.Position - Part2.Position
  2655. local mag = targ.magnitude
  2656. if mag <= magni then
  2657. return true
  2658. else
  2659. return false
  2660. end
  2661. end
  2662.  
  2663. MagniDamage = function(Part, magni, minim, maxim, knockback, Type, Property, Delay, KnockbackType, incstun, stagger, staghit, ranged, DecreaseState, DecreaseAmount, Duration)
  2664. for _,c in pairs(workspace:children()) do
  2665. local hum = c:findFirstChild("Humanoid")
  2666. if hum ~= nil then
  2667. local head = nil
  2668. for _,d in pairs(c:children()) do
  2669. if d.className == "Model" and ranged ~= true then
  2670. head = d:findFirstChild("Hitbox")
  2671. if d.Parent == Character then
  2672. break
  2673. end
  2674. if head ~= nil then
  2675. local targ = head.Position - Part.Position
  2676. local mag = targ.magnitude
  2677. if mag <= magni and c.Name ~= Player.Name then
  2678. ref = part(3, workspace, 0, 1, BrickColor.new("Black"), "Reference", vt())
  2679. ref.Anchored = true
  2680. ref.CFrame = cf(head.Position)
  2681. game:GetService("Debris"):AddItem(ref, 1)
  2682. hitnum = math.random(1, 5)
  2683. if hitnum == 1 then
  2684. so("199148971", ref, 1, 1)
  2685. else
  2686. if hitnum == 2 then
  2687. so("199149025", ref, 1, 1)
  2688. else
  2689. if hitnum == 3 then
  2690. so("199149072", ref, 1, 1)
  2691. else
  2692. if hitnum == 4 then
  2693. so("199149109", ref, 1, 1)
  2694. else
  2695. if hitnum == 5 then
  2696. so("199149119", ref, 1, 1)
  2697. end
  2698. end
  2699. end
  2700. end
  2701. end
  2702. StaggerHit.Value = true
  2703. end
  2704. end
  2705. end
  2706. do
  2707. if d.className == "Part" and d.Name=="Torso" then
  2708. head = d
  2709. if head ~= nil then
  2710. local targ = head.Position - Part.Position
  2711. local mag = targ.magnitude
  2712. if mag <= magni and c.Name ~= Player.Name then
  2713. if stun == nil then
  2714. stun = math.random(5, 10)
  2715. end
  2716. local Rang = nil
  2717. if Ranged == false then
  2718. Rang = true
  2719. end
  2720. local stag = nil
  2721. if shbash == true then
  2722. stag = true
  2723. end
  2724. Damagefunc(head, minim, maxim, knockback, Type, Property, Delay, KnockbackType, incstun, stagger, staghit, ranged, DecreaseState, DecreaseAmount, Duration)
  2725. end
  2726. end
  2727. end
  2728. do
  2729. -- DECOMPILER ERROR at PC183: LeaveBlock: unexpected jumping out DO_STMT
  2730.  
  2731. end
  2732. end
  2733. end
  2734. end
  2735. end
  2736. end
  2737.  
  2738. rayCast = function(Pos, Dir, Max, Ignore)
  2739. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  2740. end
  2741.  
  2742. local Point = Torso.CFrame * cf(0, Torso.Size.Y, 0)
  2743. LastPoint = Point
  2744. effect = function(Color, Ref, LP, P1, returnn)
  2745. if LP == nil or P1 == nil then
  2746. return
  2747. end
  2748. local effectsmsh = Instance.new("CylinderMesh")
  2749. effectsmsh.Scale = Vector3.new(0.2, 1, 0.2)
  2750. effectsmsh.Name = "Mesh"
  2751. local effectsg = Instance.new("Part")
  2752. NoOutline(effectsg)
  2753. effectsg.formFactor = 3
  2754. effectsg.CanCollide = false
  2755. effectsg.Name = "Eff"
  2756. effectsg.Locked = true
  2757. effectsg.Anchored = true
  2758. effectsg.Size = Vector3.new(0.5, 1, 0.5)
  2759. effectsg.Parent = workspace
  2760. effectsmsh.Parent = effectsg
  2761. effectsg.BrickColor = BrickColor.new(Color)
  2762. effectsg.Reflectance = Ref
  2763. local point1 = P1
  2764. local mg = (LP.p - point1.p).magnitude
  2765. effectsg.Size = Vector3.new(0.5, mg, 0.5)
  2766. effectsg.CFrame = cf((LP.p + point1.p) / 2, point1.p) * CFrame.Angles(math.rad(90), 0, 0)
  2767. effectsmsh.Scale = Vector3.new(0.2, 1, 0.2)
  2768. game:GetService("Debris"):AddItem(effectsg, 2)
  2769. if returnn then
  2770. return effectsg
  2771. end
  2772. if not returnn then
  2773. table.insert(Effects, {effectsg, "Cylinder", 0.2, 0.01, 0, 0.01, effectsmsh})
  2774. end
  2775. end
  2776.  
  2777. local CFrameFromTopBack = function(at, top, back)
  2778. local right = top:Cross(back)
  2779. 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)
  2780. end
  2781.  
  2782. Triangle = function(a, b, c)
  2783. local edg1 = c - a:Dot(b - a.unit)
  2784. local edg2 = a - b:Dot(c - b.unit)
  2785. local edg3 = b - c:Dot(a - c.unit)
  2786. if edg1 <= (b - a).magnitude and edg1 >= 0 then
  2787. a = a
  2788. else
  2789. -- DECOMPILER ERROR at PC35: Overwrote pending register: R1 in 'AssignReg'
  2790.  
  2791. if edg2 <= (c - b).magnitude and edg2 >= 0 then
  2792. a = b
  2793. else
  2794. -- DECOMPILER ERROR at PC46: Overwrote pending register: R2 in 'AssignReg'
  2795.  
  2796. -- DECOMPILER ERROR at PC47: Overwrote pending register: R1 in 'AssignReg'
  2797.  
  2798. if edg3 <= (a - c).magnitude and edg3 >= 0 then
  2799. a = c
  2800. else
  2801. assert(false, "unreachable")
  2802. end
  2803. end
  2804. end
  2805. local len1 = c - a:Dot(b - a.unit)
  2806. local len2 = (b - a).magnitude - len1
  2807. local width = a + b - a.unit * (len1 - c).magnitude
  2808. local maincf = CFrameFromTopBack(a, b - a:Cross(c - b).unit, -b - a.unit)
  2809. local list = {}
  2810. if len1 > 0.01 then
  2811. local w1 = Instance.new("WedgePart", m)
  2812. game:GetService("Debris"):AddItem(w1, 5)
  2813. w1.Material = "SmoothPlastic"
  2814. w1.FormFactor = "Custom"
  2815. w1.BrickColor = BrickColor.new(NewCol2)
  2816. w1.Transparency = 0
  2817. w1.Reflectance = 0
  2818. w1.Material = "SmoothPlastic"
  2819. w1.CanCollide = false
  2820. NoOutline(w1)
  2821. local sz = Vector3.new(0.2, width, len1)
  2822. w1.Size = sz
  2823. local sp = Instance.new("SpecialMesh", w1)
  2824. sp.MeshType = "Wedge"
  2825. sp.Scale = Vector3.new(0, 1, 1) * sz / w1.Size
  2826. w1:BreakJoints()
  2827. w1.Anchored = true
  2828. w1.Parent = triangparent
  2829. w1.Transparency = 0.7
  2830. table.insert(Effects, {w1, "Disappear", 0.05})
  2831. w1.CFrame = maincf * CFrame.Angles(math.pi, 0, math.pi / 2) * CFrame.new(0, width / 2, len1 / 2)
  2832. table.insert(list, w1)
  2833. end
  2834. do
  2835. if len2 > 0.01 then
  2836. local w2 = Instance.new("WedgePart", m)
  2837. game:GetService("Debris"):AddItem(w2, 5)
  2838. w2.Material = "SmoothPlastic"
  2839. w2.FormFactor = "Custom"
  2840. w2.BrickColor = BrickColor.new(NewCol2)
  2841. w2.Transparency = 0
  2842. w2.Reflectance = 0
  2843. w2.Material = "SmoothPlastic"
  2844. w2.CanCollide = false
  2845. NoOutline(w2)
  2846. local sz = Vector3.new(0.2, width, len2)
  2847. w2.Size = sz
  2848. local sp = Instance.new("SpecialMesh", w2)
  2849. sp.MeshType = "Wedge"
  2850. sp.Scale = Vector3.new(0, 1, 1) * sz / w2.Size
  2851. w2:BreakJoints()
  2852. w2.Anchored = true
  2853. w2.Parent = triangparent
  2854. w2.Transparency = 0.7
  2855. table.insert(Effects, {w2, "Disappear", 0.05})
  2856. w2.CFrame = maincf * CFrame.Angles(math.pi, math.pi, -math.pi / 2) * CFrame.new(0, width / 2, -len1 - len2 / 2)
  2857. table.insert(list, w2)
  2858. end
  2859. do
  2860. return unpack(list)
  2861. end
  2862. end
  2863. end
  2864.  
  2865. MagicBlock = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type, parent, prt2)
  2866. local prt = (part(3, parent, 0, 0, brickcolor, "Effect", vt()))
  2867. local wld = nil
  2868. prt.CFrame = cframe
  2869. if Type ~= 3 then
  2870. prt.Anchored = true
  2871. else
  2872. prt.Anchored = false
  2873. wld = weld(prt, prt, prt2, cframe)
  2874. end
  2875. msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
  2876. game:GetService("Debris"):AddItem(prt, 10)
  2877. if Type == 1 or Type == nil then
  2878. table.insert(Effects, {prt, "Block1", delay, x3, y3, z3, msh})
  2879. else
  2880. if Type == 2 then
  2881. table.insert(Effects, {prt, "Block2", delay, x3, y3, z3, msh})
  2882. else
  2883. if Type == 3 then
  2884. table.insert(Effects, {prt, "Block3", delay, x3, y3, z3, msh, wld, cframe})
  2885. end
  2886. end
  2887. end
  2888. end
  2889.  
  2890. MagicSkull = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, goe)
  2891. local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt())
  2892. prt.Anchored = true
  2893. prt.CFrame = cframe
  2894. msh = mesh("SpecialMesh", prt, "FileMesh", "4770583", vt(0, 0, 0), vt(x1, y1, z1))
  2895. game:GetService("Debris"):AddItem(prt, 10)
  2896. table.insert(Effects, {prt, "Skull", delay, x3, y3, z3, msh, goe})
  2897. end
  2898.  
  2899. MagicCircle = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  2900. local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt())
  2901. prt.Anchored = true
  2902. prt.CFrame = cframe
  2903. local msh = mesh("SpecialMesh", prt, "Sphere", "nil", vt(0, 0, 0), vt(x1, y1, z1))
  2904. game:GetService("Debris"):AddItem(prt, 10)
  2905. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  2906. end
  2907.  
  2908. MagicCylinder = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  2909. local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt())
  2910. prt.Anchored = true
  2911. prt.CFrame = cframe
  2912. local msh = mesh("CylinderMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
  2913. game:GetService("Debris"):AddItem(prt, 10)
  2914. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  2915. end
  2916.  
  2917. MagicCylinder3 = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  2918. local prt = part(3, modelzorz, 0, 0, brickcolor, "Effect", vt())
  2919. prt.Anchored = true
  2920. prt.CFrame = cframe
  2921. local msh = mesh("SpecialMesh", prt, "Head", "nil", vt(0, 0, 0), vt(x1, y1, z1))
  2922. game:GetService("Debris"):AddItem(prt, 10)
  2923. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  2924. end
  2925.  
  2926. MagicCylinder2 = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, goe)
  2927. local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt())
  2928. prt.Anchored = true
  2929. prt.CFrame = cframe
  2930. local msh = mesh("CylinderMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
  2931. game:GetService("Debris"):AddItem(prt, 10)
  2932. table.insert(Effects, {prt, "Cylinder2", delay, x3, y3, z3, msh, goe})
  2933. end
  2934.  
  2935. MagicHead = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  2936. local prt = part(3, Character, 0, 0, brickcolor, "Effect", vt())
  2937. prt.Anchored = true
  2938. prt.CFrame = cframe
  2939. local msh = mesh("SpecialMesh", prt, "Head", "nil", vt(0, 0, 0), vt(x1, y1, z1))
  2940. game:GetService("Debris"):AddItem(prt, 10)
  2941. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  2942. end
  2943.  
  2944. MagicHead2 = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  2945. local prt = part(3, Character, 0, 0, brickcolor, "Effect", vt())
  2946. prt.Anchored = true
  2947. prt.CFrame = cframe
  2948. local msh = mesh("SpecialMesh", prt, "Head", "nil", vt(0, 0, 0), vt(x1, y1, z1))
  2949. game:GetService("Debris"):AddItem(prt, 10)
  2950. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  2951. end
  2952.  
  2953. ClangEffect = function(brickcolor, cframe, duration, decrease, size, power)
  2954. local prt = part(3, workspace, 0, 1, brickcolor, "Effect", vt())
  2955. prt.Anchored = true
  2956. prt.CFrame = cframe
  2957. local msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(5, 5, 5))
  2958. game:GetService("Debris"):AddItem(prt, 10)
  2959. table.insert(Effects, {prt, "CylinderClang", duration, decrease, size, power, prt.CFrame, nil})
  2960. end
  2961.  
  2962. MagicWave = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  2963. local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt())
  2964. prt.Anchored = true
  2965. prt.CFrame = cframe
  2966. local msh = mesh("SpecialMesh", prt, "FileMesh", "20329976", vt(0, 0, 0), vt(x1, y1, z1))
  2967. game:GetService("Debris"):AddItem(prt, 10)
  2968. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  2969. end
  2970.  
  2971. MagicRing = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  2972. local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  2973. prt.Anchored = true
  2974. prt.CFrame = cframe * cf(x2, y2, z2)
  2975. local msh = mesh("SpecialMesh", prt, "FileMesh", "3270017", vt(0, 0, 0), vt(x1, y1, z1))
  2976. game:GetService("Debris"):AddItem(prt, 10)
  2977. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  2978. end
  2979.  
  2980. MagicRing2 = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, prt2)
  2981. local prt = part(3, modelzorz, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  2982. prt.Anchored = false
  2983. wld = weld(prt, prt, prt2, cframe)
  2984. local msh = mesh("SpecialMesh", prt, "FileMesh", "3270017", vt(0, 0, 0), vt(x1, y1, z1))
  2985. game:GetService("Debris"):AddItem(prt, 10)
  2986. table.insert(Effects, {prt, "Block3", delay, x3, y3, z3, msh, wld, cframe})
  2987. end
  2988.  
  2989. ElecEffect = function(cff, x, y, z)
  2990. local prt = part(3, workspace, 0, 0, BrickColor.new("Bright red"), "Part", vt(1, 1, 1))
  2991. prt.Anchored = true
  2992. prt.CFrame = cff * cf(math.random(-x, x), math.random(-y, y), math.random(-z, z))
  2993. prt.CFrame = cf(prt.Position)
  2994. game:GetService("Debris"):AddItem(prt, 10)
  2995. xval = math.random() / 3
  2996. yval = math.random() / 3
  2997. zval = math.random() / 3
  2998. msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(xval, yval, zval))
  2999. Effects[#Effects + 1] = {prt, "Elec", 0.2, x, y, z, xval, yval, zval, msh}
  3000. end
  3001.  
  3002. Lightning = function(p0, p1, tym, ofs, col, th, tra, last)
  3003. local magz = (p0 - p1).magnitude
  3004. local curpos = p0
  3005. local trz = {-ofs, ofs}
  3006. for i = 1, tym do
  3007. local li = Instance.new("Part", workspace)
  3008. li.TopSurface = 0
  3009. li.BottomSurface = 0
  3010. li.Anchored = true
  3011. li.Transparency = tra or 0.4
  3012. li.BrickColor = BrickColor.new(col)
  3013. li.formFactor = "Custom"
  3014. li.CanCollide = false
  3015. li.Size = Vector3.new(th, th, magz / tym)
  3016. local ofz = Vector3.new(trz[math.random(1, 2)], trz[math.random(1, 2)], trz[math.random(1, 2)])
  3017. local trolpos = CFrame.new(curpos, p1) * CFrame.new(0, 0, magz / tym).p + ofz
  3018. if tym == i then
  3019. local magz2 = (curpos - p1).magnitude
  3020. li.Size = Vector3.new(th, th, magz2)
  3021. li.CFrame = CFrame.new(curpos, p1) * CFrame.new(0, 0, -magz2 / 2)
  3022. table.insert(Effects, {li, "Disappear", last})
  3023. else
  3024. do
  3025. do
  3026. li.CFrame = CFrame.new(curpos, trolpos) * CFrame.new(0, 0, magz / tym / 2)
  3027. curpos = li.CFrame * CFrame.new(0, 0, magz / tym / 2).p
  3028. game.Debris:AddItem(li, 10)
  3029. table.insert(Effects, {li, "Disappear", last})
  3030. end
  3031. end
  3032. end
  3033. end
  3034. end
  3035.  
  3036. Shoot = function(orgpos)
  3037. rand = 1.5
  3038. if Mode == "Energy Reactor" then
  3039. rand = 0
  3040. else
  3041. if Mode == "Dynamic Blade" then
  3042. rand = 2
  3043. end
  3044. end
  3045. spread = vt((math.random(-1, 0) + math.random()) * rand, (math.random(-1, 0) + math.random()) * rand, (math.random(-1, 0) + math.random()) * rand) * (orgpos - MMouse.Hit.p).magnitude / 100
  3046. local MouseLook = cf((orgpos + MMouse.Hit.p) / 2, MMouse.Hit.p + spread)
  3047. MagicCircle(BrickColor.new(NewCol2), cf(orgpos), 5, 5, 5, 1, 1, 1, 0.1)
  3048. table.insert(Effects, {MouseLook.lookVector, "Shoot", 50, orgpos, 5, 7, 0, 1, 2})
  3049. end
  3050.  
  3051. Shoot2 = function(orgpos)
  3052. local MouseLook = cf((orgpos + MMouse.Hit.p) / 2, MMouse.Hit.p)
  3053. MagicCircle(BrickColor.new(NewCol2), cf(orgpos), 5, 5, 5, 3, 3, 3, 0.1)
  3054. table.insert(Effects, {MouseLook.lookVector, "Shoot2", 50, orgpos, 5, 7, 0, 1, 2})
  3055. end
  3056.  
  3057. Damagefunc = function(hit, minim, maxim, knockback, Type, Property, Delay, KnockbackType, incstun, stagger, staghit, ranged, DecreaseState, DecreaseAmount, Duration)
  3058. if hit.Parent == nil then
  3059. return
  3060. end
  3061. if hit == MovePart then
  3062. Fly = false
  3063. end
  3064. if hit.Name == "Hitbox" and hit.Parent ~= modelzorz and ranged ~= true then
  3065. ref = part(3, workspace, 0, 1, BrickColor.new("Black"), "Reference", vt())
  3066. ref.Anchored = true
  3067. ref.CFrame = cf(hit.Position)
  3068. game:GetService("Debris"):AddItem(ref, 1)
  3069. hitnum = math.random(1, 5)
  3070. if hitnum == 1 then
  3071. so("199148971", ref, 1, 1)
  3072. else
  3073. if hitnum == 2 then
  3074. so("199149025", ref, 1, 1)
  3075. else
  3076. if hitnum == 3 then
  3077. so("199149072", ref, 1, 1)
  3078. else
  3079. if hitnum == 4 then
  3080. so("199149109", ref, 1, 1)
  3081. else
  3082. if hitnum == 5 then
  3083. so("199149119", ref, 1, 1)
  3084. end
  3085. end
  3086. end
  3087. end
  3088. end
  3089. StaggerHit.Value = true
  3090. end
  3091. if hit.Parent.Parent:FindFirstChild("Torso") ~= nil then
  3092. hit = hit.Parent.Parent:findFirstChild("Torso")
  3093. h = hit.Parent.Parent:FindFirstChild("Humanoid")
  3094. end
  3095. if hit.Parent.className == "Hat" then
  3096. hit = hit.Parent.Parent:findFirstChild("Head")
  3097. end
  3098. h = hit.Parent:FindFirstChild("Humanoid")
  3099. if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
  3100. if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then
  3101. return
  3102. end
  3103. if Player.Neutral == false then
  3104. if hit.Parent:findFirstChild("Alignment") ~= nil and hit.Parent.Alignment.Value == Player.TeamColor.Color then
  3105. return
  3106. end
  3107. if game.Players:GetPlayerFromCharacter(hit.Parent) ~= nil and game.Players:GetPlayerFromCharacter(hit.Parent).TeamColor == Player.TeamColor then
  3108. return
  3109. end
  3110. end
  3111. c = Instance.new("ObjectValue")
  3112. c.Name = "creator"
  3113. c.Value = game:service("Players").LocalPlayer
  3114. c.Parent = h
  3115. RecentEnemy.Value = hit.Parent
  3116. game:GetService("Debris"):AddItem(c, 0.5)
  3117. minim = minim * Atk.Value
  3118. maxim = maxim * Atk.Value
  3119. Damage = 0
  3120. if minim == maxim then
  3121. Damage = maxim
  3122. else
  3123. Damage = math.random(minim, maxim)
  3124. end
  3125. blocked = false
  3126. enblock = nil
  3127. Stats = hit.Parent:findFirstChild("Stats")
  3128. if Stats ~= nil then
  3129. enblock = Stats:findFirstChild("Block")
  3130. if enblock ~= nil and enblock.Value == true then
  3131. blocked = true
  3132. end
  3133. if Stats:findFirstChild("Defense") ~= nil then
  3134. Damage = Damage / Stats.Defense.Value
  3135. if Damage <= 3 and (ranged == false or ranged == nil) and blocked ~= true then
  3136. hitnum = math.random(1, 5)
  3137. if hitnum == 1 then
  3138. so("199149321", hit, 1, 1)
  3139. else
  3140. if hitnum == 2 then
  3141. so("199149338", hit, 1, 1)
  3142. else
  3143. if hitnum == 3 then
  3144. so("199149367", hit, 1, 1)
  3145. else
  3146. if hitnum == 4 then
  3147. so("199149409", hit, 1, 1)
  3148. else
  3149. if hitnum == 5 then
  3150. so("199149452", hit, 1, 1)
  3151. end
  3152. end
  3153. end
  3154. end
  3155. end
  3156. else
  3157. if ranged == false or ranged == nil and blocked ~= true then
  3158. hitnum = math.random(1, 6)
  3159. if hitnum == 1 then
  3160. so("199149137", hit, 1, 1)
  3161. else
  3162. if hitnum == 2 then
  3163. so("199149186", hit, 1, 1)
  3164. else
  3165. if hitnum == 3 then
  3166. so("199149221", hit, 1, 1)
  3167. else
  3168. if hitnum == 4 then
  3169. so("199149235", hit, 1, 1)
  3170. else
  3171. if hitnum == 5 then
  3172. so("199149269", hit, 1, 1)
  3173. else
  3174. if hitnum == 6 then
  3175. so("199149297", hit, 1, 1)
  3176. end
  3177. end
  3178. end
  3179. end
  3180. end
  3181. end
  3182. end
  3183. end
  3184. if Damage <= 3 and staghit == true and ranged ~= true then
  3185. StaggerHit.Value = true
  3186. end
  3187. end
  3188. if Stats:findFirstChild("Stun") ~= nil then
  3189. if blocked == true then
  3190. incstun = incstun / 2
  3191. end
  3192. --[[if Stats.Stun.Value < Stats.StunThreshold.Value then
  3193. Stats.Stun.Value = Stats.Stun.Value + incstun
  3194. end--]]
  3195. end
  3196. if Stats:findFirstChild("Stagger") ~= nil and stagger == true then
  3197. Stats.Stagger.Value = true
  3198. end
  3199. end
  3200. if blocked == true then
  3201. showDamage(hit.Parent, "Block", "Damage")
  3202. if ranged ~= true then
  3203. enblock.Value = false
  3204. Stagger.Value = true
  3205. hitnum = math.random(1, 2)
  3206. if hitnum == 1 then
  3207. so("199148933", hit, 1, 1)
  3208. else
  3209. if hitnum == 2 then
  3210. so("199148947", hit, 1, 1)
  3211. end
  3212. end
  3213. end
  3214. else
  3215. Damage = math.floor(Damage)
  3216. coroutine.resume(coroutine.create(function(Hum, Dam)
  3217. hit.Parent.Humanoid:TakeDamage(Damage)
  3218. end
  3219. ), h, Damage)
  3220. showDamage(hit.Parent, Damage, "Damage")
  3221. if prechit == true then
  3222. eul = euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  3223. MagicCircle(BrickColor.new("White"), cf(hit.Position) * eul, 5, 5, 5, -0.1, 5, -0.1, 0.02)
  3224. MagicCircle(BrickColor.new("White"), cf(hit.Position) * eul * euler(1.57, 0, 0), 5, 5, 5, -0.1, 5, -0.1, 0.02)
  3225. end
  3226. if DecreaseState ~= nil then
  3227. DecreaseStat(hit.Parent, DecreaseState, DecreaseAmount, Duration)
  3228. end
  3229. if Type == "Knockdown" then
  3230. hum = hit.Parent.Humanoid
  3231. hum.PlatformStand = true
  3232. coroutine.resume(coroutine.create(function(HHumanoid)
  3233. swait(1)
  3234. HHumanoid.PlatformStand = false
  3235. end
  3236. ), hum)
  3237. local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit
  3238. local bodvol = Instance.new("BodyVelocity")
  3239. bodvol.velocity = angle * knockback
  3240. bodvol.P = 5000
  3241. bodvol.maxForce = Vector3.new(8000, 8000, 8000)
  3242. bodvol.Parent = hit
  3243. rl = Instance.new("BodyAngularVelocity")
  3244. rl.P = 3000
  3245. rl.maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000
  3246. rl.angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10))
  3247. rl.Parent = hit
  3248. game:GetService("Debris"):AddItem(bodvol, 0.5)
  3249. game:GetService("Debris"):AddItem(rl, 0.5)
  3250. else
  3251. do
  3252. if Type == "Knockdown2" then
  3253. hum = hit.Parent.Humanoid
  3254. local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit
  3255. local bodvol = Instance.new("BodyVelocity")
  3256. bodvol.velocity = angle * knockback
  3257. bodvol.P = 500
  3258. bodvol.maxForce = Vector3.new(3000, 3000, 3000)
  3259. bodvol.Parent = hit
  3260. game:GetService("Debris"):AddItem(bodvol, 0.5)
  3261. else
  3262. do
  3263. if Type == "Normal" or Type == "NormalDecreaseMvmt1" then
  3264. vp = Instance.new("BodyVelocity")
  3265. vp.P = 500
  3266. vp.maxForce = Vector3.new(math.huge, 0, math.huge)
  3267. if KnockbackType == 1 then
  3268. vp.velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05
  3269. else
  3270. if KnockbackType == 2 then
  3271. vp.velocity = Property.CFrame.lookVector * knockback
  3272. end
  3273. end
  3274. game:GetService("Debris"):AddItem(vp, 0.5)
  3275. if knockback > 0 then
  3276. vp.Parent = hit.Parent.Torso
  3277. end
  3278. end
  3279. debounce = Instance.new("BoolValue")
  3280. debounce.Name = "DebounceHit"
  3281. debounce.Parent = hit.Parent
  3282. debounce.Value = true
  3283. game:GetService("Debris"):AddItem(debounce, Delay)
  3284. c = Instance.new("ObjectValue")
  3285. c.Name = "creator"
  3286. c.Value = Player
  3287. c.Parent = h
  3288. game:GetService("Debris"):AddItem(c, 0.5)
  3289. CRIT = false
  3290. end
  3291. end
  3292. end
  3293. end
  3294. end
  3295. end
  3296. end
  3297.  
  3298. showDamage = function(Char, Dealt, Type)
  3299. m = Instance.new("Model")
  3300. m.Name = "Effect"
  3301. c = Instance.new("Part")
  3302. c.Transparency = 1
  3303. c.Name = "Head"
  3304. c.TopSurface = 0
  3305. c.BottomSurface = 0
  3306. c.formFactor = "Plate"
  3307. c.Size = Vector3.new(1, 0.4, 1)
  3308. b = Instance.new("BillboardGui", c)
  3309. b.Size = UDim2.new(5, 0, 5, 0)
  3310. b.AlwaysOnTop = true
  3311. damgui = gui("TextLabel", b, tostring(Dealt), 1, Color3.new(0, 0, 0), UDim2.new(0, 0, 0, 0), UDim2.new(1, 0, 1, 0))
  3312. if Type == "Damage" then
  3313. damgui.Font = "SourceSans"
  3314. if Dealt == "Block" then
  3315. damgui.TextColor3 = BrickColor.new("Bright blue").Color
  3316. else
  3317. if Dealt < 3 then
  3318. damgui.TextColor3 = BrickColor.new("White").Color
  3319. else
  3320. if Dealt >= 3 and Dealt < 20 then
  3321. damgui.TextColor3 = BrickColor.new("Bright yellow").Color
  3322. else
  3323. damgui.TextColor3 = BrickColor.new("Really red").Color
  3324. damgui.Font = "SourceSansBold"
  3325. end
  3326. end
  3327. end
  3328. else
  3329. if Type == "Debuff" then
  3330. damgui.TextColor3 = BrickColor.new("White").Color
  3331. else
  3332. if Type == "Interrupt" then
  3333. damgui.TextColor3 = BrickColor.new("New Yeller").Color
  3334. end
  3335. end
  3336. end
  3337. damgui.TextScaled = true
  3338. ms = Instance.new("CylinderMesh")
  3339. ms.Scale = Vector3.new(0.8, 0.8, 0.8)
  3340. ms.Parent = c
  3341. c.Reflectance = 0
  3342. Instance.new("BodyGyro").Parent = c
  3343. c.Parent = m
  3344. if Char:findFirstChild("Head") ~= nil then
  3345. c.CFrame = cf(Char.Head.CFrame.p + Vector3.new(math.random(-100, 100) / 100, 3, math.random(-100, 100) / 100))
  3346. else
  3347. if Char.Parent:findFirstChild("Head") ~= nil then
  3348. c.CFrame = cf(Char.Parent.Head.CFrame.p + Vector3.new(math.random(-100, 100) / 100, 3, math.random(-100, 100) / 100))
  3349. end
  3350. end
  3351. f = Instance.new("BodyPosition")
  3352. f.P = 2000
  3353. f.D = 100
  3354. f.maxForce = Vector3.new(545000, 545000, 545000)
  3355. if Type == "Damage" then
  3356. f.position = c.Position + Vector3.new(0, 3, 0)
  3357. else
  3358. if Type == "Debuff" or Type == "Interrupt" then
  3359. f.position = c.Position + Vector3.new(0, 5, 0)
  3360. end
  3361. end
  3362. f.Parent = c
  3363. game:GetService("Debris"):AddItem(m, 5)
  3364. table.insert(Effects, {m, "showDamage", damgui, f, 10, 1, 15, 50, 100})
  3365. c.CanCollide = false
  3366. m.Parent = workspace
  3367. c.CanCollide = false
  3368. end
  3369.  
  3370. combo = 0
  3371. ob1d = function(mouse)
  3372. if attack == true or equipped == false then
  3373. return
  3374. end
  3375. hold = true
  3376. dynamomove = false
  3377. if Mode == "Energy Reactor" then
  3378. dynamomove = true
  3379. end
  3380. if combo == 0 then
  3381. combo = 1
  3382. attackone()
  3383. else
  3384. if combo == 1 then
  3385. combo = 2
  3386. attacktwo()
  3387. else
  3388. if combo == 2 then
  3389. combo = 3
  3390. attackthree()
  3391. else
  3392. if combo == 3 then
  3393. combo = 0
  3394. attackfour()
  3395. end
  3396. end
  3397. end
  3398. end
  3399. coroutine.resume(coroutine.create(function()
  3400. for i = 1, 50 do
  3401. if attack == false then
  3402. swait()
  3403. end
  3404. end
  3405. if attack == false then
  3406. dynamomove = true
  3407. combo = 0
  3408. end
  3409. end
  3410. ))
  3411. end
  3412.  
  3413. ob1u = function(mouse)
  3414. hold = false
  3415. end
  3416.  
  3417. buttonhold = false
  3418. fenbarmove1.MouseButton1Click:connect(do1)
  3419. fenbarmove2.MouseButton1Click:connect(do2)
  3420. fenbarmove3.MouseButton1Click:connect(do3)
  3421. fenbarmove4.MouseButton1Click:connect(do4)
  3422. eul = 0
  3423. equipped = false
  3424. key = function(key)
  3425. if key == "e" and defending == true then
  3426. defending = false
  3427. end
  3428. if key == "z" and choosemode == true then
  3429. Mode = "Classic"
  3430. manainc = 9
  3431. choosemode = false
  3432. passive1.Value = 0.1
  3433. passive2.Value = -0.05
  3434. passive3.Value = -0.1
  3435. else
  3436. if key == "x" and choosemode == true then
  3437. Mode = "Dynamic Blade"
  3438. manainc = 15
  3439. choosemode = false
  3440. passive1.Value = -0.1
  3441. passive2.Value = 0.1
  3442. passive3.Value = 0.1
  3443. else
  3444. if key == "c" and choosemode == true then
  3445. Mode = "Energy Reactor"
  3446. manainc = 5
  3447. choosemode = false
  3448. passive1.Value = 0.1
  3449. passive2.Value = -0.15
  3450. passive3.Value = 0.05
  3451. end
  3452. end
  3453. end
  3454. if attack == true then
  3455. return
  3456. end
  3457. if key == "f" then
  3458. pressedf = true
  3459. fnumb = 0
  3460. attack = true
  3461. if equipped == false then
  3462. equipped = true
  3463. RSH = ch.Torso["Right Shoulder"]
  3464. LSH = ch.Torso["Left Shoulder"]
  3465. RSH.Parent = nil
  3466. LSH.Parent = nil
  3467. RW.Name = "Right Shoulder"
  3468. RW.Part0 = ch.Torso
  3469. RW.C0 = cf(1.5, 0.5, 0)
  3470. RW.C1 = cf(0, 0.5, 0)
  3471. RW.Part1 = ch["Right Arm"]
  3472. RW.Parent = ch.Torso
  3473. LW.Name = "Left Shoulder"
  3474. LW.Part0 = ch.Torso
  3475. LW.C0 = cf(-1.5, 0.5, 0)
  3476. LW.C1 = cf(0, 0.5, 0)
  3477. LW.Part1 = ch["Left Arm"]
  3478. LW.Parent = ch.Torso
  3479. Animate.Parent = nil
  3480. equipanim()
  3481. else
  3482. equipped = false
  3483. hideanim()
  3484. LH.C1 = LHC1
  3485. RH.C1 = RHC1
  3486. Animate.Parent = Humanoid
  3487. swait(0)
  3488. RW.Parent = nil
  3489. LW.Parent = nil
  3490. RSH.Parent = player.Character.Torso
  3491. LSH.Parent = player.Character.Torso
  3492. end
  3493. attack = false
  3494. end
  3495. if equipped == false then
  3496. return
  3497. end
  3498. if key == "e" then
  3499. Defend()
  3500. end
  3501. if key == "z" then
  3502. do1()
  3503. end
  3504. if key == "x" then
  3505. do2()
  3506. end
  3507. if key == "c" then
  3508. do3()
  3509. end
  3510. if key == "v" then
  3511. do4()
  3512. end
  3513. if key == "e" or key == "z" or key == "x" or key == "c" or key == "v" then
  3514. dynamomove = true
  3515. end
  3516. end
  3517.  
  3518. key2 = function(key)
  3519. end
  3520.  
  3521. s = function(mouse)
  3522. mouse.Button1Down:connect(function()
  3523. ob1d(mouse)
  3524. end
  3525. )
  3526. mouse.Button1Up:connect(function()
  3527. ob1u(mouse)
  3528. end
  3529. )
  3530. mouse.KeyDown:connect(key)
  3531. mouse.KeyUp:connect(key2)
  3532. player = Player
  3533. ch = Character
  3534. MMouse = mouse
  3535. end
  3536.  
  3537. ds = function(mouse)
  3538. end
  3539.  
  3540. Bin.Selected:connect(s)
  3541. Bin.Deselected:connect(ds)
  3542. print("Dynamo & Permanence loaded.")
  3543. local mananum = 0
  3544. local donum = 0
  3545. local stunnum = 0
  3546. local staggeranim = false
  3547. local stunanim = false
  3548. local Point, LastPoint = nil, nil
  3549. local handef = 0
  3550. local flick = 0
  3551. local reactlightn = 0
  3552. local walk = 0
  3553. local walkforw = true
  3554. local ovloadn = 0
  3555. local oldhealth = Humanoid.Health
  3556. local oldstun = Stun.Value
  3557. while 1 do
  3558. swait()
  3559. if fnumb < 21 then
  3560. fnumb = fnumb + 1
  3561. if pressedf == false then
  3562. fenframe5.BackgroundTransparency = fenframe5.BackgroundTransparency - 0.025
  3563. tellbar.TextTransparency = tellbar.TextTransparency - 0.05
  3564. tellbar.TextStrokeTransparency = tellbar.TextStrokeTransparency - 0.05
  3565. else
  3566. if fnumb == 20 then
  3567. fenframe5.Parent = nil
  3568. print("daigui")
  3569. end
  3570. fenframe5.BackgroundTransparency = fenframe5.BackgroundTransparency + 0.025
  3571. tellbar.TextTransparency = tellbar.TextTransparency + 0.05
  3572. tellbar.TextStrokeTransparency = tellbar.TextStrokeTransparency + 0.05
  3573. end
  3574. end
  3575. hitbox2.Parent = hitbox.Parent
  3576. hitbox2.Size = hitbox.Size
  3577. hitbox2.CFrame = hitboxCF
  3578. hboxpos.position = hitbox2.Position + vt(math.random(-100, 100) / 100, math.random(-100, 100) / 100, math.random(-100, 100) / 100)
  3579. if mdec2.Parent == nil then
  3580. for i = 1, #DemTable do
  3581. if DemTable[i][1].Transparency < 1 then
  3582. DemTable[i][1].Transparency = DemTable[i][1].Transparency + 0.1
  3583. end
  3584. end
  3585. else
  3586. do
  3587. for i = 1, #DemTable do
  3588. if DemTable[i][2] < DemTable[i][1].Transparency then
  3589. DemTable[i][1].Transparency = DemTable[i][1].Transparency - 0.05
  3590. end
  3591. if 4 <= flick then
  3592. DemTable[i][1].Transparency = DemTable[i][1].Transparency + 0.1
  3593. end
  3594. end
  3595. do
  3596. if 4 <= flick then
  3597. flick = 0
  3598. end
  3599. flick = flick + 1
  3600. ovloadn = ovloadn + 1
  3601. if 20 <= ovloadn then
  3602. ovloadn = 0
  3603. if overload < 100 then
  3604. overload = overload + 1
  3605. end
  3606. end
  3607. if 100 <= overload then
  3608. overload = 100
  3609. end
  3610. if 50 <= overload then
  3611. prt29.Material = "Neon"
  3612. prt30.Material = "Neon"
  3613. prt30b.Material = "Neon"
  3614. prt31.Material = "Neon"
  3615. prt32.Material = "Neon"
  3616. prt32b.Material = "Neon"
  3617. dprt4.Material = "Neon"
  3618. dprt5.Material = "Neon"
  3619. dprt16.Material = "Neon"
  3620. dprt17.Material = "Neon"
  3621. dprt18.Material = "Neon"
  3622. dprt19.Material = "Neon"
  3623. dprt20.Material = "Neon"
  3624. dprt21.Material = "Neon"
  3625. dprt22.Material = "Neon"
  3626. dprtb4.Material = "Neon"
  3627. dprtb5.Material = "Neon"
  3628. dprtb16.Material = "Neon"
  3629. dprtb17.Material = "Neon"
  3630. dprtb18.Material = "Neon"
  3631. dprtb19.Material = "Neon"
  3632. dprtb20.Material = "Neon"
  3633. dprtb21.Material = "Neon"
  3634. dprtb22.Material = "Neon"
  3635. else
  3636. prt29.Material = "SmoothPlastic"
  3637. prt30.Material = "SmoothPlastic"
  3638. prt30b.Material = "SmoothPlastic"
  3639. prt31.Material = "SmoothPlastic"
  3640. prt32.Material = "SmoothPlastic"
  3641. prt32b.Material = "SmoothPlastic"
  3642. dprt4.Material = "SmoothPlastic"
  3643. dprt5.Material = "SmoothPlastic"
  3644. dprt16.Material = "SmoothPlastic"
  3645. dprt17.Material = "SmoothPlastic"
  3646. dprt18.Material = "SmoothPlastic"
  3647. dprt19.Material = "SmoothPlastic"
  3648. dprt20.Material = "SmoothPlastic"
  3649. dprt21.Material = "SmoothPlastic"
  3650. dprt22.Material = "SmoothPlastic"
  3651. dprtb4.Material = "SmoothPlastic"
  3652. dprtb5.Material = "SmoothPlastic"
  3653. dprtb16.Material = "SmoothPlastic"
  3654. dprtb17.Material = "SmoothPlastic"
  3655. dprtb18.Material = "SmoothPlastic"
  3656. dprtb19.Material = "SmoothPlastic"
  3657. dprtb20.Material = "SmoothPlastic"
  3658. dprtb21.Material = "SmoothPlastic"
  3659. dprtb22.Material = "SmoothPlastic"
  3660. end
  3661. if defending == true and Humanoid.Health < oldhealth then
  3662. overload = overload + (oldhealth - Humanoid.Health)
  3663. if Mode == "Classic" then
  3664. MagicCircle(BrickColor.new(NewCol2), handle.CFrame * cf(0.6, math.random(-100, 100) / 100, math.random(-100, 100) / 100), 1, 1, 1, 0, 5, 5, 0.1)
  3665. else
  3666. if Mode == "Dynamic Blade" then
  3667. MagicCircle(BrickColor.new(NewCol2), prt31.CFrame * cf(0, math.random(-200, 200) / 100, math.random(-90, 90) / 100), 1, 1, 1, 0, 5, 5, 0.1)
  3668. else
  3669. if Mode == "Energy Reactor" then
  3670. MagicCircle(BrickColor.new(NewCol2), handle.CFrame * cf(math.random(-100, 100) / 100, math.random(-100, 100) / 100, -1), 1, 1, 1, 5, 5, 0, 0.1)
  3671. end
  3672. end
  3673. end
  3674. end
  3675. if Stagger.Value == true and staggeranim == false and defending == false then
  3676. coroutine.resume(coroutine.create(function()
  3677. staggeranim = true
  3678. while attack == true do
  3679. swait()
  3680. end
  3681. StaggerAnim()
  3682. StaggerHit.Value = false
  3683. Stagger.Value = false
  3684. staggeranim = false
  3685. end
  3686. ))
  3687. end
  3688. if StaggerHit.Value == true and staggeranim == false and defending == false then
  3689. coroutine.resume(coroutine.create(function()
  3690. staggeranim = true
  3691. while attack == true do
  3692. swait()
  3693. end
  3694. StaggerHitt()
  3695. StaggerHit.Value = false
  3696. Stagger.Value = false
  3697. staggeranim = false
  3698. end
  3699. ))
  3700. end
  3701. oldhealth = Humanoid.Health
  3702. if defending == true then
  3703. if oldstun <= 60 and StunT.Value <= Stun.Value then
  3704. Stun.Value = 60
  3705. defending = false
  3706. if Mode == "Classic" then
  3707. MagicCircle(BrickColor.new(NewCol2), handle.CFrame * cf(0.6, 0, 0), 1, 1, 1, 0, 5, 5, 0.05)
  3708. else
  3709. if Mode == "Dynamic Blade" then
  3710. MagicCircle(BrickColor.new(NewCol2), prt31.CFrame, 1, 1, 1, 0, 5, 5, 0.05)
  3711. else
  3712. if Mode == "Energy Reactor" then
  3713. MagicCircle(BrickColor.new(NewCol2), handle.CFrame * cf(0, 0, -1), 1, 1, 1, 5, 5, 0, 0.05)
  3714. end
  3715. end
  3716. end
  3717. else
  3718. if StunT.Value <= Stun.Value then
  3719. Stun.Value = 99
  3720. defending = false
  3721. end
  3722. end
  3723. oldstun = tonumber(Stun.Value)
  3724. if Stagger.Value == true then
  3725. Stagger.Value = false
  3726. if Mode == "Classic" then
  3727. MagicCircle(BrickColor.new(NewCol2), handle.CFrame * cf(0.6, 0, 0), 1, 1, 1, 0, 5, 5, 0.05)
  3728. else
  3729. if Mode == "Dynamic Blade" then
  3730. MagicCircle(BrickColor.new(NewCol2), prt31.CFrame, 1, 1, 1, 0, 5, 5, 0.05)
  3731. else
  3732. if Mode == "Energy Reactor" then
  3733. MagicCircle(BrickColor.new(NewCol2), handle.CFrame * cf(0, 0, -1), 1, 1, 1, 5, 5, 0, 0.05)
  3734. end
  3735. end
  3736. end
  3737. end
  3738. if StaggerHit.Value == true then
  3739. StaggerHit.Value = false
  3740. end
  3741. end
  3742. if Mvmt.Value < 0 or Stagger.Value == true or StunT.Value <= Stun.Value or StaggerHit.Value == true or Rooted.Value == true then
  3743. Humanoid.WalkSpeed = 0
  3744. else
  3745. Humanoid.WalkSpeed = 16 * Mvmt.Value
  3746. end
  3747. if StunT.Value <= Stun.Value and stunanim == false and defending == false then
  3748. coroutine.resume(coroutine.create(function()
  3749. stunanim = true
  3750. while attack == true do
  3751. swait()
  3752. end
  3753. StunAnim()
  3754. Stun.Value = 0
  3755. stunanim = false
  3756. end
  3757. ))
  3758. end
  3759. local stunnum2 = 30
  3760. if stunnum2 <= stunnum then
  3761. if 0 < Stun.Value then
  3762. Stun.Value = Stun.Value - 1
  3763. end
  3764. stunnum = 0
  3765. end
  3766. stunnum = stunnum + 1
  3767. if 0.5 <= donum then
  3768. handidle = true
  3769. else
  3770. if donum <= 0 then
  3771. handidle = false
  3772. end
  3773. end
  3774. if handidle == false then
  3775. donum = donum + 0.003
  3776. else
  3777. donum = donum - 0.003
  3778. end
  3779. local torvel = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  3780. local velderp = RootPart.Velocity.y
  3781. hitfloor,posfloor = rayCast(RootPart.Position, CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0)).lookVector, 4, Character)
  3782. if equipped == true then
  3783. if attack == false then
  3784. idle = idle + 1
  3785. else
  3786. idle = 0
  3787. end
  3788. if (500 <= idle and attack ~= false) or Anim == "Walk" then
  3789. if walkforw == true then
  3790. RH.C1 = clerp(RH.C1, RHC1 * cf(0.2, -0.2, 0) * euler(0, 0, 1), Mvmt.Value * 10 / 50)
  3791. LH.C1 = clerp(LH.C1, LHC1 * cf(0.1, 0.2, 0) * euler(0, 0, 1), Mvmt.Value * 10 / 50)
  3792. else
  3793. RH.C1 = clerp(RH.C1, RHC1 * cf(-0.1, 0.2, 0) * euler(0, 0, -1), Mvmt.Value * 10 / 50)
  3794. LH.C1 = clerp(LH.C1, LHC1 * cf(-0.2, -0.2, 0) * euler(0, 0, -1), Mvmt.Value * 10 / 50)
  3795. end
  3796. else
  3797. RH.C1 = clerp(RH.C1, RHC1, 0.2)
  3798. LH.C1 = clerp(LH.C1, LHC1, 0.2)
  3799. end
  3800. if Mode == "Classic" and attack == false and dynamomove == true then
  3801. hwld.Part1 = RightArm
  3802. hwld.C0 = clerp(hwld.C0, euler(0, 0, 0) * cf(0, 0, 0), math.random(30, 200) / 1000)
  3803. dwld1.C0 = clerp(dwld1.C0, euler(0, 1.57, 0) * cf(-0.6, -1.5, -0.4), math.random(30, 200) / 1000)
  3804. dwld6.C0 = clerp(dwld6.C0, euler(0, 1.57, 0) * cf(-0.6, -0.4, -0.35), math.random(30, 200) / 1000)
  3805. dwld10.C0 = clerp(dwld10.C0, euler(0, 1.57, 0) * cf(-0.6, 0.5, -0.45), math.random(30, 200) / 1000)
  3806. dwldb1.C0 = clerp(dwldb1.C0, euler(0, -1.57, 0) * cf(-0.6, -1.5, 0.4), math.random(30, 200) / 1000)
  3807. dwldb6.C0 = clerp(dwldb6.C0, euler(0, -1.57, 0) * cf(-0.6, -0.4, 0.35), math.random(30, 200) / 1000)
  3808. dwldb10.C0 = clerp(dwldb10.C0, euler(0, -1.57, 0) * cf(-0.6, 0.5, 0.45), math.random(30, 200) / 1000)
  3809. else
  3810. if Mode == "Dynamic Blade" and attack == false and dynamomove == true then
  3811. hwld.Part1 = prt1
  3812. hwld.C0 = clerp(hwld.C0, euler(0, 0, 0) * cf(0, 0, 0), math.random(30, 200) / 1000)
  3813. dwld1.C0 = clerp(dwld1.C0, euler(0, 1.57, 0) * euler(0.1, 0, 0) * cf(0, -5.5, -0.3), math.random(30, 200) / 1000)
  3814. dwld6.C0 = clerp(dwld6.C0, euler(0, -1.57, 0) * euler(0, 0, 0) * cf(0, -4, -0.65), math.random(30, 200) / 1000)
  3815. dwld10.C0 = clerp(dwld10.C0, euler(3.14, 1.57, 0) * cf(0, -3, -0.5), math.random(30, 200) / 1000)
  3816. dwldb1.C0 = clerp(dwldb1.C0, euler(0, -1.57, 0) * euler(-0.1, 0, 0) * cf(0, -5.5, 0.3), math.random(30, 200) / 1000)
  3817. dwldb6.C0 = clerp(dwldb6.C0, euler(0, 1.57, 0) * euler(0, 0, 0) * cf(0, -4, 0.65), math.random(30, 200) / 1000)
  3818. dwldb10.C0 = clerp(dwldb10.C0, euler(3.14, -1.57, 0) * cf(0, -3, 0.5), math.random(30, 200) / 1000)
  3819. else
  3820. if Mode == "Energy Reactor" and dynamomove == true then
  3821. hwld.Part1 = RootPart
  3822. hwld.C0 = clerp(hwld.C0, euler(0, 0, -0.5) * cf(0, -2, 0), math.random(30, 200) / 1000)
  3823. dwld1.C0 = clerp(dwld1.C0, euler(0, 1.57, -1.57) * cf(3, 3, 0) * euler(0, 0, 0) * euler(1.57, 0, 0), math.random(30, 200) / 1000)
  3824. dwld6.C0 = clerp(dwld6.C0, euler(0, 4.71, -1.57) * cf(3, 3, 0) * euler(0, 1.046, 0) * euler(1.57, 0, 0), math.random(30, 200) / 1000)
  3825. dwld10.C0 = clerp(dwld10.C0, euler(3.14, 1.57, -1.57) * cf(3, 3, 0) * euler(0, 2.092, 0) * euler(1.57, 0, 0), math.random(30, 200) / 1000)
  3826. dwldb1.C0 = clerp(dwldb1.C0, euler(0, 1.57, -1.57) * cf(3, 3, 0) * euler(0, 3.138, 0) * euler(1.57, 0, 0), math.random(30, 200) / 1000)
  3827. dwldb6.C0 = clerp(dwldb6.C0, euler(0, 4.71, -1.57) * cf(3, 3, 0) * euler(0, 4.184, 0) * euler(1.57, 0, 0), math.random(30, 200) / 1000)
  3828. dwldb10.C0 = clerp(dwldb10.C0, euler(3.14, 1.57, -1.57) * cf(3, 3, 0) * euler(0, 5.23, 0) * euler(1.57, 0, 0), math.random(30, 200) / 1000)
  3829. end
  3830. end
  3831. end
  3832. if Mode == "Energy Reactor" and 8 <= reactlightn then
  3833. reactlightn = 0
  3834. num = math.random(1, 3)
  3835. efprt1 = dprt1
  3836. efprt2 = dprtb1
  3837. if num == 2 then
  3838. efprt1 = dprt6
  3839. efprt2 = dprtb6
  3840. else
  3841. if num == 3 then
  3842. efprt1 = dprt10
  3843. efprt2 = dprtb10
  3844. end
  3845. end
  3846. Lightning(efprt1.Position, efprt2.Position, 5, 1, NewCol2, 0.01, 0.5, 0.2)
  3847. end
  3848. reactlightn = reactlightn + 1
  3849. if 1 < RootPart.Velocity.y and hitfloor == nil then
  3850. Anim = "Jump"
  3851. if attack == false then
  3852. if Mode == "Dynamic Blade" then
  3853. wld1.C0 = clerp(wld1.C0, euler(1.6, 0, 0) * cf(0, 1.1, 0.2), 0.2)
  3854. Neck.C0 = clerp(Neck.C0, necko * euler(-0.2, 0, 0), 0.2)
  3855. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, 0), 0.2)
  3856. RW.C0 = clerp(RW.C0, cf(0.6, 0.4, -0.6) * euler(0.3 + (donum) / 4, 0, -0.4 - (donum) / 4) * euler(0, -1, 0), 0.2)
  3857. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  3858. LW.C0 = clerp(LW.C0, cf(-0.8, 0.4, -0.5) * euler(0.4 + (donum) / 4, 0, 0.3 - (donum) / 4) * euler(0, -1.3, 0), 0.2)
  3859. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  3860. RH.C0 = clerp(RH.C0, cf(1, -1, -0.3) * euler(-0.5, 1.57, 0) * euler(-0.2, 0, 0), 0.2)
  3861. LH.C0 = clerp(LH.C0, cf(-1, -1, -0.3) * euler(-0.5, -1.57, 0) * euler(-0.2, 0, 0), 0.2)
  3862. else
  3863. wld1.C0 = clerp(wld1.C0, euler(1.57, 0, 0) * cf(0, 1, 0), 0.2)
  3864. Neck.C0 = clerp(Neck.C0, necko * euler(-0.2, 0, 0), 0.2)
  3865. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, 0), 0.2)
  3866. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.2, 0, 0.4) * euler(0, 0, 0), 0.2)
  3867. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  3868. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-1, 0, -0.2), 0.2)
  3869. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  3870. RH.C0 = clerp(RH.C0, cf(1, -1, -0.3) * euler(-0.5, 1.57, 0) * euler(-0.2, 0, 0), 0.2)
  3871. LH.C0 = clerp(LH.C0, cf(-1, -1, -0.3) * euler(-0.5, -1.57, 0) * euler(-0.2, 0, 0), 0.2)
  3872. end
  3873. end
  3874. else
  3875. if RootPart.Velocity.y < -1 and hitfloor == nil then
  3876. Anim = "Fall"
  3877. if attack == false then
  3878. if Mode == "Dynamic Blade" then
  3879. wld1.C0 = clerp(wld1.C0, euler(1.6, 0, 0) * cf(0, 1.1, 0.2), 0.2)
  3880. Neck.C0 = clerp(Neck.C0, necko * euler(0.4, 0, 0), 0.2)
  3881. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, 0), 0.2)
  3882. RW.C0 = clerp(RW.C0, cf(0.6, 0.4, -0.6) * euler(0.3 + (donum) / 4, 0, -0.4 - (donum) / 4) * euler(0, -1, 0), 0.2)
  3883. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  3884. LW.C0 = clerp(LW.C0, cf(-0.8, 0.4, -0.5) * euler(0.4 + (donum) / 4, 0, 0.3 - (donum) / 4) * euler(0, -1.3, 0), 0.2)
  3885. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  3886. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0.4, 1.57, 0), 0.2)
  3887. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(-0.2, -1.57, 0), 0.2)
  3888. else
  3889. wld1.C0 = clerp(wld1.C0, euler(1.57, 0, 0) * cf(0, 1, 0), 0.2)
  3890. Neck.C0 = clerp(Neck.C0, necko * euler(0.4, 0, 0), 0.2)
  3891. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, 0), 0.2)
  3892. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.2, 0, 0.4) * euler(0, 0, 0), 0.2)
  3893. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  3894. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.3, 0, -0.2), 0.2)
  3895. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  3896. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0.4, 1.57, 0), 0.2)
  3897. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(-0.2, -1.57, 0), 0.2)
  3898. end
  3899. end
  3900. else
  3901. if torvel < 1 and hitfloor ~= nil then
  3902. Anim = "Idle"
  3903. if attack == false then
  3904. if Mode == "Dynamic Blade" then
  3905. wld1.C0 = clerp(wld1.C0, euler(1.6, 0, 0) * cf(0, 1.1, 0.2), 0.2)
  3906. Neck.C0 = clerp(Neck.C0, necko * euler(0.1, 0, 0) * euler(0, 0, -0.5), 0.2)
  3907. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.2) * euler(0, 0, 0.5), 0.2)
  3908. RW.C0 = clerp(RW.C0, cf(0.6, 0.5, -0.6) * euler(1.2 + (donum) / 4, 0, -0.6 - (donum) / 4) * euler(0, -1, 0), 0.2)
  3909. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  3910. LW.C0 = clerp(LW.C0, cf(-0.8, 0.5, -0.5) * euler(1 + (donum) / 4, 0, 0.4 - (donum) / 4) * euler(0, -0.8, 0), 0.2)
  3911. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  3912. RH.C0 = clerp(RH.C0, cf(1.1, -0.8, 0.1) * euler(0, 1.57, 0) * euler(0, -0.5, 0) * euler(0, 0, 0.1), 0.2)
  3913. LH.C0 = clerp(LH.C0, cf(-0.9, -1, 0) * euler(0, -1.57, 0) * euler(0, 0, 0) * euler(0, 0, 0.2), 0.2)
  3914. else
  3915. wld1.C0 = clerp(wld1.C0, euler(1.57, 0, 0) * cf(0, 1, 0), 0.2)
  3916. Neck.C0 = clerp(Neck.C0, necko * euler(0.1, 0, 0) * euler(0, 0, 0.5), 0.2)
  3917. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.2) * euler(0, 0, -0.5), 0.2)
  3918. if Mode == "Classic" then
  3919. RW.C0 = clerp(RW.C0, cf(1.1, 0.45, 0.3) * euler(1 - (donum) / 4, 0, 0.6 - (donum) / 4) * euler(0, 0.5, 0), 0.2)
  3920. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  3921. else
  3922. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(0.2 + (donum) / 4, 0, 0.4 + (donum) / 4) * euler(0, 0, 0), 0.2)
  3923. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  3924. end
  3925. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(0.6 + (donum) / 4, 0, -0.2 - (donum) / 4) * euler(0, -0.5, 0), 0.2)
  3926. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  3927. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0, 1.57, 0) * euler(0, 0.5, 0) * euler(0, 0, -0.4), 0.2)
  3928. LH.C0 = clerp(LH.C0, cf(-0.9, -0.8, -0.1) * euler(0, -1.57, 0) * euler(0, 0.5, 0) * euler(0, 0, 0.1), 0.2)
  3929. end
  3930. end
  3931. else
  3932. if 2 < torvel and torvel < 30 and hitfloor ~= nil then
  3933. Anim = "Walk"
  3934. walk = walk + 1
  3935. if 15 - 5 * Mvmt.Value <= walk then
  3936. walk = 0
  3937. if walkforw == true then
  3938. walkforw = false
  3939. else
  3940. if walkforw == false then
  3941. walkforw = true
  3942. end
  3943. end
  3944. end
  3945. if attack == false then
  3946. if Mode == "Dynamic Blade" then
  3947. wld1.C0 = clerp(wld1.C0, euler(1.6, 0, 0) * cf(0, 1.1, 0.2), 0.2)
  3948. Neck.C0 = clerp(Neck.C0, necko * euler(0.2 - (donum) / 5, 0, 0) * euler(0, 0, 0), 0.2)
  3949. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.2) * euler(0, 0, 0), 0.2)
  3950. RW.C0 = clerp(RW.C0, cf(0.6, 0.4, -0.6) * euler(0.5 + (donum) / 4, 0, -0.4 - (donum) / 4) * euler(0, -1, 0), 0.2)
  3951. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  3952. LW.C0 = clerp(LW.C0, cf(-0.8, 0.4, -0.5) * euler(0.6 + (donum) / 4, 0, 0.3 - (donum) / 4) * euler(0, -1.3, 0), 0.2)
  3953. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  3954. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0, 1.57, 0), 0.2)
  3955. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, -1.57, 0), 0.2)
  3956. else
  3957. wld1.C0 = clerp(wld1.C0, euler(1.57, 0, 0) * cf(0, 1, 0), 0.2)
  3958. Neck.C0 = clerp(Neck.C0, necko * euler(0.2 - (donum) / 5, 0, 0), 0.2)
  3959. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, 0), 0.2)
  3960. if Mode == "Classic" then
  3961. RW.C0 = clerp(RW.C0, cf(1.45, 0.5, 0.2) * euler(0.8 - (donum) / 4, 0, 0.2 - (donum) / 4) * euler(0, 0, 0), 0.2)
  3962. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  3963. else
  3964. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(0.2 + (donum) / 5, 0, 0.2) * euler(0, 0, 0), 0.2)
  3965. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  3966. end
  3967. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.4 + (donum) / 3, 0, -0.4 + (donum) / 3), 0.2)
  3968. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  3969. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0, 1.57, 0), 0.2)
  3970. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, -1.57, 0), 0.2)
  3971. end
  3972. end
  3973. else
  3974. if 30 <= torvel and hitfloor ~= nil then
  3975. Anim = "Run"
  3976. if attack == false then
  3977. if Mode == "Dynamic Blade" then
  3978. wld1.C0 = clerp(wld1.C0, euler(1.6, 0, 0) * cf(0, 1.1, 0.2), 0.2)
  3979. Neck.C0 = clerp(Neck.C0, necko * euler(0.2 - (donum) / 5, 0, 0) * euler(0, 0, 0), 0.2)
  3980. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.2) * euler(0, 0, 0), 0.2)
  3981. RW.C0 = clerp(RW.C0, cf(0.6, 0.4, -0.6) * euler(0.5 + (donum) / 4, 0, -0.4 - (donum) / 4) * euler(0, -1, 0), 0.2)
  3982. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  3983. LW.C0 = clerp(LW.C0, cf(-0.8, 0.4, -0.5) * euler(0.6 + (donum) / 4, 0, 0.3 - (donum) / 4) * euler(0, -1.3, 0), 0.2)
  3984. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  3985. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0, 1.57, 0), 0.2)
  3986. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, -1.57, 0), 0.2)
  3987. else
  3988. wld1.C0 = clerp(wld1.C0, euler(1.57, 0, 0) * cf(0, 1, 0), 0.2)
  3989. Neck.C0 = clerp(Neck.C0, necko * euler(0.2 - (donum) / 5, 0, 0), 0.2)
  3990. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, 0), 0.2)
  3991. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(0.2 + (donum) / 3, 0, 0.5 - (donum) / 3), 0.2)
  3992. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  3993. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.4 + (donum) / 3, 0, -0.4 + (donum) / 3), 0.2)
  3994. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  3995. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0, 1.57, 0), 0.2)
  3996. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, -1.57, 0), 0.2)
  3997. end
  3998. end
  3999. end
  4000. end
  4001. end
  4002. end
  4003. end
  4004. end
  4005. if 0 < #Effects then
  4006. for e = 1, #Effects do
  4007. if Effects[e] ~= nil then
  4008. local Thing = Effects[e]
  4009. if Thing ~= nil then
  4010. local Part = Thing[1]
  4011. local Mode = Thing[2]
  4012. local Delay = Thing[3]
  4013. local IncX = Thing[4]
  4014. local IncY = Thing[5]
  4015. local IncZ = Thing[6]
  4016. if Thing[2] == "Shoot" then
  4017. local Look = Thing[1]
  4018. local hit, pos = rayCast(Thing[4], Look, 15, Character)
  4019. local mag = (Thing[4] - pos).magnitude
  4020. Thing[9] = Thing[9] + 0.5
  4021. Thing[5] = Thing[5] + 0.2
  4022. Thing[6] = Thing[6] + 0.2
  4023. MagicHead(BrickColor.new(NewCol2), CFrame.new((Thing[4] + pos) / 2, pos) * angles(1.57, 0, 0), Thing[9], mag * 5, Thing[9], -0.2, 0, -0.2, 0.1)
  4024. Thing[4] = Thing[4] + Look * 15
  4025. Thing[3] = Thing[3] - 1
  4026. if hit ~= nil then
  4027. Thing[3] = 0
  4028. Damagefunc(hit, Thing[5], Thing[6], Thing[7], "Normal", RootPart, 0, 2, (math.random(1, 5)), nil, nil, true)
  4029. ref = part(3, workspace, 0, 1, BrickColor.new("Really red"), "Reference", vt())
  4030. ref.Anchored = true
  4031. ref.CFrame = cf(pos)
  4032. MagicCircle(BrickColor.new(NewCol2), cf(pos), 5, 5, 5, 1, 1, 1, 0.07)
  4033. so("300916057", ref, 1, 2)
  4034. game:GetService("Debris"):AddItem(ref, 1)
  4035. end
  4036. if Thing[3] <= 0 then
  4037. table.remove(Effects, e)
  4038. end
  4039. end
  4040. do
  4041. if Thing[2] == "Shoot2" then
  4042. local Look = Thing[1]
  4043. local hit, pos = rayCast(Thing[4], Look, 3, Character)
  4044. local mag = (Thing[4] - pos).magnitude
  4045. Thing[9] = Thing[9] + 0.5
  4046. Thing[5] = Thing[5] + 0.2
  4047. Thing[6] = Thing[6] + 0.2
  4048. MagicCircle(BrickColor.new(NewCol2), CFrame.new((Thing[4] + pos) / 2, pos), 25, 25, 25, -5, -5, -5, 0.2)
  4049. Thing[4] = Thing[4] + Look * 3
  4050. Thing[3] = Thing[3] - 1
  4051. if hit ~= nil then
  4052. Thing[3] = 0
  4053. ref = part(3, workspace, 0, 1, BrickColor.new("Really red"), "Reference", vt())
  4054. ref.Anchored = true
  4055. ref.CFrame = cf(pos)
  4056. MagniDamage(ref, 10, 6, 8, math.random(15, 20), "Knockdown2", ref, 0, 1, (math.random(4, 6)), nil, nil, true)
  4057. MagicCircle(BrickColor.new(NewCol2), cf(pos), 25, 25, 25, 5, 5, 5, 0.1)
  4058. MagicCircle(BrickColor.new(NewCol2), cf(pos), 10, 10, 10, 15, 15, 15, 0.08)
  4059. so("300916057", ref, 1, 1.5)
  4060. game:GetService("Debris"):AddItem(ref, 1)
  4061. end
  4062. if Thing[3] <= 0 then
  4063. table.remove(Effects, e)
  4064. end
  4065. end
  4066. do
  4067. do
  4068. if Thing[2] == "CylinderClang" then
  4069. if Thing[3] <= 1 then
  4070. Thing[1].CFrame = Thing[1].CFrame * CFrame.new(0, 2.5 * Thing[5], 0) * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0)
  4071. Thing[7] = Thing[1].CFrame
  4072. effect("New Yeller", 0, Thing[8], Thing[7])
  4073. Thing[8] = Thing[7]
  4074. Thing[3] = Thing[3] + Thing[4]
  4075. else
  4076. Part.Parent = nil
  4077. table.remove(Effects, e)
  4078. end
  4079. end
  4080. if Thing[2] == "showDamage" then
  4081. if Thing[6] < Thing[5] then
  4082. Thing[6] = Thing[6] + 1
  4083. else
  4084. if Thing[6] < Thing[7] then
  4085. Thing[4].position = Thing[4].position + vt(0, -0.2, 0)
  4086. Thing[6] = Thing[6] + 1
  4087. else
  4088. if Thing[6] < Thing[8] then
  4089. Thing[6] = Thing[6] + 1
  4090. else
  4091. if Thing[6] < Thing[9] then
  4092. Thing[6] = Thing[6] + 1
  4093. Thing[4].position = Thing[4].position + vt(0, 0.2, 0)
  4094. Thing[3].TextStrokeTransparency = Thing[3].TextStrokeTransparency + 0.1
  4095. Thing[3].TextTransparency = Thing[3].TextTransparency + 0.1
  4096. else
  4097. Thing[1].Parent = nil
  4098. table.remove(Effects, e)
  4099. end
  4100. end
  4101. end
  4102. end
  4103. end
  4104. if Thing[2] ~= "Shoot" and Thing[2] ~= "DecreaseStat" and Thing[2] ~= "showDamage" and Thing[2] ~= "Shoot2" then
  4105. if Thing[1].Transparency <= 1 then
  4106. if Thing[2] == "Block1" then
  4107. Thing[1].CFrame = Thing[1].CFrame * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  4108. Mesh = Thing[7]
  4109. Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6])
  4110. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  4111. else
  4112. if Thing[2] == "Block2" then
  4113. Thing[1].CFrame = Thing[1].CFrame
  4114. Mesh = Thing[7]
  4115. Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6])
  4116. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  4117. else
  4118. if Thing[2] == "Block3" then
  4119. Thing[8].C0 = euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) * Thing[9]
  4120. Mesh = Thing[7]
  4121. Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6])
  4122. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  4123. else
  4124. if Thing[2] == "Cylinder" then
  4125. Mesh = Thing[7]
  4126. Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6])
  4127. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  4128. else
  4129. if Thing[2] == "Cylinder2" then
  4130. Thing[1].CFrame = Thing[1].CFrame * cf(0, Thing[8], 0)
  4131. Mesh = Thing[7]
  4132. Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6])
  4133. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  4134. else
  4135. if Thing[2] == "Blood" then
  4136. Mesh = Thing[7]
  4137. Thing[1].CFrame = Thing[1].CFrame * cf(0, 0.5, 0)
  4138. Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6])
  4139. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  4140. else
  4141. if Thing[2] == "Elec" then
  4142. Mesh = Thing[10]
  4143. Mesh.Scale = Mesh.Scale + vt(Thing[7], Thing[8], Thing[9])
  4144. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  4145. else
  4146. if Thing[2] == "Disappear" then
  4147. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  4148. end
  4149. end
  4150. end
  4151. end
  4152. end
  4153. end
  4154. end
  4155. end
  4156. else
  4157. Part.Parent = nil
  4158. table.remove(Effects, e)
  4159. end
  4160. end
  4161. -- DECOMPILER ERROR at PC11212: LeaveBlock: unexpected jumping out DO_STMT
  4162.  
  4163. -- DECOMPILER ERROR at PC11212: LeaveBlock: unexpected jumping out DO_STMT
  4164.  
  4165. -- DECOMPILER ERROR at PC11212: LeaveBlock: unexpected jumping out IF_THEN_STMT
  4166.  
  4167. -- DECOMPILER ERROR at PC11212: LeaveBlock: unexpected jumping out IF_STMT
  4168.  
  4169. -- DECOMPILER ERROR at PC11212: LeaveBlock: unexpected jumping out IF_THEN_STMT
  4170.  
  4171. -- DECOMPILER ERROR at PC11212: LeaveBlock: unexpected jumping out IF_STMT
  4172.  
  4173. end
  4174. end
  4175. end
  4176. end
  4177. end
  4178. end
  4179. end
  4180. fenbarmana2:TweenSize((UDim2.new(0.4, 0, -4 * mana.Value / 100, 0)), nil, 1, 0.4, true)
  4181. fenbarmana4.Text = "Mana(" .. mana.Value .. ")"
  4182. fenbarhp2.BackgroundColor3 = Color3.new(Humanoid.Health / Humanoid.MaxHealth, 0, 0)
  4183. fenbarhp2:TweenSize((UDim2.new(Humanoid.Health / Humanoid.MaxHealth, 0, 1, 0)), nil, 1, 0.4, true)
  4184. fenbarhp3.Text = "(" .. math.floor(Humanoid.Health) .. ")"
  4185. fenbarblock2:TweenSize((UDim2.new(0.4, 0, -4 * (overload) / 100, 0)), nil, 1, 0.4, true)
  4186. fenbarblock3.Text = "Overload(" .. overload .. ")"
  4187. fenbarmove1b:TweenSize((UDim2.new(1 * cooldowns[1] / cooldownmax, 0, 1, 0)), nil, 1, 0.4, true)
  4188. fenbarmove2b:TweenSize((UDim2.new(1 * cooldowns[2] / cooldownmax, 0, 1, 0)), nil, 1, 0.4, true)
  4189. fenbarmove3b:TweenSize((UDim2.new(1 * cooldowns[3] / cooldownmax, 0, 1, 0)), nil, 1, 0.4, true)
  4190. fenbarmove4b:TweenSize((UDim2.new(1 * cooldowns[4] / cooldownmax, 0, 1, 0)), nil, 1, 0.4, true)
  4191. for _,c in pairs(Decrease:children()) do
  4192. if (c:findFirstChild("Duration")) ~= nil then
  4193. c.Duration.Value = c.Duration.Value - 1
  4194. if c.Duration.Value <= 0 then
  4195. c.Parent = nil
  4196. end
  4197. end
  4198. if c.Name == "DecreaseAtk" then
  4199. decreaseatk = decreaseatk + c.Value
  4200. else
  4201. if c.Name == "DecreaseDef" then
  4202. decreasedef = decreasedef + c.Value
  4203. else
  4204. if c.Name == "DecreaseMvmt" then
  4205. decreasemvmt = decreasemvmt + c.Value
  4206. end
  4207. end
  4208. end
  4209. end
  4210. Atk.Value = 1 - (decreaseatk)
  4211. if Atk.Value <= 0 then
  4212. Atk.Value = 0
  4213. end
  4214. Def.Value = 1 - (decreasedef)
  4215. if Def.Value <= 0 then
  4216. Def.Value = 0.01
  4217. end
  4218. Mvmt.Value = 1 - (decreasemvmt)
  4219. if Mvmt.Value <= 0 then
  4220. Mvmt.Value = 0
  4221. end
  4222. decreaseatk = 0
  4223. decreasedef = 0
  4224. decreasemvmt = 0
  4225. AtkVal = Atk.Value * 100
  4226. AtkVal = math.floor(AtkVal)
  4227. AtkVal = AtkVal / 100
  4228. fenbardamage.Text = "Damage\n(" .. AtkVal .. ")"
  4229. DefVal = Def.Value * 100
  4230. DefVal = math.floor(DefVal)
  4231. DefVal = DefVal / 100
  4232. fenbardef.Text = "Defense\n(" .. DefVal .. ")"
  4233. MvmtVal = Mvmt.Value * 100
  4234. MvmtVal = math.floor(MvmtVal)
  4235. MvmtVal = MvmtVal / 100
  4236. if Rooted.Value == true then
  4237. MvmtVal = 0
  4238. end
  4239. fenbarmove.Text = "Walkspeed\n(" .. MvmtVal .. ")"
  4240. if StunT.Value <= Stun.Value then
  4241. fenbarstun2:TweenSize((UDim2.new(0.4, 0, -4, 0)), nil, 1, 0.4, true)
  4242. else
  4243. fenbarstun2:TweenSize((UDim2.new(0.4, 0, -4 * Stun.Value / StunT.Value, 0)), nil, 1, 0.4, true)
  4244. end
  4245. fenbarstun3.Text = "Stun(" .. Stun.Value .. ")"
  4246. if 100 <= mana.Value then
  4247. mana.Value = 100
  4248. else
  4249. if mananum <= manainc then
  4250. mananum = mananum + 1
  4251. else
  4252. mananum = 0
  4253. mana.Value = mana.Value + 1
  4254. end
  4255. end
  4256. for i = 1, #cooldowns do
  4257. if cooldownmax <= cooldowns[i] then
  4258. cooldowns[i] = cooldownmax
  4259. else
  4260. cooldowns[i] = cooldowns[i] + cooldownsadd[i]
  4261. end
  4262. end
  4263. -- DECOMPILER ERROR at PC11594: LeaveBlock: unexpected jumping out DO_STMT
  4264.  
  4265. -- DECOMPILER ERROR at PC11594: LeaveBlock: unexpected jumping out DO_STMT
  4266.  
  4267. -- DECOMPILER ERROR at PC11594: LeaveBlock: unexpected jumping out IF_ELSE_STMT
  4268.  
  4269. -- DECOMPILER ERROR at PC11594: LeaveBlock: unexpected jumping out IF_STMT
  4270.  
  4271. end
  4272. end
  4273. end
  4274. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement