YourHumbleScripter

kool

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