Dark_EccentricYT

Untitled

Feb 25th, 2017
968
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 138.75 KB | None | 0 0
  1. Player = game:GetService("Players").LocalPlayer
  2. Character = Player.Character
  3. PlayerGui = Player.PlayerGui
  4. Backpack = Player.Backpack
  5. Torso = Character.Torso
  6. Head = Character.Head
  7. Humanoid = Character.Humanoid
  8. LeftArm = Character["Left Arm"]
  9. LeftLeg = Character["Left Leg"]
  10. RightArm = Character["Right Arm"]
  11. RightLeg = Character["Right Leg"]
  12. LS = Torso["Left Shoulder"]
  13. LH = Torso["Left Hip"]
  14. RS = Torso["Right Shoulder"]
  15. RH = Torso["Right Hip"]
  16. Neck = Torso.Neck
  17. it = Instance.new
  18. vt = Vector3.new
  19. cf = CFrame.new
  20. euler = CFrame.fromEulerAnglesXYZ
  21. angles = CFrame.Angles
  22. necko = cf(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  23. necko2 = cf(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  24. LHC0 = cf(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  25. LHC1 = cf(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  26. RHC0 = cf(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  27. RHC1 = cf(0.5, 1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  28. RootPart = Character.HumanoidRootPart
  29. RootJoint = RootPart.RootJoint
  30. RootCF = euler(-1.57, 0, 3.14)
  31. attack = false
  32. attackdebounce = false
  33. MMouse = nil
  34. combo = 0
  35. apierce = false
  36. doing2s = false
  37. msprintnum = 0
  38. sprint = false
  39. stopwalk = false
  40. sprinthit = false
  41. lastskill = nil
  42. iscombo = false
  43. local hitfloor, posfloor = nil, nil
  44. local idle = 0
  45. local Anim = "Idle"
  46. local Effects = {}
  47. local Weapon = {}
  48. local Welds = {}
  49. local decreaseatk = 0
  50. local decreasedef = 0
  51. local decreasemvmt = 0
  52. local GuardStance = false
  53. local Target = nil
  54. local manualguardend = false
  55. local lastcombo = nil
  56. local prop = Instance.new("RocketPropulsion")
  57. local move1 = "(Z)\nHonor"
  58. local move2 = "(X)\nAssault Pierce"
  59. local move3 = "(C)\nSwipe"
  60. local move4 = "(V)\nNeedle Storm"
  61. local cooldowns = {}
  62. local cooldown1 = 0
  63. table.insert(cooldowns, cooldown1)
  64. local cooldown2 = 0
  65. table.insert(cooldowns, cooldown2)
  66. local cooldown3 = 0
  67. table.insert(cooldowns, cooldown3)
  68. local cooldown4 = 0
  69. table.insert(cooldowns, cooldown4)
  70. local cooldownsadd = {}
  71. local cooldownadd1 = 0.35
  72. table.insert(cooldownsadd, cooldownadd1)
  73. local cooldownadd2 = 0.26
  74. table.insert(cooldownsadd, cooldownadd2)
  75. local cooldownadd3 = 0.17
  76. table.insert(cooldownsadd, cooldownadd3)
  77. local cooldownadd4 = 0.06
  78. table.insert(cooldownsadd, cooldownadd4)
  79. local cooldownmax = 100
  80. player = nil
  81. RSH = nil
  82. RW = Instance.new("Motor")
  83. LW = Instance.new("Motor")
  84. RW.Name = "Right Shoulder"
  85. LW.Name = "Left Shoulder"
  86. LH = Torso["Left Hip"]
  87. RH = Torso["Right Hip"]
  88. TorsoColor = Torso.BrickColor
  89. TorsoRed = TorsoColor.Color.r
  90. TorsoGreen = TorsoColor.Color.g
  91. NewCol = Color3.new(1, 1, 1)
  92. NewCol2 = Color3.new(1, 1, 1)
  93. if Player:findFirstChild("Color1") ~= nil then
  94. NewCol = Player.Color1.Value
  95. end
  96. if Player:findFirstChild("Color2") ~= nil then
  97. NewCol2 = Player.Color2.Value
  98. end
  99. print(BrickColor.new(NewCol))
  100. local mdec = Instance.new("NumberValue", Decrease)
  101. mdec.Name = "DecreaseDef"
  102. mdec.Value = 0.4
  103. local mdec2 = Instance.new("NumberValue", Decrease)
  104. mdec2.Name = "DecreaseMvmt"
  105. mdec2.Value = 0.1
  106. local Animate = Humanoid.Animator
  107. local canjump = true
  108. removeControl = function()
  109. canjump = false
  110. end
  111.  
  112. resumeControl = function()
  113. canjump = true
  114. end
  115.  
  116. Player.Character.Humanoid.Changed:connect(function()
  117. if canjump == false then
  118. Player.Character.Humanoid.Jump = false
  119. end
  120. end
  121. )
  122. ArtificialHB = Instance.new("BindableEvent", script)
  123. ArtificialHB.Name = "Heartbeat"
  124.  
  125. script:WaitForChild("Heartbeat")
  126.  
  127. frame = 1 / 40
  128. tf = 0
  129. allowframeloss = false
  130. tossremainder = false
  131. lastframe = tick()
  132. script.Heartbeat:Fire()
  133.  
  134. game:GetService("RunService").Heartbeat:connect(function(s, p)
  135. tf = tf + s
  136. if tf >= frame then
  137. if allowframeloss then
  138. script.Heartbeat:Fire()
  139. lastframe = tick()
  140. else
  141. for i = 1, math.floor(tf / frame) do
  142. script.Heartbeat:Fire()
  143. end
  144. lastframe = tick()
  145. end
  146. if tossremainder then
  147. tf = 0
  148. else
  149. tf = tf - frame * math.floor(tf / frame)
  150. end
  151. end
  152. end)
  153.  
  154. function swait(num)
  155. if num == 0 or num == nil then
  156. ArtificialHB.Event:wait()
  157. else
  158. for i = 0, num do
  159. ArtificialHB.Event:wait()
  160. end
  161. end
  162. end
  163.  
  164. if Character:findFirstChild("Gavlonius Wheel", true) ~= nil then
  165. Character:findFirstChild("Gavlonius Wheel", true).Parent = nil
  166. end
  167. if Player.PlayerGui:findFirstChild("WeaponGUI", true) ~= nil then
  168. Player.PlayerGui:findFirstChild("WeaponGUI", true).Parent = nil
  169. end
  170. if Character:findFirstChild("Stats", true) ~= nil then
  171. Character:findFirstChild("Stats", true).Parent = nil
  172. end
  173. local Stats = Instance.new("BoolValue")
  174. Stats.Name = "Stats"
  175. Stats.Parent = Character
  176. local Atk = Instance.new("NumberValue")
  177. Atk.Name = "Damage"
  178. Atk.Parent = Stats
  179. Atk.Value = 1
  180. local Def = Instance.new("NumberValue")
  181. Def.Name = "Defense"
  182. Def.Parent = Stats
  183. Def.Value = 1
  184. local Mvmt = Instance.new("NumberValue")
  185. Mvmt.Name = "Movement"
  186. Mvmt.Parent = Stats
  187. Mvmt.Value = 1
  188. local Block = Instance.new("BoolValue")
  189. Block.Name = "Block"
  190. Block.Parent = Stats
  191. Block.Value = false
  192. local Stun = Instance.new("NumberValue")
  193. Stun.Name = "Stun"
  194. Stun.Parent = Stats
  195. Stun.Value = 0
  196. local StunT = Instance.new("NumberValue")
  197. StunT.Name = "StunThreshold"
  198. StunT.Parent = Stats
  199. StunT.Value = 100
  200. local Rooted = Instance.new("BoolValue")
  201. Rooted.Name = "Rooted"
  202. Rooted.Parent = Stats
  203. Rooted.Value = false
  204. local Stunned = Instance.new("BoolValue")
  205. Stunned.Name = "Stunned"
  206. Stunned.Parent = Stats
  207. Stunned.Value = false
  208. local Stagger = Instance.new("BoolValue")
  209. Stagger.Name = "Stagger"
  210. Stagger.Parent = Stats
  211. Stagger.Value = false
  212. local StaggerHit = Instance.new("BoolValue")
  213. StaggerHit.Name = "StaggerHit"
  214. StaggerHit.Parent = Stats
  215. StaggerHit.Value = false
  216. local RecentEnemy = Instance.new("ObjectValue")
  217. RecentEnemy.Name = "RecentEnemy"
  218. RecentEnemy.Parent = Stats
  219. RecentEnemy.Value = nil
  220. local Decrease = Instance.new("BoolValue")
  221. Decrease.Name = "Decrease"
  222. Decrease.Parent = Stats
  223. Decrease.Value = false
  224. local passive = Instance.new("NumberValue", Decrease)
  225. passive.Name = "DecreaseMvmt"
  226. passive.Value = 0
  227. local mana = Instance.new("NumberValue")
  228. mana.Name = "Mana"
  229. mana.Parent = Stats
  230. mana.Value = 0
  231. NoOutline = function(Part)
  232. Part.TopSurface = 10
  233. end
  234.  
  235. part = function(formfactor, parent, reflectance, transparency, brickcolor, name, size)
  236. local fp = it("Part")
  237. fp.formFactor = formfactor
  238. fp.Parent = parent
  239. fp.Reflectance = reflectance
  240. fp.Transparency = transparency
  241. fp.CanCollide = false
  242. fp.Locked = true
  243. fp.BrickColor = brickcolor
  244. fp.Name = name
  245. fp.Size = size
  246. fp.Position = Torso.Position
  247. NoOutline(fp)
  248. fp.Material = "SmoothPlastic"
  249. fp:BreakJoints()
  250. return fp
  251. end
  252.  
  253. mesh = function(Mesh, part, meshtype, meshid, offset, scale)
  254. local mesh = it(Mesh)
  255. mesh.Parent = part
  256. if Mesh == "SpecialMesh" then
  257. mesh.MeshType = meshtype
  258. if meshid ~= "nil" then
  259. mesh.MeshId = "http://www.roblox.com/asset/?id=" .. meshid
  260. end
  261. end
  262. mesh.Offset = offset
  263. mesh.Scale = scale
  264. return mesh
  265. end
  266.  
  267. weld = function(parent, part0, part1, c0)
  268. local weld = it("Motor")
  269. weld.Parent = parent
  270. weld.Part0 = part0
  271. weld.Part1 = part1
  272. weld.C0 = c0
  273. return weld
  274. end
  275.  
  276. gui = function(GuiType, parent, text, backtrans, backcol, pos, size)
  277. local gui = it(GuiType)
  278. gui.Parent = parent
  279. gui.Text = text
  280. gui.BackgroundTransparency = backtrans
  281. gui.BackgroundColor3 = backcol
  282. gui.SizeConstraint = "RelativeXY"
  283. gui.TextXAlignment = "Center"
  284. gui.TextYAlignment = "Center"
  285. gui.Position = pos
  286. gui.Size = size
  287. gui.Font = "SourceSans"
  288. gui.FontSize = "Size14"
  289. gui.TextWrapped = false
  290. gui.TextStrokeTransparency = 0
  291. gui.TextColor = BrickColor.new("White")
  292. return gui
  293. end
  294.  
  295. local Color1 = Torso.BrickColor
  296. local fengui = it("GuiMain")
  297. fengui.Parent = Player.PlayerGui
  298. fengui.Name = "WeaponGUI"
  299. local fenframe = it("Frame")
  300. fenframe.Parent = fengui
  301. fenframe.BackgroundColor3 = Color3.new(255, 255, 255)
  302. fenframe.BackgroundTransparency = 1
  303. fenframe.BorderColor3 = Color3.new(17, 17, 17)
  304. fenframe.Size = UDim2.new(0.1, 0, 0.1, 0)
  305. fenframe.Position = UDim2.new(0.95, 0, 0.7, 0)
  306. local fenframe2 = it("Frame")
  307. fenframe2.Parent = fengui
  308. fenframe2.BackgroundColor3 = Color3.new(255, 255, 255)
  309. fenframe2.BackgroundTransparency = 1
  310. fenframe2.BorderColor3 = Color3.new(17, 17, 17)
  311. fenframe2.Size = UDim2.new(0.2, 0, 0.1, 0)
  312. fenframe2.Position = UDim2.new(0.4, 0, 0.85, 0)
  313. local fenframe3 = it("Frame")
  314. fenframe3.Parent = fengui
  315. fenframe3.BackgroundColor3 = Color3.new(255, 255, 255)
  316. fenframe3.BackgroundTransparency = 1
  317. fenframe3.BorderColor3 = Color3.new(17, 17, 17)
  318. fenframe3.Size = UDim2.new(0.2, 0, 0.2, 0)
  319. fenframe3.Position = UDim2.new(0.8, 0, 0.8, 0)
  320. local fenframe4 = it("Frame")
  321. fenframe4.Parent = fengui
  322. fenframe4.BackgroundColor3 = Color3.new(255, 255, 255)
  323. fenframe4.BackgroundTransparency = 1
  324. fenframe4.BorderColor3 = Color3.new(17, 17, 17)
  325. fenframe4.Size = UDim2.new(0.1, 0, 0.1, 0)
  326. fenframe4.Position = UDim2.new(0, 0, 0.7, 0)
  327. local pressedf = false
  328. local fenframe5 = it("Frame")
  329. fenframe5.Parent = fengui
  330. fenframe5.BackgroundColor3 = Color3.new(0, 0, 0)
  331. fenframe5.BackgroundTransparency = 1
  332. fenframe5.BorderColor3 = Color3.new(0, 0, 0)
  333. fenframe5.Size = UDim2.new(1, 0, 1, 0)
  334. fenframe5.Position = UDim2.new(0, 0, 0, 0)
  335. fenframe5.ZIndex = 2
  336. local tellbar = gui("TextLabel", fenframe5, "Press \'F\' to equip your weapon.", 1, Color3.new(0, 0, 0), UDim2.new(0.25, 0, 0.25, 0), UDim2.new(0.5, 0, 0.5, 0))
  337. tellbar.Font = "Arial"
  338. tellbar.TextScaled = true
  339. tellbar.TextTransparency = 1
  340. tellbar.TextStrokeTransparency = 1
  341. tellbar.ZIndex = 2
  342. fnumb = 0
  343. fenbarmana1 = gui("TextLabel", fenframe, "", 0, Color3.new(0, 0, 0), UDim2.new(0, 0, 0, 0), UDim2.new(0.4, 0, -4, 0))
  344. fenbarmana2 = gui("TextLabel", fenframe, "", 0, BrickColor.new(NewCol).Color, UDim2.new(0, 0, 0, 0), UDim2.new(0.4, 0, 0, 0))
  345. 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))
  346. 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))
  347. 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))
  348. 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))
  349. 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))
  350. fenbarhp2 = gui("TextLabel", fenbarhp1, "", 0, Color3.new(1, 0, 0), UDim2.new(0, 0, 0, 0), UDim2.new(0, 0, 1, 0))
  351. fenbarhp3 = gui("TextLabel", fenbarhp1, "(100)", 1, Color3.new(0, 0, 0), UDim2.new(0, 0, 0, 0), UDim2.new(1, 0, 1, 0))
  352. fenbarstun1 = gui("TextLabel", fenframe4, "", 0, Color3.new(0, 0, 0), UDim2.new(0.2, 0, 0, 0), UDim2.new(0.4, 0, -4, 0))
  353. 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))
  354. 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))
  355. 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))
  356. fenbarmove1.ZIndex = 2
  357. fenbarmove1b = gui("TextLabel", fenbarmove1, "", 0.55, BrickColor.new(NewCol).Color, UDim2.new(0, 0, 0, 0), UDim2.new(0, 0, 1, 0))
  358. 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))
  359. fenbarmove2.ZIndex = 2
  360. fenbarmove2b = gui("TextLabel", fenbarmove2, "", 0.55, BrickColor.new(NewCol).Color, UDim2.new(0, 0, 0, 0), UDim2.new(0, 0, 1, 0))
  361. 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))
  362. fenbarmove3.ZIndex = 2
  363. fenbarmove3b = gui("TextLabel", fenbarmove3, "", 0.55, BrickColor.new(NewCol).Color, UDim2.new(0, 0, 0, 0), UDim2.new(0, 0, 1, 0))
  364. 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))
  365. fenbarmove4.ZIndex = 2
  366. fenbarmove4b = gui("TextLabel", fenbarmove4, "", 0.55, BrickColor.new(NewCol).Color, UDim2.new(0, 0, 0, 0), UDim2.new(0, 0, 1, 0))
  367. modelzorz = Instance.new("Model")
  368. modelzorz.Parent = Character
  369. modelzorz.Name = "Needle"
  370. local handle = part(3, modelzorz, 0, 1, BrickColor.new(NewCol2), "Handle", vt())
  371. local prt1 = part(3, modelzorz, 0, 1, BrickColor.new(NewCol2), "Part01", vt(0.2, 1.4, 0.2))
  372. local prt2 = part(3, modelzorz, 0, 1, BrickColor.new("Medium stone grey"), "Part02", vt(0.2, 1.6, 0.2))
  373. local prt3 = part(3, modelzorz, 0, 1, BrickColor.new("Medium stone grey"), "Part03", vt())
  374. local prt4 = part(3, modelzorz, 0, 1, BrickColor.new("Medium stone grey"), "Part04", vt())
  375. local prt5 = part(3, modelzorz, 0, 1, BrickColor.new("Medium stone grey"), "Part05", vt(0.2, 0.6, 0.6))
  376. local prt6 = part(3, modelzorz, 0, 1, BrickColor.new(NewCol), "Part06", vt())
  377. local prt7 = part(3, modelzorz, 0, 1, BrickColor.new(NewCol), "Part07", vt())
  378. local prt8 = part(3, modelzorz, 0, 1, BrickColor.new(NewCol), "Part08", vt(0.6, 0.6, 0.2))
  379. local prt9 = part(3, modelzorz, 0, 1, BrickColor.new(NewCol), "Part09", vt(0.6, 0.6, 0.2))
  380. local prt10 = part(3, modelzorz, 0, 1, BrickColor.new(NewCol), "Part10", vt())
  381. local prt11 = part(3, modelzorz, 0, 1, BrickColor.new(NewCol), "Part11", vt())
  382. local prt12 = part(3, modelzorz, 0, 1, BrickColor.new(NewCol), "Part12", vt())
  383. local prt13 = part(3, modelzorz, 0, 1, BrickColor.new(NewCol), "Part13", vt())
  384. local prt14 = part(3, modelzorz, 0, 1, BrickColor.new(NewCol), "Part14", vt())
  385. local prt15 = part(3, modelzorz, 0, 1, BrickColor.new(NewCol), "Part15", vt())
  386. local prt16 = part(3, modelzorz, 0, 1, BrickColor.new(NewCol), "Part16", vt())
  387. local prt17 = part(3, modelzorz, 0, 1, BrickColor.new(NewCol), "Part17", vt())
  388. local prt18 = part(3, modelzorz, 0, 1, BrickColor.new(NewCol), "Part18", vt())
  389. local prt19 = part(3, modelzorz, 0, 1, BrickColor.new(NewCol), "Part19", vt())
  390. local prt20 = part(3, modelzorz, 0, 1, BrickColor.new(NewCol), "Part20", vt())
  391. local prt21 = part(3, modelzorz, 0, 1, BrickColor.new(NewCol), "Part21", vt())
  392. local prt22 = part(3, modelzorz, 0, 1, BrickColor.new(NewCol), "Part22", vt())
  393. local prt23 = part(3, modelzorz, 0, 1, BrickColor.new(NewCol), "Part23", vt())
  394. local prt24 = part(3, modelzorz, 0, 1, BrickColor.new(NewCol), "Part24", vt())
  395. local prt25 = part(3, modelzorz, 0, 1, BrickColor.new(NewCol), "Part25", vt())
  396. local prt26 = part(3, modelzorz, 0, 1, BrickColor.new(NewCol), "Part26", vt())
  397. local prt27 = part(3, modelzorz, 0, 1, BrickColor.new(NewCol), "Part27", vt())
  398. local prt28 = part(3, modelzorz, 0, 1, BrickColor.new(NewCol), "Part28", vt())
  399. local wld1 = weld(prt1, prt1, handle, cf(0, 0, 0) * euler(0, 0, 0))
  400. local wld2 = weld(prt1, prt2, prt1, euler(0, 0, 0) * cf(0, 0.1, 0))
  401. local wld3 = weld(prt1, prt3, prt1, euler(0, 0, 0) * cf(0, 0.9, 0))
  402. local wld4 = weld(prt1, prt4, prt3, euler(0, 0, 0) * cf(0, 0.2, 0))
  403. local wld5 = weld(prt1, prt5, prt1, euler(0, 0, 0) * cf(0, -0.7, 0))
  404. local wld6 = weld(prt1, prt6, prt1, euler(0, 0, 0) * cf(0, -3.2, 0))
  405. local wld7 = weld(prt1, prt7, prt1, euler(0, 0, 0) * cf(0, -3.5, 0))
  406. local wld8 = weld(prt1, prt8, prt1, euler(0, math.rad(-90), 0) * cf(0, -0.76, 0))
  407. local wld9 = weld(prt1, prt9, prt1, euler(0, math.rad(90), 0) * cf(0, -0.76, 0))
  408. local wld10 = weld(prt1, prt10, prt1, euler(math.rad(-180), math.rad(0), math.rad(-90)) * cf(0, -0.9, 0))
  409. local wld11 = weld(prt1, prt11, prt1, euler(math.rad(90), math.rad(0), math.rad(-90)) * cf(0, -0.9, 0))
  410. local wld12 = weld(prt1, prt12, prt1, euler(0, 0, 0) * cf(0, -0.7, 0))
  411. local wld13 = weld(prt1, prt13, prt1, euler(math.rad(-90), 0, 1.57) * cf(0, -0.7, -0.225))
  412. local wld14 = weld(prt1, prt14, prt1, euler(math.rad(90), 0, -1.57) * cf(0, -0.7, 0.225))
  413. local wld15 = weld(prt1, prt15, prt1, euler(math.rad(-90), 0, 1.57) * cf(0, -0.7, -0.525))
  414. local wld16 = weld(prt1, prt16, prt1, euler(math.rad(90), 0, -1.57) * cf(0, -0.7, 0.525))
  415. local wld17 = weld(prt1, prt17, prt1, euler(math.rad(90), math.rad(45), math.rad(0)) * cf(-0.105, -0.7, 0.105))
  416. local wld18 = weld(prt1, prt18, prt1, euler(math.rad(-90), math.rad(-45), math.rad(0)) * cf(-0.105, -0.7, -0.105))
  417. local wld19 = weld(prt1, prt19, prt1, euler(math.rad(90), math.rad(-45), math.rad(0)) * cf(0.105, -0.7, 0.105))
  418. local wld20 = weld(prt1, prt20, prt1, euler(math.rad(-90), math.rad(45), math.rad(0)) * cf(0.105, -0.7, -0.105))
  419. local wld21 = weld(prt1, prt21, prt1, euler(math.rad(90), math.rad(135), math.rad(0)) * cf(-0.3, -0.7, -0.3))
  420. local wld22 = weld(prt1, prt22, prt1, euler(math.rad(90), math.rad(45), math.rad(0)) * cf(-0.3, -0.7, 0.3))
  421. local wld23 = weld(prt1, prt23, prt1, euler(math.rad(90), math.rad(-45), math.rad(0)) * cf(0.3, -0.7, 0.3))
  422. local wld24 = weld(prt1, prt24, prt1, euler(math.rad(90), math.rad(-135), math.rad(0)) * cf(0.3, -0.7, -0.3))
  423. local wld25 = weld(prt1, prt25, prt1, euler(math.rad(180), math.rad(-135), math.rad(180)) * cf(0.3, -0.775, 0.3))
  424. local wld26 = weld(prt1, prt26, prt1, euler(math.rad(180), math.rad(45), math.rad(-180)) * cf(-0.3, -0.775, -0.3))
  425. local wld27 = weld(prt1, prt27, prt1, euler(math.rad(180), math.rad(135), math.rad(-180)) * cf(-0.3, -0.775, 0.3))
  426. local wld28 = weld(prt1, prt28, prt1, euler(math.rad(-180), math.rad(-45), math.rad(-180)) * cf(0.3, -0.775, -0.3))
  427. num = 0
  428. num2 = 0
  429. num3 = 0
  430. num4 = 0
  431. num5 = 2
  432. function stickk(x, y) local weldd=Instance.new'Weld' weldd.Part0=x weldd.Part1=y local hit=x.Position local CJ=CFrame.new(hit) local C0=x.CFrame:inverse()*CJ local C1 =y.CFrame:inverse()*CJ weldd.C0=C0 weldd.C1=C1 weldd.Parent = x return weldd end it=Instance.new function nooutlinee(partt) partt.TopSurface,partt.BottomSurface,partt.LeftSurface,partt.RightSurface,partt.FrontSurface,partt.BackSurface = 10,10,10,10,10,10 end function partt(formfactor,parent,material,Shape,transparency,brickcolor,name,size) local fp=it("Part") fp.formFactor=formfactor fp.Parent=parent fp.Shape=Shape fp.Transparency=transparency fp.CanCollide=false fp.Locked=true fp.BrickColor=BrickColor.new(tostring(brickcolor)) fp.Name=name fp.Size=size nooutlinee(fp) fp.Material=material fp:BreakJoints() return fp end function meshh(Mesh,partt,meshtype,meshid,offset,scale) local meshh=it(Mesh) meshh.Parent=partt if Mesh=="SpecialMesh" then meshh.MeshType=meshtype meshh.MeshId=meshid end meshh.Offset=offset meshh.Scale=scale return meshh end function weldd(parent,part0,part1,c0,c1) local weldd=it("Weld") weldd.Parent=parent weldd.Part0=part0 weldd.Part1=part1 weldd.C0=c0 weldd.C1=c1 return weldd end function wpartt(formfactor,parent,material,reflectance,transparency,brickcolor,name,size) local fp=it("WedgePart") fp.formFactor=formfactor fp.Parent=parent fp.Transparency=transparency fp.Reflectance = reflectance fp.CanCollide=false fp.Locked=true fp.BrickColor=BrickColor.new(tostring(brickcolor)) fp.Name=name fp.Size=size nooutlinee(fp) fp.Material=material fp:BreakJoints() return fp end
  433. HANDLE=partt(Enum.FormFactor.Brick,modelzorz,Enum.Material.SmoothPlastic,Enum.PartType.Block,1,"Dusty Rose","Handle",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  434. HANDLEweldd=weldd(modelzorz,Character["Left Arm"],HANDLE,CFrame.new(0, 0, 0, -1, 0, 0, 0, 1, 0, 0, 0, -1),CFrame.new(0.0217590332, -0.691162109, 0.110282898, 0.043416772, -0.17276606, 0.984005868, 0.0291769188, -0.98429507, -0.174104139, 0.998630822, 0.0362692773, -0.0376941077))
  435. Part=partt(Enum.FormFactor.Brick,modelzorz,Enum.Material.SmoothPlastic,Enum.PartType.Block,0,"Bright red","Part",Vector3.new(1, 1, 1))
  436. Partweldd=weldd(modelzorz,HANDLE,Part,CFrame.new(0, 0, 0, 0.043416772, -0.17276606, 0.984005868, 0.0291769188, -0.98429507, -0.174104139, 0.998630822, 0.0362692773, -0.0376941077),CFrame.new(-0.000610351563, 0.000335693359, -4.14966583, 0.029236082, -0.984281838, -0.174168929, 0.998629391, 0.0363290943, -0.0376763903, 0.0434115939, -0.172828749, 0.983994961))
  437. meshh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(0.25, 0.150000006, 3.5))
  438. Part=partt(Enum.FormFactor.Brick,modelzorz,Enum.Material.SmoothPlastic,Enum.PartType.Block,0,"Dusty Rose","Part",Vector3.new(1, 0.200000003, 0.200000003))
  439. Partweldd=weldd(modelzorz,HANDLE,Part,CFrame.new(0, 0, 0, 0.043416772, -0.17276606, 0.984005868, 0.0291769188, -0.98429507, -0.174104139, 0.998630822, 0.0362692773, -0.0376941077),CFrame.new(0.000244140625, -0.000122070313, -7.62939453e-006, 0.043416772, -0.17276606, 0.984005868, 0.0291769188, -0.98429507, -0.174104139, 0.998630822, 0.0362692773, -0.0376941077))
  440. meshh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=122202439",Vector3.new(0, 0, 0),Vector3.new(10, 0.150000006, 0.150000006))
  441. Part=partt(Enum.FormFactor.Brick,modelzorz,Enum.Material.SmoothPlastic,Enum.PartType.Block,0,"Bright red","Part",Vector3.new(1, 1, 1))
  442. Partweldd=weldd(modelzorz,HANDLE,Part,CFrame.new(0, 0, 0, 0.043416772, -0.17276606, 0.984005868, 0.0291769188, -0.98429507, -0.174104139, 0.998630822, 0.0362692773, -0.0376941077),CFrame.new(0.000549316406, -0.000198364258, -2.00000763, -0.0292334612, 0.984271407, 0.174228504, -0.998629391, -0.0363291018, 0.0376763828, 0.0434133634, -0.172888324, 0.983984411))
  443. meshh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=18430887",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  444. Part=partt(Enum.FormFactor.Brick,modelzorz,Enum.Material.Neon,Enum.PartType.Block,0,"Bright red","Part",Vector3.new(1, 1, 1))
  445. Partweldd=weldd(modelzorz,HANDLE,Part,CFrame.new(0, 0, 0, 0.043416772, -0.17276606, 0.984005868, 0.0291769188, -0.98429507, -0.174104139, 0.998630822, 0.0362692773, -0.0376941077),CFrame.new(-0.000457763672, 0.000205993652, -2.19982147, 0.029236082, -0.984281838, -0.174168929, 0.998629391, 0.0363290943, -0.0376763903, 0.0434115939, -0.172828749, 0.983994961))
  446. meshh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(1, 0.5, 2))
  447. Part=partt(Enum.FormFactor.Brick,modelzorz,Enum.Material.SmoothPlastic,Enum.PartType.Block,0,"Bright red","Part",Vector3.new(1, 1, 1))
  448. Partweldd=weldd(modelzorz,HANDLE,Part,CFrame.new(0, 0, 0, 0.043416772, -0.17276606, 0.984005868, 0.0291769188, -0.98429507, -0.174104139, 0.998630822, 0.0362692773, -0.0376941077),CFrame.new(-0.000732421875, 0.000289916992, -3.19946289, 0.029236082, -0.984281838, -0.174168929, 0.998629391, 0.0363290943, -0.0376763903, 0.0434115939, -0.172828749, 0.983994961))
  449. meshh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(0.5, 0.25, 3))
  450. Part=partt(Enum.FormFactor.Brick,modelzorz,Enum.Material.SmoothPlastic,Enum.PartType.Block,0,"Dusty Rose","Part",Vector3.new(1, 0.200000003, 0.200000003))
  451. Partweldd=weldd(modelzorz,HANDLE,Part,CFrame.new(0, 0, 0, 0.043416772, -0.17276606, 0.984005868, 0.0291769188, -0.98429507, -0.174104139, 0.998630822, 0.0362692773, -0.0376941077),CFrame.new(-1.04981232, -0.000305175781, 2.28881836e-005, 0.043416772, -0.17276606, 0.984005868, 0.0291769188, -0.98429507, -0.174104139, 0.998630822, 0.0362692773, -0.0376941077))
  452. meshh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=122202439",Vector3.new(0, 0, 0),Vector3.new(5, 0.25, 0.25))
  453. Part=partt(Enum.FormFactor.Brick,modelzorz,Enum.Material.SmoothPlastic,Enum.PartType.Block,0,"Bright red","Part",Vector3.new(1, 1, 1))
  454. Partweldd=weldd(modelzorz,HANDLE,Part,CFrame.new(0, 0, 0, 0.043416772, -0.17276606, 0.984005868, 0.0291769188, -0.98429507, -0.174104139, 0.998630822, 0.0362692773, -0.0376941077),CFrame.new(-0.000427246094, 0.000259399414, -4.74980927, 0.029236082, -0.984281838, -0.174168929, 0.998629391, 0.0363290943, -0.0376763903, 0.0434115939, -0.172828749, 0.983994961))
  455. meshh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(0.25, 0.150000006, 3.5))
  456. Part=partt(Enum.FormFactor.Brick,modelzorz,Enum.Material.SmoothPlastic,Enum.PartType.Block,0,"Bright red","Part",Vector3.new(1, 1, 1))
  457. Partweldd=weldd(modelzorz,HANDLE,Part,CFrame.new(0, 0, 0, 0.043416772, -0.17276606, 0.984005868, 0.0291769188, -0.98429507, -0.174104139, 0.998630822, 0.0362692773, -0.0376941077),CFrame.new(0.000610351563, -2.00000763, 7.62939453e-005, -0.0292217657, 0.98427701, 0.174198776, 0.0433556251, -0.172861159, 0.983991742, 0.998632252, 0.0363064595, -0.0376226157))
  458. meshh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=18430887",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  459. Part=partt(Enum.FormFactor.Brick,modelzorz,Enum.Material.SmoothPlastic,Enum.PartType.Block,0,"Bright red","Part",Vector3.new(1, 1, 1))
  460. Partweldd=weldd(modelzorz,HANDLE,Part,CFrame.new(0, 0, 0, 0.043416772, -0.17276606, 0.984005868, 0.0291769188, -0.98429507, -0.174104139, 0.998630822, 0.0362692773, -0.0376941077),CFrame.new(-0.000793457031, 0.000274658203, -3.34963989, 0.029236082, -0.984281838, -0.174168929, 0.998629391, 0.0363290943, -0.0376763903, 0.0434115939, -0.172828749, 0.983994961))
  461. meshh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(0.5, 0.25, 3))
  462. Part=partt(Enum.FormFactor.Brick,modelzorz,Enum.Material.SmoothPlastic,Enum.PartType.Block,0,"Dusty Rose","Part",Vector3.new(1, 0.200000003, 0.200000003))
  463. Partweldd=weldd(modelzorz,HANDLE,Part,CFrame.new(0, 0, 0, 0.043416772, -0.17276606, 0.984005868, 0.0291769188, -0.98429507, -0.174104139, 0.998630822, 0.0362692773, -0.0376941077),CFrame.new(-1.04981232, -0.000305175781, 2.28881836e-005, 0.043416772, -0.17276606, 0.984005868, 0.0291769188, -0.98429507, -0.174104139, 0.998630822, 0.0362692773, -0.0376941077))
  464. meshh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=122202439",Vector3.new(0, 0, 0),Vector3.new(10, 0.200000003, 0.200000003))
  465. Part=partt(Enum.FormFactor.Brick,modelzorz,Enum.Material.SmoothPlastic,Enum.PartType.Block,0,"Bright red","Part",Vector3.new(1, 1, 1))
  466. Partweldd=weldd(modelzorz,HANDLE,Part,CFrame.new(0, 0, 0, 0.043416772, -0.17276606, 0.984005868, 0.0291769188, -0.98429507, -0.174104139, 0.998630822, 0.0362692773, -0.0376941077),CFrame.new(-0.000701904297, 0.000297546387, -4.34965515, 0.029236082, -0.984281838, -0.174168929, 0.998629391, 0.0363290943, -0.0376763903, 0.0434115939, -0.172828749, 0.983994961))
  467. meshh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(0.25, 0.150000006, 3.5))
  468. Part=partt(Enum.FormFactor.Brick,modelzorz,Enum.Material.SmoothPlastic,Enum.PartType.Block,0,"Dusty Rose","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  469. Partweldd=weldd(modelzorz,HANDLE,Part,CFrame.new(0, 0, 0, 0.043416772, -0.17276606, 0.984005868, 0.0291769188, -0.98429507, -0.174104139, 0.998630822, 0.0362692773, -0.0376941077),CFrame.new(0.999977112, -0.000152587891, -6.86645508e-005, 0.043416772, -0.17276606, 0.984005868, 0.0291769188, -0.98429507, -0.174104139, 0.998630822, 0.0362692773, -0.0376941077))
  470. meshh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=122202439",Vector3.new(0, 0, 0),Vector3.new(1, 0.200000003, 0.200000003))
  471. Part=partt(Enum.FormFactor.Brick,modelzorz,Enum.Material.SmoothPlastic,Enum.PartType.Block,0,"Bright red","Part",Vector3.new(1, 1, 1))
  472. Partweldd=weldd(modelzorz,HANDLE,Part,CFrame.new(0, 0, 0, 0.043416772, -0.17276606, 0.984005868, 0.0291769188, -0.98429507, -0.174104139, 0.998630822, 0.0362692773, -0.0376941077),CFrame.new(-2, -0.000228881836, -0.000671386719, 0.0434253477, -0.172819018, 0.983996212, -0.99862808, -0.0363551639, 0.0376860276, 0.0292604789, -0.984282613, -0.1741606))
  473. meshh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=18430887",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  474. Part=partt(Enum.FormFactor.Brick,modelzorz,Enum.Material.SmoothPlastic,Enum.PartType.Block,0,"Bright red","Part",Vector3.new(1, 1, 1))
  475. Partweldd=weldd(modelzorz,HANDLE,Part,CFrame.new(0, 0, 0, 0.043416772, -0.17276606, 0.984005868, 0.0291769188, -0.98429507, -0.174104139, 0.998630822, 0.0362692773, -0.0376941077),CFrame.new(-0.000610351563, 0.000381469727, -4.54944611, 0.029236082, -0.984281838, -0.174168929, 0.998629391, 0.0363290943, -0.0376763903, 0.0434115939, -0.172828749, 0.983994961))
  476. meshh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(0.25, 0.150000006, 3.5))
  477. Part=partt(Enum.FormFactor.Brick,modelzorz,Enum.Material.SmoothPlastic,Enum.PartType.Block,0,"Bright red","Part",Vector3.new(1, 1, 1))
  478. Partweldd=weldd(modelzorz,HANDLE,Part,CFrame.new(0, 0, 0, 0.043416772, -0.17276606, 0.984005868, 0.0291769188, -0.98429507, -0.174104139, 0.998630822, 0.0362692773, -0.0376941077),CFrame.new(-0.000366210938, 0.000274658203, -2.44970703, 0.029236082, -0.984281838, -0.174168929, 0.998629391, 0.0363290943, -0.0376763903, 0.0434115939, -0.172828749, 0.983994961))
  479. meshh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(0.75, 0.349999994, 2.5))
  480. Part=partt(Enum.FormFactor.Brick,modelzorz,Enum.Material.SmoothPlastic,Enum.PartType.Block,0,"Bright red","Part",Vector3.new(1, 1, 1))
  481. Partweldd=weldd(modelzorz,HANDLE,Part,CFrame.new(0, 0, 0, 0.043416772, -0.17276606, 0.984005868, 0.0291769188, -0.98429507, -0.174104139, 0.998630822, 0.0362692773, -0.0376941077),CFrame.new(-0.000427246094, 0.00023651123, -3.99962616, 0.029236082, -0.984281838, -0.174168929, 0.998629391, 0.0363290943, -0.0376763903, 0.0434115939, -0.172828749, 0.983994961))
  482. meshh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(0.25, 0.150000006, 3.5))
  483. Part=partt(Enum.FormFactor.Brick,modelzorz,Enum.Material.SmoothPlastic,Enum.PartType.Block,0,"Bright red","Part",Vector3.new(1, 1, 1))
  484. Partweldd=weldd(modelzorz,HANDLE,Part,CFrame.new(0, 0, 0, 0.043416772, -0.17276606, 0.984005868, 0.0291769188, -0.98429507, -0.174104139, 0.998630822, 0.0362692773, -0.0376941077),CFrame.new(-0.000579833984, 0.000205993652, -3.0497818, 0.029236082, -0.984281838, -0.174168929, 0.998629391, 0.0363290943, -0.0376763903, 0.0434115939, -0.172828749, 0.983994961))
  485. meshh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(0.5, 0.25, 3))
  486. local handlewld = weld(handle, handle, Torso, euler(-1.8, 0, 0) * cf(-1.1, 1, 0.65))
  487. local wing1 = part(3, nil, 0, 1, BrickColor.new(NewCol), "Wing", vt())
  488. local wmsh1 = mesh("SpecialMesh", wing1, "FileMesh", "92135508", vt(0, 0, 0), vt(0.8, 0.8, 0.8))
  489. local wing2 = part(3, nil, 0, 1, BrickColor.new(NewCol), "Wing", vt())
  490. local wmsh2 = mesh("SpecialMesh", wing2, "FileMesh", "92135524", vt(0, 0, 0), vt(0.8, 0.8, 0.8))
  491. local nr = NumberRange.new
  492. local ns = NumberSequence.new
  493. local cs = ColorSequence.new
  494. local parti = it("ParticleEmitter")
  495. parti.Color = cs(NewCol, NewCol)
  496. parti.LightEmission = 0
  497. parti.Size = ns(1)
  498. parti.Texture = "http://www.roblox.com/asset/?id=242842525"
  499. sizeseq = ns({NumberSequenceKeypoint.new(0, 0.5), NumberSequenceKeypoint.new(1, 0.2)})
  500. transseq = ns({NumberSequenceKeypoint.new(0, 0.5), NumberSequenceKeypoint.new(1, 1)})
  501. parti.Transparency = transseq
  502. parti.Size = sizeseq
  503. parti.Acceleration = vt(0, -0.5, 0)
  504. parti.Lifetime = nr(5, 7)
  505. parti.Rate = 1
  506. parti.RotSpeed = nr(30)
  507. parti.Speed = nr(2)
  508. parti.VelocitySpread = 90
  509. parti.Enabled = true
  510. parti.Parent = wing1
  511. parti2 = parti:Clone()
  512. parti2.Parent = wing2
  513. for _,c in pairs(modelzorz:children()) do
  514. table.insert(Weapon, c)
  515. end
  516. for _,c in pairs(prt1:children()) do
  517. if c.className == "Motor" then
  518. table.insert(Welds, c)
  519. end
  520. end
  521. local hitbox = part(3, modelzorz, 0, 1, BrickColor.new("Black"), "Hitbox2", vt())
  522. hitbox.Anchored = false
  523. local hbwld = weld(hitbox, hitbox, RootPart, euler(0, 0, 0) * cf(0, 0, 0))
  524. local hitbox2 = part(3, nil, 0, 1, BrickColor.new("Black"), "Hitbox", vt(1, 1, 1))
  525. hitbox2.Anchored = true
  526. local hitboxCF = cf(0, 0, 0)
  527. hboxpos = Instance.new("BodyPosition", nil)
  528. hboxpos.P = 2000
  529. hboxpos.D = 100
  530. hboxpos.maxForce = Vector3.new(545000, 545000, 545000)
  531. hitboxweld = function()
  532. hbwld.Parent = modelzorz
  533. hbwld.Part0 = hitbox
  534. hbwld.Part1 = prt5
  535. end
  536. parti.Parent = hitbox
  537. if script.Parent.className ~= "HopperBin" then
  538. Tool = Instance.new("HopperBin")
  539. Tool.Parent = Backpack
  540. Tool.Name = "Needle"
  541. script.Parent = Tool
  542. Bin = Tool
  543. end
  544. local bodvel = Instance.new("BodyVelocity")
  545. local bg = Instance.new("BodyGyro")
  546. so = function(id, par, vol, pit)
  547. local sou = Instance.new("Sound", par or workspace)
  548. sou.Volume = vol
  549. sou.Pitch = pit or 1
  550. sou.SoundId = "http://www.roblox.com/asset/?id=" .. id
  551. coroutine.resume(coroutine.create(function(Sound)
  552. swait()
  553. Sound:play()
  554. end
  555. ), sou)
  556. game:GetService("Debris"):AddItem(sou, 6)
  557. end
  558.  
  559. function clerp(a,b,t)
  560. local qa = {QuaternionFromCFrame(a)}
  561. local qb = {QuaternionFromCFrame(b)}
  562. local ax, ay, az = a.x, a.y, a.z
  563. local bx, by, bz = b.x, b.y, b.z
  564. local _t = 1-t
  565. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  566. end
  567.  
  568. function QuaternionFromCFrame(cf)
  569. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  570. local trace = m00 + m11 + m22
  571. if trace > 0 then
  572. local s = math.sqrt(1 + trace)
  573. local recip = 0.5/s
  574. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  575. else
  576. local i = 0
  577. if m11 > m00 then
  578. i = 1
  579. end
  580. if m22 > (i == 0 and m00 or m11) then
  581. i = 2
  582. end
  583. if i == 0 then
  584. local s = math.sqrt(m00-m11-m22+1)
  585. local recip = 0.5/s
  586. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  587. elseif i == 1 then
  588. local s = math.sqrt(m11-m22-m00+1)
  589. local recip = 0.5/s
  590. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  591. elseif i == 2 then
  592. local s = math.sqrt(m22-m00-m11+1)
  593. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  594. end
  595. end
  596. end
  597.  
  598. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  599. local xs, ys, zs = x + x, y + y, z + z
  600. local wx, wy, wz = w*xs, w*ys, w*zs
  601. local xx = x*xs
  602. local xy = x*ys
  603. local xz = x*zs
  604. local yy = y*ys
  605. local yz = y*zs
  606. local zz = z*zs
  607. 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))
  608. end
  609.  
  610. function QuaternionSlerp(a, b, t)
  611. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  612. local startInterp, finishInterp;
  613. if cosTheta >= 0.0001 then
  614. if (1 - cosTheta) > 0.0001 then
  615. local theta = math.acos(cosTheta)
  616. local invSinTheta = 1/math.sin(theta)
  617. startInterp = math.sin((1-t)*theta)*invSinTheta
  618. finishInterp = math.sin(t*theta)*invSinTheta
  619. else
  620. startInterp = 1-t
  621. finishInterp = t
  622. end
  623. else
  624. if (1+cosTheta) > 0.0001 then
  625. local theta = math.acos(-cosTheta)
  626. local invSinTheta = 1/math.sin(theta)
  627. startInterp = math.sin((t-1)*theta)*invSinTheta
  628. finishInterp = math.sin(t*theta)*invSinTheta
  629. else
  630. startInterp = t-1
  631. finishInterp = t
  632. end
  633. end
  634. 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
  635. end
  636.  
  637. hideanim = function()
  638. equipped = false
  639. for i = 0, 1, 0.1 do
  640. swait()
  641. handlewld.C0 = clerp(handlewld.C0, euler(1.5, 1.4, 0) * euler(0, 0, 0) * cf(0, 1, 0), 0.3)
  642. wld1.C0 = clerp(wld1.C0, cf(0, -1, 0) * euler(0, -1.2, 0) * euler(-0.25, -1.2, -0.4), 0.3)
  643. Neck.C0 = clerp(Neck.C0, necko * euler(0.25, 0, -0.3), 0.3)
  644. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, 0), 0.3)
  645. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(0, 0, 0.3), 0.3)
  646. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  647. LW.C0 = clerp(LW.C0, cf(0.1, 0.3, -0.5) * euler(0, 0, 0.1) * euler(0, -1, 0) * euler(1, -1.2, 0), 0.3)
  648. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  649. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0, 1.57, 0), 0.3)
  650. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, -1.57, 0), 0.3)
  651. end
  652. mdec.Parent = nil
  653. handlewld.Part1 = Torso
  654. handlewld.C0 = euler(-1.8, 0, 0) * cf(-1.1, 1, 0.65)
  655. wld1.C0 = cf(0, 0, 0) * euler(0, 0, 0)
  656. for i = 0, 1, 0.3 do
  657. swait()
  658. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0), 0.4)
  659. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, 0), 0.4)
  660. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(0, 0, 0), 0.4)
  661. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  662. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(0, 0, 0), 0.4)
  663. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  664. end
  665. mdec.Parent = Decrease
  666. mdec2.Parent = nil
  667. end
  668.  
  669. mdec.Parent = Decrease
  670. equipanim = function()
  671. equipped = true
  672. mdec.Parent = nil
  673. for i = 0, 1, 0.11 do
  674. swait()
  675. Neck.C0 = clerp(Neck.C0, necko * euler(0.25, 0, -0.3), 0.2)
  676. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, 0), 0.2)
  677. RW.C0 = clerp(RW.C0, cf(1.5, 0.7, 0) * euler(0, 0, 1), 0.1)
  678. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  679. LW.C0 = clerp(LW.C0, cf(0, 0.3, -0.5) * euler(0, 0, 0.1) * euler(0, -1, 0) * euler(0.8, -1.2, 0), 0.2)
  680. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  681. end
  682. handlewld.Part1 = LeftArm
  683. handlewld.C0 = euler(1.5, 0.8, 0) * euler(0, 0, -1) * cf(-0.8, 1, 0)
  684. wld1.C0 = cf(0, -1, 0) * euler(0, 0, 0)
  685. so("356423194", prt5, 1, 1)
  686. for i = 0, 1, 0.17 do
  687. swait()
  688. handlewld.C0 = clerp(handlewld.C0, euler(1.5, 1.4, 0) * euler(0, 0, 0) * cf(0.7, 1, 0), 0.25)
  689. wld1.C0 = clerp(wld1.C0, cf(0, -1, 0) * euler(0, -1.2, 0) * euler(-0.25, -1.2, -0.4), 0.25)
  690. Neck.C0 = clerp(Neck.C0, necko * euler(-0.1, 0, -0.05), 0.2)
  691. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, 0), 0.3)
  692. RW.C0 = clerp(RW.C0, cf(1.5, 0.7, 0) * euler(0, 0, 1), 0.1)
  693. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  694. LW.C0 = clerp(LW.C0, cf(-0.6, 0.5, -1.2) * euler(0, 0, 0.1) * euler(0, -1, 0) * euler(2, -1.2, 0), 0.15)
  695. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  696. end
  697. mdec2.Parent = Decrease
  698. end
  699.  
  700. StaggerAnim = function()
  701. attack = true
  702. removeControl()
  703. for i = 1, math.random(2, 4) do
  704. 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)
  705. end
  706. for i = 0, 1, 0.35 do
  707. swait()
  708. if Rooted.Value == false then
  709. Torso.Velocity = RootPart.CFrame.lookVector * -40
  710. end
  711. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, -0.7) * euler(0.1, 0, 0), 0.3)
  712. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(-0.2, 0, 0.6), 0.3)
  713. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(0.4, 0, 0.4) * euler(0, 0.4, 0), 0.3)
  714. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  715. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.4, 0, -0.9) * euler(0, 0.7, 0), 0.3)
  716. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  717. RH.C0 = clerp(RH.C0, cf(1, -0.7, 0) * euler(0, 1.57, 0) * euler(-0.4, -0.2, 0.4), 0.3)
  718. LH.C0 = clerp(LH.C0, cf(-1, -0.8, 0) * euler(0, -1.57, 0) * euler(-0.2, 0, 0.4), 0.3)
  719. end
  720. for i = 0, 1, 0.2 do
  721. swait()
  722. if Rooted.Value == false then
  723. Torso.Velocity = RootPart.CFrame.lookVector * -40
  724. end
  725. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, -0.7) * euler(0.3, 0, 0), 0.3)
  726. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(-0.4, 0, 0.6), 0.3)
  727. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(0.6, 0, 0.6) * euler(0, 0.4, 0), 0.3)
  728. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  729. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.6, 0, -0.9) * euler(0, 0.7, 0), 0.3)
  730. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  731. RH.C0 = clerp(RH.C0, cf(1, -0.7, 0) * euler(0, 1.57, 0) * euler(-0.5, -0.2, 0.5), 0.3)
  732. LH.C0 = clerp(LH.C0, cf(-1, -0.8, 0) * euler(0, -1.57, 0) * euler(-0.2, 0, 0.4), 0.3)
  733. end
  734. for i = 0, 1, 0.1 do
  735. swait()
  736. handlewld.C0 = clerp(handlewld.C0, euler(1.57, 0, 0) * cf(0, 1, 0), 0.3)
  737. wld1.C0 = clerp(wld1.C0, cf(0, -0.5, 0) * euler(0.1, 0, 0), 0.3)
  738. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, -0.7) * euler(0.3, 0, 0), 0.3)
  739. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -1.8) * euler(-0.2, 0, 0.4), 0.3)
  740. RW.C0 = clerp(RW.C0, cf(1, 0.5, -0.5) * euler(0.6, 0, -0.4), 0.3)
  741. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  742. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.2, 0, -0.4) * euler(0, 0.3, 0), 0.3)
  743. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  744. RH.C0 = clerp(RH.C0, cf(1, -0.6, 0) * euler(0, 1.2, 0) * euler(-0.4, 0, 1.2), 0.3)
  745. LH.C0 = clerp(LH.C0, cf(-1, 0.4, -0.8) * euler(0, -1.57, 0) * euler(0, 0.2, -0.1), 0.3)
  746. end
  747. for i = 1, 40 do
  748. swait()
  749. if StunT.Value <= Stun.Value then
  750. break
  751. end
  752. end
  753. do
  754. resumeControl()
  755. combo = 0
  756. attack = false
  757. end
  758. end
  759.  
  760. StaggerHitt = function()
  761. attack = true
  762. for i = 1, math.random(2, 4) do
  763. 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)
  764. end
  765. for i = 0, 1, 0.1 do
  766. swait()
  767. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, -0.7) * euler(0.1, 0, 0), 0.3)
  768. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(-0.2, 0, 0.6), 0.3)
  769. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.4, 0, 0.4) * euler(0, 0.4, 0), 0.3)
  770. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  771. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.4, 0, -0.9) * euler(0, 0.7, 0), 0.3)
  772. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  773. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0, 1.57, 0) * euler(0, -0.2, -0.2), 0.3)
  774. LH.C0 = clerp(LH.C0, cf(-1, -0.8, 0) * euler(0, -1.57, 0) * euler(-0.2, 0, 0.4), 0.3)
  775. end
  776. attack = false
  777. end
  778.  
  779. StunAnim = function()
  780. attack = true
  781. removeControl()
  782. Stunned.Value = true
  783. showDamage(Character, "Stunned", "Interrupt")
  784. local dec = Instance.new("NumberValue", Decrease)
  785. dec.Name = "DecreaseMvmt"
  786. dec.Value = 10
  787. for i = 0, 1, 0.3 do
  788. swait()
  789. handlewld.C0 = clerp(handlewld.C0, euler(1.57, 0, 0) * cf(0, 1, 0), 0.2)
  790. wld1.C0 = clerp(wld1.C0, cf(0, -0.5, 0), 0.2)
  791. Neck.C0 = clerp(Neck.C0, necko * euler(-0.2, 0, -0.5), 0.2)
  792. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0.2, 0, -3), 0.2)
  793. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.2, 0, 1.3), 0.2)
  794. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  795. LW.C0 = clerp(LW.C0, cf(-1.2, 0.5, -0.4) * euler(1, 0, 0.4) * euler(0, -0.1, 0), 0.2)
  796. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  797. RH.C0 = clerp(RH.C0, cf(1, -0.6, 0) * euler(0, 1.57, 0) * euler(-0.5, 0, 0.3), 0.25)
  798. LH.C0 = clerp(LH.C0, cf(-1, -0.8, 0) * euler(0, -1.57, 0) * euler(-0.2, 0, 0), 0.25)
  799. end
  800. for i = 0, 1, 0.3 do
  801. swait()
  802. handlewld.C0 = clerp(handlewld.C0, euler(1.57, 0, 0) * cf(0, 1, 0), 0.2)
  803. wld1.C0 = clerp(wld1.C0, cf(0, -0.5, 0), 0.2)
  804. Neck.C0 = clerp(Neck.C0, necko * euler(-0.3, 0, -0.5), 0.2)
  805. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.5) * euler(0.8, 0, -3), 0.2)
  806. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.8, 0, 1.3), 0.2)
  807. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  808. 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)
  809. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  810. RH.C0 = clerp(RH.C0, cf(1, -0.6, 0) * euler(0, 1.57, 0) * euler(-0.5, 0, 0.6), 0.25)
  811. LH.C0 = clerp(LH.C0, cf(-1, -0.8, 0) * euler(0, -1.57, 0) * euler(0.1, 0, 0.7), 0.25)
  812. end
  813. for i = 0, 1, 0.3 do
  814. swait()
  815. handlewld.C0 = clerp(handlewld.C0, euler(1.57, 0, 0) * cf(0, 1, 0), 0.2)
  816. wld1.C0 = clerp(wld1.C0, cf(0, -0.5, 0), 0.2)
  817. Neck.C0 = clerp(Neck.C0, necko * euler(-0.3, 0, -1), 0.2)
  818. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -2) * euler(1.57, 0, -3), 0.2)
  819. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.8, 0, 1.3), 0.2)
  820. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  821. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(1.2, 0, -0.8) * euler(0, -0.1, 0), 0.2)
  822. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  823. RH.C0 = clerp(RH.C0, cf(1, -0.6, 0) * euler(0, 1.57, 0) * euler(-0.2, 0, 0.6), 0.25)
  824. LH.C0 = clerp(LH.C0, cf(-1, -0.8, 0) * euler(0, -1.57, 0) * euler(-0.1, 0, 0.3), 0.25)
  825. end
  826. local gairost = Instance.new("BodyGyro")
  827. gairost.Parent = RootPart
  828. gairost.maxTorque = Vector3.new(400000, 0, 400000) * math.huge
  829. gairost.P = 20000
  830. gairost.cframe = cf(0, 0, 0)
  831. for i = 0, 1, 0.1 do
  832. swait()
  833. if hitfloor ~= nil then
  834. Torso.Velocity = vt(0, 0, 0)
  835. end
  836. handlewld.C0 = clerp(handlewld.C0, euler(1.57, 0, 0) * cf(0, 1, 0), 0.2)
  837. wld1.C0 = clerp(wld1.C0, cf(0, -0.5, 0), 0.2)
  838. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, -1.57), 0.3)
  839. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -2.5) * euler(1.57, 0, -3.14), 0.3)
  840. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-1.57, 0, 1.5) * euler(0.2, 0, 0), 0.3)
  841. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  842. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(1.5, 0, -1.57) * euler(0, 0, 0), 0.3)
  843. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  844. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0, 1.57, 0) * euler(-0.3, 0.5, 0), 0.3)
  845. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, -1.57, 0) * euler(-0.1, 0.2, 0), 0.3)
  846. end
  847. for i = 1, 70 do
  848. swait()
  849. gairost.cframe = RootPart.CFrame
  850. if hitfloor ~= nil then
  851. Torso.Velocity = vt(0, 0, 0)
  852. end
  853. end
  854. for i = 0, 1, 0.2 do
  855. swait()
  856. Stun.Value = 0
  857. gairost.cframe = RootPart.CFrame
  858. handlewld.C0 = clerp(handlewld.C0, euler(1.57, 0, 0) * cf(0, 1, 0), 0.2)
  859. wld1.C0 = clerp(wld1.C0, cf(0, -0.5, 0), 0.2)
  860. Neck.C0 = clerp(Neck.C0, necko * euler(0.2, 0, 0), 0.3)
  861. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -2) * euler(1, 0, -4), 0.3)
  862. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-1.57, 0, 1) * euler(0.2, -1, 0), 0.3)
  863. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  864. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(1.2, 0, 0.2) * euler(0, 0, 0), 0.3)
  865. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  866. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0, 1.57, 0) * euler(-0.3, 0.5, 0.4), 0.3)
  867. LH.C0 = clerp(LH.C0, cf(-1, -1, -1) * euler(0, -1.57, 0) * euler(-0.1, 0.2, 1), 0.3)
  868. end
  869. resumeControl()
  870. gairost.Parent = nil
  871. dec.Parent = nil
  872. Stun.Value = 0
  873. combo = 0
  874. Stunned.Value = false
  875. attack = false
  876. for i = 1, 10 do
  877. swait()
  878. Stun.Value = 0
  879. end
  880. end
  881.  
  882. dattackone = function()
  883. if sprint then
  884. Sprint()
  885. end
  886. attack = true
  887. iscombo = true
  888. for i = 0, 1, 0.16 do
  889. swait()
  890. handlewld.C0 = clerp(handlewld.C0, euler(1.57, 0, 0) * cf(0, 1, 0), 0.45)
  891. wld1.C0 = clerp(wld1.C0, cf(0, 0, 0) * euler(-0.5, 0, 0), 0.45)
  892. Neck.C0 = clerp(Neck.C0, necko * euler(-0.2, 0, -0.1), 0.45)
  893. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, -0.5), 0.45)
  894. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.4, 0, 0.2), 0.45)
  895. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.45)
  896. LW.C0 = clerp(LW.C0, cf(-0.5, 0.5, -0.5) * euler(1, 0, 1) * euler(0, -1, 0), 0.45)
  897. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.45)
  898. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0, 1.57, 0) * euler(0, 0.5, 0), 0.45)
  899. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, -1.57, 0) * euler(0, 0.5, 0), 0.45)
  900. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  901. do
  902. if StaggerHit.Value == true then
  903. break
  904. end
  905. -- DECOMPILER ERROR at PC220: LeaveBlock: unexpected jumping out IF_THEN_STMT
  906.  
  907. -- DECOMPILER ERROR at PC220: LeaveBlock: unexpected jumping out IF_STMT
  908.  
  909. end
  910. end
  911. end
  912. so("356430004", prt5, 1, 1)
  913. hbwld.Parent = nil
  914. hboxpos.Parent = hitbox
  915. hitbox.Parent = modelzorz
  916. hitbox.Size = vt(1.2, 5, 1.2)
  917. hitboxCF = prt5.CFrame * cf(0, 2.8, 0)
  918. hitbox.CFrame = hitboxCF
  919. for i = 0, 1, 0.22 do
  920. swait()
  921. hitboxCF = prt5.CFrame * cf(0, 2.8, 0)
  922. hitbox.CFrame = hitboxCF
  923. MagniDamage(hitbox, 5, 4, 6, math.random(3, 5), "Normal", RootPart, 0.5, 1, (math.random(2, 4)), nil, true)
  924. handlewld.C0 = clerp(handlewld.C0, euler(1.57, 0, 0) * cf(0, 1, 0), 0.45)
  925. wld1.C0 = clerp(wld1.C0, cf(0, 0, 0) * euler(0.5, 0, 0), 0.45)
  926. Neck.C0 = clerp(Neck.C0, necko * euler(0.2, 0, -0.1), 0.45)
  927. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, 0.5), 0.45)
  928. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.6, 0, 0.4), 0.45)
  929. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.45)
  930. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(0.5, 0, -1) * euler(0, -0.6, 0), 0.45)
  931. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.45)
  932. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0, 1.57, 0) * euler(0, -0.5, 0), 0.45)
  933. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, -1.57, 0) * euler(0, -0.5, 0), 0.45)
  934. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  935. do
  936. if StaggerHit.Value == true then
  937. break
  938. end
  939. -- DECOMPILER ERROR at PC499: LeaveBlock: unexpected jumping out IF_THEN_STMT
  940.  
  941. -- DECOMPILER ERROR at PC499: LeaveBlock: unexpected jumping out IF_STMT
  942.  
  943. end
  944. end
  945. end
  946. hitbox.Parent = modelzorz
  947. hitbox.Size = vt()
  948. hitboxweld()
  949. hboxpos.Parent = nil
  950. iscombo = false
  951. attack = false
  952. end
  953.  
  954. dattacktwo = function()
  955. if sprint then
  956. Sprint()
  957. end
  958. attack = true
  959. iscombo = true
  960. for i = 0, 1, 0.2 do
  961. swait()
  962. handlewld.C0 = clerp(handlewld.C0, euler(1.57, 0, 0) * cf(0, 1, 0), 0.4)
  963. wld1.C0 = clerp(wld1.C0, cf(0, 0, 0) * euler(-0.75, 0, 0), 0.4)
  964. Neck.C0 = clerp(Neck.C0, necko * euler(0.2, 0, -0.1), 0.4)
  965. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, 0.8), 0.4)
  966. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(1.2, 0, 0.5), 0.4)
  967. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  968. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-1, 0, -0.8) * euler(0, -0.5, 0), 0.4)
  969. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  970. RH.C0 = clerp(RH.C0, cf(0.8, -1, 0.4) * euler(0, 1.57, 0) * euler(0, -0.8, 0), 0.4)
  971. LH.C0 = clerp(LH.C0, cf(-0.8, -1, -0.4) * euler(0, -1.57, 0) * euler(0, -0.8, 0), 0.4)
  972. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  973. do
  974. if StaggerHit.Value == true then
  975. break
  976. end
  977. -- DECOMPILER ERROR at PC220: LeaveBlock: unexpected jumping out IF_THEN_STMT
  978.  
  979. -- DECOMPILER ERROR at PC220: LeaveBlock: unexpected jumping out IF_STMT
  980.  
  981. end
  982. end
  983. end
  984. so("199145146", prt5, 1, 1)
  985. hbwld.Parent = nil
  986. hboxpos.Parent = hitbox
  987. hitbox.Parent = modelzorz
  988. hitbox.Size = vt(1.2, 5, 1.2)
  989. hitboxCF = prt5.CFrame * cf(0, 2.8, 0)
  990. hitbox.CFrame = hitboxCF
  991. for i = 0, 1, 0.15 do
  992. swait()
  993. hitboxCF = prt5.CFrame * cf(0, 2.8, 0)
  994. hitbox.CFrame = hitboxCF
  995. MagniDamage(hitbox, 5, 4, 6, math.random(3, 5), "Normal", RootPart, 0.5, 1, (math.random(2, 4)), nil, true)
  996. handlewld.C0 = clerp(handlewld.C0, euler(1.57, 0, 0) * cf(0, 1, 0), 0.5)
  997. wld1.C0 = clerp(wld1.C0, cf(0, 0, 0) * euler(0.75, 0, 0), 0.5)
  998. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0.4), 0.5)
  999. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, -0.8), 0.5)
  1000. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.5, 0, 0.2), 0.5)
  1001. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.5)
  1002. LW.C0 = clerp(LW.C0, cf(-1.2, 0.5, -0.3) * euler(1, 0, -0.1) * euler(0, 0.5, 0), 0.5)
  1003. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0.4), 0.5)
  1004. RH.C0 = clerp(RH.C0, cf(0.8, -1, -0.4) * euler(0, 1.57, 0) * euler(0, 0.8, 0), 0.5)
  1005. LH.C0 = clerp(LH.C0, cf(-0.8, -1, 0.4) * euler(0, -1.57, 0) * euler(0, 0.8, 0), 0.5)
  1006. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  1007. do
  1008. if StaggerHit.Value == true then
  1009. break
  1010. end
  1011. -- DECOMPILER ERROR at PC499: LeaveBlock: unexpected jumping out IF_THEN_STMT
  1012.  
  1013. -- DECOMPILER ERROR at PC499: LeaveBlock: unexpected jumping out IF_STMT
  1014.  
  1015. end
  1016. end
  1017. end
  1018. hitbox.Parent = modelzorz
  1019. hitbox.Size = vt()
  1020. hitboxweld()
  1021. hboxpos.Parent = nil
  1022. iscombo = false
  1023. attack = false
  1024. end
  1025.  
  1026. dattackthree = function()
  1027. if sprint then
  1028. Sprint()
  1029. end
  1030. attack = true
  1031. iscombo = true
  1032. for i = 0, 1, 0.2 do
  1033. swait()
  1034. handlewld.C0 = clerp(handlewld.C0, euler(1.57, 0, 0) * cf(0, 1, 0), 0.5)
  1035. wld1.C0 = clerp(wld1.C0, cf(0, -0.25, 0) * euler(-1, 0, 0), 0.5)
  1036. Neck.C0 = clerp(Neck.C0, necko * euler(0.2, 0, -0.1), 0.5)
  1037. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, 0.8), 0.5)
  1038. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(1.2, 0, 0.5), 0.5)
  1039. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.5)
  1040. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-1, 0, -1) * euler(0, -0.5, 0), 0.5)
  1041. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.5)
  1042. RH.C0 = clerp(RH.C0, cf(0.8, -1, 0.4) * euler(0, 1.57, 0) * euler(0, -0.8, 0), 0.5)
  1043. LH.C0 = clerp(LH.C0, cf(-0.8, -1, -0.4) * euler(0, -1.57, 0) * euler(0, -0.8, 0), 0.5)
  1044. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  1045. do
  1046. if StaggerHit.Value == true then
  1047. break
  1048. end
  1049. -- DECOMPILER ERROR at PC220: LeaveBlock: unexpected jumping out IF_THEN_STMT
  1050.  
  1051. -- DECOMPILER ERROR at PC220: LeaveBlock: unexpected jumping out IF_STMT
  1052.  
  1053. end
  1054. end
  1055. end
  1056. so("199145204", prt5, 1, 1)
  1057. hbwld.Parent = nil
  1058. hboxpos.Parent = hitbox
  1059. hitbox.Parent = modelzorz
  1060. hitbox.Size = vt(1.2, 5, 1.2)
  1061. hitboxCF = prt5.CFrame * cf(0, 2.8, 0)
  1062. hitbox.CFrame = hitboxCF
  1063. for i = 0, 1, 0.15 do
  1064. swait()
  1065. hitboxCF = prt5.CFrame * cf(0, 2.8, 0)
  1066. hitbox.CFrame = hitboxCF
  1067. MagniDamage(hitbox, 5, 4, 6, math.random(3, 5), "Normal", RootPart, 0.5, 1, (math.random(2, 4)), nil, true)
  1068. handlewld.C0 = clerp(handlewld.C0, euler(1.57, 0, 0) * cf(0, 1, 0), 0.5)
  1069. wld1.C0 = clerp(wld1.C0, cf(0, 0, 0) * euler(0.7, 0, -0.25), 0.5)
  1070. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0.8), 0.5)
  1071. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, -0.8), 0.5)
  1072. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.5, 0, 0.2), 0.5)
  1073. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.5)
  1074. LW.C0 = clerp(LW.C0, cf(-1.2, 0.5, -0.3) * euler(1, 0, 0.2) * euler(0, 0.5, 0), 0.5)
  1075. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0.4), 0.5)
  1076. RH.C0 = clerp(RH.C0, cf(0.8, -1, -0.4) * euler(0, 1.57, 0) * euler(0, 0.8, 0), 0.5)
  1077. LH.C0 = clerp(LH.C0, cf(-0.8, -1, 0.4) * euler(0, -1.57, 0) * euler(0, 0.8, 0), 0.5)
  1078. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  1079. do
  1080. if StaggerHit.Value == true then
  1081. break
  1082. end
  1083. -- DECOMPILER ERROR at PC499: LeaveBlock: unexpected jumping out IF_THEN_STMT
  1084.  
  1085. -- DECOMPILER ERROR at PC499: LeaveBlock: unexpected jumping out IF_STMT
  1086.  
  1087. end
  1088. end
  1089. end
  1090. hitbox.Parent = modelzorz
  1091. hitbox.Size = vt()
  1092. hitboxweld()
  1093. hboxpos.Parent = nil
  1094. iscombo = false
  1095. attack = false
  1096. end
  1097.  
  1098. dattackfour = function()
  1099. if sprint then
  1100. Sprint()
  1101. end
  1102. attack = true
  1103. iscombo = true
  1104. so("199145327", prt5, 1, 1)
  1105. for i = 0, 1, 0.12 do
  1106. swait()
  1107. handlewld.C0 = clerp(handlewld.C0, euler(0, 0, -1.5) * cf(0, 1, 0), 0.4)
  1108. wld1.C0 = clerp(wld1.C0, cf(0, 0, 0) * euler(0, 0, 0), 0.4)
  1109. Neck.C0 = clerp(Neck.C0, necko * euler(0, -0.2, -4.5), 0.4)
  1110. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0.2, 0, 4.5), 0.4)
  1111. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(0, 0, 0.2), 0.4)
  1112. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  1113. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(0, math.rad(-40), 0) * euler(math.rad(90), 0, 0), 0.4)
  1114. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0) * euler(0, 0, 0), 0.4)
  1115. RH.C0 = clerp(RH.C0, cf(0.6, -1, 0.4) * euler(0, 0, 0.3) * euler(0, 0, 0), 0.4)
  1116. LH.C0 = clerp(LH.C0, cf(-0.6, -1, 0.4) * euler(0, 0, 0.2) * euler(0, 0, 0), 0.4)
  1117. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  1118. do
  1119. if StaggerHit.Value == true then
  1120. break
  1121. end
  1122. -- DECOMPILER ERROR at PC238: LeaveBlock: unexpected jumping out IF_THEN_STMT
  1123.  
  1124. -- DECOMPILER ERROR at PC238: LeaveBlock: unexpected jumping out IF_STMT
  1125.  
  1126. end
  1127. end
  1128. end
  1129. hbwld.Parent = nil
  1130. hboxpos.Parent = hitbox
  1131. hitbox.Parent = modelzorz
  1132. hitbox.Size = vt(1.2, 5, 1.2)
  1133. hitboxCF = prt5.CFrame * cf(0, 2.8, 0)
  1134. hitbox.CFrame = hitboxCF
  1135. for i = 0, 1, 0.14 do
  1136. swait()
  1137. if Rooted.Value == false then
  1138. Torso.Velocity = RootPart.CFrame.lookVector * 45
  1139. end
  1140. hitboxCF = prt5.CFrame * cf(0, 2.8, 0)
  1141. hitbox.CFrame = hitboxCF
  1142. MagniDamage(hitbox, 5, 4, 6, math.random(3, 5), "Normal", RootPart, 0.5, 1, (math.random(2, 4)), nil, true)
  1143. handlewld.C0 = clerp(handlewld.C0, euler(0, 0, -3.2) * cf(0, 1, 0), 0.5)
  1144. wld1.C0 = clerp(wld1.C0, cf(0, 0, 0) * euler(0, 0, 0), 0.5)
  1145. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0.2, -4.5), 0.5)
  1146. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, 4.5), 0.5)
  1147. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(0, 0, 1), 0.5)
  1148. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.5)
  1149. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(0, math.rad(100), 0) * euler(math.rad(90), 0, 0), 0.5)
  1150. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.5)
  1151. RH.C0 = clerp(RH.C0, cf(0.6, -1, 0.4) * euler(0, 0, 0.8) * euler(0, 0, 0), 0.5)
  1152. LH.C0 = clerp(LH.C0, cf(-0.6, -1, 0.4) * euler(0, 0, 0.6) * euler(0, 0, 0), 0.5)
  1153. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  1154. do
  1155. if StaggerHit.Value == true then
  1156. break
  1157. end
  1158. -- DECOMPILER ERROR at PC527: LeaveBlock: unexpected jumping out IF_THEN_STMT
  1159.  
  1160. -- DECOMPILER ERROR at PC527: LeaveBlock: unexpected jumping out IF_STMT
  1161.  
  1162. end
  1163. end
  1164. end
  1165. hitbox.Parent = modelzorz
  1166. hitbox.Size = vt()
  1167. hitboxweld()
  1168. hboxpos.Parent = nil
  1169. iscombo = false
  1170. attack = false
  1171. end
  1172.  
  1173. Sprint = function()
  1174. if Stagger.Value == true or StunT.Value <= Stun.Value or StaggerHit.Value == true then
  1175. return
  1176. end
  1177. if mana.Value >= 0 then
  1178. if sprint then
  1179. sprint = false
  1180. else
  1181. sprint = true
  1182. end
  1183. local dbf = 0
  1184. local dec = Instance.new("NumberValue", Decrease)
  1185. dec.Name = "DecreaseMvmt"
  1186. dec.Value = -0.35 - Humanoid.Health / (Humanoid.MaxHealth + 400)
  1187. local dec2 = Instance.new("NumberValue", Decrease)
  1188. dec2.Name = "DecreaseDef"
  1189. dec2.Value = 0.25
  1190. repeat
  1191. swait()
  1192. if msprintnum < 7 then
  1193. msprintnum = msprintnum + 1
  1194. dbf = dbf + 1
  1195. else
  1196. msprintnum = 0
  1197. mana.Value = mana.Value - math.floor(1 / (Humanoid.Health / Humanoid.MaxHealth))
  1198. if dbf >= 25 then
  1199. MagniDebuff(Torso, 25, "Movement", 0.05, 70)
  1200. dbf = 0
  1201. end
  1202. end
  1203. until mana.Value <= 0 or sprint == false
  1204. dec.Parent = nil
  1205. dec2.Parent = nil
  1206. sprint = false
  1207. end
  1208. end
  1209.  
  1210. do1 = function()
  1211. if attack == true then
  1212. return
  1213. end
  1214. if Stagger.Value == true or StunT.Value <= Stun.Value or StaggerHit.Value == true then
  1215. return
  1216. end
  1217. if cooldownmax <= cooldowns[1] then
  1218. if sprint == false and mana.Value >= 15 then
  1219. attack = true
  1220. lastskill = 1
  1221. cooldowns[1] = 0
  1222. mana.Value = mana.Value - 15
  1223. for i = 0, 1, 0.12 do
  1224. swait()
  1225. handlewld.C0 = clerp(handlewld.C0, euler(1.57, 0, 0) * cf(0, 1, 0), 0.2)
  1226. wld1.C0 = clerp(wld1.C0, cf(0, 0, 0) * euler(0.6, 0, -1), 0.2)
  1227. Neck.C0 = clerp(Neck.C0, necko * euler(-0.1, 0, 0), 0.2)
  1228. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, 0), 0.2)
  1229. RW.C0 = clerp(RW.C0, cf(1, 0.5, -0.5) * euler(1, 0, -0.5), 0.2)
  1230. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  1231. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(2.7, 0, 0) * euler(0, 0, 0.9), 0.2)
  1232. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  1233. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0, 1.57, 0) * euler(0, 0, 0), 0.3)
  1234. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, -1.57, 0) * euler(0, 0, 0), 0.3)
  1235. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  1236. do
  1237. if StaggerHit.Value == true then
  1238. break
  1239. end
  1240. -- DECOMPILER ERROR at PC253: LeaveBlock: unexpected jumping out IF_THEN_STMT
  1241.  
  1242. -- DECOMPILER ERROR at PC253: LeaveBlock: unexpected jumping out IF_STMT
  1243.  
  1244. end
  1245. end
  1246. end
  1247. for i = 0, 1, 0.4 do
  1248. swait()
  1249. handlewld.C0 = clerp(handlewld.C0, euler(1.57, 0, 0) * cf(0, 1, 0), 0.7)
  1250. wld1.C0 = clerp(wld1.C0, cf(0, 0, 0) * euler(-0.3, 0, 0.5), 0.7)
  1251. Neck.C0 = clerp(Neck.C0, necko * euler(0.2, 0, 0), 0.7)
  1252. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, 0), 0.7)
  1253. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(0.5, 0, 0.5), 0.7)
  1254. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.7)
  1255. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(1, 0, 0) * euler(0, 0, 0.9), 0.7)
  1256. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.7)
  1257. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  1258. do
  1259. if StaggerHit.Value == true then
  1260. break
  1261. end
  1262. -- DECOMPILER ERROR at PC417: LeaveBlock: unexpected jumping out IF_THEN_STMT
  1263.  
  1264. -- DECOMPILER ERROR at PC417: LeaveBlock: unexpected jumping out IF_STMT
  1265.  
  1266. end
  1267. end
  1268. end
  1269. for i = 0, 1, 0.35 do
  1270. swait()
  1271. end
  1272. so("356427062", prt5, 1, 1)
  1273. MagicCircle(BrickColor.new("White"), "Neon", cf(Torso.Position), 3, 3, 3, 8, 8, 8, 0.1, 1)
  1274. if Humanoid.Health > 30 then
  1275. DecreaseStat(Character, "Damage", -0.2, 350)
  1276. DecreaseStat(Character, "Movement", -0.1, 330)
  1277. else
  1278. DecreaseStat(Character, "Damage", -0.1, 330)
  1279. DecreaseStat(Character, "Movement", -0.2, 350)
  1280. end
  1281. for i = 0, 1, 0.2 do
  1282. swait()
  1283. handlewld.C0 = clerp(handlewld.C0, euler(1.57, 0, 0) * cf(0, 1, 0), 0.5)
  1284. wld1.C0 = clerp(wld1.C0, cf(0, 0, 0) * euler(1.5, 0, 0.5), 0.5)
  1285. Neck.C0 = clerp(Neck.C0, necko * euler(0.2, 0, 0), 0.5)
  1286. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, 0), 0.5)
  1287. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(0.5, 0, 0.5), 0.5)
  1288. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.5)
  1289. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(1, 0, 0) * euler(0, 0, -0.9), 0.5)
  1290. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.5)
  1291. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  1292. do
  1293. if StaggerHit.Value == true then
  1294. break
  1295. end
  1296. -- DECOMPILER ERROR at PC642: LeaveBlock: unexpected jumping out IF_THEN_STMT
  1297.  
  1298. -- DECOMPILER ERROR at PC642: LeaveBlock: unexpected jumping out IF_STMT
  1299.  
  1300. end
  1301. end
  1302. end
  1303. else
  1304. if sprint and mana.Value >= 10 then
  1305. if sprint then
  1306. Sprint()
  1307. end
  1308. lastskill = 1
  1309. cooldowns[1] = 0
  1310. mana.Value = mana.Value - 10
  1311. attack = true
  1312. stopwalk = true
  1313. Humanoid.Jump = true
  1314. MagicWave(BrickColor.new("Institutional white"), RootPart.CFrame * euler(1.57, 0, 0), 1, 1, 1, 1, 1, 1, 0.1)
  1315. MagicRing(BrickColor.new("Institutional white"), RootPart.CFrame * cf(0, 0, -1) * euler(0, 0, 0), 1, 1, 1, 1, 1, 1, 0.1)
  1316. for i = 0, 1, 0.18 do
  1317. swait()
  1318. Torso.Velocity = RootPart.CFrame.lookVector * 90
  1319. handlewld.C0 = clerp(handlewld.C0, euler(1.57, 0, 0) * cf(0, 1, 0), 0.4)
  1320. wld1.C0 = clerp(wld1.C0, cf(0, 0, 0) * euler(0, 0, 0), 0.4)
  1321. Neck.C0 = clerp(Neck.C0, necko * euler(-0.5, 0, 0), 0.4)
  1322. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0.5, 0, 0), 0.4)
  1323. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.5, 0, 0.5), 0.4)
  1324. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  1325. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.3, 0, -0.6) * euler(0, 0.45, 0), 0.4)
  1326. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  1327. RH.C0 = clerp(RH.C0, cf(1, -0.25, -0.7) * euler(0, 1.57, 0) * euler(0, 0, -0.5), 0.4)
  1328. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, -1.57, 0) * euler(0, 0, 0.4), 0.4)
  1329. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  1330. do
  1331. if StaggerHit.Value == true then
  1332. break
  1333. end
  1334. -- DECOMPILER ERROR at PC936: LeaveBlock: unexpected jumping out IF_THEN_STMT
  1335.  
  1336. -- DECOMPILER ERROR at PC936: LeaveBlock: unexpected jumping out IF_STMT
  1337.  
  1338. end
  1339. end
  1340. end
  1341. end
  1342. end
  1343. stopwalk = false
  1344. attack = false
  1345. end
  1346. end
  1347.  
  1348. do2 = function()
  1349. if attack == true then
  1350. return
  1351. end
  1352. if Stagger.Value == true or StunT.Value <= Stun.Value or StaggerHit.Value == true then
  1353. return
  1354. end
  1355. if cooldownmax <= cooldowns[2] then
  1356. if sprint == false and mana.Value >= 20 then
  1357. cooldowns[2] = 0
  1358. lastskill = 2
  1359. apierce = true
  1360. dashhit = false
  1361. dashing = false
  1362. dhits = 0
  1363. dbuffs = 0
  1364. attack = true
  1365. mana.Value = mana.Value - 20
  1366. for i = 0, 1, 0.15 do
  1367. swait()
  1368. handlewld.C0 = clerp(handlewld.C0, euler(0, 0, -1.5) * cf(0, 1, 0), 0.2)
  1369. wld1.C0 = clerp(wld1.C0, cf(0.15, 0, 0) * euler(0, 0, 0.5), 0.2)
  1370. Neck.C0 = clerp(Neck.C0, necko * euler(-0.2, 0, -4.5), 0.2)
  1371. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, -0.25, 4.5), 0.2)
  1372. RW.C0 = clerp(RW.C0, cf(1, 0.5, 0) * euler(0, 0, -1.6) * euler(0.8, 0.5, 0), 0.2)
  1373. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  1374. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(0, math.rad(-50), 0) * euler(math.rad(90), 0, 0), 0.2)
  1375. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0) * euler(0, 0, 0), 0.2)
  1376. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0, -4.7, 0) * euler(-0.15, 0, 0), 0.2)
  1377. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, 4.7, 0) * euler(-0.25, 0, -0.35), 0.2)
  1378. if Stagger.Value ~= true then
  1379. do
  1380. if StunT.Value <= Stun.Value then
  1381. break
  1382. end
  1383. -- DECOMPILER ERROR at PC277: LeaveBlock: unexpected jumping out IF_THEN_STMT
  1384.  
  1385. -- DECOMPILER ERROR at PC277: LeaveBlock: unexpected jumping out IF_STMT
  1386.  
  1387. end
  1388. end
  1389. end
  1390. local dec = Instance.new("NumberValue", Decrease)
  1391. dec.Name = "DecreaseMvmt"
  1392. dec.Value = 0.75
  1393. for i = 0, 1, 0.35 do
  1394. swait()
  1395. end
  1396. hbwld.Parent = nil
  1397. hboxpos.Parent = hitbox
  1398. hitbox.Parent = modelzorz
  1399. hitbox.Size = vt(1.8, 10.2, 1.8)
  1400. hitboxCF = prt5.CFrame * cf(0, 10, 0)
  1401. hitbox.CFrame = hitboxCF
  1402. dashing = true
  1403. so("199145327", prt5, 1, 0.8)
  1404. for i = 0, 1, 0.1 do
  1405. swait()
  1406. if Rooted.Value == false then
  1407. Torso.Velocity = RootPart.CFrame.lookVector * 100
  1408. end
  1409. MagicWave(BrickColor.new(NewCol2), prt7.CFrame * euler(0, i, math.rad(180)) * cf(0, -4.5, 0), 0.15, 1, 0.15, 0.75, 0.15, 0.75, 0.15, 1)
  1410. MagicSpike(BrickColor.new(NewCol2), prt7.CFrame * euler(0, i, math.rad(0)) * cf(0, 8, 0), 0.18, 7, 0.18, 0.35, 0.01, 0.35, 0.15, 1)
  1411. hitboxCF = prt5.CFrame * cf(0, 4.8, 0)
  1412. hitbox.CFrame = hitboxCF
  1413. MagniDamage(hitbox, 6, 5, 9, math.random(45, 65), "Normal", RootPart, 0.2, 2, (math.random(3, 5)), nil, true, false, "Defense", 0.05, 400)
  1414. handlewld.C0 = clerp(handlewld.C0, euler(0, 0, -3) * cf(0, 1, 0), 0.5)
  1415. wld1.C0 = clerp(wld1.C0, cf(0, 0, 0) * euler(0, 0, 0.35), 0.5)
  1416. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0.3, -4.5), 0.5)
  1417. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, 4.5), 0.5)
  1418. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(0, 0, 1), 0.5)
  1419. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.5)
  1420. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(0, math.rad(70), 0) * euler(math.rad(90), 0, 0), 0.5)
  1421. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.5)
  1422. RH.C0 = clerp(RH.C0, cf(0.6, -1, 0.4) * euler(0, 0, 0.8) * euler(0, 0, 0), 0.5)
  1423. LH.C0 = clerp(LH.C0, cf(-0.6, -1, 0.4) * euler(0, 0, 0.6) * euler(0, 0, 0), 0.5)
  1424. if Stagger.Value ~= true then
  1425. do
  1426. if StunT.Value <= Stun.Value then
  1427. break
  1428. end
  1429. -- DECOMPILER ERROR at PC650: LeaveBlock: unexpected jumping out IF_THEN_STMT
  1430.  
  1431. -- DECOMPILER ERROR at PC650: LeaveBlock: unexpected jumping out IF_STMT
  1432.  
  1433. end
  1434. end
  1435. end
  1436. Torso.Velocity = RootPart.CFrame.lookVector * 0
  1437. if dashhit then
  1438. cooldowns[2] = cooldowns[2] + dhits * 15
  1439. DecreaseStat(Character, "Movement", -dbuffs, 200)
  1440. end
  1441. hitbox.Parent = modelzorz
  1442. hitbox.Size = vt()
  1443. hitboxweld()
  1444. hboxpos.Parent = nil
  1445. apierce = false
  1446. dashing = false
  1447. dashhit = false
  1448. dec.Parent = nil
  1449. attack = false
  1450. else
  1451. do
  1452. if sprint and mana.Value >= 10 then
  1453. attack = true
  1454. cooldowns[2] = 0
  1455. lastskill = 2
  1456. doing2s = true
  1457. sprinthit = false
  1458. mana.Value = mana.Value - 10
  1459. for i = 0, 1, 0.3 do
  1460. swait()
  1461. handlewld.C0 = clerp(handlewld.C0, euler(1.57, 0, 0) * cf(0, 1, 0), 0.2)
  1462. wld1.C0 = clerp(wld1.C0, cf(0, 0, 0) * euler(0, 0, 0), 0.2)
  1463. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0), 0.2)
  1464. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, -0.5), 0.2)
  1465. RW.C0 = clerp(RW.C0, cf(1.5, 0.7, 0) * euler(0, 0, 0.5), 0.4)
  1466. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  1467. LW.C0 = clerp(LW.C0, cf(-1.5, 0.3, -0.5) * euler(0, 0, -0.5), 0.5)
  1468. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  1469. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0, 1.57, 0) * euler(0, 0.5, 0), 0.2)
  1470. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, -1.57, 0) * euler(0, 0.5, 0), 0.2)
  1471. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  1472. do
  1473. if StaggerHit.Value == true then
  1474. break
  1475. end
  1476. -- DECOMPILER ERROR at PC920: LeaveBlock: unexpected jumping out IF_THEN_STMT
  1477.  
  1478. -- DECOMPILER ERROR at PC920: LeaveBlock: unexpected jumping out IF_STMT
  1479.  
  1480. end
  1481. end
  1482. end
  1483. for i = 0, 1, 0.14 do
  1484. swait()
  1485. handlewld.C0 = clerp(handlewld.C0, euler(1.57, 0, 0) * cf(0, 1, 0), 0.25)
  1486. wld1.C0 = clerp(wld1.C0, cf(0, 0, 0) * euler(0, 0, 0), 0.25)
  1487. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0), 0.25)
  1488. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, -0.5), 0.25)
  1489. RW.C0 = clerp(RW.C0, cf(1.5, 0.7, 0) * euler(0, 0, 1), 0.25)
  1490. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.25)
  1491. LW.C0 = clerp(LW.C0, cf(0, 0.3, -0.5) * euler(0, 0, -0.5) * euler(0, -1, 0) * euler(0.8, -1.4, 0), 0.25)
  1492. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.25)
  1493. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0, 1.57, 0) * euler(0, 0.5, 0), 0.25)
  1494. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, -1.57, 0) * euler(0, 0.5, 0), 0.25)
  1495. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  1496. do
  1497. if StaggerHit.Value == true then
  1498. break
  1499. end
  1500. -- DECOMPILER ERROR at PC1138: LeaveBlock: unexpected jumping out IF_THEN_STMT
  1501.  
  1502. -- DECOMPILER ERROR at PC1138: LeaveBlock: unexpected jumping out IF_STMT
  1503.  
  1504. end
  1505. end
  1506. end
  1507. so("356430004", prt5, 1, 1)
  1508. hbwld.Parent = nil
  1509. hboxpos.Parent = hitbox
  1510. hitbox.Parent = modelzorz
  1511. hitbox.Size = vt(1.2, 5, 1.2)
  1512. hitboxCF = prt5.CFrame * cf(0, 2.8, 0)
  1513. hitbox.CFrame = hitboxCF
  1514. local oldCF = RightArm.CFrame * cf(0, -2, 0.5)
  1515. for i = 0, 1, 0.15 do
  1516. swait()
  1517. hitboxCF = prt5.CFrame * cf(0, 2.8, 0)
  1518. hitbox.CFrame = hitboxCF
  1519. MagniDamage(hitbox, 5, 6, 10, math.random(20, 23), "Normal", RootPart, 0.5, 1, (math.random(5, 6)), nil, true, false, "Defense", 0.1, 400)
  1520. handlewld.C0 = clerp(handlewld.C0, euler(1.57, 0, 0) * cf(0, 1, 0), 0.4)
  1521. wld1.C0 = clerp(wld1.C0, cf(0, 0, 0) * euler(0.5, 0, 0), 0.4)
  1522. Neck.C0 = clerp(Neck.C0, necko * euler(-0.25, 0, 0), 0.4)
  1523. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, 0.5), 0.4)
  1524. RW.C0 = clerp(RW.C0, cf(1.5, 0.7, 0) * euler(0, 0, 1), 0.4)
  1525. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  1526. LW.C0 = clerp(LW.C0, cf(-1.5, 1, 0) * euler(0, 0, -1.25) * euler(0, -1, 0) * euler(-0.8, 1.4, 0), 0.4)
  1527. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  1528. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0, 1.57, 0) * euler(0, 0.5, 0), 0.4)
  1529. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, -1.57, 0) * euler(0, 0.5, 0), 0.4)
  1530. if i > 0.15 then
  1531. effect2(NewCol, 0, prt7.CFrame * cf(0, 0, 6), oldCF, nil, 0.4, 2)
  1532. oldCF = prt7.CFrame * cf(0, 0, 6)
  1533. end
  1534. if Stagger.Value ~= true then
  1535. do
  1536. if StunT.Value <= Stun.Value then
  1537. break
  1538. end
  1539. -- DECOMPILER ERROR at PC1457: LeaveBlock: unexpected jumping out IF_THEN_STMT
  1540.  
  1541. -- DECOMPILER ERROR at PC1457: LeaveBlock: unexpected jumping out IF_STMT
  1542.  
  1543. end
  1544. end
  1545. end
  1546. if sprint then
  1547. Sprint()
  1548. end
  1549. hitbox.Parent = modelzorz
  1550. hitbox.Size = vt()
  1551. hitboxweld()
  1552. hboxpos.Parent = nil
  1553. if sprinthit then
  1554. mana.Value = mana.Value + 15
  1555. DecreaseStat(Character, "Damage", -0.15, 400)
  1556. cooldowns[2] = cooldowns[2] + 60
  1557. end
  1558. end
  1559. do
  1560. attack = false
  1561. end
  1562. end
  1563. end
  1564. end
  1565. end
  1566.  
  1567. do3 = function()
  1568. if attack == true then
  1569. return
  1570. end
  1571. if Stagger.Value == true or StunT.Value <= Stun.Value or StaggerHit.Value == true then
  1572. return
  1573. end
  1574. if cooldownmax <= cooldowns[3] then
  1575. if sprint == false and mana.Value >= 25 then
  1576. cooldowns[3] = 0
  1577. lastskill = 3
  1578. attack = true
  1579. chit = false
  1580. doing3 = true
  1581. mana.Value = mana.Value - 25
  1582. local dec = Instance.new("NumberValue", Decrease)
  1583. dec.Name = "DecreaseMvmt"
  1584. dec.Value = 10
  1585. for i = 0, 1, 0.2 do
  1586. swait()
  1587. handlewld.C0 = clerp(handlewld.C0, euler(1.57, 0, 0) * cf(0, 1, 0), 0.45)
  1588. wld1.C0 = clerp(wld1.C0, cf(0, 0, 0) * euler(0, 0, 0), 0.45)
  1589. Neck.C0 = clerp(Neck.C0, necko * euler(-0.2, 0, -0.4), 0.45)
  1590. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(1, 0, 0.2) * cf(0, -2, 0), 0.45)
  1591. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(1.57, 0, 0.5), 0.45)
  1592. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.45)
  1593. LW.C0 = clerp(LW.C0, cf(-0.5, 0.5, -0.5) * euler(2.5, 0, 0.7) * euler(0, -1, 0), 0.45)
  1594. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.45)
  1595. RH.C0 = clerp(RH.C0, cf(1, 0.8, 0.15) * euler(0, 1.57, 0) * euler(-0.45, 0, 0.8), 0.45)
  1596. LH.C0 = clerp(LH.C0, cf(-1, -1, -0.2) * euler(0, -1.57, 0) * euler(0, 0, 0.45), 0.45)
  1597. if Stagger.Value ~= true then
  1598. do
  1599. if StunT.Value <= Stun.Value then
  1600. break
  1601. end
  1602. -- DECOMPILER ERROR at PC266: LeaveBlock: unexpected jumping out IF_THEN_STMT
  1603.  
  1604. -- DECOMPILER ERROR at PC266: LeaveBlock: unexpected jumping out IF_STMT
  1605.  
  1606. end
  1607. end
  1608. end
  1609. hbwld.Parent = nil
  1610. hboxpos.Parent = hitbox
  1611. hitbox.Parent = modelzorz
  1612. hitbox.Size = vt(2, 6.5, 2)
  1613. hitboxCF = prt7.CFrame * cf(0, 0, 0)
  1614. hitbox.CFrame = hitboxCF
  1615. so("356221198", prt5, 1, 1)
  1616. MagniDamage(hitbox, 4, 6, 9, math.random(10, 15), "Normal", RootPart, 0.5, 2, math.random(12, 15), true, true, false, "Movement", 0.15, 500)
  1617. for i = 0, 1, 0.17 do
  1618. swait()
  1619. hitboxCF = prt7.CFrame * cf(0, 0, 0)
  1620. hitbox.CFrame = hitboxCF
  1621. handlewld.C0 = clerp(handlewld.C0, euler(1.57, 0, 0) * cf(0, 1, 0), 0.45)
  1622. wld1.C0 = clerp(wld1.C0, cf(0, 0, 0) * euler(1, 0, 0), 0.45)
  1623. Neck.C0 = clerp(Neck.C0, necko * euler(-0.5, 0, 0.5), 0.45)
  1624. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(1, 0, 0.2) * cf(0, -2, 0), 0.45)
  1625. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(1.47, 0, 0.4), 0.3)
  1626. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.45)
  1627. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(2.5, 0, -1.6) * euler(0, -1.8, 0), 0.45)
  1628. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.45)
  1629. RH.C0 = clerp(RH.C0, cf(1, 0.8, 0.15) * euler(0, 1.57, 0) * euler(-0.45, 0, 0.8), 0.45)
  1630. LH.C0 = clerp(LH.C0, cf(-1, -1, -0.2) * euler(0, -1.57, 0) * euler(0, 0, 0.45), 0.45)
  1631. if Stagger.Value ~= true then
  1632. do
  1633. if StunT.Value <= Stun.Value then
  1634. break
  1635. end
  1636. -- DECOMPILER ERROR at PC551: LeaveBlock: unexpected jumping out IF_THEN_STMT
  1637.  
  1638. -- DECOMPILER ERROR at PC551: LeaveBlock: unexpected jumping out IF_STMT
  1639.  
  1640. end
  1641. end
  1642. end
  1643. hitbox.Parent = modelzorz
  1644. hitbox.Size = vt()
  1645. hitboxweld()
  1646. hboxpos.Parent = nil
  1647. if chit then
  1648. cooldowns[3] = cooldowns[3] + 15
  1649. end
  1650. dec.Parent = nil
  1651. attack = false
  1652. else
  1653. do
  1654. if sprint and mana.Value >= 15 then
  1655. cooldowns[3] = 0
  1656. lastskill = 3
  1657. chit = false
  1658. doing3 = true
  1659. mana.Value = mana.Value - 15
  1660. attack = true
  1661. stopwalk = true
  1662. removeControl()
  1663. for i = 0, 1, 0.18 do
  1664. swait()
  1665. handlewld.C0 = clerp(handlewld.C0, euler(1.57, 0, 0) * cf(0, 1, 0), 0.3)
  1666. wld1.C0 = clerp(wld1.C0, cf(0, 0, 0) * euler(0, 0, 0), 0.3)
  1667. Neck.C0 = clerp(Neck.C0, necko * euler(-0.2, 0, 0), 0.3)
  1668. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -1) * euler(0, 0, 0), 0.3)
  1669. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.5, 0, 0.5), 0.3)
  1670. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  1671. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.3, 0, -0.6) * euler(0, 0.45, 0), 0.3)
  1672. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  1673. RH.C0 = clerp(RH.C0, cf(1, -0.25, -0.7) * euler(0, 1.57, 0) * euler(0, 0, -0.3), 0.3)
  1674. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, -1.57, 0) * euler(0, 0, 1), 0.3)
  1675. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  1676. do
  1677. if StaggerHit.Value == true then
  1678. break
  1679. end
  1680. -- DECOMPILER ERROR at PC816: LeaveBlock: unexpected jumping out IF_THEN_STMT
  1681.  
  1682. -- DECOMPILER ERROR at PC816: LeaveBlock: unexpected jumping out IF_STMT
  1683.  
  1684. end
  1685. end
  1686. end
  1687. resumeControl()
  1688. Humanoid.Jump = true
  1689. Torso.Velocity = RootPart.CFrame.lookVector * 75 + vt(0, 1.5, 0) * 5
  1690. hbwld.Parent = nil
  1691. hboxpos.Parent = hitbox
  1692. hitbox.Parent = modelzorz
  1693. hitbox.Size = vt(2, 6.5, 2)
  1694. hitboxCF = prt7.CFrame * cf(0, 0, 0)
  1695. hitbox.CFrame = hitboxCF
  1696. for i = 0, 1, 0.08 do
  1697. swait()
  1698. -- DECOMPILER ERROR at PC884: Unhandled construct in 'MakeBoolean' P3
  1699.  
  1700. if (i > 0.16 and i < 0.25) or i <= 0.72 or i > 0.96 and i < 1 then
  1701. so("356221198", prt5, 1, 1)
  1702. end
  1703. hitboxCF = prt7.CFrame * cf(0, 0, 0)
  1704. hitbox.CFrame = hitboxCF
  1705. MagniDamage(hitbox, 6, 7, 9, math.random(3, 5), "Normal", RootPart, 0.15, 2, math.random(3, 5), false, true, false, "Damage", 0.1, 350)
  1706. handlewld.C0 = clerp(handlewld.C0, euler(1.57, 0, 0) * cf(0, 1, 0), 0.4)
  1707. wld1.C0 = clerp(wld1.C0, cf(0, 0, 0) * euler(0, 0, 0), 0.4)
  1708. Neck.C0 = clerp(Neck.C0, necko * euler(-0.5, 0, 0), 0.4)
  1709. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(1.57 + i * 12, -1.57, 1.57), 0.4)
  1710. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(0, 0, 1.57), 0.4)
  1711. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  1712. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(0, -1 + i, -1.57) * euler(0, 0, 0), 0.4)
  1713. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  1714. RH.C0 = clerp(RH.C0, cf(1, -0.25, -0.7) * euler(0, 1.57, 0) * euler(0, 0, -0.5), 0.4)
  1715. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, -1.57, 0) * euler(0, 0, 1), 0.4)
  1716. if Stagger.Value ~= true then
  1717. do
  1718. if StunT.Value <= Stun.Value then
  1719. break
  1720. end
  1721. -- DECOMPILER ERROR at PC1125: LeaveBlock: unexpected jumping out IF_THEN_STMT
  1722.  
  1723. -- DECOMPILER ERROR at PC1125: LeaveBlock: unexpected jumping out IF_STMT
  1724.  
  1725. end
  1726. end
  1727. end
  1728. hitbox.Parent = modelzorz
  1729. hitbox.Size = vt()
  1730. hitboxweld()
  1731. hboxpos.Parent = nil
  1732. if chit == false and sprint then
  1733. Sprint()
  1734. end
  1735. stopwalk = false
  1736. end
  1737. attack = false
  1738. end
  1739. end
  1740. end
  1741. end
  1742.  
  1743. do4 = function()
  1744. if attack == true then
  1745. return
  1746. end
  1747. if sprint then
  1748. Sprint()
  1749. end
  1750. if Stagger.Value == true or StunT.Value <= Stun.Value or StaggerHit.Value == true then
  1751. return
  1752. end
  1753. if cooldownmax <= cooldowns[4] and mana.Value >= 50 then
  1754. cooldowns[4] = 0
  1755. lastskill = 4
  1756. attack = true
  1757. mana.Value = mana.Value - 50
  1758. for i = 0, 1, 0.1 do
  1759. swait()
  1760. handlewld.C0 = clerp(handlewld.C0, euler(1.57, 0, 0) * cf(0, 1, 0), 0.2)
  1761. wld1.C0 = clerp(wld1.C0, cf(0, 0, 0) * euler(0.6, 0, -1), 0.2)
  1762. Neck.C0 = clerp(Neck.C0, necko * euler(-0.1, 0, 0), 0.2)
  1763. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, 0), 0.2)
  1764. RW.C0 = clerp(RW.C0, cf(1, 0.5, -0.5) * euler(1, 0, -0.5), 0.2)
  1765. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  1766. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(2.7, 0, 0) * euler(0, 0, 0.9), 0.2)
  1767. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  1768. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0, 1.57, 0) * euler(0, 0, 0), 0.3)
  1769. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, -1.57, 0) * euler(0, 0, 0), 0.3)
  1770. if Stagger.Value ~= true then
  1771. do
  1772. if StunT.Value <= Stun.Value then
  1773. break
  1774. end
  1775. -- DECOMPILER ERROR at PC251: LeaveBlock: unexpected jumping out IF_THEN_STMT
  1776.  
  1777. -- DECOMPILER ERROR at PC251: LeaveBlock: unexpected jumping out IF_STMT
  1778.  
  1779. end
  1780. end
  1781. end
  1782. so("356425259", prt5, 1, 1)
  1783. for i = 0, 1, 0.3 do
  1784. swait()
  1785. MagicCircle(BrickColor.new("Buttermilk"), "Neon", cf(prt7.Position) * cf(0, 0, 0), 30, 30, 30, -3, 0.5, -3, 0.1, 1)
  1786. end
  1787. for i = 0, 1, 0.4 do
  1788. swait()
  1789. handlewld.C0 = clerp(handlewld.C0, euler(1.57, 0, 0) * cf(0, 1, 0), 0.7)
  1790. wld1.C0 = clerp(wld1.C0, cf(0, 0, 0) * euler(-0.3, 0, 0.5), 0.7)
  1791. Neck.C0 = clerp(Neck.C0, necko * euler(0.2, 0, 0), 0.7)
  1792. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, 0), 0.7)
  1793. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(0.5, 0, 0.5), 0.7)
  1794. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.7)
  1795. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(1, 0, 0) * euler(0, 0, 0.9), 0.7)
  1796. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.7)
  1797. if Stagger.Value ~= true then
  1798. do
  1799. if StunT.Value <= Stun.Value then
  1800. break
  1801. end
  1802. -- DECOMPILER ERROR at PC449: LeaveBlock: unexpected jumping out IF_THEN_STMT
  1803.  
  1804. -- DECOMPILER ERROR at PC449: LeaveBlock: unexpected jumping out IF_STMT
  1805.  
  1806. end
  1807. end
  1808. end
  1809. for i = 0, 1, 0.1 do
  1810. swait()
  1811. handlewld.C0 = clerp(handlewld.C0, euler(0, 0, -1.5) * cf(0, 1, 0), 0.2)
  1812. wld1.C0 = clerp(wld1.C0, cf(0.15, 0, 0) * euler(0, 0, 0.5), 0.2)
  1813. Neck.C0 = clerp(Neck.C0, necko * euler(-0.2, 0, -4.5), 0.2)
  1814. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, -0.25, 4.5), 0.2)
  1815. RW.C0 = clerp(RW.C0, cf(1, 0.5, 0) * euler(0, 0, -1.6) * euler(0.8, 0.5, 0), 0.2)
  1816. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  1817. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(0, math.rad(-50), 0) * euler(math.rad(90), 0, 0), 0.2)
  1818. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0) * euler(0, 0, 0), 0.2)
  1819. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0, -4.7, 0) * euler(-0.15, 0, 0), 0.2)
  1820. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, 4.7, 0) * euler(-0.25, 0, -0.35), 0.2)
  1821. if Stagger.Value ~= true then
  1822. do
  1823. if StunT.Value <= Stun.Value then
  1824. break
  1825. end
  1826. -- DECOMPILER ERROR at PC675: LeaveBlock: unexpected jumping out IF_THEN_STMT
  1827.  
  1828. -- DECOMPILER ERROR at PC675: LeaveBlock: unexpected jumping out IF_STMT
  1829.  
  1830. end
  1831. end
  1832. end
  1833. local dec = Instance.new("NumberValue", Decrease)
  1834. dec.Name = "DecreaseMvmt"
  1835. dec.Value = 0.25
  1836. hbwld.Parent = nil
  1837. hboxpos.Parent = hitbox
  1838. hitbox.Parent = modelzorz
  1839. hitbox.Size = vt(2, 8.7, 2)
  1840. hitboxCF = prt5.CFrame * cf(0, 10, 0)
  1841. hitbox.CFrame = hitboxCF
  1842. prt7.Transparency = 1
  1843. prt6.Transparency = 1
  1844. local sndtab = {"356215636", "356215754", "356215880", "356215987"}
  1845. for i = 0, 1, 0.22 do
  1846. swait()
  1847. hitboxCF = prt5.CFrame * cf(0, 4.7, 0)
  1848. hitbox.CFrame = hitboxCF
  1849. MagicCircle(BrickColor.new("Institutional white"), "SmoothPlastic", cf(prt7.Position) * cf(math.random(-200, 200) / 100, math.random(-200, 200) / 100, math.random(-200, 200) / 100) * euler(math.rad(prt7.Rotation.X), 0, math.rad(prt7.Rotation.Z)) * euler(math.rad(math.random(-15, 15)), math.rad(math.random(-15, 15)), math.rad(math.random(-15, 15))), 2, 30, 2, -0.5, 1, -0.5, 0.15, 1)
  1850. MagniDamage(hitbox, 7, 4, 5, 0, "Normal", RootPart, 0.25, 2, 1, nil, true, false, "Defense", 0.025, 350)
  1851. so(sndtab[math.random(1, #sndtab)], prt5, 0.8, math.random(9, 11) / 10)
  1852. handlewld.C0 = clerp(handlewld.C0, euler(0, 0, -3) * cf(0, 1, 0), 0.5)
  1853. wld1.C0 = clerp(wld1.C0, cf(0, 0, 0) * euler(0, 0, 0.35), 0.5)
  1854. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0.3, -4.5), 0.5)
  1855. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, 4.5), 0.5)
  1856. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(0, 0, 1), 0.5)
  1857. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.5)
  1858. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(0, math.rad(70), 0) * euler(math.rad(90), 0, 0), 0.5)
  1859. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.5)
  1860. RH.C0 = clerp(RH.C0, cf(1.1, -0.8, 0) * euler(0, 0, 0.4) * euler(0, -4.7, 0), 0.5)
  1861. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, 0, -0.15) * euler(0, 4.7, 0), 0.5)
  1862. if StunT.Value <= Stun.Value then
  1863. break
  1864. end
  1865. end
  1866. do
  1867. for i = 1, 6 do
  1868. for i = 0, 1, 0.23 do
  1869. swait()
  1870. StaggerHit.Value = false
  1871. hitboxCF = prt5.CFrame * cf(0, 4.5, 0)
  1872. hitbox.CFrame = hitboxCF
  1873. MagniDamage(hitbox, 7, 4, 5, 0, "Normal", RootPart, 0.2, 2, 1, nil, true, false, "Defense", 0.025, 350)
  1874. MagicCircle(BrickColor.new("Institutional white"), "SmoothPlastic", cf(prt7.Position) * cf(math.random(-200, 200) / 100, math.random(-200, 200) / 100, math.random(-200, 200) / 100) * euler(math.rad(prt7.Rotation.X), 0, math.rad(prt7.Rotation.Z)) * euler(math.rad(math.random(-15, 15)), math.rad(math.random(-15, 15)), math.rad(math.random(-15, 15))), 2, 30, 2, -0.5, 1, -0.5, 0.15, 1)
  1875. so(sndtab[math.random(1, #sndtab)], prt5, 0.8, math.random(9, 11) / 10)
  1876. handlewld.C0 = clerp(handlewld.C0, euler(0, 0, -3) * cf(0, 1, 0), 0.5)
  1877. wld1.C0 = clerp(wld1.C0, cf(0, 0, 0) * euler(0, 0, 0.35), 0.5)
  1878. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0.25, -4.5), 0.5)
  1879. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, 4.5), 0.5)
  1880. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(0, 0, 1) * euler(0, 0, 0), 0.5)
  1881. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.5)
  1882. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(0, math.rad(math.random(30, 90)), 0) * euler(math.rad(math.random(70, 110)), 0, math.rad(math.random(-10, 10))), 0.5)
  1883. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.5)
  1884. RH.C0 = clerp(RH.C0, cf(1.1, -0.8, 0) * euler(0, 0, 0.4) * euler(0, -4.7, 0), 0.5)
  1885. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, 0, -0.15) * euler(0, 4.7, 0), 0.5)
  1886. end
  1887. if StunT.Value <= Stun.Value then
  1888. break
  1889. end
  1890. end
  1891. do
  1892. hitbox.Parent = modelzorz
  1893. hitbox.Size = vt()
  1894. hitboxweld()
  1895. hboxpos.Parent = nil
  1896. prt7.Transparency = 0
  1897. prt6.Transparency = 0
  1898. for i = 0, 1, 0.12 do
  1899. swait()
  1900. handlewld.C0 = clerp(handlewld.C0, euler(0, 0, -1.5) * cf(0, 1, 0), 0.25)
  1901. wld1.C0 = clerp(wld1.C0, cf(0.15, 0, 0) * euler(0, 0, 0.5), 0.25)
  1902. Neck.C0 = clerp(Neck.C0, necko * euler(-0.2, 0, -4.5), 0.25)
  1903. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, -0.25, 4.5), 0.25)
  1904. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(0, 0, 1), 0.25)
  1905. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.25)
  1906. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(0, math.rad(-50), 0) * euler(math.rad(90), 0, 0), 0.25)
  1907. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0) * euler(0, 0, 0), 0.25)
  1908. RH.C0 = clerp(RH.C0, cf(1.1, -0.8, 0) * euler(0, 0, 0.4) * euler(0, -4.7, 0), 0.25)
  1909. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, 4.7, 0) * euler(-0.25, 0, -0.35), 0.25)
  1910. if StunT.Value <= Stun.Value then
  1911. break
  1912. end
  1913. end
  1914. do
  1915. hbwld.Parent = nil
  1916. hboxpos.Parent = hitbox
  1917. hitbox.Parent = modelzorz
  1918. hitbox.Size = vt(2, 8.5, 2)
  1919. hitboxCF = prt5.CFrame * cf(0, 10, 0)
  1920. hitbox.CFrame = hitboxCF
  1921. apierce = true
  1922. so("356422588", prt5, 1, 1)
  1923. for i = 0, 1, 0.24 do
  1924. swait()
  1925. Torso.Velocity = RootPart.CFrame.lookVector * 180
  1926. hitboxCF = prt5.CFrame * cf(0, 4.5, 0)
  1927. hitbox.CFrame = hitboxCF
  1928. if i > 0.6 and i < 0.8 then
  1929. MagicCircle(BrickColor.new("Institutional white"), "Neon", prt7.CFrame * cf(0, 2, 0), 3.25, 55, 3.25, -0.1, 2, -0.1, 0.05, 1)
  1930. MagicWave(BrickColor.new("Institutional white"), prt7.CFrame * euler(0, i, math.rad(180)) * cf(0, 2, 0), 0.65, 2.5, 0.65, -0.01, 0.5, -0.01, 0.05, 1)
  1931. MagicWave(BrickColor.new("Institutional white"), prt7.CFrame * euler(0, i, math.rad(180)) * cf(0, 6, 0), 2.5, 0.8, 2.5, -0.05, 0.25, -0.05, 0.05, 1)
  1932. MagicCrown(BrickColor.new("Institutional white"), prt7.CFrame * euler(0, i, math.rad(180)) * cf(0, 9, 0), 2.45, 4, 2.45, -0.1, 0.1, -0.1, 0.05, 1)
  1933. end
  1934. MagniDamage(hitbox, 7, 10, 15, math.random(62, 66), "Normal", RootPart, 0.5, 2, (math.random(10, 14)), nil, true, false, "Defense", 0.15, 450)
  1935. handlewld.C0 = clerp(handlewld.C0, euler(0, 0, -3.2) * cf(0, 1, 0), 0.7)
  1936. wld1.C0 = clerp(wld1.C0, cf(0, 0, 0) * euler(0, 0, 0.35), 0.7)
  1937. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0.05, 1.25), 0.7)
  1938. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0.1, 0, -1.25), 0.7)
  1939. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(0.8, 0, 1), 0.7)
  1940. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.7)
  1941. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(0, math.rad(48), 0) * euler(math.rad(100), 0, 0), 0.7)
  1942. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.7)
  1943. RH.C0 = clerp(RH.C0, cf(1.1, -0.8, 0) * euler(0, 0, 0.4) * euler(0, -4.7, 0), 0.7)
  1944. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, 0, 0.15) * euler(0, 4.7, 0), 0.7)
  1945. if StunT.Value <= Stun.Value then
  1946. break
  1947. end
  1948. end
  1949. do
  1950. apierce = false
  1951. Torso.Velocity = RootPart.CFrame.lookVector * 0
  1952. hitbox.Parent = modelzorz
  1953. hitbox.Size = vt()
  1954. hitboxweld()
  1955. hboxpos.Parent = nil
  1956. dec.Parent = nil
  1957. stabbing = false
  1958. attack = false
  1959. end
  1960. end
  1961. end
  1962. end
  1963. end
  1964. end
  1965.  
  1966. DecreaseStat = function(Model, Stat, Amount, Duration)
  1967. if Model:findFirstChild("Stats") ~= nil and Model.Stats[Stat] ~= nil then
  1968. Model.Stats[Stat].Value = Model.Stats[Stat].Value - Amount
  1969. d = Instance.new("NumberValue", Model.Stats.Decrease)
  1970. dur = Instance.new("NumberValue", d)
  1971. dur.Name = "Duration"
  1972. dur.Value = Duration
  1973. game:GetService("Debris"):AddItem(d, 20)
  1974. if Stat == "Damage" then
  1975. d.Name = "DecreaseAtk"
  1976. else
  1977. if Stat == "Defense" then
  1978. d.Name = "DecreaseDef"
  1979. else
  1980. if Stat == "Movement" then
  1981. d.Name = "DecreaseMvmt"
  1982. end
  1983. end
  1984. end
  1985. if Model:findFirstChild("Torso") ~= nil then
  1986. display = ""
  1987. if Stat == "Damage" then
  1988. if Amount > 0 then
  1989. display = "-Damage"
  1990. else
  1991. display = "+Damage"
  1992. end
  1993. else
  1994. if Stat == "Defense" then
  1995. if Amount > 0 then
  1996. display = "-Defense"
  1997. else
  1998. display = "+Defense"
  1999. end
  2000. else
  2001. if Stat == "Movement" then
  2002. if Amount > 0 then
  2003. display = "-Movement"
  2004. else
  2005. display = "+Movement"
  2006. end
  2007. end
  2008. end
  2009. end
  2010. showDamage(Model, display, "Debuff")
  2011. end
  2012. d.Value = Amount
  2013. end
  2014. end
  2015.  
  2016. GetDist = function(Part1, Part2, magni)
  2017. local targ = Part1.Position - Part2.Position
  2018. local mag = targ.magnitude
  2019. if mag <= magni then
  2020. return true
  2021. else
  2022. return false
  2023. end
  2024. end
  2025.  
  2026. MagniDamage = function(Part, magni, minim, maxim, knockback, Type, Property, Delay, KnockbackType, incstun, stagger, staghit, ranged, DecreaseState, DecreaseAmount, Duration)
  2027. for _,c in pairs(workspace:children()) do
  2028. local hum = c:findFirstChild("Humanoid")
  2029. if hum ~= nil then
  2030. local head = nil
  2031. for _,d in pairs(c:children()) do
  2032. if d.className == "Model" and ranged ~= true then
  2033. head = d:findFirstChild("Hitbox")
  2034. if d.Parent == Character then
  2035. break
  2036. end
  2037. if head ~= nil then
  2038. local targ = head.Position - Part.Position
  2039. local mag = targ.magnitude
  2040. if mag <= magni and c.Name ~= Player.Name then
  2041. ref = part(3, workspace, 0, 1, BrickColor.new("Black"), "Reference", vt())
  2042. ref.Anchored = true
  2043. ref.CFrame = cf(head.Position)
  2044. game:GetService("Debris"):AddItem(ref, 1)
  2045. hitnum = math.random(1, 5)
  2046. if hitnum == 1 then
  2047. so("199148971", ref, 1, 1)
  2048. else
  2049. if hitnum == 2 then
  2050. so("199149025", ref, 1, 1)
  2051. else
  2052. if hitnum == 3 then
  2053. so("199149072", ref, 1, 1)
  2054. else
  2055. if hitnum == 4 then
  2056. so("199149109", ref, 1, 1)
  2057. else
  2058. if hitnum == 5 then
  2059. so("199149119", ref, 1, 1)
  2060. end
  2061. end
  2062. end
  2063. end
  2064. end
  2065. StaggerHit.Value = true
  2066. end
  2067. end
  2068. end
  2069. do
  2070. if d.className == "Part" then
  2071. head = d
  2072. if head ~= nil then
  2073. local targ = head.Position - Part.Position
  2074. local mag = targ.magnitude
  2075. if mag <= magni and c.Name ~= Player.Name then
  2076. if stun == nil then
  2077. stun = math.random(5, 10)
  2078. end
  2079. local Rang = nil
  2080. if Ranged == false then
  2081. Rang = true
  2082. end
  2083. local stag = nil
  2084. if shbash == true then
  2085. stag = true
  2086. end
  2087. Damagefunc(head, minim, maxim, knockback, Type, Property, Delay, KnockbackType, incstun, stagger, staghit, ranged, DecreaseState, DecreaseAmount, Duration)
  2088. end
  2089. end
  2090. end
  2091. do
  2092. -- DECOMPILER ERROR at PC183: LeaveBlock: unexpected jumping out DO_STMT
  2093.  
  2094. end
  2095. end
  2096. end
  2097. end
  2098. end
  2099. end
  2100.  
  2101. MagniBuff = function(Part, magni, Dec, DecAm, Dur, others)
  2102. if Player.Neutral == true then
  2103. DecreaseStat(Character, Dec, DecAm / 2, Dur)
  2104. end
  2105. for _,c in pairs(workspace:children()) do
  2106. local hum = c:findFirstChild("Humanoid")
  2107. if hum ~= nil then
  2108. local head = c:findFirstChild("Torso")
  2109. if head ~= nil then
  2110. local targ = head.Position - Part.Position
  2111. local mag = targ.magnitude
  2112. -- DECOMPILER ERROR at PC67: Unhandled construct in 'MakeBoolean' P1
  2113.  
  2114. if others == nil and mag <= magni and Player.Neutral == false and game.Players:GetPlayerFromCharacter(head.Parent) ~= nil and game.Players:GetPlayerFromCharacter(head.Parent) ~= nil and game.Players:GetPlayerFromCharacter(head.Parent).TeamColor == Player.TeamColor then
  2115. DecreaseStat(head.Parent, Dec, DecAm, Dur)
  2116. end
  2117. end
  2118. end
  2119. if Player.Neutral == false and game.Players:GetPlayerFromCharacter(head.Parent) ~= nil and mag <= magni and head.Parent ~= Character and game.Players:GetPlayerFromCharacter(head.Parent) ~= nil and game.Players:GetPlayerFromCharacter(head.Parent).TeamColor == Player.TeamColor then
  2120. DecreaseStat(head.Parent, Dec, DecAm, Dur)
  2121. end
  2122. end
  2123. end
  2124.  
  2125. MagniDebuff = function(Part, magni, Dec, DecAm, Dur)
  2126. for _,c in pairs(workspace:children()) do
  2127. local hum = c:findFirstChild("Humanoid")
  2128. if hum ~= nil then
  2129. local head = c:findFirstChild("Torso")
  2130. if head ~= nil then
  2131. local targ = head.Position - Part.Position
  2132. local mag = targ.magnitude
  2133. if mag <= magni and c.Name ~= Player.Name and game.Players:GetPlayerFromCharacter(head.Parent) ~= nil and (game.Players:GetPlayerFromCharacter(head.Parent).TeamColor ~= Player.TeamColor or Player.Neutral == true) then
  2134. DecreaseStat(head.Parent, Dec, DecAm, Dur)
  2135. end
  2136. end
  2137. end
  2138. --DecreaseStat(head.Parent, Dec, DecAm, Dur)
  2139. end
  2140. end
  2141.  
  2142. rayCast = function(Pos, Dir, Max, Ignore)
  2143. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  2144. end
  2145.  
  2146. local Point = Torso.CFrame * cf(0, Torso.Size.Y, 0)
  2147. LastPoint = Point
  2148. effect = function(Color, Ref, LP, P1, returnn)
  2149. if LP == nil or P1 == nil then
  2150. return
  2151. end
  2152. local effectsmsh = Instance.new("CylinderMesh")
  2153. effectsmsh.Scale = Vector3.new(0.2, 1, 0.2)
  2154. effectsmsh.Name = "Mesh"
  2155. local effectsg = Instance.new("Part")
  2156. NoOutline(effectsg)
  2157. effectsg.formFactor = 3
  2158. effectsg.CanCollide = false
  2159. effectsg.Name = "Eff"
  2160. effectsg.Locked = true
  2161. effectsg.Anchored = true
  2162. effectsg.Size = Vector3.new(0.5, 1, 0.5)
  2163. effectsg.Parent = workspace
  2164. effectsmsh.Parent = effectsg
  2165. effectsg.BrickColor = BrickColor.new(Color)
  2166. effectsg.Reflectance = Ref
  2167. local point1 = P1
  2168. local mg = (LP.p - point1.p).magnitude
  2169. effectsg.Size = Vector3.new(0.5, mg, 0.5)
  2170. effectsg.CFrame = cf((LP.p + point1.p) / 2, point1.p) * CFrame.Angles(math.rad(90), 0, 0)
  2171. effectsmsh.Scale = Vector3.new(0.2, 1, 0.2)
  2172. game:GetService("Debris"):AddItem(effectsg, 2)
  2173. if returnn then
  2174. return effectsg
  2175. end
  2176. if not returnn then
  2177. table.insert(Effects, {effectsg, "Cylinder", 0.2, 0.01, 0, 0.01, effectsmsh})
  2178. end
  2179. end
  2180.  
  2181. MagicRing = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  2182. local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  2183. prt.Anchored = true
  2184. prt.CFrame = cframe * cf(x2, y2, z2)
  2185. local msh = mesh("SpecialMesh", prt, "FileMesh", "3270017", vt(0, 0, 0), vt(x1, y1, z1))
  2186. game:GetService("Debris"):AddItem(prt, 10)
  2187. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  2188. end
  2189.  
  2190. MagicWave = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  2191. local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt())
  2192. prt.Anchored = true
  2193. prt.CFrame = cframe
  2194. local msh = mesh("SpecialMesh", prt, "FileMesh", "20329976", vt(0, 0, 0), vt(x1, y1, z1))
  2195. game:GetService("Debris"):AddItem(prt, 10)
  2196. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  2197. end
  2198.  
  2199. MagicCrown = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  2200. local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt())
  2201. prt.Anchored = true
  2202. prt.CFrame = cframe
  2203. local msh = mesh("SpecialMesh", prt, "FileMesh", "1323306", vt(0, 0, 0), vt(x1, y1, z1))
  2204. game:GetService("Debris"):AddItem(prt, 10)
  2205. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  2206. end
  2207.  
  2208. MagicSpike = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  2209. local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt())
  2210. prt.Anchored = true
  2211. prt.CFrame = cframe
  2212. local msh = mesh("SpecialMesh", prt, "FileMesh", "1033714", vt(0, 0, 0), vt(x1, y1, z1))
  2213. game:GetService("Debris"):AddItem(prt, 10)
  2214. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  2215. end
  2216.  
  2217. effect2 = function(Color, Ref, LP, P1, returnn, size, raa)
  2218. if LP == nil or P1 == nil then
  2219. return
  2220. end
  2221. MshTypee = "CylinderMesh"
  2222. if raa == 2 then
  2223. MshTypee = "BlockMesh"
  2224. end
  2225. local effectsmsh = Instance.new(MshTypee)
  2226. effectsmsh.Scale = Vector3.new(0.2, 1, 0.2)
  2227. effectsmsh.Name = "Mesh"
  2228. local effectsg = Instance.new("Part")
  2229. NoOutline(effectsg)
  2230. if raa == 2 then
  2231. effectsg.Material = "Neon"
  2232. end
  2233. effectsg.formFactor = 3
  2234. effectsg.CanCollide = false
  2235. effectsg.Name = "Eff"
  2236. effectsg.Locked = true
  2237. effectsg.Anchored = true
  2238. effectsg.Size = Vector3.new(0.5, 1, 0.5)
  2239. effectsg.Parent = workspace
  2240. effectsmsh.Parent = effectsg
  2241. effectsg.BrickColor = BrickColor.new(Color)
  2242. effectsg.Reflectance = Ref
  2243. local point1 = P1
  2244. local mg = (LP.p - point1.p).magnitude
  2245. effectsg.Size = Vector3.new(0.5, mg, 0.5)
  2246. effectsg.CFrame = cf((LP.p + point1.p) / 2, point1.p) * CFrame.Angles(math.rad(90), 0, 0)
  2247. effectsmsh.Scale = Vector3.new(size, 1, size)
  2248. game:GetService("Debris"):AddItem(effectsg, 5)
  2249. if returnn then
  2250. return effectsg
  2251. end
  2252. if not returnn then
  2253. if raa == 2 then
  2254. table.insert(Effects, {effectsg, "Cylinder", 0.05, -0.02, 0, -0.02, effectsmsh})
  2255. else
  2256. table.insert(Effects, {effectsg, "Cylinder", 0.1, -0.2, 0, -0.2, effectsmsh})
  2257. end
  2258. end
  2259. end
  2260.  
  2261. MagicBlock = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
  2262. local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt())
  2263. prt.Anchored = true
  2264. prt.CFrame = cframe
  2265. msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
  2266. game:GetService("Debris"):AddItem(prt, 10)
  2267. if Type == 1 or Type == nil then
  2268. table.insert(Effects, {prt, "Block1", delay, x3, y3, z3, msh})
  2269. else
  2270. if Type == 2 then
  2271. table.insert(Effects, {prt, "Block2", delay, x3, y3, z3, msh})
  2272. end
  2273. end
  2274. end
  2275.  
  2276. MagicCircle = function(brickcolor, material, cframe, x1, y1, z1, x3, y3, z3, delay)
  2277. local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt())
  2278. prt.Anchored = true
  2279. prt.Material = material
  2280. prt.CFrame = cframe
  2281. local msh = mesh("SpecialMesh", prt, "Sphere", "nil", vt(0, 0, 0), vt(x1, y1, z1))
  2282. game:GetService("Debris"):AddItem(prt, 10)
  2283. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  2284. end
  2285.  
  2286. MagicCylinder = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  2287. local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt())
  2288. prt.Anchored = true
  2289. prt.CFrame = cframe
  2290. local msh = mesh("CylinderMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
  2291. game:GetService("Debris"):AddItem(prt, 10)
  2292. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  2293. end
  2294.  
  2295. MagicHead = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  2296. local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt())
  2297. prt.Anchored = true
  2298. prt.CFrame = cframe
  2299. local msh = mesh("SpecialMesh", prt, "Head", "nil", vt(0, 0, 0), vt(x1, y1, z1))
  2300. game:GetService("Debris"):AddItem(prt, 10)
  2301. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  2302. end
  2303.  
  2304. ClangEffect = function(brickcolor, cframe, duration, decrease, size, power)
  2305. local prt = part(3, workspace, 0, 1, brickcolor, "Effect", vt())
  2306. prt.Anchored = true
  2307. prt.CFrame = cframe
  2308. local msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(5, 5, 5))
  2309. game:GetService("Debris"):AddItem(prt, 10)
  2310. table.insert(Effects, {prt, "CylinderClang", duration, decrease, size, power, prt.CFrame, nil})
  2311. end
  2312.  
  2313. MagicWave = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  2314. local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt())
  2315. prt.Anchored = true
  2316. prt.CFrame = cframe
  2317. local msh = mesh("SpecialMesh", prt, "FileMesh", "20329976", vt(0, 0, 0), vt(x1, y1, z1))
  2318. game:GetService("Debris"):AddItem(prt, 10)
  2319. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  2320. end
  2321.  
  2322. Damagefunc = function(hit, minim, maxim, knockback, Type, Property, Delay, KnockbackType, incstun, stagger, staghit, ranged, DecreaseState, DecreaseAmount, Duration)
  2323. if hit.Parent == nil then
  2324. return
  2325. end
  2326. if hit.Name == "Hitbox" and hit.Parent ~= modelzorz and ranged ~= true then
  2327. ref = part(3, workspace, 0, 1, BrickColor.new("Black"), "Reference", vt())
  2328. ref.Anchored = true
  2329. ref.CFrame = cf(hit.Position)
  2330. game:GetService("Debris"):AddItem(ref, 1)
  2331. hitnum = math.random(1, 5)
  2332. if hitnum == 1 then
  2333. so("199148971", ref, 1, 1)
  2334. else
  2335. if hitnum == 2 then
  2336. so("199149025", ref, 1, 1)
  2337. else
  2338. if hitnum == 3 then
  2339. so("199149072", ref, 1, 1)
  2340. else
  2341. if hitnum == 4 then
  2342. so("199149109", ref, 1, 1)
  2343. else
  2344. if hitnum == 5 then
  2345. so("199149119", ref, 1, 1)
  2346. end
  2347. end
  2348. end
  2349. end
  2350. end
  2351. StaggerHit.Value = true
  2352. end
  2353. h = hit.Parent:FindFirstChild("Humanoid")
  2354. if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
  2355. if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then
  2356. return
  2357. end
  2358. if Player.Neutral == false then
  2359. if hit.Parent:findFirstChild("Alignment") ~= nil and hit.Parent.Alignment.Value == Player.TeamColor.Color then
  2360. return
  2361. end
  2362. if game.Players:GetPlayerFromCharacter(hit.Parent) ~= nil and game.Players:GetPlayerFromCharacter(hit.Parent).TeamColor == Player.TeamColor then
  2363. return
  2364. end
  2365. end
  2366. c = Instance.new("ObjectValue")
  2367. c.Name = "creator"
  2368. c.Value = game:service("Players").LocalPlayer
  2369. c.Parent = h
  2370. RecentEnemy.Value = hit.Parent
  2371. game:GetService("Debris"):AddItem(c, 0.5)
  2372. minim = minim * Atk.Value
  2373. maxim = maxim * Atk.Value
  2374. Damage = 0
  2375. if minim == maxim then
  2376. Damage = maxim
  2377. else
  2378. Damage = math.random(minim, maxim)
  2379. end
  2380. blocked = false
  2381. enblock = nil
  2382. Stats = hit.Parent:findFirstChild("Stats")
  2383. if Stats ~= nil then
  2384. invis = Stats:findFirstChild("Invisibility")
  2385. isinvis = Stats:findFirstChild("IsInvisible")
  2386. if (ranged == false or ranged == nil) and invis ~= nil and isinvis.Value == true then
  2387. invis.Value = 0
  2388. end
  2389. enblock = Stats:findFirstChild("Block")
  2390. if enblock ~= nil and enblock.Value == true then
  2391. blocked = true
  2392. end
  2393. if Stats:findFirstChild("Defense") ~= nil then
  2394. Damage = Damage / Stats.Defense.Value
  2395. if Damage <= 3 and (ranged == false or ranged == nil) and blocked ~= true then
  2396. hitnum = math.random(1, 5)
  2397. if hitnum == 1 then
  2398. so("199149321", hit, 1, 1)
  2399. else
  2400. if hitnum == 2 then
  2401. so("199149338", hit, 1, 1)
  2402. else
  2403. if hitnum == 3 then
  2404. so("199149367", hit, 1, 1)
  2405. else
  2406. if hitnum == 4 then
  2407. so("199149409", hit, 1, 1)
  2408. else
  2409. if hitnum == 5 then
  2410. so("199149452", hit, 1, 1)
  2411. end
  2412. end
  2413. end
  2414. end
  2415. end
  2416. else
  2417. if ranged == false or ranged == nil and blocked ~= true then
  2418. hitnum = math.random(1, 6)
  2419. if hitnum == 1 then
  2420. so("199149137", hit, 1, 1)
  2421. else
  2422. if hitnum == 2 then
  2423. so("199149186", hit, 1, 1)
  2424. else
  2425. if hitnum == 3 then
  2426. so("199149221", hit, 1, 1)
  2427. else
  2428. if hitnum == 4 then
  2429. so("199149235", hit, 1, 1)
  2430. else
  2431. if hitnum == 5 then
  2432. so("199149269", hit, 1, 1)
  2433. else
  2434. if hitnum == 6 then
  2435. so("199149297", hit, 1, 1)
  2436. end
  2437. end
  2438. end
  2439. end
  2440. end
  2441. end
  2442. end
  2443. end
  2444. if Damage <= 3 and staghit == true and ranged ~= true then
  2445. StaggerHit.Value = true
  2446. end
  2447. end
  2448. if Stats:findFirstChild("Stun") ~= nil then
  2449. if blocked == true then
  2450. incstun = incstun / 2
  2451. end
  2452. if Stats.Stun.Value < Stats.StunThreshold.Value then
  2453. Stats.Stun.Value = Stats.Stun.Value + incstun
  2454. end
  2455. end
  2456. if Stats:findFirstChild("Stagger") ~= nil and stagger == true then
  2457. Stats.Stagger.Value = true
  2458. end
  2459. end
  2460. if blocked == true then
  2461. showDamage(hit.Parent, "Block", "Damage")
  2462. if ranged ~= true then
  2463. enblock.Value = false
  2464. Stagger.Value = true
  2465. hitnum = math.random(1, 2)
  2466. if hitnum == 1 then
  2467. so("199148933", hit, 1, 1)
  2468. else
  2469. if hitnum == 2 then
  2470. so("199148947", hit, 1, 1)
  2471. end
  2472. end
  2473. end
  2474. else
  2475. Damage = math.floor(Damage)
  2476. coroutine.resume(coroutine.create(function(Hum, Dam)
  2477. CurrentHealth = Hum.Health
  2478. h:TakeDamage(Damage)
  2479. end), h, Damage)
  2480. showDamage(hit.Parent, Damage, "Damage")
  2481. if DecreaseState ~= nil then
  2482. if DecreaseState == "Temporal" then
  2483. DecreaseStat(hit.Parent, "Damage", DecreaseAmount, Duration)
  2484. DecreaseStat(hit.Parent, "Defense", DecreaseAmount, Duration)
  2485. else
  2486. if DecreaseState == "Temporal2" then
  2487. DecreaseStat(hit.Parent, "Damage", DecreaseAmount, Duration)
  2488. DecreaseStat(hit.Parent, "Movement", DecreaseAmount, Duration)
  2489. else
  2490. DecreaseStat(hit.Parent, DecreaseState, DecreaseAmount, Duration)
  2491. end
  2492. end
  2493. end
  2494. if smite == true then
  2495. so("178452217", hit, 1, 1)
  2496. smtarget = hit.Parent
  2497. if smtarget:findFirstChild("Stats") ~= nil then
  2498. d1 = Instance.new("NumberValue", smtarget.Stats.Decrease)
  2499. d1.Name = "DecreaseAtk"
  2500. d1.Value = 10
  2501. dur1 = Instance.new("NumberValue", d1)
  2502. dur1.Name = "Duration"
  2503. dur1.Value = 9999
  2504. d2 = Instance.new("NumberValue", smtarget.Stats.Decrease)
  2505. d2.Name = "DecreaseDef"
  2506. d2.Value = -9
  2507. dur2 = Instance.new("NumberValue", d2)
  2508. dur2.Name = "Duration"
  2509. dur2.Value = 9999
  2510. d3 = Instance.new("NumberValue", smtarget.Stats.Decrease)
  2511. d3.Name = "DecreaseMvmt"
  2512. d3.Value = 10
  2513. dur3 = Instance.new("NumberValue", d3)
  2514. dur3.Name = "Duration"
  2515. dur3.Value = 9999
  2516. ref2 = part(3, nil, 0, 1, BrickColor.new("Black"), "Reference", vt())
  2517. ref2.Anchored = true
  2518. table.insert(Effects, {smtarget, "Smite", 500, d1, d2, d3, dur1, dur2, dur3, smtarget.Stats.Decrease, smtarget.Torso, ref2})
  2519. end
  2520. end
  2521. if Type == "Knockdown" then
  2522. hum = hit.Parent.Humanoid
  2523. hum.PlatformStand = true
  2524. coroutine.resume(coroutine.create(function(HHumanoid)
  2525. swait(1)
  2526. HHumanoid.PlatformStand = false
  2527. end), hum)
  2528. local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit
  2529. local bodvol = Instance.new("BodyVelocity")
  2530. bodvol.velocity = angle * knockback
  2531. bodvol.P = 5000
  2532. bodvol.maxForce = Vector3.new(8000, 8000, 8000)
  2533. bodvol.Parent = hit
  2534. rl = Instance.new("BodyAngularVelocity")
  2535. rl.P = 3000
  2536. rl.maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000
  2537. rl.angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10))
  2538. rl.Parent = hit
  2539. game:GetService("Debris"):AddItem(bodvol, 0.5)
  2540. game:GetService("Debris"):AddItem(rl, 0.5)
  2541. else
  2542. do
  2543. if Type == "Knockdown2" then
  2544. hum = hit.Parent.Humanoid
  2545. local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit
  2546. local bodvol = Instance.new("BodyVelocity")
  2547. bodvol.velocity = angle * knockback
  2548. bodvol.P = 5000
  2549. bodvol.maxForce = Vector3.new(8000, 8000, 8000)
  2550. bodvol.Parent = hit
  2551. game:GetService("Debris"):AddItem(bodvol, 0.5)
  2552. else
  2553. do
  2554. if Type == "Normal" or Type == "NormalDecreaseMvmt1" then
  2555. vp = Instance.new("BodyVelocity")
  2556. vp.P = 500
  2557. vp.maxForce = Vector3.new(math.huge, 0, math.huge)
  2558. if KnockbackType == 1 then
  2559. vp.velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05
  2560. else
  2561. if KnockbackType == 2 then
  2562. vp.velocity = Property.CFrame.lookVector * knockback
  2563. end
  2564. end
  2565. game:GetService("Debris"):AddItem(vp, 0.5)
  2566. if knockback > 0 then
  2567. vp.Parent = hit.Parent.Torso
  2568. end
  2569. end
  2570. debounce = Instance.new("BoolValue")
  2571. debounce.Name = "DebounceHit"
  2572. debounce.Parent = hit.Parent
  2573. debounce.Value = true
  2574. game:GetService("Debris"):AddItem(debounce, Delay)
  2575. c = Instance.new("ObjectValue")
  2576. c.Name = "creator"
  2577. c.Value = Player
  2578. c.Parent = h
  2579. game:GetService("Debris"):AddItem(c, 0.5)
  2580. CRIT = false
  2581. end
  2582. end
  2583. end
  2584. end
  2585. end
  2586. end
  2587. end
  2588.  
  2589. showDamage = function(Char, Dealt, Type)
  2590. m = Instance.new("Model")
  2591. m.Name = "Effect"
  2592. c = Instance.new("Part")
  2593. c.Transparency = 1
  2594. c.Name = "Head"
  2595. c.TopSurface = 0
  2596. c.BottomSurface = 0
  2597. c.formFactor = "Plate"
  2598. c.Size = Vector3.new(1, 0.4, 1)
  2599. b = Instance.new("BillboardGui", c)
  2600. b.Size = UDim2.new(5, 0, 5, 0)
  2601. b.AlwaysOnTop = true
  2602. damgui = gui("TextLabel", b, tostring(Dealt), 1, Color3.new(0, 0, 0), UDim2.new(0, 0, 0, 0), UDim2.new(1, 0, 1, 0))
  2603. if Type == "Damage" then
  2604. damgui.Font = "SourceSans"
  2605. if Dealt == "Block" then
  2606. damgui.TextColor3 = BrickColor.new("Bright blue").Color
  2607. else
  2608. if Dealt < 3 then
  2609. damgui.TextColor3 = BrickColor.new("White").Color
  2610. else
  2611. if Dealt >= 3 and Dealt < 20 then
  2612. damgui.TextColor3 = BrickColor.new("Bright yellow").Color
  2613. else
  2614. damgui.TextColor3 = BrickColor.new("Really red").Color
  2615. damgui.Font = "SourceSansBold"
  2616. end
  2617. end
  2618. end
  2619. else
  2620. if Type == "Debuff" then
  2621. damgui.TextColor3 = BrickColor.new("White").Color
  2622. else
  2623. if Type == "Interrupt" then
  2624. damgui.TextColor3 = BrickColor.new("New Yeller").Color
  2625. else
  2626. if Type == "Heal" then
  2627. damgui.TextColor3 = BrickColor.new("Bright green").Color
  2628. end
  2629. end
  2630. end
  2631. end
  2632. damgui.TextScaled = true
  2633. ms = Instance.new("CylinderMesh")
  2634. ms.Scale = Vector3.new(0.8, 0.8, 0.8)
  2635. ms.Parent = c
  2636. c.Reflectance = 0
  2637. Instance.new("BodyGyro").Parent = c
  2638. c.Parent = m
  2639. if Char:findFirstChild("Head") ~= nil then
  2640. c.CFrame = cf(Char.Head.CFrame.p + Vector3.new(math.random(-100, 100) / 100, 3, math.random(-100, 100) / 100))
  2641. else
  2642. if Char.Parent:findFirstChild("Head") ~= nil then
  2643. c.CFrame = cf(Char.Parent.Head.CFrame.p + Vector3.new(math.random(-100, 100) / 100, 3, math.random(-100, 100) / 100))
  2644. end
  2645. end
  2646. f = Instance.new("BodyPosition")
  2647. f.P = 2000
  2648. f.D = 100
  2649. f.maxForce = Vector3.new(545000, 545000, 545000)
  2650. if Type == "Damage" or Type == "Heal" then
  2651. f.position = c.Position + Vector3.new(0, 3, 0)
  2652. else
  2653. if Type == "Debuff" or Type == "Interrupt" then
  2654. f.position = c.Position + Vector3.new(0, 5, 0)
  2655. end
  2656. end
  2657. f.Parent = c
  2658. game:GetService("Debris"):AddItem(m, 5)
  2659. table.insert(Effects, {m, "showDamage", damgui, f, 10, 1, 15, 50, 100})
  2660. c.CanCollide = false
  2661. m.Parent = workspace
  2662. c.CanCollide = false
  2663. end
  2664.  
  2665. combo = 0
  2666. ob1d = function(mouse)
  2667. if GuardStance == true and MMouse.Target ~= nil then
  2668. if MMouse.Target.Parent.Parent:findFirstChild("Humanoid") ~= nil and MMouse.Target.Parent.Parent:findFirstChild("Torso") ~= nil then
  2669. Target = MMouse.Target.Parent.Parent
  2670. GuardStance = false
  2671. end
  2672. if MMouse.Target.Parent:findFirstChild("Humanoid") ~= nil and MMouse.Target.Parent:findFirstChild("Torso") ~= nil then
  2673. Target = MMouse.Target.Parent
  2674. GuardStance = false
  2675. end
  2676. end
  2677. if attack == true or equipped == false then
  2678. return
  2679. end
  2680. hold = true
  2681. if combo == 0 then
  2682. combo = 1
  2683. dattackone()
  2684. else
  2685. if combo == 1 then
  2686. combo = 2
  2687. dattacktwo()
  2688. else
  2689. if combo == 2 then
  2690. combo = 3
  2691. dattackthree()
  2692. else
  2693. if combo == 3 then
  2694. combo = 0
  2695. dattackfour()
  2696. end
  2697. end
  2698. end
  2699. end
  2700. coroutine.resume(coroutine.create(function()
  2701. for i = 1, 50 do
  2702. if attack == false then
  2703. swait()
  2704. end
  2705. end
  2706. if attack == false then
  2707. combo = 0
  2708. end
  2709. end
  2710. ))
  2711. end
  2712.  
  2713. ob1u = function(mouse)
  2714. hold = false
  2715. end
  2716.  
  2717. buttonhold = false
  2718. fenbarmove1.MouseButton1Click:connect(do1)
  2719. fenbarmove2.MouseButton1Click:connect(do2)
  2720. fenbarmove3.MouseButton1Click:connect(do3)
  2721. fenbarmove4.MouseButton1Click:connect(do4)
  2722. eul = 0
  2723. equipped = false
  2724. key = function(key)
  2725. if attack == true then
  2726. return
  2727. end
  2728. if key == "f" then
  2729. pressedf = true
  2730. fnumb = 0
  2731. attack = true
  2732. if equipped == false then
  2733. equipped = true
  2734. RSH = ch.Torso["Right Shoulder"]
  2735. LSH = ch.Torso["Left Shoulder"]
  2736. RSH.Parent = nil
  2737. LSH.Parent = nil
  2738. RW.Name = "Right Shoulder"
  2739. RW.Part0 = ch.Torso
  2740. RW.C0 = cf(1.5, 0.5, 0)
  2741. RW.C1 = cf(0, 0.5, 0)
  2742. RW.Part1 = ch["Right Arm"]
  2743. RW.Parent = ch.Torso
  2744. LW.Name = "Left Shoulder"
  2745. LW.Part0 = ch.Torso
  2746. LW.C0 = cf(-1.5, 0.5, 0)
  2747. LW.C1 = cf(0, 0.5, 0)
  2748. LW.Part1 = ch["Left Arm"]
  2749. LW.Parent = ch.Torso
  2750. Animate.Parent = nil
  2751. equipanim()
  2752. else
  2753. equipped = false
  2754. hideanim()
  2755. LH.C1 = LHC1
  2756. RH.C1 = RHC1
  2757. Animate.Parent = Humanoid
  2758. swait(0)
  2759. RW.Parent = nil
  2760. LW.Parent = nil
  2761. RSH.Parent = player.Character.Torso
  2762. LSH.Parent = player.Character.Torso
  2763. end
  2764. attack = false
  2765. end
  2766. if equipped == false then
  2767. return
  2768. end
  2769. if key == "e" then
  2770. Sprint()
  2771. end
  2772. if key == "z" then
  2773. do1()
  2774. end
  2775. if key == "x" then
  2776. do2()
  2777. end
  2778. if key == "c" then
  2779. do3()
  2780. end
  2781. if key == "v" then
  2782. do4()
  2783. end
  2784. if key == "h" and (Player.Name == "speedydude900" or Player.Name == "Player" or Player.Name == "Player1") then
  2785. mana.Value = 100
  2786. cooldowns[1] = 100
  2787. cooldowns[2] = 100
  2788. cooldowns[3] = 100
  2789. cooldowns[4] = 100
  2790. end
  2791. if attack == false then
  2792. RecentEnemy.Value = nil
  2793. end
  2794. end
  2795.  
  2796. key2 = function(key)
  2797. end
  2798.  
  2799. s = function(mouse)
  2800. mouse.Button1Down:connect(function()
  2801. ob1d(mouse)
  2802. end
  2803. )
  2804. mouse.Button1Up:connect(function()
  2805. ob1u(mouse)
  2806. end
  2807. )
  2808. mouse.KeyDown:connect(key)
  2809. mouse.KeyUp:connect(key2)
  2810. player = Player
  2811. ch = Character
  2812. MMouse = mouse
  2813. end
  2814.  
  2815. ds = function(mouse)
  2816. end
  2817.  
  2818. Bin.Selected:connect(s)
  2819. Bin.Deselected:connect(ds)
  2820. print("Sievert loaded.")
  2821. local mananum = 0
  2822. local donum = 0
  2823. local stunnum = 0
  2824. local staggeranim = false
  2825. local stunanim = false
  2826. local passivenum = 0
  2827. local walk = 0
  2828. local floornum = 0
  2829. local walkforw = true
  2830. while 1 do
  2831. swait()
  2832. if Humanoid.Health <= 0 then
  2833. attack = true
  2834. resumeControl()
  2835. modelzorz.Parent = workspace
  2836. game:GetService("Debris"):AddItem(modelzorz, 30)
  2837. for i = 1, #Weapon do
  2838. Weapon[i].Parent = modelzorz
  2839. Weapon[i].CanCollide = true
  2840. end
  2841. for i = 1, #Welds do
  2842. if Welds[i].Part0.Parent == Character or Welds[i].Part1.Parent == Character then
  2843. Welds[i].Parent = nil
  2844. else
  2845. Welds[i].Parent = prt1
  2846. end
  2847. end
  2848. end
  2849. do
  2850. if fnumb < 21 then
  2851. fnumb = fnumb + 1
  2852. if pressedf == false then
  2853. fenframe5.BackgroundTransparency = fenframe5.BackgroundTransparency - 0.025
  2854. tellbar.TextTransparency = tellbar.TextTransparency - 0.05
  2855. tellbar.TextStrokeTransparency = tellbar.TextStrokeTransparency - 0.05
  2856. else
  2857. if fnumb == 20 then
  2858. fenframe5.Parent = nil
  2859. print("daigui")
  2860. end
  2861. fenframe5.BackgroundTransparency = fenframe5.BackgroundTransparency + 0.025
  2862. tellbar.TextTransparency = tellbar.TextTransparency + 0.05
  2863. tellbar.TextStrokeTransparency = tellbar.TextStrokeTransparency + 0.05
  2864. end
  2865. end
  2866. if hbwld.Parent == nil then
  2867. hitbox2.Name = "Hitbox"
  2868. else
  2869. hitbox2.Name = "Hitbox2"
  2870. end
  2871. hitbox2.Parent = hitbox.Parent
  2872. hitbox2.Size = hitbox.Size
  2873. hitbox2.CFrame = hitboxCF
  2874. hboxpos.position = hitbox2.Position + vt(math.random(-100, 100) / 100, math.random(-100, 100) / 100, math.random(-100, 100) / 100)
  2875. passivenum = passivenum + 1
  2876. if 80 <= passivenum then
  2877. passivenum = 0
  2878. if passive.Value < 0 then
  2879. passive.Value = passive.Value / 2
  2880. if 0 < passive.Value then
  2881. passive.Value = 0
  2882. end
  2883. end
  2884. end
  2885. if Stagger.Value == true and staggeranim == false then
  2886. coroutine.resume(coroutine.create(function()
  2887. staggeranim = true
  2888. while attack == true do
  2889. swait()
  2890. end
  2891. StaggerAnim()
  2892. StaggerHit.Value = false
  2893. Stagger.Value = false
  2894. staggeranim = false
  2895. end
  2896. ))
  2897. end
  2898. if StaggerHit.Value == true and staggeranim == false then
  2899. coroutine.resume(coroutine.create(function()
  2900. staggeranim = true
  2901. while attack == true do
  2902. swait()
  2903. end
  2904. StaggerHitt()
  2905. StaggerHit.Value = false
  2906. Stagger.Value = false
  2907. staggeranim = false
  2908. end
  2909. ))
  2910. end
  2911. if Mvmt.Value < 0 or Stagger.Value == true or StunT.Value <= Stun.Value or StaggerHit.Value == true or Rooted.Value == true then
  2912. Humanoid.WalkSpeed = 0
  2913. else
  2914. Humanoid.WalkSpeed = 16 * Mvmt.Value
  2915. end
  2916. if StunT.Value <= Stun.Value and stunanim == false then
  2917. coroutine.resume(coroutine.create(function()
  2918. stunanim = true
  2919. while attack == true do
  2920. swait()
  2921. end
  2922. StunAnim()
  2923. Stun.Value = 0
  2924. stunanim = false
  2925. end
  2926. ))
  2927. end
  2928. local stunnum2 = 30
  2929. if stunnum2 <= stunnum then
  2930. if 0 < Stun.Value then
  2931. Stun.Value = Stun.Value - 1
  2932. end
  2933. stunnum = 0
  2934. end
  2935. stunnum = stunnum + 1
  2936. if 0.5 <= donum then
  2937. handidle = true
  2938. else
  2939. if donum <= 0 then
  2940. handidle = false
  2941. end
  2942. end
  2943. if handidle == false then
  2944. donum = donum + 0.006
  2945. else
  2946. donum = donum - 0.006
  2947. end
  2948. local torvel = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  2949. local velderp = RootPart.Velocity.y
  2950. hitfloor = rayCast(RootPart.Position, CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0)).lookVector, 4, Character)
  2951. if equipped == true then
  2952. if attack == false then
  2953. idle = idle + 1
  2954. else
  2955. idle = 0
  2956. end
  2957. if (500 <= idle and attack ~= false) or Anim == "Walk" then
  2958. if walkforw == true and stopwalk == false then
  2959. RH.C1 = clerp(RH.C1, RHC1 * cf(0, 0, 0) * euler(0, 0, 1), Mvmt.Value * 10 / 50)
  2960. LH.C1 = clerp(LH.C1, LHC1 * cf(0.1, 0.2, 0) * euler(0, 0, 1), Mvmt.Value * 10 / 50)
  2961. else
  2962. RH.C1 = clerp(RH.C1, RHC1 * cf(-0.1, 0, 0) * euler(0, 0, -1), Mvmt.Value * 10 / 50)
  2963. LH.C1 = clerp(LH.C1, LHC1 * cf(-0.2, -0.2, 0) * euler(0, 0, -1), Mvmt.Value * 10 / 50)
  2964. end
  2965. else
  2966. RH.C1 = clerp(RH.C1, RHC1, 0.2)
  2967. LH.C1 = clerp(LH.C1, LHC1, 0.2)
  2968. end
  2969. if 1 < RootPart.Velocity.y and hitfloor == nil then
  2970. Anim = "Jump"
  2971. if attack == false then
  2972. handlewld.C0 = clerp(handlewld.C0, euler(1.57, 0, 0) * cf(0, 1, 0), 0.2)
  2973. wld1.C0 = clerp(wld1.C0, cf(0, 0, 0), 0.2)
  2974. Neck.C0 = clerp(Neck.C0, necko * euler(-0.2, 0, 0), 0.2)
  2975. Neck.C1 = clerp(Neck.C1, necko2 * euler(0, 0, 0), 0.2)
  2976. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, 0), 0.2)
  2977. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.4, 0, 0.2), 0.2)
  2978. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  2979. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.4, 0, -0.2), 0.2)
  2980. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  2981. RH.C0 = clerp(RH.C0, cf(1, -1, -0.3) * euler(-0.5, 1.57, 0) * euler(-0.2, 0, 0), 0.2)
  2982. LH.C0 = clerp(LH.C0, cf(-1, -1, -0.3) * euler(-0.5, -1.57, 0) * euler(-0.2, 0, 0), 0.2)
  2983. end
  2984. else
  2985. if RootPart.Velocity.y < -1 and hitfloor == nil then
  2986. Anim = "Fall"
  2987. if attack == false then
  2988. handlewld.C0 = clerp(handlewld.C0, euler(1.57, 0, 0) * cf(0, 1, 0), 0.2)
  2989. wld1.C0 = clerp(wld1.C0, cf(0, 0, 0), 0.2)
  2990. Neck.C0 = clerp(Neck.C0, necko * euler(0.4, 0, 0), 0.2)
  2991. Neck.C1 = clerp(Neck.C1, necko2 * euler(0, 0, 0), 0.2)
  2992. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, 0), 0.2)
  2993. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.2, 0, 0.8), 0.2)
  2994. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  2995. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.2, 0, -0.8), 0.2)
  2996. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  2997. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0.4, 1.57, 0), 0.2)
  2998. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(-0.2, -1.57, 0), 0.2)
  2999. end
  3000. else
  3001. if torvel < 1 and hitfloor ~= nil then
  3002. Anim = "Idle"
  3003. if attack == false then
  3004. handlewld.C0 = clerp(handlewld.C0, euler(1.57, 0, 0) * cf(0, 1, 0), 0.15)
  3005. wld1.C0 = clerp(wld1.C0, cf(0, 0, 0) * euler(0, 0, 0), 0.15)
  3006. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, -0.4), 0.15)
  3007. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, 0.4), 0.15)
  3008. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(0, 0.1, 0.1 + (donum) / 2), 0.15)
  3009. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.15)
  3010. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(0, 0, -0.2 - (donum) / 2) * euler(0, 0 + (donum) / -2, 0), 0.15)
  3011. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.15)
  3012. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0, 1.57, 0) * euler(0, -0.5, 0.1), 0.2)
  3013. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, -1.57, 0) * euler(0, -0.5, 0.2), 0.2)
  3014. end
  3015. else
  3016. if 2 < torvel and torvel < 65 and hitfloor ~= nil then
  3017. Anim = "Walk"
  3018. walk = walk + 1
  3019. if 15 - 5 * Mvmt.Value <= walk then
  3020. walk = 0
  3021. if walkforw == true then
  3022. walkforw = false
  3023. else
  3024. if walkforw == false then
  3025. walkforw = true
  3026. end
  3027. end
  3028. end
  3029. if attack == false and sprint then
  3030. hitfloor2 = rayCast(Torso.Position, CFrame.new(Torso.Position, Torso.Position - Vector3.new(0, 1, 0)).lookVector, 6, Character)
  3031. floornum = floornum + 1
  3032. if 5 <= floornum then
  3033. floornum = 0
  3034. if hitfloor2 ~= nil then
  3035. MagicBlock(hitfloor2.BrickColor, cf(RightLeg.Position) * cf(0, -0.6, 0), 4, 4, 4, 1, 1, 1, 0.05, 1, workspace)
  3036. MagicBlock(hitfloor2.BrickColor, cf(LeftLeg.Position) * cf(0, -0.6, 0), 4, 4, 4, 1, 1, 1, 0.05, 1, workspace)
  3037. end
  3038. end
  3039. end
  3040. if attack == false then
  3041. handlewld.C0 = clerp(handlewld.C0, euler(1.57, 0, 0) * cf(0, 1, 0), 0.2)
  3042. wld1.C0 = clerp(wld1.C0, cf(0, 0, 0), 0.2)
  3043. Neck.C0 = clerp(Neck.C0, necko * euler(-0.1, 0, -0.35), 0.2)
  3044. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0.1, 0, 0.35), 0.2)
  3045. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.25, 0, 0.2), 0.2)
  3046. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  3047. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(0.2, 0.75, -0.35), 0.2)
  3048. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  3049. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0, 1.57, 0) * euler(0, -0.35, 0), 0.2)
  3050. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, -1.57, 0) * euler(0, -0.35, 0), 0.2)
  3051. end
  3052. else
  3053. if 95 <= torvel and hitfloor ~= nil then
  3054. Anim = "Run"
  3055. if attack == false then
  3056. handlewld.C0 = clerp(handlewld.C0, euler(-1.57, 0, 0) * cf(0, 1, 0), 0.4)
  3057. wld1.C0 = clerp(wld1.C0, cf(0, 1.5, 0), 0.4)
  3058. Neck.C0 = clerp(Neck.C0, necko * euler(0.2, 0, 0), 0.4)
  3059. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.5) * euler(0.3, 0, 0), 0.4)
  3060. RW.C0 = clerp(RW.C0, cf(1, 0.5, -0.5) * euler(1.87, 0, -0.8) * euler(0, 0, 0), 0.4)
  3061. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  3062. LW.C0 = clerp(LW.C0, cf(-1, 0.5, -0.5) * euler(1.87, 0, 0.8) * euler(0, 0, 0), 0.4)
  3063. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  3064. RH.C0 = clerp(RH.C0, cf(1, -0.7, 0) * euler(0, 1.57, 0) * euler(-0.2, 0, 0.2), 0.4)
  3065. LH.C0 = clerp(LH.C0, cf(-1, -0.7, 0) * euler(0, -1.57, 0) * euler(-0.2, 0, -0.2), 0.4)
  3066. end
  3067. end
  3068. end
  3069. end
  3070. end
  3071. end
  3072. end
  3073. if 0 < #Effects then
  3074. for e = 1, #Effects do
  3075. if Effects[e] ~= nil then
  3076. local Thing = Effects[e]
  3077. if Thing ~= nil then
  3078. local Part = Thing[1]
  3079. local Mode = Thing[2]
  3080. local Delay = Thing[3]
  3081. local IncX = Thing[4]
  3082. local IncY = Thing[5]
  3083. local IncZ = Thing[6]
  3084. if Thing[2] == "CylinderClang" then
  3085. if Thing[3] <= 1 then
  3086. Thing[1].CFrame = Thing[1].CFrame * CFrame.new(0, 2.5 * Thing[5], 0) * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0)
  3087. Thing[7] = Thing[1].CFrame
  3088. effect("New Yeller", 0, Thing[8], Thing[7])
  3089. Thing[8] = Thing[7]
  3090. Thing[3] = Thing[3] + Thing[4]
  3091. else
  3092. Part.Parent = nil
  3093. table.remove(Effects, e)
  3094. end
  3095. end
  3096. if Thing[2] == "showDamage" then
  3097. if Thing[6] < Thing[5] then
  3098. Thing[6] = Thing[6] + 1
  3099. else
  3100. if Thing[6] < Thing[7] then
  3101. Thing[4].position = Thing[4].position + vt(0, -0.2, 0)
  3102. Thing[6] = Thing[6] + 1
  3103. else
  3104. if Thing[6] < Thing[8] then
  3105. Thing[6] = Thing[6] + 1
  3106. else
  3107. if Thing[6] < Thing[9] then
  3108. Thing[6] = Thing[6] + 1
  3109. Thing[4].position = Thing[4].position + vt(0, 0.2, 0)
  3110. Thing[3].TextStrokeTransparency = Thing[3].TextStrokeTransparency + 0.1
  3111. Thing[3].TextTransparency = Thing[3].TextTransparency + 0.1
  3112. else
  3113. Thing[1].Parent = nil
  3114. table.remove(Effects, e)
  3115. end
  3116. end
  3117. end
  3118. end
  3119. end
  3120. if Thing[2] ~= "DecreaseStat" and Thing[2] ~= "showDamage" then
  3121. if Thing[1].Transparency <= 1 then
  3122. if Thing[2] == "Block1" then
  3123. Thing[1].CFrame = Thing[1].CFrame * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  3124. Mesh = Thing[7]
  3125. Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6])
  3126. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  3127. else
  3128. if Thing[2] == "Block2" then
  3129. Thing[1].CFrame = Thing[1].CFrame
  3130. Mesh = Thing[7]
  3131. Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6])
  3132. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  3133. else
  3134. if Thing[2] == "Cylinder" then
  3135. Mesh = Thing[7]
  3136. Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6])
  3137. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  3138. else
  3139. if Thing[2] == "Blood" then
  3140. Mesh = Thing[7]
  3141. Thing[1].CFrame = Thing[1].CFrame * cf(0, 0.5, 0)
  3142. Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6])
  3143. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  3144. else
  3145. if Thing[2] == "Elec" then
  3146. Mesh = Thing[7]
  3147. Mesh.Scale = Mesh.Scale + vt(Thing[7], Thing[8], Thing[9])
  3148. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  3149. else
  3150. if Thing[2] == "Disappear" then
  3151. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  3152. end
  3153. end
  3154. end
  3155. end
  3156. end
  3157. end
  3158. else
  3159. Part.Parent = nil
  3160. table.remove(Effects, e)
  3161. end
  3162. end
  3163. end
  3164. end
  3165. end
  3166. end
  3167. do
  3168. fenbarmana2:TweenSize((UDim2.new(0.4, 0, -4 * mana.Value / 100, 0)), nil, 1, 0.4, true)
  3169. fenbarmana4.Text = "Mana(" .. mana.Value .. ")"
  3170. fenbarhp2.BackgroundColor3 = Color3.new(Humanoid.Health / Humanoid.MaxHealth, 0, 0)
  3171. fenbarhp2:TweenSize((UDim2.new(Humanoid.Health / Humanoid.MaxHealth, 0, 1, 0)), nil, 1, 0.4, true)
  3172. fenbarhp3.Text = "(" .. math.floor(Humanoid.Health) .. ")"
  3173. fenbarmove1b:TweenSize((UDim2.new(1 * cooldowns[1] / cooldownmax, 0, 1, 0)), nil, 1, 0.4, true)
  3174. fenbarmove2b:TweenSize((UDim2.new(1 * cooldowns[2] / cooldownmax, 0, 1, 0)), nil, 1, 0.4, true)
  3175. fenbarmove3b:TweenSize((UDim2.new(1 * cooldowns[3] / cooldownmax, 0, 1, 0)), nil, 1, 0.4, true)
  3176. fenbarmove4b:TweenSize((UDim2.new(1 * cooldowns[4] / cooldownmax, 0, 1, 0)), nil, 1, 0.4, true)
  3177. for _,c in pairs(Decrease:children()) do
  3178. if (c:findFirstChild("Duration")) ~= nil then
  3179. c.Duration.Value = c.Duration.Value - 1
  3180. if c.Duration.Value <= 0 then
  3181. c.Parent = nil
  3182. end
  3183. end
  3184. if c.Name == "DecreaseAtk" then
  3185. decreaseatk = decreaseatk + c.Value
  3186. else
  3187. if c.Name == "DecreaseDef" then
  3188. decreasedef = decreasedef + c.Value
  3189. else
  3190. if c.Name == "DecreaseMvmt" then
  3191. decreasemvmt = decreasemvmt + c.Value
  3192. end
  3193. end
  3194. end
  3195. end
  3196. Atk.Value = 1 - (decreaseatk)
  3197. if Atk.Value <= 0 then
  3198. Atk.Value = 0
  3199. end
  3200. Def.Value = 1 - (decreasedef)
  3201. if Def.Value <= 0 then
  3202. Def.Value = 0.01
  3203. end
  3204. Mvmt.Value = 1 - (decreasemvmt)
  3205. if Mvmt.Value <= 0 then
  3206. Mvmt.Value = 0
  3207. end
  3208. decreaseatk = 0
  3209. decreasedef = 0
  3210. decreasemvmt = 0
  3211. AtkVal = Atk.Value * 100
  3212. AtkVal = math.floor(AtkVal)
  3213. AtkVal = AtkVal / 100
  3214. fenbardamage.Text = "Damage\n(" .. AtkVal .. ")"
  3215. DefVal = Def.Value * 100
  3216. DefVal = math.floor(DefVal)
  3217. DefVal = DefVal / 100
  3218. fenbardef.Text = "Defense\n(" .. DefVal .. ")"
  3219. MvmtVal = Mvmt.Value * 100
  3220. MvmtVal = math.floor(MvmtVal)
  3221. MvmtVal = MvmtVal / 100
  3222. if Rooted.Value == true then
  3223. MvmtVal = 0
  3224. end
  3225. fenbarmove.Text = "Walkspeed\n(" .. MvmtVal .. ")"
  3226. if StunT.Value <= Stun.Value then
  3227. fenbarstun2:TweenSize((UDim2.new(0.4, 0, -4, 0)), nil, 1, 0.4, true)
  3228. else
  3229. fenbarstun2:TweenSize((UDim2.new(0.4, 0, -4 * Stun.Value / StunT.Value, 0)), nil, 1, 0.4, true)
  3230. end
  3231. fenbarstun3.Text = "Stun(" .. Stun.Value .. ")"
  3232. if 100 <= mana.Value then
  3233. mana.Value = 100
  3234. else
  3235. if mananum <= 8 and sprint == false then
  3236. mananum = mananum + 1
  3237. else
  3238. if 8 <= mananum then
  3239. mananum = 0
  3240. mana.Value = mana.Value + 1
  3241. end
  3242. end
  3243. end
  3244. for i = 1, #cooldowns do
  3245. if cooldownmax <= cooldowns[i] then
  3246. cooldowns[i] = cooldownmax
  3247. else
  3248. cooldowns[i] = cooldowns[i] + cooldownsadd[i]
  3249. end
  3250. end
  3251. -- DECOMPILER ERROR at PC5997: LeaveBlock: unexpected jumping out DO_STMT
  3252.  
  3253. -- DECOMPILER ERROR at PC5997: LeaveBlock: unexpected jumping out DO_STMT
  3254.  
  3255. end
  3256. end
  3257. end
Add Comment
Please, Sign In to add comment