Advertisement
SetsunaElysia

Proto Test

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