Mr-Shadow_Cat

EXPLOSIONS

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