HuyEvilDumb

Untitled

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