Advertisement
Dark_EccentricYT

Untitled

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