Dark_EccentricYT

Untitled

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