Advertisement
Dark_EccentricYT

Untitled

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