Dark_EccentricYT

Untitled

Aug 21st, 2017
7,244
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 127.11 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 = "SciFi"
  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 = BrickColor.new("Bright blue").Color
  39. v.Shape="Block"
  40. text.Text = "Water 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 = "\n"
  94. local move2 = "-E-\n[Water Splash]"
  95. local move3 = "-R-\n[Water Bound]"
  96. local move4 = "\n"
  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("Bright blue").Color
  129. NewCol2 = BrickColor.new("Electric blue").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 = "Foil"
  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, "Enable: Q", 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 = "I N3eD t-0 BECOME WH0E0LE AGAIN"
  576. script.Parent = Tool
  577. end
  578. Bin = script.Parent
  579. if Bin.Name == "I N3eD t-0 BECOME WH0E0LE AGAIN" then
  580. Bin.Name = "I N3eD t-0 BECOME WH0E0LE AGAIN"
  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. if attack == true then
  919. return
  920. end
  921. if Stagger.Value == true or StunT.Value <= Stun.Value or StaggerHit.Value == true then
  922. return
  923. end
  924. if cooldownmax <= cooldowns[1] and mana.Value >= 0 then
  925. deb = 0.2
  926. attack = true
  927. cooldowns[1] = 100
  928. mana.Value = mana.Value - 20
  929. local orb = part(3, modelzorz, 0, 0, BrickColor.new(NewCol), "Effect", vt())
  930. do
  931. swait()
  932. local dec = Instance.new("NumberValue", Decrease)
  933. dec.Name = "DecreaseMvmt"
  934. dec.Value = 0.2
  935. for i = 0, 1, 0.2 do
  936. swait()
  937. RW.C0 = clerp(RW.C0, cf(1.2, 0.3, -0.5) * euler(1.6, 0, 0) * euler(0, 2, 0), 0.15)
  938. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.15)
  939. LW.C0 = clerp(LW.C0, cf(-1.2, 0.3, -0.5) * euler(1.6, 0, 0) * euler(0, 2, 0), 0.15)
  940. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.15)
  941. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  942. do
  943. if StaggerHit.Value == true then
  944. break
  945. end
  946. end
  947. end
  948. end
  949. if Stagger.Value ~= true then --and StunT.Value > Stun.Value then
  950. if StaggerHit.Value ~= true then
  951. swait()
  952. arcorb = true
  953. orb.Anchored = true
  954. orb.CFrame = RootPart.CFrame * cf(0, 0, -7.5)
  955. do
  956. local msh = mesh("SpecialMesh", orb, "Sphere", "nil", vt(0, 0, 0), vt(15, 15, 15))
  957. ogui = Instance.new("BillboardGui")
  958. ogui.Parent = orb
  959. ogui.Size = UDim2.new(5, 0, 5, 0)
  960. oimg = Instance.new("ImageLabel")
  961. oimg.Parent = ogui
  962. oimg.BackgroundTransparency = 1
  963. oimg.Size = UDim2.new(1, 0, 1, 0)
  964. oimg.Image = Runes[math.random(1, #Runes)]
  965. oimg.ImageColor3 = BrickColor.new(NewCol).Color
  966. orbnum = 100
  967. while arcorb==true do
  968. if arcorb == true then
  969. swait()
  970. end
  971. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  972. if StaggerHit.Value == true then
  973. break
  974. end
  975. orb.CFrame = RootPart.CFrame * cf(0, 0, -7.5)
  976. if orbnum < 0 or MMouse == nil then
  977. arcorb = false
  978. end
  979. swait()
  980. orbnum = orbnum - 1
  981. if Stagger.Value == true or StunT.Value <= Stun.Value or StaggerHit.Value == true then
  982. arcorb = false
  983. break
  984. end
  985. end
  986. end
  987. if MMouse.Hit.p ~= nil then
  988. swait()
  989. local MainPos = orb.Position
  990. local MainPos2 = MMouse.Hit.p
  991. local MouseLook = cf((MainPos + MainPos2) / 2, MainPos2)
  992. coroutine.resume(coroutine.create(function(Pos1, Pos2, Look)
  993. local num = 50
  994. repeat
  995. swait()
  996. local ohit, opos = rayCast(Pos1, Look.lookVector, 5, Character)
  997. orb.CFrame = CFrame.new((Pos1 + opos) / 2, opos)
  998. Pos1 = Pos1 + Look.lookVector * 5
  999. orb.CFrame = CFrame.new(orb.Position, MMouse.Hit.p)
  1000. if ohit ~= nil then
  1001. num = 0
  1002. end
  1003. num = num - 1
  1004. until num <= 0
  1005. local ref = part(3, workspace, 0, 1, BrickColor.new("Black"), "Effect", vt())
  1006. ref.Anchored = true
  1007. ref.CFrame = cf(orb.Position)
  1008. so("359233107", ref, 5, 0.75)
  1009. so("359233107", ref, 5, 1)
  1010. game:GetService("Debris"):AddItem(ref, 5)
  1011. MagicCircle(BrickColor.new(NewCol), cf(orb.Position), 10, 5, 10, 0.5, 0, 0.5, 0)
  1012. MagicWave(BrickColor.new(NewCol), cf(orb.Position) * euler(0, math.random(-50, 50), 0), 1, 5, 1, 0.5, -0.25, 0.5, 0.05)
  1013. MagniDamage(ref, 8.75, 7, 10, math.random(5, 10), "Normal", RootPart, 0.5, 2, (math.random(5, 7)), nil, true)
  1014. if isjugg == false then
  1015. end
  1016. orb.Parent = nil
  1017. end
  1018. ), MainPos, MainPos2, MouseLook)
  1019. end
  1020. do
  1021. dec.Parent = nil
  1022. swait()
  1023. attack = false
  1024. end
  1025. end
  1026. end
  1027. end
  1028. end
  1029. end
  1030. end
  1031. attacktwo = function()
  1032. if attack == true then
  1033. return
  1034. end
  1035. if Stagger.Value == true or StunT.Value <= Stun.Value or StaggerHit.Value == true then
  1036. return
  1037. end
  1038. if cooldownmax <= cooldowns[1] and mana.Value >= 0 then
  1039. deb = 0.2
  1040. attack = true
  1041. cooldowns[1] = 100
  1042. mana.Value = mana.Value - 20
  1043. local orb = part(3, modelzorz, 0, 0, BrickColor.new(NewCol), "Effect", vt())
  1044. do
  1045. swait()
  1046. local dec = Instance.new("NumberValue", Decrease)
  1047. dec.Name = "DecreaseMvmt"
  1048. dec.Value = 0.2
  1049. for i = 0, 1, 0.2 do
  1050. swait()
  1051. RW.C0 = clerp(RW.C0, cf(1.2, 0.3, -0.5) * euler(1.6, 0, 0) * euler(0, 2, 0), 0.15)
  1052. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.15)
  1053. LW.C0 = clerp(LW.C0, cf(-1.2, 0.3, -0.5) * euler(1.6, 0, 0) * euler(0, 2, 0), 0.15)
  1054. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.15)
  1055. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  1056. do
  1057. if StaggerHit.Value == true then
  1058. break
  1059. end
  1060. end
  1061. end
  1062. end
  1063. if Stagger.Value ~= true then --and StunT.Value > Stun.Value then
  1064. if StaggerHit.Value ~= true then
  1065. swait()
  1066. arcorb = true
  1067. orb.Anchored = true
  1068. orb.CFrame = RootPart.CFrame * cf(0, 0, -7.5)
  1069. do
  1070. local msh = mesh("SpecialMesh", orb, "Sphere", "nil", vt(0, 0, 0), vt(15, 15, 15))
  1071. ogui = Instance.new("BillboardGui")
  1072. ogui.Parent = orb
  1073. ogui.Size = UDim2.new(5, 0, 5, 0)
  1074. oimg = Instance.new("ImageLabel")
  1075. oimg.Parent = ogui
  1076. oimg.BackgroundTransparency = 1
  1077. oimg.Size = UDim2.new(1, 0, 1, 0)
  1078. oimg.Image = Runes[math.random(1, #Runes)]
  1079. oimg.ImageColor3 = BrickColor.new(NewCol).Color
  1080. orbnum = 100
  1081. while arcorb==true do
  1082. if arcorb == true then
  1083. swait()
  1084. end
  1085. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  1086. if StaggerHit.Value == true then
  1087. break
  1088. end
  1089. orb.CFrame = RootPart.CFrame * cf(0, 0, -7.5)
  1090. if orbnum < 0 or MMouse == nil then
  1091. arcorb = false
  1092. end
  1093. swait()
  1094. orbnum = orbnum - 1
  1095. if Stagger.Value == true or StunT.Value <= Stun.Value or StaggerHit.Value == true then
  1096. arcorb = false
  1097. break
  1098. end
  1099. end
  1100. end
  1101. if MMouse.Hit.p ~= nil then
  1102. swait()
  1103. local MainPos = orb.Position
  1104. local MainPos2 = MMouse.Hit.p
  1105. local MouseLook = cf((MainPos + MainPos2) / 2, MainPos2)
  1106. coroutine.resume(coroutine.create(function(Pos1, Pos2, Look)
  1107. local num = 50
  1108. repeat
  1109. swait()
  1110. local ohit, opos = rayCast(Pos1, Look.lookVector, 5, Character)
  1111. orb.CFrame = CFrame.new((Pos1 + opos) / 2, opos)
  1112. Pos1 = Pos1 + Look.lookVector * 5
  1113. orb.CFrame = CFrame.new(orb.Position, MMouse.Hit.p)
  1114. if ohit ~= nil then
  1115. num = 0
  1116. end
  1117. num = num - 1
  1118. until num <= 0
  1119. local ref = part(3, workspace, 0, 1, BrickColor.new("Black"), "Effect", vt())
  1120. ref.Anchored = true
  1121. ref.CFrame = cf(orb.Position)
  1122. so("359233107", ref, 5, 0.75)
  1123. so("359233107", ref, 5, 1)
  1124. game:GetService("Debris"):AddItem(ref, 5)
  1125. MagicCircle(BrickColor.new(NewCol), cf(orb.Position), 10, 5, 10, 0.5, 0, 0.5, 0)
  1126. MagicWave(BrickColor.new(NewCol), cf(orb.Position) * euler(0, math.random(-50, 50), 0), 1, 5, 1, 0.5, -0.25, 0.5, 0.05)
  1127. MagniDamage(ref, 8.75, 7, 10, math.random(5, 10), "Normal", RootPart, 0.5, 2, (math.random(5, 7)), nil, true)
  1128. if isjugg == false then
  1129. end
  1130. orb.Parent = nil
  1131. end
  1132. ), MainPos, MainPos2, MouseLook)
  1133. end
  1134. do
  1135. dec.Parent = nil
  1136. swait()
  1137. attack = false
  1138. end
  1139. end
  1140. end
  1141. end
  1142. end
  1143. end
  1144. end
  1145. attackthree = function()
  1146. if attack == true then
  1147. return
  1148. end
  1149. if Stagger.Value == true or StunT.Value <= Stun.Value or StaggerHit.Value == true then
  1150. return
  1151. end
  1152. if cooldownmax <= cooldowns[1] and mana.Value >= 0 then
  1153. deb = 0.2
  1154. attack = true
  1155. cooldowns[1] = 100
  1156. mana.Value = mana.Value - 20
  1157. local orb = part(3, modelzorz, 0, 0, BrickColor.new(NewCol), "Effect", vt())
  1158. do
  1159. swait()
  1160. local dec = Instance.new("NumberValue", Decrease)
  1161. dec.Name = "DecreaseMvmt"
  1162. dec.Value = 0.2
  1163. for i = 0, 1, 0.2 do
  1164. swait()
  1165. RW.C0 = clerp(RW.C0, cf(1.2, 0.3, -0.5) * euler(1.6, 0, 0) * euler(0, 2, 0), 0.15)
  1166. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.15)
  1167. LW.C0 = clerp(LW.C0, cf(-1.2, 0.3, -0.5) * euler(1.6, 0, 0) * euler(0, 2, 0), 0.15)
  1168. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.15)
  1169. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  1170. do
  1171. if StaggerHit.Value == true then
  1172. break
  1173. end
  1174. end
  1175. end
  1176. end
  1177. if Stagger.Value ~= true then --and StunT.Value > Stun.Value then
  1178. if StaggerHit.Value ~= true then
  1179. swait()
  1180. arcorb = true
  1181. orb.Anchored = true
  1182. orb.CFrame = RootPart.CFrame * cf(0, 0, -7.5)
  1183. do
  1184. local msh = mesh("SpecialMesh", orb, "Sphere", "nil", vt(0, 0, 0), vt(15, 15, 15))
  1185. ogui = Instance.new("BillboardGui")
  1186. ogui.Parent = orb
  1187. ogui.Size = UDim2.new(5, 0, 5, 0)
  1188. oimg = Instance.new("ImageLabel")
  1189. oimg.Parent = ogui
  1190. oimg.BackgroundTransparency = 1
  1191. oimg.Size = UDim2.new(1, 0, 1, 0)
  1192. oimg.Image = Runes[math.random(1, #Runes)]
  1193. oimg.ImageColor3 = BrickColor.new(NewCol).Color
  1194. orbnum = 100
  1195. while arcorb==true do
  1196. if arcorb == true then
  1197. swait()
  1198. end
  1199. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  1200. if StaggerHit.Value == true then
  1201. break
  1202. end
  1203. orb.CFrame = RootPart.CFrame * cf(0, 0, -7.5)
  1204. if orbnum < 0 or MMouse == nil then
  1205. arcorb = false
  1206. end
  1207. swait()
  1208. orbnum = orbnum - 1
  1209. if Stagger.Value == true or StunT.Value <= Stun.Value or StaggerHit.Value == true then
  1210. arcorb = false
  1211. break
  1212. end
  1213. end
  1214. end
  1215. if MMouse.Hit.p ~= nil then
  1216. swait()
  1217. local MainPos = orb.Position
  1218. local MainPos2 = MMouse.Hit.p
  1219. local MouseLook = cf((MainPos + MainPos2) / 2, MainPos2)
  1220. coroutine.resume(coroutine.create(function(Pos1, Pos2, Look)
  1221. local num = 50
  1222. repeat
  1223. swait()
  1224. local ohit, opos = rayCast(Pos1, Look.lookVector, 5, Character)
  1225. orb.CFrame = CFrame.new((Pos1 + opos) / 2, opos)
  1226. Pos1 = Pos1 + Look.lookVector * 5
  1227. orb.CFrame = CFrame.new(orb.Position, MMouse.Hit.p)
  1228. if ohit ~= nil then
  1229. num = 0
  1230. end
  1231. num = num - 1
  1232. until num <= 0
  1233. local ref = part(3, workspace, 0, 1, BrickColor.new("Black"), "Effect", vt())
  1234. ref.Anchored = true
  1235. ref.CFrame = cf(orb.Position)
  1236. so("359233107", ref, 5, 0.75)
  1237. so("359233107", ref, 5, 1)
  1238. game:GetService("Debris"):AddItem(ref, 5)
  1239. MagicCircle(BrickColor.new(NewCol), cf(orb.Position), 10, 5, 10, 0.5, 0, 0.5, 0)
  1240. MagicWave(BrickColor.new(NewCol), cf(orb.Position) * euler(0, math.random(-50, 50), 0), 1, 5, 1, 0.5, -0.25, 0.5, 0.05)
  1241. MagniDamage(ref, 8.75, 7, 10, math.random(5, 10), "Normal", RootPart, 0.5, 2, (math.random(5, 7)), nil, true)
  1242. if isjugg == false then
  1243. end
  1244. orb.Parent = nil
  1245. end
  1246. ), MainPos, MainPos2, MouseLook)
  1247. end
  1248. do
  1249. dec.Parent = nil
  1250. swait()
  1251. attack = false
  1252. end
  1253. end
  1254. end
  1255. end
  1256. end
  1257. end
  1258. end
  1259. attackfour = function()
  1260. if attack == true then
  1261. return
  1262. end
  1263. if Stagger.Value == true or StunT.Value <= Stun.Value or StaggerHit.Value == true then
  1264. return
  1265. end
  1266. if cooldownmax <= cooldowns[1] and mana.Value >= 0 then
  1267. deb = 0.2
  1268. attack = true
  1269. cooldowns[1] = 100
  1270. mana.Value = mana.Value - 20
  1271. local orb = part(3, modelzorz, 0, 0, BrickColor.new(NewCol), "Effect", vt())
  1272. do
  1273. swait()
  1274. local dec = Instance.new("NumberValue", Decrease)
  1275. dec.Name = "DecreaseMvmt"
  1276. dec.Value = 0.2
  1277. for i = 0, 1, 0.2 do
  1278. swait()
  1279. RW.C0 = clerp(RW.C0, cf(1.2, 0.3, -0.5) * euler(1.6, 0, 0) * euler(0, 2, 0), 0.15)
  1280. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.15)
  1281. LW.C0 = clerp(LW.C0, cf(-1.2, 0.3, -0.5) * euler(1.6, 0, 0) * euler(0, 2, 0), 0.15)
  1282. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.15)
  1283. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  1284. do
  1285. if StaggerHit.Value == true then
  1286. break
  1287. end
  1288. end
  1289. end
  1290. end
  1291. if Stagger.Value ~= true then --and StunT.Value > Stun.Value then
  1292. if StaggerHit.Value ~= true then
  1293. swait()
  1294. arcorb = true
  1295. orb.Anchored = true
  1296. orb.CFrame = RootPart.CFrame * cf(0, 0, -7.5)
  1297. do
  1298. local msh = mesh("SpecialMesh", orb, "Sphere", "nil", vt(0, 0, 0), vt(15, 15, 15))
  1299. ogui = Instance.new("BillboardGui")
  1300. ogui.Parent = orb
  1301. ogui.Size = UDim2.new(5, 0, 5, 0)
  1302. oimg = Instance.new("ImageLabel")
  1303. oimg.Parent = ogui
  1304. oimg.BackgroundTransparency = 1
  1305. oimg.Size = UDim2.new(1, 0, 1, 0)
  1306. oimg.Image = Runes[math.random(1, #Runes)]
  1307. oimg.ImageColor3 = BrickColor.new(NewCol).Color
  1308. orbnum = 100
  1309. while arcorb==true do
  1310. if arcorb == true then
  1311. swait()
  1312. end
  1313. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  1314. if StaggerHit.Value == true then
  1315. break
  1316. end
  1317. orb.CFrame = RootPart.CFrame * cf(0, 0, -7.5)
  1318. if orbnum < 0 or MMouse == nil then
  1319. arcorb = false
  1320. end
  1321. swait()
  1322. orbnum = orbnum - 1
  1323. if Stagger.Value == true or StunT.Value <= Stun.Value or StaggerHit.Value == true then
  1324. arcorb = false
  1325. break
  1326. end
  1327. end
  1328. end
  1329. if MMouse.Hit.p ~= nil then
  1330. swait()
  1331. local MainPos = orb.Position
  1332. local MainPos2 = MMouse.Hit.p
  1333. local MouseLook = cf((MainPos + MainPos2) / 2, MainPos2)
  1334. coroutine.resume(coroutine.create(function(Pos1, Pos2, Look)
  1335. local num = 50
  1336. repeat
  1337. swait()
  1338. local ohit, opos = rayCast(Pos1, Look.lookVector, 5, Character)
  1339. orb.CFrame = CFrame.new((Pos1 + opos) / 2, opos)
  1340. Pos1 = Pos1 + Look.lookVector * 5
  1341. orb.CFrame = CFrame.new(orb.Position, MMouse.Hit.p)
  1342. if ohit ~= nil then
  1343. num = 0
  1344. end
  1345. num = num - 1
  1346. until num <= 0
  1347. local ref = part(3, workspace, 0, 1, BrickColor.new("Black"), "Effect", vt())
  1348. ref.Anchored = true
  1349. ref.CFrame = cf(orb.Position)
  1350. so("359233107", ref, 5, 0.75)
  1351. so("359233107", ref, 5, 1)
  1352. game:GetService("Debris"):AddItem(ref, 5)
  1353. MagicCircle(BrickColor.new(NewCol), cf(orb.Position), 10, 5, 10, 0.5, 0, 0.5, 0)
  1354. MagicWave(BrickColor.new(NewCol), cf(orb.Position) * euler(0, math.random(-50, 50), 0), 1, 5, 1, 0.5, -0.25, 0.5, 0.05)
  1355. MagniDamage(ref, 8.75, 7, 10, math.random(5, 10), "Normal", RootPart, 0.5, 2, (math.random(5, 7)), nil, true)
  1356. if isjugg == false then
  1357. end
  1358. orb.Parent = nil
  1359. end
  1360. ), MainPos, MainPos2, MouseLook)
  1361. end
  1362. do
  1363. dec.Parent = nil
  1364. swait()
  1365. attack = false
  1366. end
  1367. end
  1368. end
  1369. end
  1370. end
  1371. end
  1372. end
  1373.  
  1374. Invisibility = function()
  1375. if invisible == false then
  1376. so("2767090", Torso, 1, 1)
  1377. MagicWave(BrickColor.new(NewCol), scarfp2.CFrame * euler(math.rad(180), 0, 0), 1, 1, 1, 0.5, 1.5, 0.5, 0.1)
  1378. MagicWave(BrickColor.new(NewCol), scarfp2.CFrame * euler(math.rad(180), 0, 0), 1, 1, 1, 1, 0.5, 1, 0.1)
  1379. MagicCircle(BrickColor.new(NewCol), prt6.CFrame * euler(-0.3, 0, 0), 0, 0, 0, 10, 10, 10, 0.05)
  1380. MagicCircle(BrickColor.new(NewCol), prt6.CFrame * euler(-0.3, 0, 0), 0, 0, 0, 5, 5, 5, 0.05)
  1381. invisnum.Value = invisnum.Value - 10
  1382. for _,c in pairs(Decrease:children()) do
  1383. if c.Name == "DecreaseMvmt" and c:findFirstChild("Renegade") ~= nil then
  1384. c.Parent = nil
  1385. end
  1386. end
  1387. d = Instance.new("NumberValue", Decrease)
  1388. d.Name = "DecreaseAtk"
  1389. d.Value = -5
  1390. dur = Instance.new("NumberValue", d)
  1391. dur.Name = "Duration"
  1392. dur.Value = 420
  1393. display = "+Damage"
  1394. showDamage(Character, display, "Debuff")
  1395. da = Instance.new("BoolValue", d)
  1396. da.Name = "Renegade"
  1397. DecreaseStat(Character, "Defense", 0.1, 80)
  1398. invisible = true
  1399. isinvis.Value = true
  1400. passive3.Parent = Decrease
  1401. else
  1402. invisible = false
  1403. isinvis.Value = false
  1404. passive3.Parent = nil
  1405. end
  1406. end
  1407.  
  1408. Runes = {"rbxassetid://0"}
  1409. ContentProvider = game:GetService("ContentProvider")
  1410. for _,v in pairs(Runes) do
  1411. ContentProvider:Preload(v)
  1412. end
  1413. do2 = function()
  1414. if attack == true then
  1415. return
  1416. end
  1417. if Stagger.Value == true or StunT.Value <= Stun.Value or StaggerHit.Value == true then
  1418. return
  1419. end
  1420. if cooldownmax <= cooldowns[1] and mana.Value >= 0 then
  1421. deb = 0.2
  1422. attack = true
  1423. cooldowns[1] = 100
  1424. mana.Value = mana.Value - 20
  1425. local orb = part(3, modelzorz, 0, 0, BrickColor.new(NewCol), "Effect", vt())
  1426. do
  1427. swait()
  1428. local dec = Instance.new("NumberValue", Decrease)
  1429. dec.Name = "DecreaseMvmt"
  1430. dec.Value = 0.2
  1431. for i = 0, 1, 0.2 do
  1432. swait()
  1433. RW.C0 = clerp(RW.C0, cf(1.2, 0.3, -0.5) * euler(1.6, 0, 0) * euler(0, 2, 0), 0.15)
  1434. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.15)
  1435. LW.C0 = clerp(LW.C0, cf(-1.2, 0.3, -0.5) * euler(1.6, 0, 0) * euler(0, 2, 0), 0.15)
  1436. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.15)
  1437. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  1438. do
  1439. if StaggerHit.Value == true then
  1440. break
  1441. end
  1442. end
  1443. end
  1444. end
  1445. if Stagger.Value ~= true then --and StunT.Value > Stun.Value then
  1446. if StaggerHit.Value ~= true then
  1447. swait()
  1448. arcorb = true
  1449. orb.Anchored = true
  1450. orb.CFrame = RootPart.CFrame * cf(0, 0, -7.5)
  1451. do
  1452. local msh = mesh("SpecialMesh", orb, "Sphere", "nil", vt(0, 0, 0), vt(30, 30, 30))
  1453. ogui = Instance.new("BillboardGui")
  1454. ogui.Parent = orb
  1455. ogui.Size = UDim2.new(5, 0, 5, 0)
  1456. oimg = Instance.new("ImageLabel")
  1457. oimg.Parent = ogui
  1458. oimg.BackgroundTransparency = 1
  1459. oimg.Size = UDim2.new(1, 0, 1, 0)
  1460. oimg.Image = Runes[math.random(1, #Runes)]
  1461. oimg.ImageColor3 = BrickColor.new(NewCol).Color
  1462. orbnum = 100
  1463. while arcorb==true do
  1464. if arcorb == true then
  1465. swait()
  1466. end
  1467. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  1468. if StaggerHit.Value == true then
  1469. break
  1470. end
  1471. orb.CFrame = RootPart.CFrame * cf(0, 0, -7.5)
  1472. if orbnum < 0 or MMouse == nil then
  1473. arcorb = false
  1474. end
  1475. swait()
  1476. orbnum = orbnum - 1
  1477. if Stagger.Value == true or StunT.Value <= Stun.Value or StaggerHit.Value == true then
  1478. arcorb = false
  1479. break
  1480. end
  1481. end
  1482. end
  1483. if MMouse.Hit.p ~= nil then
  1484. swait()
  1485. local MainPos = orb.Position
  1486. local MainPos2 = MMouse.Hit.p
  1487. local MouseLook = cf((MainPos + MainPos2) / 2, MainPos2)
  1488. coroutine.resume(coroutine.create(function(Pos1, Pos2, Look)
  1489. local num = 50
  1490. repeat
  1491. swait()
  1492. local ohit, opos = rayCast(Pos1, Look.lookVector, 5, Character)
  1493. orb.CFrame = CFrame.new((Pos1 + opos) / 2, opos)
  1494. Pos1 = Pos1 + Look.lookVector * 5
  1495. orb.CFrame = CFrame.new(orb.Position, MMouse.Hit.p)
  1496. if ohit ~= nil then
  1497. num = 0
  1498. end
  1499. num = num - 1
  1500. until num <= 0
  1501. local ref = part(3, workspace, 0, 1, BrickColor.new("Black"), "Effect", vt())
  1502. ref.Anchored = true
  1503. ref.CFrame = cf(orb.Position)
  1504. so("359233107", ref, 5, 0.5)
  1505. so("359233107", ref, 5, 0.35)
  1506. game:GetService("Debris"):AddItem(ref, 5)
  1507. MagicCircle(BrickColor.new(NewCol), cf(orb.Position), 0, 5, 0, 25, 0.125, 25, 0)
  1508. MagicWave(BrickColor.new(NewCol), cf(orb.Position) * euler(0, math.random(-50, 50), 0), 7.5, 5, 7.5, 1.5, -0.25, 1.5, 0.05)
  1509. MagicWave(BrickColor.new(NewCol), cf(orb.Position) * euler(0, math.random(-50, 50), 0), 7.5, 5, 7.5, 0.75, 0.05, 0.75, 0.05)
  1510. MagniDamage(ref, 17.5, 10, 13, math.random(5, 10), "Normal", RootPart, 0.5, 2, (math.random(5, 7)), nil, true)
  1511. if isjugg == false then
  1512. end
  1513. orb.Parent = nil
  1514. end
  1515. ), MainPos, MainPos2, MouseLook)
  1516. end
  1517. do
  1518. dec.Parent = nil
  1519. swait()
  1520. attack = false
  1521. end
  1522. end
  1523. end
  1524. end
  1525. end
  1526. end
  1527. end
  1528. do1 = function()
  1529. end
  1530. do3 = function()
  1531. if attack == true then
  1532. return
  1533. end
  1534. if Stagger.Value == true or StunT.Value <= Stun.Value or StaggerHit.Value == true then
  1535. return
  1536. end
  1537. if cooldownmax <= cooldowns[3] and mana.Value >= 30 then
  1538. attack = true
  1539. cooldowns[3] = 0
  1540. local dec = Instance.new("NumberValue", Decrease)
  1541. dec.Name = "DecreaseMvmt"
  1542. dec.Value = 10
  1543. local dec2 = Instance.new("NumberValue", Decrease)
  1544. dec2.Name = "DecreaseDef"
  1545. dec2.Value = -10
  1546. for i = 0, 1, 0.1 do
  1547. swait()
  1548. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  1549. do
  1550. if StaggerHit.Value == true then
  1551. break
  1552. end
  1553. -- DECOMPILER ERROR at PC281: LeaveBlock: unexpected jumping out IF_THEN_STMT
  1554.  
  1555. -- DECOMPILER ERROR at PC281: LeaveBlock: unexpected jumping out IF_STMT
  1556.  
  1557. end
  1558. end
  1559. end
  1560. do
  1561. mana.Value = mana.Value - 30
  1562. passivenum = -30
  1563. dec.Parent = nil
  1564. dec2.Parent = nil
  1565. passive.Value = -1
  1566. so("359233107", RootPart, 5, 0.5)
  1567. so("359233107", RootPart, 5, 0.35)
  1568. MagicCircle(BrickColor.new(NewCol), cf(Torso.Position) * cf(0, -2.5, 0), 50, 25, 50, 1.5, 0, 1.5, 0.005)
  1569. MagicCircle(BrickColor.new(NewCol), cf(Torso.Position) * cf(0, -2.5, 0), 50, 5, 50, 1, 100, 1, 0.075)
  1570. MagicWave(BrickColor.new(NewCol), cf(Torso.Position) * euler(0, math.random(-50, 50), 0) * cf(0, -2.5, 0), 12.5, 5, 12.5, 1.25, 0.05, 1.25, 0.05)
  1571. MagniDamage(RootPart, 25, 23, 25, math.random(30, 50), "Knockdown2", RootPart, 0, 1, (math.random(4, 8)), nil, nil, false)
  1572. wait(0.25)
  1573. for i = 0, 1, 0.1 do
  1574. swait()
  1575. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  1576. do
  1577. if StaggerHit.Value == true then
  1578. break
  1579. end
  1580. -- DECOMPILER ERROR at PC648: LeaveBlock: unexpected jumping out IF_THEN_STMT
  1581.  
  1582. -- DECOMPILER ERROR at PC648: LeaveBlock: unexpected jumping out IF_STMT
  1583.  
  1584. end
  1585. end
  1586. end
  1587. dec.Parent = nil
  1588. dec2.Parent = nil
  1589. attack = false
  1590. end
  1591. end
  1592. end
  1593. do4 = function()
  1594. end
  1595. DecreaseStat = function(Model, Stat, Amount, Duration, cangui)
  1596. if Model:findFirstChild("Stats") ~= nil and Model.Stats[Stat] ~= nil then
  1597. Model.Stats[Stat].Value = Model.Stats[Stat].Value - Amount
  1598. d = Instance.new("NumberValue", Model.Stats.Decrease)
  1599. dur = Instance.new("NumberValue", d)
  1600. dur.Name = "Duration"
  1601. dur.Value = Duration
  1602. game:GetService("Debris"):AddItem(d, 20)
  1603. if Stat == "Damage" then
  1604. d.Name = "DecreaseAtk"
  1605. else
  1606. if Stat == "Defense" then
  1607. d.Name = "DecreaseDef"
  1608. else
  1609. if Stat == "Movement" then
  1610. d.Name = "DecreaseMvmt"
  1611. end
  1612. end
  1613. end
  1614. if Model:findFirstChild("Torso") ~= nil then
  1615. display = ""
  1616. if Stat == "Damage" then
  1617. if Amount > 0 then
  1618. display = "-Damage"
  1619. else
  1620. display = "+Damage"
  1621. end
  1622. else
  1623. if Stat == "Defense" then
  1624. if Amount > 0 then
  1625. display = "-Defense"
  1626. else
  1627. display = "+Defense"
  1628. end
  1629. else
  1630. if Stat == "Movement" then
  1631. if Amount > 0 then
  1632. display = "-Movement"
  1633. else
  1634. display = "+Movement"
  1635. end
  1636. end
  1637. end
  1638. end
  1639. if cangui ~= true then
  1640. showDamage(Model, display, "Debuff")
  1641. end
  1642. end
  1643. d.Value = Amount
  1644. end
  1645. end
  1646. GetDist = function(Part1, Part2, magni)
  1647. local targ = Part1.Position - Part2.Position
  1648. local mag = targ.magnitude
  1649. if mag <= magni then
  1650. return true
  1651. else
  1652. return false
  1653. end
  1654. end
  1655. MagniDamage = function(Part, magni, minim, maxim, knockback, Type, Property, Delay, KnockbackType, incstun, stagger, staghit, ranged, DecreaseState, DecreaseAmount, Duration)
  1656. for _,c in pairs(workspace:children()) do
  1657. local hum = c:findFirstChild("Humanoid")
  1658. if hum ~= nil then
  1659. local head = nil
  1660. for _,d in pairs(c:children()) do
  1661. if d.className == "Model" and ranged ~= true then
  1662. head = d:findFirstChild("Hitbox")
  1663. if d.Parent == Character then
  1664. break
  1665. end
  1666. if head ~= nil then
  1667. local targ = head.Position - Part.Position
  1668. local mag = targ.magnitude
  1669. if mag <= magni and c.Name ~= Player.Name then
  1670. ref = part(3, workspace, 0, 1, BrickColor.new("Black"), "Reference", vt())
  1671. ref.Anchored = true
  1672. ref.CFrame = cf(head.Position)
  1673. game:GetService("Debris"):AddItem(ref, 1)
  1674. hitnum = math.random(1, 5)
  1675. if hitnum == 1 then
  1676. so("199148971", ref, 1, 1)
  1677. else
  1678. if hitnum == 2 then
  1679. so("199149025", ref, 1, 1)
  1680. else
  1681. if hitnum == 3 then
  1682. so("199149072", ref, 1, 1)
  1683. else
  1684. if hitnum == 4 then
  1685. so("199149109", ref, 1, 1)
  1686. else
  1687. if hitnum == 5 then
  1688. so("199149119", ref, 1, 1)
  1689. end
  1690. end
  1691. end
  1692. end
  1693. end
  1694. StaggerHit.Value = true
  1695. end
  1696. end
  1697. end
  1698. do
  1699. if d.className == "Part" and d.Name=="Torso" then
  1700. head = d
  1701. if head ~= nil then
  1702. local targ = head.Position - Part.Position
  1703. local mag = targ.magnitude
  1704. if mag <= magni and c.Name ~= Player.Name then
  1705. if stun == nil then
  1706. stun = math.random(5, 10)
  1707. end
  1708. local Rang = nil
  1709. if Ranged == false then
  1710. Rang = true
  1711. end
  1712. local stag = nil
  1713. if shbash == true then
  1714. stag = true
  1715. end
  1716. Damagefunc(head, minim, maxim, knockback, Type, Property, Delay, KnockbackType, incstun, stagger, staghit, ranged, DecreaseState, DecreaseAmount, Duration)
  1717. end
  1718. end
  1719. end
  1720. do
  1721. -- DECOMPILER ERROR at PC183: LeaveBlock: unexpected jumping out DO_STMT
  1722.  
  1723. end
  1724. end
  1725. end
  1726. end
  1727. end
  1728. end
  1729. rayCast = function(Pos, Dir, Max, Ignore)
  1730. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  1731. end
  1732. local Point = Torso.CFrame * cf(0, Torso.Size.Y, 0)
  1733. LastPoint = Point
  1734. effect = function(Color, Ref, LP, P1, returnn)
  1735. if LP == nil or P1 == nil then
  1736. return
  1737. end
  1738. local effectsmsh = Instance.new("CylinderMesh")
  1739. effectsmsh.Scale = Vector3.new(0.2, 1, 0.2)
  1740. effectsmsh.Name = "Mesh"
  1741. local effectsg = Instance.new("Part")
  1742. NoOutline(effectsg)
  1743. effectsg.formFactor = 3
  1744. effectsg.CanCollide = false
  1745. effectsg.Name = "Eff"
  1746. effectsg.Locked = true
  1747. effectsg.Anchored = true
  1748. effectsg.Size = Vector3.new(0.5, 1, 0.5)
  1749. effectsg.Parent = workspace
  1750. effectsmsh.Parent = effectsg
  1751. effectsg.BrickColor = BrickColor.new(Color)
  1752. effectsg.Reflectance = Ref
  1753. local point1 = P1
  1754. local mg = (LP.p - point1.p).magnitude
  1755. effectsg.Size = Vector3.new(0.5, mg, 0.5)
  1756. effectsg.CFrame = cf((LP.p + point1.p) / 2, point1.p) * CFrame.Angles(math.rad(90), 0, 0)
  1757. effectsmsh.Scale = Vector3.new(0.2, 1, 0.2)
  1758. game:GetService("Debris"):AddItem(effectsg, 2)
  1759. if returnn then
  1760. return effectsg
  1761. end
  1762. if not returnn then
  1763. table.insert(Effects, {effectsg, "Cylinder", 0.2, 0.01, 0, 0.01, effectsmsh})
  1764. end
  1765. end
  1766. MagicBlock = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type, parent)
  1767. local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt())
  1768. prt.Anchored = true
  1769. prt.CFrame = cframe
  1770. msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
  1771. game:GetService("Debris"):AddItem(prt, 10)
  1772. if Type == 1 or Type == nil then
  1773. table.insert(Effects, {prt, "Block1", delay, x3, y3, z3, msh})
  1774. else
  1775. if Type == 2 then
  1776. table.insert(Effects, {prt, "Block2", delay, x3, y3, z3, msh})
  1777. else
  1778. if Type == 3 then
  1779. 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})
  1780. end
  1781. end
  1782. end
  1783. end
  1784. MagicSkull = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, goe)
  1785. local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt())
  1786. prt.Anchored = true
  1787. prt.CFrame = cframe
  1788. msh = mesh("SpecialMesh", prt, "FileMesh", "102638417", vt(0, 0, 0), vt(x1, y1, z1))
  1789. game:GetService("Debris"):AddItem(prt, 10)
  1790. table.insert(Effects, {prt, "Skull", delay, x3, y3, z3, msh, goe})
  1791. end
  1792. MagicCircle = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1793. local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt())
  1794. prt.Anchored = true
  1795. prt.CFrame = cframe
  1796. local msh = mesh("SpecialMesh", prt, "Sphere", "nil", vt(0, 0, 0), vt(x1, y1, z1))
  1797. game:GetService("Debris"):AddItem(prt, 10)
  1798. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  1799. end
  1800. MagicRing = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1801. local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  1802. prt.Anchored = true
  1803. prt.CFrame = cframe * cf(x2, y2, z2)
  1804. local msh = mesh("SpecialMesh", prt, "FileMesh", "3270017", vt(0, 0, 0), vt(x1, y1, z1))
  1805. game:GetService("Debris"):AddItem(prt, 10)
  1806. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  1807. end
  1808. MagicRing2 = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1809. local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  1810. prt.Anchored = true
  1811. prt.CFrame = cframe * cf(x2, y2, z2)
  1812. local msh = mesh("SpecialMesh", prt, "FileMesh", "102638417", vt(0, 0, 0), vt(x1, y1, z1))
  1813. game:GetService("Debris"):AddItem(prt, 10)
  1814. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  1815. end
  1816. MagicCircle2 = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, push)
  1817. local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt())
  1818. prt.Anchored = true
  1819. prt.CFrame = cframe
  1820. local msh = mesh("SpecialMesh", prt, "Sphere", "nil", vt(0, 0, 0), vt(x1, y1, z1))
  1821. game:GetService("Debris"):AddItem(prt, 10)
  1822. table.insert(Effects, {prt, "Blood", delay, x3, y3, z3, msh, push})
  1823. end
  1824. MagicCylinder = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1825. local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt())
  1826. prt.Anchored = true
  1827. prt.CFrame = cframe
  1828. local msh = mesh("CylinderMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
  1829. game:GetService("Debris"):AddItem(prt, 10)
  1830. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  1831. end
  1832. MagicCylinder2 = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, goe)
  1833. local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt())
  1834. prt.Anchored = true
  1835. prt.CFrame = cframe
  1836. local msh = mesh("CylinderMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
  1837. game:GetService("Debris"):AddItem(prt, 10)
  1838. table.insert(Effects, {prt, "Cylinder2", delay, x3, y3, z3, msh, goe})
  1839. end
  1840. MagicHead = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1841. local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt())
  1842. prt.Anchored = true
  1843. prt.CFrame = cframe
  1844. local msh = mesh("SpecialMesh", prt, "Head", "nil", vt(0, 0, 0), vt(x1, y1, z1))
  1845. game:GetService("Debris"):AddItem(prt, 10)
  1846. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  1847. end
  1848. ClangEffect = function(brickcolor, cframe, duration, decrease, size, power)
  1849. local prt = part(3, workspace, 0, 1, brickcolor, "Effect", vt())
  1850. prt.Anchored = true
  1851. prt.CFrame = cframe
  1852. local msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(5, 5, 5))
  1853. game:GetService("Debris"):AddItem(prt, 10)
  1854. table.insert(Effects, {prt, "CylinderClang", duration, decrease, size, power, prt.CFrame, nil})
  1855. end
  1856. MagicWave = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1857. local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt())
  1858. prt.Anchored = true
  1859. prt.CFrame = cframe
  1860. local msh = mesh("SpecialMesh", prt, "FileMesh", "20329976", vt(0, 0, 0), vt(x1, y1, z1))
  1861. game:GetService("Debris"):AddItem(prt, 10)
  1862. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  1863. end
  1864. MagicFire = function(brickcolor, cframe, x1, y1, z1, delay)
  1865. local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt())
  1866. prt.Anchored = true
  1867. prt.CFrame = cframe
  1868. msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
  1869. game:GetService("Debris"):AddItem(prt, 10)
  1870. table.insert(Effects, {prt, "Fire", delay, 1, 1, 1, msh})
  1871. end
  1872. MagicFireWave = function(brickcolor, cframe, x1, y1, z1)
  1873. local prt = part(3, workspace, 0, 1, brickcolor, "Effect", vt())
  1874. prt.Anchored = true
  1875. prt.CFrame = cframe
  1876. msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
  1877. d = Instance.new("Decal")
  1878. d.Parent = prt
  1879. d.Texture = "http://www.roblox.com/asset/?id=26356434"
  1880. d.Face = "Top"
  1881. d = Instance.new("Decal")
  1882. d.Parent = prt
  1883. d.Texture = "http://www.roblox.com/asset/?id=26356434"
  1884. d.Face = "Bottom"
  1885. game:GetService("Debris"):AddItem(prt, 10)
  1886. table.insert(Effects, {prt, "FireWave", 1, 30, math.random(400, 600) / 100, msh})
  1887. end
  1888. ElecEffect = function(cff, x, y, z)
  1889. local prt = part(3, workspace, 0, 0, BrickColor.new("Bright red"), "Part", vt(1, 1, 1))
  1890. prt.Anchored = true
  1891. prt.CFrame = cff * cf(math.random(-x, x), math.random(-y, y), math.random(-z, z))
  1892. prt.CFrame = cf(prt.Position)
  1893. game:GetService("Debris"):AddItem(prt, 10)
  1894. xval = math.random() / 3
  1895. yval = math.random() / 3
  1896. zval = math.random() / 3
  1897. msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(xval, yval, zval))
  1898. Effects[#Effects + 1] = {prt, "Elec", 0.2, x, y, z, xval, yval, zval, msh}
  1899. end
  1900. CloneBody = function()
  1901. for _,v in pairs(Torso.Parent:children()) do
  1902. if v.className == "Part" and v.Name ~= "HumanoidRootPart" then
  1903. local c = part(3, workspace, 0, 0.5, BrickColor.new("Really black"), "Effect", v.Size)
  1904. c.Anchored = true
  1905. c.CFrame = v.CFrame
  1906. game:GetService("Debris"):AddItem(c, 5)
  1907. if v.Name == "Head" then
  1908. cmsh = mesh("SpecialMesh", c, "Head", "nil", vt(0, 0, 0), v.Mesh.Scale)
  1909. end
  1910. table.insert(Effects, {c, "Disappear", 0.05})
  1911. end
  1912. end
  1913. end
  1914. Clone = function(duration)
  1915. for _,v in pairs(Torso.Parent:children()) do
  1916. if v.className == "Part" and v.Name ~= "HumanoidRootPart" then
  1917. local c = part(3, workspace, 0, 0, BrickColor.new("Really black"), "Effect", v.Size)
  1918. c.Anchored = true
  1919. c.CFrame = v.CFrame
  1920. game:GetService("Debris"):AddItem(c, 5)
  1921. if v.Name == "Head" then
  1922. cmsh = mesh("SpecialMesh", c, "Head", "nil", vt(0, 0, 0), v.Mesh.Scale)
  1923. end
  1924. table.insert(Effects, {c, "Disappear", duration})
  1925. else
  1926. do
  1927. do
  1928. if v.className == "Hat" then
  1929. n = v.Handle:clone()
  1930. n:BreakJoints()
  1931. n.archivable = true
  1932. n.Anchored = true
  1933. n.CanCollide = false
  1934. n.Name = "Effect"
  1935. n.BrickColor = BrickColor.new("Really black")
  1936. n.Parent = workspace
  1937. n.CFrame = v.Handle.CFrame
  1938. n.Transparency = 1
  1939. n:BreakJoints()
  1940. table.insert(Effects, {n, "Disappear", duration})
  1941. end
  1942. -- DECOMPILER ERROR at PC108: LeaveBlock: unexpected jumping out DO_STMT
  1943.  
  1944. -- DECOMPILER ERROR at PC108: LeaveBlock: unexpected jumping out IF_ELSE_STMT
  1945.  
  1946. -- DECOMPILER ERROR at PC108: LeaveBlock: unexpected jumping out IF_STMT
  1947.  
  1948. end
  1949. end
  1950. end
  1951. end
  1952. for _,v in pairs(modelzorz:children()) do
  1953. if v.className == "Part" and v.Name ~= "Hitbox" and v.Name ~= "Hitbox2" then
  1954. n = v:clone()
  1955. for _,b in pairs(n:children()) do
  1956. if b.className == "Motor" then
  1957. b.Parent = nil
  1958. end
  1959. end
  1960. n.archivable = true
  1961. n.Anchored = true
  1962. n.CanCollide = false
  1963. n.Name = "Effect"
  1964. n.BrickColor = BrickColor.new("Really black")
  1965. n.Parent = workspace
  1966. n.CFrame = v.CFrame
  1967. n.Transparency = 0
  1968. n:BreakJoints()
  1969. table.insert(Effects, {n, "Disappear", duration})
  1970. end
  1971. end
  1972. end
  1973. Cloak = function()
  1974. so("2767090", Torso, 1, 1)
  1975. Face.Parent = nil
  1976. Clone(0.02)
  1977. for _,v in pairs(Torso.Parent:children()) do
  1978. do
  1979. if v.className == "Part" and v.Name ~= "HumanoidRootPart" then
  1980. coroutine.resume(coroutine.create(function()
  1981. for i = 0, 1, 0.1 do
  1982. wait()
  1983. v.Transparency = v.Transparency + 0.1
  1984. end
  1985. v.Transparency = 1
  1986. end))
  1987. end
  1988. if v.className == "Hat" then
  1989. do
  1990. hatp = v.Handle
  1991. coroutine.resume(coroutine.create(function(derp)
  1992. for i = 0, 1, 0.1 do
  1993. wait()
  1994. derp.Transparency = derp.Transparency + 0.1
  1995. end
  1996. derp.Transparency = 1
  1997. end), hatp)
  1998. -- DECOMPILER ERROR at PC45: LeaveBlock: unexpected jumping out IF_THEN_STMT
  1999.  
  2000. -- DECOMPILER ERROR at PC45: LeaveBlock: unexpected jumping out IF_STMT
  2001.  
  2002. end
  2003. end
  2004. end
  2005. end
  2006. for _,v in pairs(modelzorz:children()) do
  2007. if v.className == "Part" and v.Name ~= "Hitbox" and v.Name ~= "Hitbox2" then
  2008. coroutine.resume(coroutine.create(function()
  2009. for i = 0, 1, 0.1 do
  2010. wait()
  2011. v.Transparency = v.Transparency + 0.1
  2012. end
  2013. v.Transparency = 1
  2014. end))
  2015. end
  2016. end
  2017. end
  2018. UnCloak = function()
  2019. so("2767090", Torso, 1, 1.1)
  2020. Face.Parent = Head
  2021. for _,v in pairs(Torso.Parent:children()) do
  2022. do
  2023. if v.className == "Part" and v.Name ~= "HumanoidRootPart" then
  2024. coroutine.resume(coroutine.create(function()
  2025. for i = 0, 1, 0.1 do
  2026. wait()
  2027. v.Transparency = v.Transparency - 0.1
  2028. end
  2029. v.Transparency = 0
  2030. end))
  2031. end
  2032. if v.className == "Hat" then
  2033. do
  2034. hatp = v.Handle
  2035. coroutine.resume(coroutine.create(function(derp)
  2036. for i = 0, 1, 0.1 do
  2037. wait()
  2038. derp.Transparency = derp.Transparency - 0.1
  2039. end
  2040. derp.Transparency = 1
  2041. end), hatp)
  2042. -- DECOMPILER ERROR at PC43: LeaveBlock: unexpected jumping out IF_THEN_STMT
  2043.  
  2044. -- DECOMPILER ERROR at PC43: LeaveBlock: unexpected jumping out IF_STMT
  2045.  
  2046. end
  2047. end
  2048. end
  2049. end
  2050. for _,v in pairs(modelzorz:children()) do
  2051. if v.className == "Part" and v.Name ~= "Hitbox" and v.Name ~= "Hitbox2" then
  2052. coroutine.resume(coroutine.create(function()
  2053. for i = 0, 1, 0.1 do
  2054. wait()
  2055. v.Transparency = v.Transparency - 0.1
  2056. end
  2057. for i = 0, 1, 0.3 do
  2058. wait()
  2059. v.Transparency = 0
  2060. end
  2061. end))
  2062. end
  2063. end
  2064. end
  2065. Damagefunc = function(hit, minim, maxim, knockback, Type, Property, Delay, KnockbackType, incstun, stagger, staghit, ranged, DecreaseState, DecreaseAmount, Duration)
  2066. if hit.Parent == nil then
  2067. return
  2068. end
  2069. if hit.Name == "Hitbox" and hit.Parent ~= modelzorz and ranged ~= true then
  2070. ref = part(3, workspace, 0, 1, BrickColor.new("Black"), "Reference", vt())
  2071. ref.Anchored = true
  2072. ref.CFrame = cf(hit.Position)
  2073. game:GetService("Debris"):AddItem(ref, 1)
  2074. hitnum = math.random(1, 5)
  2075. if hitnum == 1 then
  2076. so("199148971", ref, 1, 1)
  2077. else
  2078. if hitnum == 2 then
  2079. so("199149025", ref, 1, 1)
  2080. else
  2081. if hitnum == 3 then
  2082. so("199149072", ref, 1, 1)
  2083. else
  2084. if hitnum == 4 then
  2085. so("199149109", ref, 1, 1)
  2086. else
  2087. if hitnum == 5 then
  2088. so("199149119", ref, 1, 1)
  2089. end
  2090. end
  2091. end
  2092. end
  2093. end
  2094. StaggerHit.Value = true
  2095. end
  2096. h = hit.Parent:FindFirstChild("Humanoid")
  2097. if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
  2098. if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then
  2099. return
  2100. end
  2101. if Player.Neutral == false then
  2102. if hit.Parent:findFirstChild("Alignment") ~= nil and hit.Parent.Alignment.Value == Player.TeamColor.Color then
  2103. return
  2104. end
  2105. if game.Players:GetPlayerFromCharacter(hit.Parent) ~= nil and game.Players:GetPlayerFromCharacter(hit.Parent).TeamColor == Player.TeamColor then
  2106. return
  2107. end
  2108. end
  2109. c = Instance.new("ObjectValue")
  2110. c.Name = "creator"
  2111. c.Value = game:service("Players").LocalPlayer
  2112. c.Parent = h
  2113. RecentEnemy.Value = hit.Parent
  2114. game:GetService("Debris"):AddItem(c, 0.5)
  2115. if doing4 == false then
  2116. minim = minim * Atk.Value
  2117. maxim = maxim * Atk.Value
  2118. end
  2119. Damage = 0
  2120. if minim == maxim then
  2121. Damage = maxim
  2122. else
  2123. Damage = math.random(minim, maxim)
  2124. end
  2125. blocked = false
  2126. enblock = nil
  2127. Stats = hit.Parent:findFirstChild("Stats")
  2128. if Stats == nil then
  2129. Character.Stats:Clone().Parent=hit.Parent
  2130. end
  2131. if Stats ~= nil then
  2132. Stats.Defense.Value=1
  2133. invis = Stats:findFirstChild("Invisibility")
  2134. if (ranged == false or ranged == nil) and invis ~= nil then
  2135. invis.Value = 0
  2136. end
  2137. enblock = Stats:findFirstChild("Block")
  2138. if enblock ~= nil and enblock.Value == true then
  2139. blocked = true
  2140. end
  2141. if Stats:findFirstChild("Defense") ~= nil then
  2142. if doing2 ~= true and doing4 ~= true then
  2143. local divide = Stats.Defense.Value
  2144. Damage = Damage / divide
  2145. end
  2146. do
  2147. Damage = Damage
  2148. if Damage <= 3 and (ranged == false or ranged == nil) and blocked ~= true then
  2149. hitnum = math.random(1, 5)
  2150. if hitnum == 1 then
  2151. so("199149321", hit, 1, 1)
  2152. else
  2153. if hitnum == 2 then
  2154. so("199149338", hit, 1, 1)
  2155. else
  2156. if hitnum == 3 then
  2157. so("199149367", hit, 1, 1)
  2158. else
  2159. if hitnum == 4 then
  2160. so("199149409", hit, 1, 1)
  2161. else
  2162. if hitnum == 5 then
  2163. so("199149452", hit, 1, 1)
  2164. end
  2165. end
  2166. end
  2167. end
  2168. end
  2169. else
  2170. if ranged == false or ranged == nil and blocked ~= true then
  2171. hitnum = math.random(1, 6)
  2172. if hitnum == 1 then
  2173. so("199149137", hit, 1, 1)
  2174. else
  2175. if hitnum == 2 then
  2176. so("199149186", hit, 1, 1)
  2177. else
  2178. if hitnum == 3 then
  2179. so("199149221", hit, 1, 1)
  2180. else
  2181. if hitnum == 4 then
  2182. so("199149235", hit, 1, 1)
  2183. else
  2184. if hitnum == 5 then
  2185. so("199149269", hit, 1, 1)
  2186. else
  2187. if hitnum == 6 then
  2188. so("199149297", hit, 1, 1)
  2189. end
  2190. end
  2191. end
  2192. end
  2193. end
  2194. end
  2195. end
  2196. end
  2197. if Damage <= 3 and staghit == true and ranged ~= true then
  2198. StaggerHit.Value = true
  2199. end
  2200. if Stats:findFirstChild("Stun") ~= nil then
  2201. if blocked == true then
  2202. incstun = incstun / 2
  2203. end
  2204. if Stats.Stun.Value < Stats.StunThreshold.Value then
  2205. Stats.Stun.Value = Stats.Stun.Value + incstun
  2206. end
  2207. end
  2208. if Stats:findFirstChild("Stagger") ~= nil and stagger == true then
  2209. Stats.Stagger.Value = true
  2210. end
  2211. if blocked == true then
  2212. showDamage(hit.Parent, "Block", "Damage")
  2213. if ranged ~= true then
  2214. enblock.Value = false
  2215. Stagger.Value = true
  2216. hitnum = math.random(1, 2)
  2217. if hitnum == 1 then
  2218. so("199148933", hit, 1, 1)
  2219. else
  2220. if hitnum == 2 then
  2221. so("199148947", hit, 1, 1)
  2222. end
  2223. end
  2224. end
  2225. else
  2226. Damage = math.floor(Damage)
  2227. if hit.Parent:findFirstChild("Mark") == nil then
  2228. d = it("BoolValue", hit.Parent)
  2229. d.Name = "Mark"
  2230. b = it("NumberValue", d)
  2231. b.Name = "MarkTime"
  2232. b.Value = 200
  2233. v = it("NumberValue", d)
  2234. v.Name = "MarkValue"
  2235. v.Value = 0
  2236. if doing4 == true then
  2237. v.Value = 10
  2238. end
  2239. sz = it("NumberValue", d)
  2240. sz.Name = "MarkSize"
  2241. sz.Value = 5
  2242. st = it("StringValue", d)
  2243. st.Name = "MarkType"
  2244. st.Value = "Adjudicator"
  2245. local tehpart = hit.Parent:findFirstChild("HumanoidRootPart")
  2246. if tehpart == nil then
  2247. tehpart = hit.Parent:findFirstChild("Torso")
  2248. end
  2249. if hit.Parent.Name == "Neflhelm" then
  2250. tehpart = hit
  2251. end
  2252. if tehpart ~= nil then
  2253. markgui = it("BillboardGui", tehpart)
  2254. markgui.Name = "Mark Gui"
  2255. markgui.Size = UDim2.new(7, 0, 7, 0)
  2256. markgui.StudsOffset = vt(0, 10, 0)
  2257. markgui.AlwaysOnTop = true
  2258. markscy = it("ImageLabel", markgui)
  2259. markscy.Name = "Scythe"
  2260. markscy.BackgroundTransparency = 1
  2261. markscy.Image = "rbxassetid://278007861"
  2262. markscy.ImageColor3 = Color3.new(1, 0, 0)
  2263. markscy.Size = UDim2.new(1, 0, 1, 0)
  2264. table.insert(MarkedGUI, {markgui, markscy})
  2265. end
  2266. table.insert(Marked, {d, b, v, sz})
  2267. else
  2268. mark = hit.Parent:findFirstChild("Mark")
  2269. if mark:findFirstChild("MarkTime") ~= nil then
  2270. mark.MarkTime.Value = 700
  2271. end
  2272. if mark:findFirstChild("MarkValue") ~= nil then
  2273. if mark.MarkValue.Value >= 10 then
  2274. if mark:findFirstChild("MarkTime") ~= nil then
  2275. mark.MarkTime.Value = 400
  2276. end
  2277. if mark.MarkType.Value == "Classic" then
  2278. mark.Parent = nil
  2279. Damage = Damage * 2
  2280. print("double damage")
  2281. if hit.Parent:findFirstChild("HumanoidRootPart") ~= nil then
  2282. ref = part(3, workspace, 0, 1, BrickColor.new("Black"), "Reference", vt())
  2283. ref.Anchored = true
  2284. ref.CFrame = hit.Parent.HumanoidRootPart.CFrame
  2285. game:GetService("Debris"):AddItem(ref, 5)
  2286. local nr = NumberRange.new
  2287. local ns = NumberSequence.new
  2288. local cs = ColorSequence.new
  2289. local parti = it("ParticleEmitter")
  2290. parti.Color = cs(NewCol, Color3.new(0, 0, 0))
  2291. parti.LightEmission = 0
  2292. parti.Size = ns(10)
  2293. parti.Texture = "http://www.roblox.com/asset/?id=243660364"
  2294. transseq = ns({NumberSequenceKeypoint.new(0, 0), NumberSequenceKeypoint.new(1, 1)})
  2295. parti.Transparency = transseq
  2296. parti.ZOffset = 1
  2297. parti.Acceleration = vt(0, 0, 0)
  2298. parti.Lifetime = nr(1)
  2299. parti.Rate = 20
  2300. parti.Rotation = nr(0, 360)
  2301. parti.Speed = nr(0)
  2302. parti.VelocitySpread = 0
  2303. parti.Parent = ref
  2304. parti.Enabled = true
  2305. table.insert(Effects, {parti, "PartiEmi", 20})
  2306. markscy = it("ImageLabel", markgui)
  2307. markscy.Name = "Scythe"
  2308. markscy.BackgroundTransparency = 1
  2309. markscy.Image = "rbxassetid://258927926"
  2310. markscy.ImageColor3 = Color3.new(1, 0, 0)
  2311. markscy.Size = UDim2.new(1, 0, 1, 0)
  2312. table.insert(Effects, {markgui, "AdjuEff", 10, markscy})
  2313. end
  2314. elseif mark.MarkType.Value == "Adjudicator" and hit.Parent:findFirstChild("HumanoidRootPart") ~= nil then
  2315. da = math.random(1, 4)
  2316. inc = 1
  2317. if doing2 == true then
  2318. inc = 2
  2319. end
  2320. if da == 1 then
  2321. DecreaseStat(Character, "Damage", -math.random(6, 10) / 100 * inc, 150, true)
  2322. DecreaseStat(Character, "Movement", -math.random(2, 6) / 100 * inc, 200, true)
  2323. else
  2324. if da == 2 then
  2325. DecreaseStat(Character, "Defense", -math.random(2, 6) / 100 * inc, 150, true)
  2326. DecreaseStat(Character, "Movement", -math.random(2, 6) / 100 * inc, 200, true)
  2327. else
  2328. if da == 3 then
  2329. DecreaseStat(hit.Parent, "Damage", math.random(6, 10) / 100 * inc, 150, true)
  2330. DecreaseStat(hit.Parent, "Movement", math.random(1, 3) / 100 * inc, 200, true)
  2331. else
  2332. if da == 4 then
  2333. DecreaseStat(hit.Parent, "Defense", math.random(2, 6) / 100 * inc, 150, true)
  2334. DecreaseStat(hit.Parent, "Movement", math.random(1, 3) / 100 * inc, 200, true)
  2335. end
  2336. end
  2337. end
  2338. end
  2339. ref = part(3, workspace, 0, 1, BrickColor.new("Black"), "Reference", vt())
  2340. ref.Anchored = true
  2341. ref.CFrame = hit.Parent.HumanoidRootPart.CFrame
  2342. game:GetService("Debris"):AddItem(ref, 5)
  2343. markgui = it("BillboardGui", ref)
  2344. markgui.Name = "Mark Gui"
  2345. markgui.Size = UDim2.new(7, 0, 7, 0)
  2346. markgui.StudsOffset = vt(0, 10, 0)
  2347. markgui.AlwaysOnTop = true
  2348. markscy = it("ImageLabel", markgui)
  2349. markscy.Name = "Scythe"
  2350. markscy.BackgroundTransparency = 1
  2351. markscy.Image = "rbxassetid://278007453"
  2352. markscy.ImageColor3 = Color3.new(1, 0, 0)
  2353. markscy.Size = UDim2.new(1, 0, 1, 0)
  2354. table.insert(Effects, {markgui, "AdjuEff", 10, markscy})
  2355. end
  2356. elseif --[[mark.MarkType.Value ~= "Thanatos" or --]]doing4 == true then
  2357. mark.MarkValue.Value = 10
  2358. else
  2359. mark.MarkValue.Value = mark.MarkValue.Value + 1
  2360. end
  2361. end
  2362. if mark:findFirstChild("MarkSize") ~= nil then
  2363. mark.MarkSize.Value = 5
  2364. end
  2365. coroutine.resume(coroutine.create(function(Hum, Dam)
  2366. hit.Parent.Humanoid:TakeDamage(Damage)
  2367. end), h, Damage)
  2368. pursuitnum = 0
  2369. if isinvis.Value == false then
  2370. invisnum.Value = math.floor(invisnum.Value + math.random(4, 8) + Damage / 5)
  2371. end
  2372. showDamage(hit.Parent, Damage, "Damage")
  2373. if DecreaseState ~= nil then
  2374. DecreaseStat(hit.Parent, DecreaseState, DecreaseAmount, Duration)
  2375. end
  2376. if Type == "NormalDecreaseMvmt1" then
  2377. DecreaseStat(hit.Parent, "Movement", 0.1, 200)
  2378. end
  2379. if Type == "Knockdown" then
  2380. hum = hit.Parent.Humanoid
  2381. hum.PlatformStand = true
  2382. coroutine.resume(coroutine.create(function(HHumanoid)
  2383. swait(1)
  2384. HHumanoid.PlatformStand = false
  2385. end), hum)
  2386. local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit
  2387. local bodvol = Instance.new("BodyVelocity")
  2388. bodvol.velocity = angle * knockback
  2389. bodvol.P = 500
  2390. bodvol.maxForce = Vector3.new(2000, 2000, 2000)
  2391. bodvol.Parent = hit
  2392. rl = Instance.new("BodyAngularVelocity")
  2393. rl.P = 3000
  2394. rl.maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000
  2395. rl.angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10))
  2396. rl.Parent = hit
  2397. game:GetService("Debris"):AddItem(bodvol, 0.5)
  2398. game:GetService("Debris"):AddItem(rl, 0.5)
  2399. else
  2400. do
  2401. if Type == "Knockdown2" then
  2402. hum = hit.Parent.Humanoid
  2403. local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit
  2404. local bodvol = Instance.new("BodyVelocity")
  2405. bodvol.velocity = angle * knockback
  2406. bodvol.P = 500
  2407. bodvol.maxForce = Vector3.new(2000, 2000, 2000)
  2408. bodvol.Parent = hit
  2409. game:GetService("Debris"):AddItem(bodvol, 0.5)
  2410. else
  2411. do
  2412. if Type == "Normal" or Type == "NormalDecreaseMvmt1" then
  2413. vp = Instance.new("BodyVelocity")
  2414. vp.P = 500
  2415. vp.maxForce = Vector3.new(math.huge, 0, math.huge)
  2416. if KnockbackType == 1 then
  2417. vp.velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05
  2418. else
  2419. if KnockbackType == 2 then
  2420. vp.velocity = Property.CFrame.lookVector * knockback
  2421. end
  2422. end
  2423. game:GetService("Debris"):AddItem(vp, 0.5)
  2424. if knockback > 0 then
  2425. vp.Parent = hit.Parent.Torso
  2426. end
  2427. end
  2428. debounce = Instance.new("BoolValue")
  2429. debounce.Name = "DebounceHit"
  2430. debounce.Parent = hit.Parent
  2431. debounce.Value = true
  2432. game:GetService("Debris"):AddItem(debounce, Delay)
  2433. c = Instance.new("ObjectValue")
  2434. c.Name = "creator"
  2435. c.Value = Player
  2436. c.Parent = h
  2437. game:GetService("Debris"):AddItem(c, 0.5)
  2438. CRIT = false
  2439. end
  2440. end
  2441. end
  2442. end
  2443. end
  2444. end
  2445. end
  2446. end
  2447. end
  2448. end
  2449. end
  2450. -- end
  2451. --end
  2452. --end
  2453. --end
  2454. --end
  2455. showDamage = function(Char, Dealt, Type)
  2456. m = Instance.new("Model")
  2457. m.Name = "Effect"
  2458. c = Instance.new("Part")
  2459. c.Transparency = 1
  2460. c.Name = "Head"
  2461. c.TopSurface = 0
  2462. c.BottomSurface = 0
  2463. c.formFactor = "Plate"
  2464. c.Size = Vector3.new(1, 0.4, 1)
  2465. b = Instance.new("BillboardGui", c)
  2466. b.Size = UDim2.new(5, 0, 5, 0)
  2467. b.AlwaysOnTop = true
  2468. damgui = gui("TextLabel", b, tostring(Dealt), 1, Color3.new(0, 0, 0), UDim2.new(0, 0, 0, 0), UDim2.new(1, 0, 1, 0))
  2469. if Type == "Damage" then
  2470. damgui.Font = "SourceSansBold"
  2471. if Dealt == "Block" then
  2472. damgui.TextColor3 = BrickColor.new("Bright blue").Color
  2473. else
  2474. if Dealt < 3 then
  2475. damgui.TextColor3 = BrickColor.new("White").Color
  2476. else
  2477. if Dealt >= 3 and Dealt < 20 then
  2478. damgui.TextColor3 = BrickColor.new("Really red").Color
  2479. else
  2480. damgui.TextColor3 = BrickColor.new("Really red").Color
  2481. damgui.Font = "SourceSansBold"
  2482. end
  2483. end
  2484. end
  2485. else
  2486. if Type == "Debuff" then
  2487. damgui.TextColor3 = BrickColor.new("White").Color
  2488. else
  2489. if Type == "Interrupt" then
  2490. damgui.TextColor3 = BrickColor.new("New Yeller").Color
  2491. end
  2492. end
  2493. end
  2494. damgui.TextScaled = true
  2495. ms = Instance.new("CylinderMesh")
  2496. ms.Scale = Vector3.new(0.8, 0.8, 0.8)
  2497. ms.Parent = c
  2498. c.Reflectance = 0
  2499. Instance.new("BodyGyro").Parent = c
  2500. c.Parent = m
  2501. if Char:findFirstChild("Head") ~= nil then
  2502. c.CFrame = cf(Char.Head.CFrame.p + Vector3.new(math.random(-100, 100) / 100, 3, math.random(-100, 100) / 100))
  2503. else
  2504. if Char.Parent:findFirstChild("Head") ~= nil then
  2505. c.CFrame = cf(Char.Parent.Head.CFrame.p + Vector3.new(math.random(-100, 100) / 100, 3, math.random(-100, 100) / 100))
  2506. end
  2507. end
  2508. f = Instance.new("BodyPosition")
  2509. f.P = 2000
  2510. f.D = 100
  2511. f.maxForce = Vector3.new(545000, 545000, 545000)
  2512. if Type == "Damage" then
  2513. f.position = c.Position + Vector3.new(0, 3, 0)
  2514. else
  2515. if Type == "Debuff" or Type == "Interrupt" then
  2516. f.position = c.Position + Vector3.new(0, 5, 0)
  2517. end
  2518. end
  2519. f.Parent = c
  2520. game:GetService("Debris"):AddItem(m, 5)
  2521. table.insert(Effects, {m, "showDamage", damgui, f, 10, 1, 15, 50, 100})
  2522. c.CanCollide = false
  2523. m.Parent = workspace
  2524. c.CanCollide = false
  2525. end
  2526. combo = 0
  2527.  
  2528. ob1d = function(mouse)
  2529. if arcorb == true then
  2530. arcorb = false
  2531. end
  2532. if attack == true or equipped == false then
  2533. return
  2534. end
  2535. deb = 0.5
  2536. hold = true
  2537. if combo == 0 then
  2538. combo = 1
  2539. attackone()
  2540. else
  2541. if combo == 1 then
  2542. combo = 2
  2543. attacktwo()
  2544. else
  2545. if combo == 2 then
  2546. combo = 3
  2547. attackthree()
  2548. else
  2549. if combo == 3 then
  2550. combo = 0
  2551. attackfour()
  2552. end
  2553. end
  2554. end
  2555. end
  2556. coroutine.resume(coroutine.create(function()
  2557. for i = 1, 50 do
  2558. if attack == false then
  2559. swait()
  2560. end
  2561. end
  2562. if attack == false then
  2563. combo = 0
  2564. end
  2565. end))
  2566. end
  2567. ob1u = function(mouse)
  2568. hold = false
  2569. end
  2570. buttonhold = false
  2571. fenbarmove1.MouseButton1Click:connect(do1)
  2572. fenbarmove2.MouseButton1Click:connect(do2)
  2573. fenbarmove3.MouseButton1Click:connect(do3)
  2574. fenbarmove4.MouseButton1Click:connect(do4)
  2575. eul = 0
  2576. equipped = false
  2577. key = function(key)
  2578. if attack == true then
  2579. return
  2580. end
  2581. if key == "q" then
  2582. pressedf = true
  2583. fnumb = 0
  2584. attack = true
  2585. if equipped == false then
  2586. equipped = true
  2587. RSH = ch.Torso["Right Shoulder"]
  2588. LSH = ch.Torso["Left Shoulder"]
  2589. RSH.Parent = nil
  2590. LSH.Parent = nil
  2591. RW.Name = "Right Shoulder"
  2592. RW.Part0 = ch.Torso
  2593. RW.C0 = cf(1.5, 0.5, 0)
  2594. RW.C1 = cf(0, 0.5, 0)
  2595. RW.Part1 = ch["Right Arm"]
  2596. RW.Parent = ch.Torso
  2597. LW.Name = "Left Shoulder"
  2598. LW.Part0 = ch.Torso
  2599. LW.C0 = cf(-1.5, 0.5, 0)
  2600. LW.C1 = cf(0, 0.5, 0)
  2601. LW.Part1 = ch["Left Arm"]
  2602. LW.Parent = ch.Torso
  2603. Animate.Parent = nil
  2604. equipanim()
  2605. else
  2606. equipped = false
  2607. hideanim()
  2608. LH.C1 = LHC1
  2609. RH.C1 = RHC1
  2610. Animate.Parent = Humanoid
  2611. swait(0)
  2612. RW.Parent = nil
  2613. LW.Parent = nil
  2614. RSH.Parent = player.Character.Torso
  2615. LSH.Parent = player.Character.Torso
  2616. end
  2617. attack = false
  2618. end
  2619. if equipped == false then
  2620. return
  2621. end
  2622. if key == "p" and invisnum.Value > 5 then
  2623. Invisibility()
  2624. end
  2625. if key == "q" then
  2626. do1()
  2627. end
  2628. if key == "e" then
  2629. do2()
  2630. end
  2631. if key == "r" then
  2632. do3()
  2633. end
  2634. if key == "f" then
  2635. do4()
  2636. end
  2637. end
  2638. key2 = function(key)
  2639. end
  2640. s = function(mouse)
  2641. mouse.Button1Down:connect(function()
  2642. ob1d(mouse)
  2643. end)
  2644. mouse.Button1Up:connect(function()
  2645. ob1u(mouse)
  2646. end)
  2647. mouse.KeyDown:connect(key)
  2648. mouse.KeyUp:connect(key2)
  2649. player = Player
  2650. ch = Character
  2651. MMouse = mouse
  2652. end
  2653. ds = function(mouse)
  2654. end
  2655. Bin.Selected:connect(s)
  2656. Bin.Deselected:connect(ds)
  2657. print("Renegade loaded.")
  2658. local mananum = 0
  2659. local donum = 0
  2660. local stunnum = 0
  2661. local staggeranim = false
  2662. local stunanim = false
  2663. local Point, LastPoint = nil, nil
  2664. local passivenum = 100
  2665. local pnum2 = 0
  2666. local walk = 0
  2667. local walkforw = true
  2668. local addpassive = 0
  2669. local gashnum = 0
  2670. while true do
  2671. swait()
  2672. if Humanoid.Health <= 0 then
  2673. attack = true
  2674. for i = 1, #Marked do
  2675. if MarkedGUI[i] ~= nil and MarkedGUI[i][1] ~= nil then
  2676. MarkedGUI[i][1].Parent = nil
  2677. end
  2678. table.remove(MarkedGUI, i)
  2679. table.remove(Marked, i)
  2680. end
  2681. resumeControl()
  2682. modelzorz.Parent = workspace
  2683. game:GetService("Debris"):AddItem(modelzorz, 30)
  2684. for i = 1, #Weapon do
  2685. Weapon[i].Parent = modelzorz
  2686. Weapon[i].CanCollide = true
  2687. end
  2688. for i = 1, #Welds do
  2689. if Welds[i].Part0.Parent == Character or Welds[i].Part1.Parent == Character then
  2690. Welds[i].Parent = nil
  2691. else
  2692. Welds[i].Parent = prt1
  2693. end
  2694. end
  2695. end
  2696. do
  2697. if fnumb < 21 then
  2698. fnumb = fnumb + 1
  2699. if pressedf == false then
  2700. fenframe5.BackgroundTransparency = fenframe5.BackgroundTransparency - 0.025
  2701. tellbar.TextTransparency = tellbar.TextTransparency - 0.05
  2702. tellbar.TextStrokeTransparency = tellbar.TextStrokeTransparency - 0.05
  2703. else
  2704. if fnumb == 20 then
  2705. fenframe5.Parent = nil
  2706. print("daigui")
  2707. end
  2708. fenframe5.BackgroundTransparency = fenframe5.BackgroundTransparency + 0.025
  2709. tellbar.TextTransparency = tellbar.TextTransparency + 0.05
  2710. tellbar.TextStrokeTransparency = tellbar.TextStrokeTransparency + 0.05
  2711. end
  2712. end
  2713. if hbwld.Parent == nil then
  2714. hitbox2.Name = "Hitbox2"
  2715. else
  2716. hitbox2.Name = "Hitbox2"
  2717. end
  2718. if hbwld.Parent == nil then
  2719. hitbox2.Name = "Hitbox"
  2720. else
  2721. hitbox2.Name = "Hitbox2"
  2722. end
  2723. if doing2 == true then
  2724. gashnum = gashnum + 1
  2725. if (gashnum) % 10 == 0 then
  2726. if 0 < mana.Value then
  2727. mana.Value = mana.Value - -2
  2728. else
  2729. do2()
  2730. end
  2731. end
  2732. MagicCircle(BrickColor.new(NewCol), prt6.CFrame * euler(-0.3, 0, 0), 0, 0, 0, 2, 2, 2, 0.05)
  2733. MagicBlock(BrickColor.new(NewCol), prt6.CFrame * euler(-0.3, 0, 0), 0, 0, 0, 1, 1, 1, 1, 0.025)
  2734. 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)
  2735. end
  2736. hitbox2.Parent = hitbox.Parent
  2737. hitbox2.Size = hitbox.Size
  2738. hitbox2.CFrame = hitboxCF
  2739. hboxpos.position = hitbox2.Position + vt(math.random(-100, 100) / 100, math.random(-100, 100) / 100, math.random(-100, 100) / 100)
  2740. hitbox.Transparency = 1
  2741. hitbox2.Transparency = 1
  2742. for i = 1, #Marked do
  2743. if Marked[i] ~= nil then
  2744. if Marked[i][1].Parent == nil then
  2745. MarkedGUI[i][1].Parent = nil
  2746. table.remove(MarkedGUI, i)
  2747. table.remove(Marked, i)
  2748. else
  2749. if MarkedGUI[i][1].Parent ~= nil then
  2750. MarkedGUI[i][1].Size = UDim2.new(7 + Marked[i][4].Value, 0, 7 + Marked[i][4].Value, 0)
  2751. if 0 < Marked[i][4].Value then
  2752. Marked[i][4].Value = Marked[i][4].Value - 1
  2753. end
  2754. if MarkedGUI[i][2].Parent ~= nil then
  2755. if Marked[i][3].Value == 0 then
  2756. MarkedGUI[i][2].Image = "rbxassetid://278007861"
  2757. else
  2758. if Marked[i][3].Value == 1 then
  2759. MarkedGUI[i][2].Image = "rbxassetid://278007839"
  2760. else
  2761. if Marked[i][3].Value == 2 then
  2762. MarkedGUI[i][2].Image = "rbxassetid://278007803"
  2763. else
  2764. if Marked[i][3].Value == 3 then
  2765. MarkedGUI[i][2].Image = "rbxassetid://278007757"
  2766. else
  2767. if Marked[i][3].Value == 4 then
  2768. MarkedGUI[i][2].Image = "rbxassetid://278007704"
  2769. else
  2770. if Marked[i][3].Value == 5 then
  2771. MarkedGUI[i][2].Image = "rbxassetid://278007663"
  2772. else
  2773. if Marked[i][3].Value == 6 then
  2774. MarkedGUI[i][2].Image = "rbxassetid://278007643"
  2775. else
  2776. if Marked[i][3].Value == 7 then
  2777. MarkedGUI[i][2].Image = "rbxassetid://278007606"
  2778. else
  2779. if Marked[i][3].Value == 8 then
  2780. MarkedGUI[i][2].Image = "rbxassetid://278007570"
  2781. else
  2782. if Marked[i][3].Value == 9 then
  2783. MarkedGUI[i][2].Image = "rbxassetid://278007545"
  2784. else
  2785. if Marked[i][3].Value == 10 then
  2786. MarkedGUI[i][2].Image = "rbxassetid://278007515"
  2787. end
  2788. end
  2789. end
  2790. end
  2791. end
  2792. end
  2793. end
  2794. end
  2795. end
  2796. end
  2797. end
  2798. end
  2799. end
  2800. if Marked[i][2] ~= nil then
  2801. Marked[i][2].Value = Marked[i][2].Value - 1
  2802. if Marked[i][2].Value <= 0 then
  2803. Marked[i][1].Parent = nil
  2804. MarkedGUI[i][1].Parent = nil
  2805. table.remove(MarkedGUI, i)
  2806. table.remove(Marked, i)
  2807. end
  2808. end
  2809. end
  2810. end
  2811. end
  2812. scarfp2.CFrame = cf(RootPart.Position, testpart.Position) * cf(0, 0, 0)
  2813. scarfp2.CFrame = scarfp2.CFrame + scarfp2.CFrame.lookVector * 0.5
  2814. scarfp2.CFrame = scarfp2.CFrame * cf(0, 0, 0) * euler(1.57, 0, 0)
  2815. testpart.CFrame = cf(RootPart.Position - RootPart.Velocity) * cf(0, 1, 0)
  2816. if invisible == true then
  2817. addpassive = addpassive + 1
  2818. for i = 1, 1 do
  2819. 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)
  2820. end
  2821. if 50 <= addpassive then
  2822. addpassive = 0
  2823. for _,c in pairs(workspace:children()) do
  2824. local hum = (c:findFirstChild("Humanoid"))
  2825. if hum ~= nil then
  2826. local head = nil
  2827. for _,d in pairs(c:children()) do
  2828. if d.Name == "HumanoidRootPart" then
  2829. local targ = d.Position - RootPart.Position
  2830. local mag = targ.magnitude
  2831. if mag <= 60 and c.Name ~= Player.Name then
  2832. mark = d.Parent:findFirstChild("Mark")
  2833. if mark ~= nil then
  2834. if (mark:findFirstChild("MarkTime")) ~= nil then
  2835. mark.MarkTime.Value = 500
  2836. end
  2837. if (mark:findFirstChild("MarkValue")) ~= nil then
  2838. if (mark:findFirstChild("MarkSize")) ~= nil then
  2839. mark.MarkSize.Value = 5
  2840. end
  2841. if mark.MarkValue.Value < 10 then
  2842. mark.MarkValue.Value = mark.MarkValue.Value + 1
  2843. end
  2844. end
  2845. end
  2846. end
  2847. end
  2848. end
  2849. end
  2850. end
  2851. end
  2852. end
  2853. do
  2854. pursuitnum = pursuitnum + 1
  2855. if 13 <= passivenum and 150 < pursuitnum and 0 < invisnum.Value then
  2856. invisnum.Value = invisnum.Value - 1
  2857. passivenum = 0
  2858. end
  2859. if 8 <= passivenum and invisible == true then
  2860. invisnum.Value = invisnum.Value - 1
  2861. pursuitnum = 0
  2862. passivenum = 0
  2863. end
  2864. if 100 <= invisnum.Value then
  2865. invisnum.Value = 100
  2866. end
  2867. if invisible == true and invisnum.Value <= 0 then
  2868. Invisibility()
  2869. end
  2870. passivenum = passivenum + 1
  2871. if Stagger.Value == true and staggeranim == false then
  2872. coroutine.resume(coroutine.create(function()
  2873. staggeranim = true
  2874. while attack == true do
  2875. swait()
  2876. end
  2877. StaggerAnim()
  2878. StaggerHit.Value = false
  2879. Stagger.Value = false
  2880. staggeranim = false
  2881. end))
  2882. end
  2883. if StaggerHit.Value == true and staggeranim == false then
  2884. coroutine.resume(coroutine.create(function()
  2885. staggeranim = true
  2886. while attack == true do
  2887. swait()
  2888. end
  2889. StaggerHitt()
  2890. StaggerHit.Value = false
  2891. Stagger.Value = false
  2892. staggeranim = false
  2893. end))
  2894. end
  2895. if Mvmt.Value < 0 or Stagger.Value == true or StunT.Value <= Stun.Value or StaggerHit.Value == true or Rooted.Value == true then
  2896. Humanoid.WalkSpeed = 0
  2897. else
  2898. Humanoid.WalkSpeed = 16 * Mvmt.Value
  2899. end
  2900. if StunT.Value <= Stun.Value and stunanim == false then
  2901. coroutine.resume(coroutine.create(function()
  2902. stunanim = true
  2903. while attack == true do
  2904. swait()
  2905. end
  2906. StunAnim()
  2907. Stun.Value = 0
  2908. stunanim = false
  2909. end))
  2910. end
  2911. local stunnum2 = 30
  2912. if stunnum2 <= stunnum then
  2913. if 0 < Stun.Value then
  2914. Stun.Value = Stun.Value - 1
  2915. end
  2916. stunnum = 0
  2917. end
  2918. stunnum = stunnum + 1
  2919. if 0.5 <= donum then
  2920. handidle = true
  2921. else
  2922. if donum <= 0 then
  2923. handidle = false
  2924. end
  2925. end
  2926. if handidle == false then
  2927. donum = donum + 0.003
  2928. else
  2929. donum = donum - 0.003
  2930. end
  2931. local torvel = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  2932. local velderp = RootPart.Velocity.y
  2933. hitfloor = rayCast(RootPart.Position, CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0)).lookVector, 4, Character)
  2934. if equipped == true then
  2935. if attack == false then
  2936. idle = idle + 1
  2937. else
  2938. idle = 0
  2939. end
  2940. if (500 <= idle and attack ~= false) or Anim == "Walk" then
  2941. if walkforw == true then
  2942. RH.C1 = clerp(RH.C1, RHC1 * cf(0.2, -0.2, 0) * euler(0, 0, 1), Mvmt.Value * 10 / 50)
  2943. LH.C1 = clerp(LH.C1, LHC1 * cf(0.1, 0.2, 0) * euler(0, 0, 1), Mvmt.Value * 10 / 50)
  2944. else
  2945. RH.C1 = clerp(RH.C1, RHC1 * cf(-0.1, 0.2, 0) * euler(0, 0, -1), Mvmt.Value * 10 / 50)
  2946. LH.C1 = clerp(LH.C1, LHC1 * cf(-0.2, -0.2, 0) * euler(0, 0, -1), Mvmt.Value * 10 / 50)
  2947. end
  2948. else
  2949. RH.C1 = clerp(RH.C1, RHC1, 0.2)
  2950. LH.C1 = clerp(LH.C1, LHC1, 0.2)
  2951. end
  2952. if 1 < RootPart.Velocity.y and hitfloor == nil then
  2953. Anim = "Jump"
  2954. if attack == false then
  2955. handlewld.C0 = clerp(handlewld.C0, euler(0, 0, 0) * cf(0, 1, 0), 0.2)
  2956. wld1.C0 = clerp(wld1.C0, cf(0, -2, 0) * euler(0.3, 0, -0.1), 0.2)
  2957. Neck.C0 = clerp(Neck.C0, necko * euler(-0.2, 0, 0), 0.2)
  2958. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, 0), 0.2)
  2959. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(1.5, 0, 0.5), 0.2)
  2960. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  2961. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-1, 0, -0.2), 0.2)
  2962. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  2963. RH.C0 = clerp(RH.C0, cf(1, -1, -0.3) * euler(-0.5, 1.57, 0) * euler(-0.2, 0, 0), 0.2)
  2964. LH.C0 = clerp(LH.C0, cf(-1, -1, -0.3) * euler(-0.5, -1.57, 0) * euler(-0.2, 0, 0), 0.2)
  2965. end
  2966. else
  2967. if RootPart.Velocity.y < -1 and hitfloor == nil then
  2968. Anim = "Fall"
  2969. if attack == false then
  2970. handlewld.C0 = clerp(handlewld.C0, euler(0, 0, 0) * cf(0, 1, 0), 0.2)
  2971. wld1.C0 = clerp(wld1.C0, cf(0, -2, 0) * euler(0.3, 0, -0.1), 0.2)
  2972. Neck.C0 = clerp(Neck.C0, necko * euler(0.4, 0, 0), 0.2)
  2973. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, 0), 0.2)
  2974. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(1, 0, 1), 0.2)
  2975. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  2976. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.3, 0, -0.2), 0.2)
  2977. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  2978. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0.4, 1.57, 0), 0.2)
  2979. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(-0.2, -1.57, 0), 0.2)
  2980. end
  2981. else
  2982. if torvel < 1 and hitfloor ~= nil then
  2983. Anim = "Idle"
  2984. if attack == false then
  2985. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0) * euler(0, 0, 0), 0.15)
  2986. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, 0), 0.15)
  2987. RW.C0 = clerp(RW.C0, cf(1.2, 0.3, -0.5) * euler(1.6, 0, -1.4) * euler(0, 1.57, 0), 0.15)
  2988. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.15)
  2989. LW.C0 = clerp(LW.C0, cf(-1.2, 0.3, -0.5) * euler(1.6, 0, 1.4) * euler(0, -1.57, 0), 0.15)
  2990. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.15)
  2991. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0, 1.57, 0) * euler(0, 0, 0), 0.3)
  2992. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, -1.57, 0) * euler(0, 0, 0), 0.3)
  2993. end
  2994. else
  2995. if 2 < torvel and torvel < 30 and hitfloor ~= nil then
  2996. Anim = "Walk"
  2997. walk = walk + 1
  2998. if 15 - 5 * Mvmt.Value <= walk then
  2999. walk = 0
  3000. if walkforw == true then
  3001. walkforw = false
  3002. else
  3003. if walkforw == false then
  3004. walkforw = true
  3005. end
  3006. end
  3007. end
  3008. if attack == false then
  3009. swait()
  3010. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0) * euler(0, 0, 0), 0.15)
  3011. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, 0), 0.15)
  3012. RW.C0 = clerp(RW.C0, cf(1.2, 0.3, -0.5) * euler(1.6, 0, -1.4) * euler(0, 1.57, 0), 0.15)
  3013. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.15)
  3014. LW.C0 = clerp(LW.C0, cf(-1.2, 0.3, -0.5) * euler(1.6, 0, 1.4) * euler(0, -1.57, 0), 0.15)
  3015. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.15)
  3016. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0, 1.57, 0) * euler(0, 0, 0), 0.3)
  3017. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, -1.57, 0) * euler(0, 0, 0), 0.3)
  3018. end
  3019. else
  3020. if 30 <= torvel and hitfloor ~= nil then
  3021. Anim = "Walk"
  3022. walk = walk + 1
  3023. if 15 - 5 * Mvmt.Value <= walk then
  3024. walk = 0
  3025. if walkforw == true then
  3026. walkforw = false
  3027. else
  3028. if walkforw == false then
  3029. walkforw = true
  3030. end
  3031. end
  3032. end
  3033. if attack == false then
  3034. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0) * euler(0, 0, 0), 0.15)
  3035. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, 0), 0.15)
  3036. RW.C0 = clerp(RW.C0, cf(1.2, 0.3, -0.5) * euler(1.6, 0, -1.4) * euler(0, 1.57, 0), 0.15)
  3037. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.15)
  3038. LW.C0 = clerp(LW.C0, cf(-1.2, 0.3, -0.5) * euler(1.6, 0, 1.4) * euler(0, -1.57, 0), 0.15)
  3039. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.15)
  3040. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0, 1.57, 0) * euler(0, 0, 0), 0.3)
  3041. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, -1.57, 0) * euler(0, 0, 0), 0.3)
  3042. end
  3043. end
  3044. end
  3045. end
  3046. end
  3047. end
  3048. end
  3049. if 0 < #Effects then
  3050. for e = 1, #Effects do
  3051. if Effects[e] ~= nil then
  3052. local Thing = Effects[e]
  3053. if Thing ~= nil then
  3054. local Part = Thing[1]
  3055. local Mode = Thing[2]
  3056. local Delay = Thing[3]
  3057. local IncX = Thing[4]
  3058. local IncY = Thing[5]
  3059. local IncZ = Thing[6]
  3060. if Thing[2] == "CylinderClang" then
  3061. if Thing[3] <= 1 then
  3062. Thing[1].CFrame = Thing[1].CFrame * CFrame.new(0, 2.5 * Thing[5], 0) * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0)
  3063. Thing[7] = Thing[1].CFrame
  3064. effect("New Yeller", 0, Thing[8], Thing[7])
  3065. Thing[8] = Thing[7]
  3066. Thing[3] = Thing[3] + Thing[4]
  3067. else
  3068. Part.Parent = nil
  3069. table.remove(Effects, e)
  3070. end
  3071. end
  3072. if Thing[2] == "showDamage" then
  3073. if Thing[6] < Thing[5] then
  3074. Thing[6] = Thing[6] + 1
  3075. else
  3076. if Thing[6] < Thing[7] then
  3077. Thing[4].position = Thing[4].position + vt(0, -0.2, 0)
  3078. Thing[6] = Thing[6] + 1
  3079. else
  3080. if Thing[6] < Thing[8] then
  3081. Thing[6] = Thing[6] + 1
  3082. else
  3083. if Thing[6] < Thing[9] then
  3084. Thing[6] = Thing[6] + 1
  3085. Thing[4].position = Thing[4].position + vt(0, 0.2, 0)
  3086. Thing[3].TextStrokeTransparency = Thing[3].TextStrokeTransparency + 0.1
  3087. Thing[3].TextTransparency = Thing[3].TextTransparency + 0.1
  3088. else
  3089. Thing[1].Parent = nil
  3090. table.remove(Effects, e)
  3091. end
  3092. end
  3093. end
  3094. end
  3095. end
  3096. if Thing[2] == "PartiEmi" then
  3097. Thing[3] = Thing[3] - 1
  3098. if Thing[3] <= 0 then
  3099. Thing[1].Enabled = false
  3100. table.remove(Effects, e)
  3101. end
  3102. end
  3103. if Thing[2] == "AdjuEff" then
  3104. if 0 < Thing[3] then
  3105. Thing[3] = Thing[3] - 1
  3106. Thing[1].Size = Thing[1].Size + UDim2.new(0.2, 0, 0.2, 0)
  3107. Thing[1].StudsOffset = Thing[1].StudsOffset + vt(0, -0.2, 0)
  3108. Thing[4].ImageTransparency = Thing[4].ImageTransparency + 0.1
  3109. else
  3110. Thing[1].Parent = nil
  3111. table.remove(Effects, e)
  3112. end
  3113. end
  3114. 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
  3115. if Thing[1].Transparency <= 1 then
  3116. if Thing[2] == "Block1" then
  3117. Thing[1].CFrame = Thing[1].CFrame * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  3118. Mesh = Thing[7]
  3119. Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6])
  3120. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  3121. else
  3122. if Thing[2] == "Block2" then
  3123. Thing[1].CFrame = Thing[1].CFrame
  3124. Mesh = Thing[7]
  3125. Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6])
  3126. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  3127. else
  3128. if Thing[2] == "Block3" then
  3129. Thing[9] = Thing[9] + 0.5
  3130. Thing[1].CFrame = Thing[8] * cf(0, Thing[9], 0)
  3131. Thing[1].CFrame = Thing[1].CFrame * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  3132. Mesh = Thing[7]
  3133. Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6])
  3134. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  3135. else
  3136. if Thing[2] == "Skull" then
  3137. Thing[1].CFrame = Thing[1].CFrame * cf(0, Thing[8] / 2, -Thing[8])
  3138. Mesh = Thing[7]
  3139. Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6])
  3140. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  3141. else
  3142. if Thing[2] == "Cylinder" then
  3143. Mesh = Thing[7]
  3144. Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6])
  3145. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  3146. else
  3147. if Thing[2] == "Cylinder2" then
  3148. Thing[1].CFrame = Thing[1].CFrame * cf(0, Thing[8], 0)
  3149. Mesh = Thing[7]
  3150. Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6])
  3151. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  3152. else
  3153. if Thing[2] == "Blood" then
  3154. Mesh = Thing[7]
  3155. Thing[1].CFrame = Thing[1].CFrame * cf(0, 0.5, 0)
  3156. Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6])
  3157. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  3158. else
  3159. if Thing[2] == "Elec" then
  3160. Mesh = Thing[10]
  3161. Mesh.Scale = Mesh.Scale + vt(Thing[7], Thing[8], Thing[9])
  3162. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  3163. else
  3164. if Thing[2] == "Disappear" then
  3165. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  3166. end
  3167. end
  3168. end
  3169. end
  3170. end
  3171. end
  3172. end
  3173. end
  3174. end
  3175. else
  3176. Part.Parent = nil
  3177. table.remove(Effects, e)
  3178. end
  3179. end
  3180. end
  3181. end
  3182. end
  3183. end
  3184. do
  3185. fenbarmana2:TweenSize((UDim2.new(0.4, 0, -4 * mana.Value / 100, 0)), nil, 1, 0.4, true)
  3186. fenbarmana4.Text = "Mana(" .. mana.Value .. ")"
  3187. fenbarhp2.BackgroundColor3 = Color3.new(Humanoid.Health / Humanoid.MaxHealth, 0, 0)
  3188. fenbarhp2:TweenSize((UDim2.new(Humanoid.Health / Humanoid.MaxHealth, 0, 1, 0)), nil, 1, 0.4, true)
  3189. fenbarhp3.Text = "(" .. math.floor(Humanoid.Health) .. ")"
  3190. fenbarblock2:TweenSize((UDim2.new(0.4, 0, -4 * invisnum.Value / 100, 0)), nil, 1, 0.4, true)
  3191. fenbarblock3.Text = "Power(" .. invisnum.Value .. ")"
  3192. fenbarmove1b:TweenSize((UDim2.new(1 * cooldowns[1] / cooldownmax, 0, 1, 0)), nil, 1, 0.4, true)
  3193. fenbarmove2b:TweenSize((UDim2.new(1 * cooldowns[2] / cooldownmax, 0, 1, 0)), nil, 1, 0.4, true)
  3194. fenbarmove3b:TweenSize((UDim2.new(1 * cooldowns[3] / cooldownmax, 0, 1, 0)), nil, 1, 0.4, true)
  3195. fenbarmove4b:TweenSize((UDim2.new(1 * cooldowns[4] / cooldownmax, 0, 1, 0)), nil, 1, 0.4, true)
  3196. for _,c in pairs(Decrease:children()) do
  3197. if (c:findFirstChild("Duration")) ~= nil then
  3198. c.Duration.Value = c.Duration.Value - 1
  3199. if c.Duration.Value <= 0 then
  3200. c.Parent = nil
  3201. end
  3202. end
  3203. if c.Name == "DecreaseAtk" then
  3204. decreaseatk = decreaseatk + c.Value
  3205. else
  3206. if c.Name == "DecreaseDef" then
  3207. decreasedef = decreasedef + c.Value
  3208. else
  3209. if c.Name == "DecreaseMvmt" then
  3210. decreasemvmt = decreasemvmt + c.Value
  3211. end
  3212. end
  3213. end
  3214. end
  3215. Atk.Value = 1 - (decreaseatk)
  3216. if Atk.Value <= 0 then
  3217. Atk.Value = 0
  3218. end
  3219. Def.Value = 1 - (decreasedef)
  3220. if Def.Value <= 0 then
  3221. Def.Value = 0.01
  3222. end
  3223. Mvmt.Value = 1 - (decreasemvmt)
  3224. if Mvmt.Value <= 0 then
  3225. Mvmt.Value = 0
  3226. end
  3227. decreaseatk = 0
  3228. decreasedef = 0
  3229. decreasemvmt = 0
  3230. AtkVal = Atk.Value * 100
  3231. AtkVal = math.floor(AtkVal)
  3232. AtkVal = AtkVal / 100
  3233. fenbardamage.Text = "Damage\n(" .. AtkVal .. ")"
  3234. DefVal = Def.Value * 100
  3235. DefVal = math.floor(DefVal)
  3236. DefVal = DefVal / 100
  3237. fenbardef.Text = "Defense\n(" .. DefVal .. ")"
  3238. MvmtVal = Mvmt.Value * 100
  3239. MvmtVal = math.floor(MvmtVal)
  3240. MvmtVal = MvmtVal / 100
  3241. if Rooted.Value == true then
  3242. MvmtVal = 0
  3243. end
  3244. fenbarmove.Text = "Walkspeed\n(" .. MvmtVal .. ")"
  3245. if StunT.Value <= Stun.Value then
  3246. fenbarstun2:TweenSize((UDim2.new(0.4, 0, -4, 0)), nil, 1, 0.4, true)
  3247. else
  3248. fenbarstun2:TweenSize((UDim2.new(0.4, 0, -4 * Stun.Value / StunT.Value, 0)), nil, 1, 0.4, true)
  3249. end
  3250. fenbarstun3.Text = "Stun(" .. Stun.Value .. ")"
  3251. if 100 <= mana.Value then
  3252. mana.Value = 100
  3253. else
  3254. if mananum <= 12 then
  3255. mananum = mananum + 1
  3256. else
  3257. mananum = 0
  3258. mana.Value = mana.Value + 100
  3259. end
  3260. end
  3261. for i = 1, #cooldowns do
  3262. if cooldownmax <= cooldowns[i] then
  3263. cooldowns[i] = cooldownmax
  3264. else
  3265. cooldowns[i] = cooldowns[i] + cooldownsadd[i]
  3266. end
  3267. end
  3268. -- DECOMPILER ERROR at PC6064: LeaveBlock: unexpected jumping out DO_STMT
  3269.  
  3270. -- DECOMPILER ERROR at PC6064: LeaveBlock: unexpected jumping out DO_STMT
  3271.  
  3272. -- DECOMPILER ERROR at PC6064: LeaveBlock: unexpected jumping out DO_STMT
  3273.  
  3274. end
  3275. end
  3276. end
  3277. end
Add Comment
Please, Sign In to add comment