DarkScripter123

Cyber Exscaliber

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