Advertisement
djroese

Untitled

Aug 20th, 2017
377
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 168.09 KB | None | 0 0
  1. -- Player Stuff
  2. -- Sawyerqqqqq Edit
  3. Pleyur = game.Players:WaitForChild("djroese")
  4. Chara = Pleyur.Character
  5.  
  6. local moosik = 3 -- 1 for Hopes and Dreams, 2 for Necrofantasia, 3 for Nuclear Fusion,
  7.  
  8. BlastQuotes = {"Readying Hikari Blast...","Prepare for your end!","I will purify your soul!"}
  9. BusterQuotes = {"Preparing Hikari Buster!","Feel the wrath of Light!","This is the true power!"}
  10. FinalBlastQuotes = {"NOW PERISH!","DIE!","YOU WON'T SURVIVE THIS ONE!","HIKARI BLAST!"}
  11. EquipBladeQuotes = {"Hikari Blade!","I'll cut you to pieces!","You made a mistake being too close!"}
  12. SlashFireQuotes = {"DON'T GET AWAY!","SWIFT SLICE!","YOU WON'T RUN!"}
  13.  
  14. function chat(string)
  15. chansu = math.random(1,2)
  16. if chansu == 1 then
  17. ch = game:GetService("Chat"):Chat(Chara.Head, string, "Red")
  18. end
  19. end
  20.  
  21. Chara.Humanoid.MaxHealth = math.huge
  22. Chara.Humanoid.Health = math.huge
  23. Chara.Humanoid.WalkSpeed = 40
  24.  
  25. local lol = nil
  26.  
  27. if Pleyur ~= nil then
  28. lol = Instance.new("Tool", Pleyur.Backpack)
  29. lol.Name = "Hikari Blast"
  30. lol.CanBeDropped = false
  31. lol2 = Instance.new("Tool", Pleyur.Backpack)
  32. lol2.Name = "Purity Blast"
  33. lol2.CanBeDropped = false
  34. lol3 = Instance.new("Tool", Pleyur.Backpack)
  35. lol3.Name = "Hikari Blade"
  36. lol3.CanBeDropped = false
  37. lol3.GripForward = Vector3.new(-1, 0, 0)
  38. lol3.GripPos = Vector3.new(0, 0, -2.52)
  39. lol3.GripRight = Vector3.new(0, 1, 0)
  40. lol3.GripUp = Vector3.new(0, 0, 1)
  41. handur2 = Instance.new("Part", lol)
  42. handur2.Name = "Handle"
  43. handur2.Size = Vector3.new(.2, .2, .2)
  44. handur2.Transparency = 1
  45. handur3 = Instance.new("Part", lol2)
  46. handur3.Name = "Handle"
  47. handur3.Size = Vector3.new(.2, .2, .2)
  48. handur3.Transparency = 1
  49. handur = Instance.new("Part", lol3)
  50. handur.Name = "Handle"
  51. handur.Size = Vector3.new(1, 0.8, 10)
  52. handur.Reflectance = 10
  53. handur.BrickColor = BrickColor.new("Black")
  54. meshhh = Instance.new("SpecialMesh", handur)
  55. meshhh.MeshType = "FileMesh"
  56. meshhh.MeshId = "http://www.roblox.com/asset/?id=22771612"
  57. meshhh.Scale = Vector3.new(0.5,0.5,0.8)
  58. end
  59.  
  60. local transPoints = {
  61. NumberSequenceKeypoint.new(0,.819,.0375),
  62. NumberSequenceKeypoint.new(.207,.594,.0187),
  63. NumberSequenceKeypoint.new(.4,.55,.031),
  64. NumberSequenceKeypoint.new(.57,.619,.05),
  65. NumberSequenceKeypoint.new(.76,.8,.0375),
  66. NumberSequenceKeypoint.new(1,1,0),
  67. }
  68.  
  69. local LAEffectu = Instance.new("ParticleEmitter", Chara["Left Arm"])
  70. LAEffectu.Texture = "rbxasset://textures/particles/smoke_main.dds"
  71. LAEffectu.LightEmission = 1
  72. LAEffectu.Enabled = false
  73. LAEffectu.Rate = 100000
  74. LAEffectu.EmissionDirection = "Bottom"
  75. LAEffectu.Size = NumberSequence.new(1,1)
  76. LAEffectu.Lifetime = NumberRange.new(.3,.3)
  77. LAEffectu.RotSpeed = NumberRange.new(1000,1000)
  78. LAEffectu.Speed = NumberRange.new(10,10)
  79. LAEffectu.Transparency = NumberSequence.new(transPoints)
  80. LAEffectu.VelocitySpread = 20
  81. LAEffectu.LockedToPart = true
  82.  
  83. local Slash1 = Instance.new("Animation",script)
  84. Slash1.AnimationId = "http://www.roblox.com/Asset?ID=218504594"
  85. local Slash2 = Instance.new("Animation",script)
  86. Slash2.AnimationId = "http://www.roblox.com/asset/?id=184573779"
  87. local Slash3 = Instance.new("Animation",script)
  88. Slash3.AnimationId = "http://www.roblox.com/asset/?id=186934910"
  89. local Slash4 = Instance.new("Animation",script)
  90. Slash4.AnimationId = "http://www.roblox.com/asset/?id=218508052"
  91. local Beam = Instance.new("Animation",script)
  92. Beam.AnimationId = "http://www.roblox.com/Asset?ID=86504773"
  93.  
  94. WhackAnim = Chara.Humanoid:LoadAnimation(Slash1)
  95. WhackAnim2 = Chara.Humanoid:LoadAnimation(Slash2)
  96. WhackAnim3 = Chara.Humanoid:LoadAnimation(Slash3)
  97. WhackAnim4 = Chara.Humanoid:LoadAnimation(Slash4)
  98. Beam = Chara.Humanoid:LoadAnimation(Beam)
  99.  
  100. local SwordEffect = Instance.new("ParticleEmitter", handur)
  101. SwordEffect.Texture = "rbxasset://textures/particles/smoke_main.dds"
  102. SwordEffect.LightEmission = 1
  103. SwordEffect.Enabled = false
  104. SwordEffect.Rate = 1000000
  105. SwordEffect.Size = NumberSequence.new(2,2)
  106. SwordEffect.Lifetime = NumberRange.new(.3,.3)
  107. SwordEffect.Transparency = NumberSequence.new(transPoints)
  108. SwordEffect.Speed = NumberRange.new(0,0)
  109. SwordEffect.RotSpeed = NumberRange.new(1000,1000)
  110.  
  111. local chargesnd = Instance.new("Sound")
  112. chargesnd.Name = "Charge"
  113. chargesnd.Parent = script
  114. chargesnd.SoundId = "http://www.roblox.com/asset/?id=2101137"
  115. chargesnd.Volume = 1
  116. chargesnd.Pitch = .5
  117.  
  118. local shotsnd = Instance.new("Sound")
  119. shotsnd.Name = "Shoot"
  120. shotsnd.Parent = script
  121. shotsnd.SoundId = "http://www.roblox.com/asset/?id=13775494"
  122. shotsnd.Volume = 1
  123. shotsnd.Pitch = .7
  124.  
  125. local shotsnd2 = Instance.new("Sound")
  126. shotsnd2.Name = "Shoot2"
  127. shotsnd2.Parent = script
  128. shotsnd2.SoundId = "http://www.roblox.com/asset/?id=48618802"
  129. shotsnd2.Volume = 1
  130. shotsnd2.Pitch = 1
  131.  
  132. local lungesnd = Instance.new("Sound")
  133. lungesnd.Name = "Lunge"
  134. lungesnd.Parent = script
  135. lungesnd.SoundId = "rbxasset://sounds/swordlunge.wav"
  136. lungesnd.Volume = 1
  137. lungesnd.Pitch = 1
  138.  
  139. local slshsnd = Instance.new("Sound")
  140. slshsnd.Name = "Slash"
  141. slshsnd.Parent = lol3
  142. slshsnd.SoundId = "http://www.roblox.com/Asset?ID=154965962"
  143. slshsnd.Volume = 1
  144. slshsnd.Pitch = 1
  145.  
  146. local slshsnd2 = Instance.new("Sound")
  147. slshsnd2.Name = "Slash2"
  148. slshsnd2.Parent = lol3
  149. slshsnd2.SoundId = "http://www.roblox.com/Asset?ID=231917758"
  150. slshsnd2.Volume = 1
  151. slshsnd2.Pitch = 1
  152.  
  153. local hitsnd = Instance.new("Sound")
  154. hitsnd.Name = "Hit"
  155. hitsnd.Parent = lol3
  156. hitsnd.SoundId = "http://www.roblox.com/asset/?id=154965973"
  157. hitsnd.Volume = 1
  158. hitsnd.Pitch = 1
  159.  
  160. --Godly Effects, bro!-------------------------------------------------------------------------------------------------------------------------
  161.  
  162. Void = nil
  163. VoidParts = {}
  164.  
  165. function RayCast(Position, Direction, MaxDistance, IgnoreList)
  166. return game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(Position, Direction.unit * (MaxDistance or 999.999)), IgnoreList)
  167. end
  168.  
  169. local loopsound = Instance.new("Sound")
  170. loopsound.Name = "LoopSound"
  171. loopsound.Looped = true
  172. loopsound.Parent = script
  173. loopsound.Volume = 1
  174. if moosik == 1 then --Hopes and Dreams
  175. loopsound.SoundId = "http://www.roblox.com/asset/?id=665017009"
  176. loopsound.Pitch = 1
  177. elseif moosik == 2 then --Necrofantasia
  178. loopsound.SoundId = "http://www.roblox.com/asset/?id=170884430"
  179. loopsound.Pitch = .25
  180. elseif moosik == 3 then --Nuclear Fusion
  181. loopsound.SoundId = "http://www.roblox.com/asset/?id=674318415"
  182. loopsound.Pitch = .25
  183. elseif moosik == 4 then --Victory
  184. loopsound.SoundId = "http://www.roblox.com/asset/?id=565863302"
  185. loopsound.Pitch = 1
  186. end
  187.  
  188. script.LoopSound:Play()
  189.  
  190. local startsound = Instance.new("Sound")
  191. startsound.Name = "StartUp"
  192. startsound.Parent = script
  193. startsound.SoundId = "rbxasset://Sounds/collide.wav"
  194. startsound.Volume = 0.5
  195. startsound.Pitch = 1
  196.  
  197. local ex = Instance.new("Explosion", game.Workspace)
  198. ex.BlastPressure = 0
  199. ex.Position = Chara:FindFirstChild("Torso").Position
  200. script.StartUp:Play()
  201. Humanoid = Chara:FindFirstChild("Humanoid")
  202. Torso = Chara:FindFirstChild("Torso")
  203. if not Pleyur or not Humanoid or Humanoid.Health == 0 or not Torso then
  204. return
  205. end
  206. Equipped = true
  207. Void = Instance.new("Model")
  208. Void.Name = "Void"
  209. Angle = 0
  210. for i = 1, 1 do
  211. local VoidPart = Instance.new("Part")
  212. VoidPart.Name = "VoidPart"
  213. VoidPart.Transparency = 0.2
  214. VoidPart.BrickColor = BrickColor.new("Black")
  215. VoidPart.Material = Enum.Material.Plastic
  216. VoidPart.Shape = Enum.PartType.Block
  217. VoidPart.TopSurface = Enum.SurfaceType.Smooth
  218. VoidPart.BottomSurface = Enum.SurfaceType.Smooth
  219. VoidPart.Anchored = true
  220. VoidPart.CanCollide = false
  221. VoidPart.Locked = true
  222. VoidPart.Size = Vector3.new(10, 0.2, 10)
  223. local Meshu = Instance.new("SpecialMesh", VoidPart)
  224. Meshu.MeshType = "FileMesh"
  225. Meshu.MeshId = "http://www.roblox.com/asset/?id=20329976"
  226. Meshu.Offset = Vector3.new(0,0,-1)
  227. Meshu.Scale = Vector3.new(10,4,10)
  228. VoidPart.Parent = Void
  229. local Light = Instance.new("PointLight", VoidPart)
  230. Light.Brightness = 100
  231. Light.Range = 10
  232. local Effectu = Instance.new("ParticleEmitter", VoidPart)
  233. Effectu.LightEmission = 1
  234. Effectu.Lifetime = NumberRange.new(5,5)
  235. Effectu.Transparency = NumberSequence.new(transPoints)
  236. Effectu.RotSpeed = NumberRange.new(100,100)
  237. Effectu.Speed = NumberRange.new(10,10)
  238. Effectu.LockedToPart = true
  239. table.insert(VoidParts, VoidPart)
  240. end
  241. Spawn(function()
  242. while Equipped and Humanoid.Parent and Humanoid.Health > 0 and Chara do
  243. if Angle == 360 then
  244. Angle = 0
  245. end
  246. Angle = Angle + .25
  247. local Hit, EndPosition = RayCast(Chara.Torso.Position, Vector3.new(0, -1, 0), (Chara.Torso.Size.Y * 6.5), {Chara})
  248. if Hit then
  249. if not Void.Parent then
  250. Void.Parent = Chara
  251. end
  252. for i, v in pairs(VoidParts) do
  253. v.CFrame = CFrame.new(Chara.Torso.Position.X, EndPosition.Y, Chara.Torso.Position.Z) * CFrame.Angles(0, (Angle + i), 0)
  254. end
  255. else
  256. Void.Parent = nil
  257. end
  258. wait()
  259. end
  260. end)
  261.  
  262. --Hikari Blast-------------------------------------------------------------------------------------------------------------------------
  263. local r = game:service("RunService")
  264. local debris = game:GetService("Debris")
  265.  
  266. sword = handur2
  267. Tool = lol
  268.  
  269. local damage = 0
  270.  
  271. local proc = 40
  272.  
  273. local lungeAnim = nil
  274.  
  275. function blowprojectile(hit)
  276. if (hit.Parent == nil) then return end -- happens when bullet hits sword
  277.  
  278. local humanoid = nil
  279. local ceal = hit.Parent:GetChildren()
  280. for i = 1, #ceal do
  281. if ceal[i].ClassName == "Humanoid" then
  282. humanoid = ceal[i]
  283. end
  284. end
  285. local vCharacter = Tool.Parent
  286. local vPlayer = game.Players:playerFromCharacter(vCharacter)
  287. local hum = vCharacter:findFirstChild("Humanoid") -- non-nil if tool held by a character
  288. if humanoid~=nil and humanoid ~= hum and hum ~= nil then
  289. -- final check, make sure sword is in-hand
  290. hit:BreakJoints()
  291.  
  292. local right_arm = vCharacter:FindFirstChild("Right Arm")
  293. if (right_arm ~= nil) then
  294. local joint = right_arm:FindFirstChild("RightGrip")
  295. if (joint ~= nil and (joint.Part0 == sword or joint.Part1 == sword)) then
  296. tagHumanoid(humanoid, vPlayer)
  297. humanoid:TakeDamage(proc)
  298. local bodyp = humanoid.Parent:GetChildren()
  299. if humanoid.Health <= 1 then
  300. for i = 1, #bodyp do
  301. if bodyp[i].ClassName == "Part" then
  302. if bodyp[i]:FindFirstChild("Effecto") == nil then
  303. bodyp[i].Material = "Neon"
  304. bodyp[i].BrickColor = BrickColor.new("Black")
  305. local LAE = Instance.new("ParticleEmitter", bodyp[i])
  306. LAE.Name = "Effecto"
  307. LAE.Texture = "rbxasset://textures/particles/smoke_main.dds"
  308. LAE.LightEmission = 1
  309. LAE.Rate = 20
  310. LAE.EmissionDirection = "Bottom"
  311. LAE.Lifetime = NumberRange.new(0.3,0.3)
  312. LAE.RotSpeed = NumberRange.new(1000,1000)
  313. LAE.Speed = NumberRange.new(0,0)
  314. end
  315. end
  316. if bodyp[i].Name == "Head" then
  317. bodyp[i].Mesh:destroy()
  318. bodyp[i].face:destroy()
  319. end
  320. if bodyp[i].ClassName == "Shirt" or bodyp[i].ClassName == "ShirtGraphic" or bodyp[i].ClassName == "Pants" or bodyp[i].ClassName == "CharacterMesh" then
  321. bodyp[i]:destroy()
  322. end
  323. end
  324. end
  325. local AE = Instance.new("ParticleEmitter", humanoid.Parent.Torso)
  326. AE.Name = "HitSwordEff"
  327. AE.Texture = "rbxasset://textures/particles/sparkles_main.dds"
  328. AE.LightEmission = 1
  329. AE.Rate = 10000
  330. AE.EmissionDirection = "Front"
  331. AE.Lifetime = NumberRange.new(.5,.5)
  332. AE.Transparency = NumberSequence.new(transPoints)
  333. AE.RotSpeed = NumberRange.new(1000,1000)
  334. AE.Speed = NumberRange.new(50,50)
  335. AE.VelocitySpread = 100
  336. wait(1)
  337. AE:Destroy()
  338. untagHumanoid(humanoid)
  339. end
  340. end
  341. end
  342. end
  343.  
  344. function fire(v, part)
  345.  
  346. local vCharacter = Tool.Parent
  347. local vPlayer = game.Players:playerFromCharacter(vCharacter)
  348.  
  349. local missile = Instance.new("Part")
  350.  
  351.  
  352.  
  353. missile.CFrame = part.CFrame * CFrame.Angles(math.pi/2,0,0)
  354. missile.Size = Vector3.new(1,1,1)
  355. missile.Velocity = v.unit * 100
  356. missile.BrickColor = BrickColor.new("Black")
  357. missile.Material = "Neon"
  358. missile.BottomSurface = 0
  359. missile.TopSurface = 0
  360. missile.CanCollide = false
  361. missile.Elasticity = .05
  362. missile.Friction = .7
  363. missile.Name = "Bullet"
  364.  
  365. missile.Touched:connect(blowprojectile)
  366.  
  367. local mesh = Instance.new("SpecialMesh")
  368. mesh.MeshType = "Sphere"
  369. mesh.Parent = missile
  370.  
  371. local force = Instance.new("BodyForce")
  372. force.force = Vector3.new(0,137,0)
  373. force.Parent = missile
  374.  
  375. local shs = Instance.new("ParticleEmitter", missile)
  376. shs.Texture = "rbxasset://textures/particles/smoke_main.dds"
  377. shs.LightEmission = 1
  378. shs.Rate = 100000
  379. shs.EmissionDirection = "Bottom"
  380. shs.Size = NumberSequence.new(0.5,0.5)
  381. shs.Lifetime = NumberRange.new(1,1)
  382. shs.Transparency = NumberSequence.new(transPoints)
  383. shs.RotSpeed = NumberRange.new(1000,1000)
  384. shs.Speed = NumberRange.new(0,0)
  385.  
  386. -- local force = Instance.new("BodyForce")
  387. -- force.Name = "BulletFloat"
  388. -- force.force = Vector3.new(0,98.1,0)
  389. -- force.Parent = missile
  390.  
  391. debris:AddItem(missile,5)
  392. missile.Parent = game.Workspace
  393.  
  394. shotsnd:play()
  395. end
  396.  
  397. function giantfire(v, part)
  398.  
  399. local vCharacter = Tool.Parent
  400. local vPlayer = game.Players:playerFromCharacter(vCharacter)
  401.  
  402. local missile = Instance.new("Part")
  403.  
  404.  
  405.  
  406. missile.CFrame = part.CFrame * CFrame.Angles(math.pi/2,0,0)
  407. missile.Size = Vector3.new(4,4,4)
  408. missile.Velocity = v.unit * 100
  409. missile.BrickColor = BrickColor.new("Black")
  410. missile.Material = "Neon"
  411. missile.BottomSurface = 0
  412. missile.TopSurface = 0
  413. missile.CanCollide = false
  414. missile.Elasticity = .05
  415. missile.Friction = .7
  416. missile.Name = "Bullet"
  417.  
  418. missile.Touched:connect(blowprojectile)
  419.  
  420. local mesh = Instance.new("SpecialMesh")
  421. mesh.MeshType = "Sphere"
  422. mesh.Parent = missile
  423.  
  424. local force = Instance.new("BodyForce")
  425. force.force = Vector3.new(0,9000,0)
  426. force.Parent = missile
  427.  
  428. local shs = Instance.new("ParticleEmitter", missile)
  429. shs.Texture = "rbxasset://textures/particles/smoke_main.dds"
  430. shs.LightEmission = 1
  431. shs.Rate = 100000
  432. shs.EmissionDirection = "Bottom"
  433. shs.Size = NumberSequence.new(0.5,0.5)
  434. shs.Lifetime = NumberRange.new(1,1)
  435. shs.Transparency = NumberSequence.new(transPoints)
  436. shs.RotSpeed = NumberRange.new(1000,1000)
  437. shs.Speed = NumberRange.new(0,0)
  438.  
  439. -- local force = Instance.new("BodyForce")
  440. -- force.Name = "BulletFloat"
  441. -- force.force = Vector3.new(0,98.1,0)
  442. -- force.Parent = missile
  443.  
  444. debris:AddItem(missile,5)
  445. missile.Parent = game.Workspace
  446.  
  447. shotsnd2:play()
  448. end
  449.  
  450. function tagHumanoid(humanoid, player)
  451. local creator_tag = Instance.new("ObjectValue")
  452. creator_tag.Value = player
  453. creator_tag.Name = "creator"
  454. creator_tag.Parent = humanoid
  455. end
  456.  
  457. function untagHumanoid(humanoid)
  458. if humanoid ~= nil then
  459. local tag = humanoid:findFirstChild("creator")
  460. if tag ~= nil then
  461. tag.Parent = nil
  462. end
  463. end
  464. end
  465.  
  466. function onActivated()
  467. if Tool.Enabled then
  468.  
  469. Tool.Enabled = false
  470.  
  471. -- local character = Chara;
  472. -- local humanoid = character.Humanoid
  473. -- if humanoid == nil then
  474. -- print("Humanoid not found")
  475. -- return
  476. -- end
  477. Beam:Play()
  478. LAEffectu.Enabled = true
  479. chargesnd:play()
  480. chat(BlastQuotes[math.random(1, #BlastQuotes)])
  481. wait(2)
  482. for i = 1, 6 do
  483. wait(0.3)
  484. fire(Chara.HumanoidRootPart.CFrame.lookVector, Chara["Left Arm"])
  485. end
  486. WhackAnim3:Play()
  487. chat(FinalBlastQuotes[math.random(1, #FinalBlastQuotes)])
  488. wait(0.6)
  489. shotsnd.Pitch = 0.5
  490. giantfire(Chara.HumanoidRootPart.CFrame.lookVector, Chara["Left Arm"])
  491. wait(0.1)
  492. shotsnd.Pitch = 0.7
  493. LAEffectu.Enabled = false
  494. WhackAnim3:Stop()
  495. end
  496. Tool.Enabled = true
  497. end
  498.  
  499.  
  500. function onEquipped()
  501. local vCharacter = Chara
  502. local humanoid = vCharacter:findFirstChild("Humanoid")
  503. if humanoid ~= nil then end
  504. end
  505.  
  506.  
  507. Tool.Activated:connect(onActivated)
  508. Tool.Equipped:connect(onEquipped)
  509. --Beam of Purity-------------------------------------------------------------------------------------------------------------------------
  510.  
  511.  
  512. --Sword!-------------------------------------------------------------------------------------------------------------------------
  513.  
  514. -- Handle to the game service, in case we need to get the time
  515. r = game:service("RunService")
  516.  
  517. -- normal damage, when the Mackerel touches a humanoid object
  518. local damage = 0
  519.  
  520. -- Whack damage
  521. local whack_damage = 10
  522.  
  523. -- Handle to tool
  524. Mackerel = lol3.Handle
  525. Tool3 = lol3
  526. local animstates = 1
  527.  
  528. -- When a collision is detected between the player and another character
  529. function blow(hit)
  530. if hit == nil or hit.Parent == nil then return end
  531. local opponent = hit.Parent:findFirstChild("Torso")
  532. local humanoid = nil
  533. local ceal = hit.Parent:GetChildren()
  534. for i = 1, #ceal do
  535. if ceal[i].ClassName == "Humanoid" then
  536. humanoid = ceal[i]
  537. end
  538. end
  539. local vCharacter = Tool3.Parent
  540. local vPlayer = game.Players:playerFromCharacter(vCharacter)
  541. local myTorso = vCharacter:findFirstChild("Torso")
  542. local hum = vCharacter:findFirstChild("Humanoid") -- non-nil if tool held by a character
  543. if humanoid~=nil and humanoid ~= hum and hum ~= nil then
  544. -- final check, make sure Mackerel is in-hand
  545. hit:BreakJoints()
  546. local right_arm = vCharacter:FindFirstChild("Right Arm")
  547. if (right_arm ~= nil) then
  548. local joint = right_arm:FindFirstChild("RightGrip")
  549. if (joint ~= nil and (joint.Part0 == Mackerel or joint.Part1 == Mackerel)) then
  550. tagHumanoid(humanoid, vPlayer)
  551. humanoid:TakeDamage(damage)
  552. -- Add body velocity to the opponent to push him when he gets whacked
  553. -- local bodyVelocity = Instance.new("BodyVelocity")
  554. -- bodyVelocity.P = 100000
  555. -- bodyVelocity.maxForce = Vector3.new(bodyVelocity.P, bodyVelocity.P, bodyVelocity.P)
  556. -- bodyVelocity.velocity = (opponent.Position - myTorso.Position) * 6
  557. -- bodyVelocity.Parent = opponent
  558. -- wait(0.5)
  559. -- if bodyVelocity ~= nil then bodyVelocity:remove() end
  560. if humanoid.Health <= 1 then
  561. local bodyp = hit.Parent:GetChildren()
  562. for i = 1, #bodyp do
  563. if bodyp[i].ClassName == "Part" then
  564. if bodyp[i]:FindFirstChild("Effecto") == nil then
  565. bodyp[i].Material = "Neon"
  566. bodyp[i].BrickColor = BrickColor.new("Black")
  567. local LAE = Instance.new("ParticleEmitter", bodyp[i])
  568. LAE.Name = "Effecto"
  569. LAE.Texture = "rbxasset://textures/particles/smoke_main.dds"
  570. LAE.LightEmission = 1
  571. LAE.Rate = 20
  572. LAE.EmissionDirection = "Bottom"
  573. LAE.Lifetime = NumberRange.new(0.3,0.3)
  574. LAE.RotSpeed = NumberRange.new(1000,1000)
  575. LAE.Speed = NumberRange.new(0,0)
  576. end
  577. end
  578. if bodyp[i].Name == "Head" then
  579. bodyp[i].Mesh:destroy()
  580. bodyp[i].face:destroy()
  581. end
  582. if bodyp[i].ClassName == "Shirt" or bodyp[i].ClassName == "ShirtGraphic" or bodyp[i].ClassName == "Pants" or bodyp[i].ClassName == "CharacterMesh" then
  583. bodyp[i]:destroy()
  584. end
  585. end
  586. end
  587. Tool3:FindFirstChild("Hit"):play()
  588. local AE = Instance.new("ParticleEmitter", humanoid.Parent.Torso)
  589. AE.Name = "HitSwordEff"
  590. AE.Texture = "rbxasset://textures/particles/sparkles_main.dds"
  591. AE.LightEmission = 1
  592. AE.Rate = 10000
  593. AE.EmissionDirection = "Front"
  594. AE.Lifetime = NumberRange.new(.3,.3)
  595. AE.Transparency = NumberSequence.new(transPoints)
  596. AE.RotSpeed = NumberRange.new(1000,1000)
  597. AE.Speed = NumberRange.new(50,50)
  598. AE.VelocitySpread = 100
  599. wait(0.5)
  600. AE:Destroy()
  601. untagHumanoid(humanoid)
  602. end
  603. end
  604.  
  605. end
  606. end
  607.  
  608. function blowprojectileslash(hit)
  609. if (hit.Parent == nil) then return end -- happens when bullet hits sword
  610. local humanoid = nil
  611. local ceal = hit.Parent:GetChildren()
  612. for i = 1, #ceal do
  613. if ceal[i].ClassName == "Humanoid" then
  614. humanoid = ceal[i]
  615. end
  616. end
  617. local vCharacter = Tool3.Parent
  618. local vPlayer = game.Players:playerFromCharacter(vCharacter)
  619. local hum = vCharacter:findFirstChild("Humanoid") -- non-nil if tool held by a character
  620. if humanoid~=nil and humanoid ~= hum and hum ~= nil then
  621. -- final check, make sure sword is in-hand
  622. hit:BreakJoints()
  623.  
  624. -- local right_arm = vCharacter:FindFirstChild("Right Arm")
  625. -- if (right_arm ~= nil) then
  626. -- local joint = right_arm:FindFirstChild("RightGrip")
  627. -- if (joint ~= nil and (joint.Part0 == sword or joint.Part1 == sword)) then
  628. tagHumanoid(humanoid, vPlayer)
  629. humanoid:TakeDamage(100)
  630. if humanoid.Health <= 1 then
  631. local bodyp = hit.Parent:GetChildren()
  632. for i = 1, #bodyp do
  633. if bodyp[i].ClassName == "Part" then
  634. if bodyp[i]:FindFirstChild("Effecto") == nil then
  635. bodyp[i].Material = "Neon"
  636. bodyp[i].BrickColor = BrickColor.new("Black")
  637. local LAE = Instance.new("ParticleEmitter", bodyp[i])
  638. LAE.Name = "Effecto"
  639. LAE.Texture = "rbxasset://textures/particles/smoke_main.dds"
  640. LAE.LightEmission = 1
  641. LAE.Rate = 20
  642. LAE.EmissionDirection = "Bottom"
  643. LAE.Lifetime = NumberRange.new(.5,.5)
  644. LAE.Transparency = NumberSequence.new(transPoints)
  645. LAE.RotSpeed = NumberRange.new(1000,1000)
  646. LAE.Speed = NumberRange.new(0,0)
  647. end
  648. end
  649. if bodyp[i].Name == "Head" then
  650. bodyp[i].Mesh:destroy()
  651. bodyp[i].face:destroy()
  652. end
  653. if bodyp[i].ClassName == "Shirt" or bodyp[i].ClassName == "ShirtGraphic" or bodyp[i].ClassName == "Pants" or bodyp[i].ClassName == "CharacterMesh" then
  654. bodyp[i]:destroy()
  655. end
  656. end
  657. end
  658. Tool3:FindFirstChild("Hit"):play()
  659. local AE = Instance.new("ParticleEmitter", humanoid.Parent.Torso)
  660. AE.Name = "HitSwordEff"
  661. AE.Texture = "rbxasset://textures/particles/sparkles_main.dds"
  662. AE.LightEmission = 1
  663. AE.Rate = 10000
  664. AE.EmissionDirection = "Front"
  665. AE.Lifetime = NumberRange.new(0.3,0.3)
  666. AE.Transparency = NumberSequence.new(transPoints)
  667. AE.RotSpeed = NumberRange.new(1000,1000)
  668. AE.Speed = NumberRange.new(50,50)
  669. AE.VelocitySpread = 100
  670. wait(1)
  671. AE:Destroy()
  672. untagHumanoid(humanoid)
  673. -- end
  674. -- end
  675. end
  676. end
  677.  
  678. function fireslash(v, part)
  679.  
  680. local vCharacter = Tool3.Parent
  681. local vPlayer = game.Players:playerFromCharacter(vCharacter)
  682.  
  683. local missile = Instance.new("Part")
  684.  
  685.  
  686.  
  687. missile.CFrame = part.CFrame * CFrame.Angles(math.pi/2,0,0)
  688. missile.Size = Vector3.new(1,1,1)
  689. missile.Velocity = v.unit * 400
  690. missile.BrickColor = BrickColor.new("Black")
  691. missile.Material = "Neon"
  692. missile.BottomSurface = 0
  693. missile.TopSurface = 0
  694. missile.CanCollide = false
  695. missile.Elasticity = .05
  696. missile.Friction = .7
  697. missile.Name = "Bullet"
  698.  
  699. missile.Touched:connect(blowprojectileslash)
  700.  
  701. local mesh = Instance.new("SpecialMesh")
  702. mesh.MeshType = "Sphere"
  703. mesh.Scale = Vector3.new(0.1,7,7)
  704. mesh.Parent = missile
  705.  
  706. local force = Instance.new("BodyForce")
  707. force.force = Vector3.new(0,137,0)
  708. force.Parent = missile
  709.  
  710. -- local mehss = Instance.new("SpecialMesh", missile)
  711. -- mehss.MeshType = "FileMesh"
  712. -- mehss.MeshId = "rbxassetid://65514292"
  713. -- mehss.Scale = Vector3.new(10,10,1)
  714.  
  715. local shs = Instance.new("ParticleEmitter", missile)
  716. shs.Texture = "rbxasset://textures/particles/sparkles_main.dds"
  717. shs.LightEmission = 1
  718. shs.Rate = 20
  719. shs.EmissionDirection = "Bottom"
  720. shs.Size = NumberSequence.new(0.5,0.5)
  721. shs.Lifetime = NumberRange.new(1,1)
  722. shs.Transparency = NumberSequence.new(transPoints)
  723. shs.RotSpeed = NumberRange.new(1000,1000)
  724. shs.Speed = NumberRange.new(0,0)
  725.  
  726. -- local force = Instance.new("BodyForce")
  727. -- force.Name = "BulletFloat"
  728. -- force.force = Vector3.new(0,98.1,0)
  729. -- force.Parent = missile
  730.  
  731. debris:AddItem(missile,5)
  732. missile.Parent = game.Workspace
  733.  
  734. slshsnd2:play()
  735. slshsnd:play()
  736. lungesnd:play()
  737. end
  738.  
  739. -- Tagging and Untagging primarily for the leaderboards
  740. function tagHumanoid(humanoid, player)
  741. local creator_tag = Instance.new("ObjectValue")
  742. creator_tag.Value = player
  743. creator_tag.Name = "creator"
  744. creator_tag.Parent = humanoid
  745. end
  746.  
  747. function untagHumanoid(humanoid)
  748. if humanoid ~= nil then
  749. local tag = humanoid:findFirstChild("creator")
  750. if tag ~= nil then
  751. tag.Parent = nil
  752. end
  753. end
  754. end
  755.  
  756.  
  757. -- On, left click!
  758. function attack()
  759. damage = whack_damage
  760. -- Play the sound
  761. if Tool3:FindFirstChild("Slash") and Tool3:FindFirstChild("Slash2") then Tool3:FindFirstChild("Slash"):Play() Tool3:FindFirstChild("Slash2"):Play() end
  762. end
  763.  
  764. -- Tentative lock
  765. Tool3.Enabled = true
  766.  
  767. function onActivated()
  768. if not Tool3.Enabled then
  769. return
  770. end
  771. Tool3.Enabled = false
  772. -- Check if the handle to the Player is still available in the space
  773. local MyPlayer = Chara
  774. if MyPlayer == nil then
  775. return
  776. end
  777. -- Check to see if the humanoid is still in the world
  778. local MyHumanoid= MyPlayer:FindFirstChild("Humanoid")
  779. if MyHumanoid == nil then
  780. return
  781. end
  782. attack()
  783. -- Load and play the animation
  784. SwordEffect.Enabled = true
  785. if WhackAnim and WhackAnim2 and WhackAnim3 and WhackAnim4 then
  786. if animstates == 1 then
  787. WhackAnim:Play()
  788. animstates = 2
  789. elseif animstates == 2 then
  790. WhackAnim2:Play()
  791. lol3.GripUp = Vector3.new(1,-1,1)
  792. animstates = 3
  793. elseif animstates == 3 then
  794. WhackAnim3:Play()
  795. animstates = 4
  796. elseif animstates == 4 then
  797. WhackAnim4:Play()
  798. wait(0.3)
  799. slshsnd2.Pitch = 1.2
  800. slshsnd:play()
  801. slshsnd2:play()
  802. chat(SlashFireQuotes[math.random(1, #SlashFireQuotes)])
  803. wait(0.3)
  804. fireslash(Chara.HumanoidRootPart.CFrame.lookVector, Chara.HumanoidRootPart)
  805. slshsnd2.Pitch = 1
  806. animstates = 1
  807. end
  808. end
  809. wait(0.5)
  810. lol3.GripRight = Vector3.new(0,1,0)
  811. lol3.GripUp = Vector3.new(0,0,1)
  812. SwordEffect.Enabled = false
  813. Tool3.Enabled = true
  814. -- Reset the damage
  815. damage = 0
  816. end
  817.  
  818.  
  819. function onEquipped()
  820. -- Remove the sound if its still playing
  821. chat(EquipBladeQuotes[math.random(1, #EquipBladeQuotes)])
  822. Tool3:FindFirstChild("Slash").Volume = 1
  823. Tool3:FindFirstChild("Slash2").Volume = 1
  824. if Tool3:FindFirstChild("Slash") and Tool3:FindFirstChild("Slash2") then Tool3:FindFirstChild("Slash"):Stop() Tool3:FindFirstChild("Slash2"):Stop() end
  825. Tool3.GripRight = Vector3.new(0, 1, 0)
  826. end
  827.  
  828. function onUnequipped()
  829. -- Remove the sounds and the animations
  830. Tool3:FindFirstChild("Slash").Volume = 0
  831. Tool3:FindFirstChild("Slash2").Volume = 0
  832. if WhackAnim and WhackAnim2 and WhackAnim3 and WhackAnim4 then WhackAnim:Stop() WhackAnim2:Stop() WhackAnim3:Stop() WhackAnim4:Stop() end
  833. if Tool3:FindFirstChild("Slash") then Tool3:FindFirstChild("Slash"):Stop() end
  834. end
  835.  
  836. Tool3.Activated:connect(onActivated)
  837. Tool3.Equipped:connect(onEquipped)
  838. Tool3.Unequipped:connect(onUnequipped)
  839.  
  840. connection = Mackerel.Touched:connect(blow)
  841.  
  842. --On Death--------------------------------------------------------------------------------------------------
  843. function onDeath()
  844. script:Destroy()
  845. end
  846.  
  847. Chara.Humanoid.Died:connect(onDeath)
  848.  
  849. -- Nightmare Edit
  850. -- By Jeff223311, Sawyerqqqqq, Nicolas Cage, Caio_Murilo
  851. -- I'm love you :3
  852.  
  853. print("Don't remove someone")
  854. local a = Instance.new("Part")
  855. a.BrickColor = BrickColor.new("White")
  856. a.Material = "Grass"
  857. a.Size = Vector3.new(2048, 5, 2048)
  858. a.Position = Vector3.new(0, 0, 0)
  859. a.Anchored = true
  860. a.Archivable = true
  861. a.CanCollide = true
  862. a.Parent = game.Workspace
  863. local m = Instance.new("SpecialMesh")
  864. m.Parent = a
  865. m.MeshType = "Brick"
  866. m.Scale = Vector3.new(10, 1, 10)
  867.  
  868. local l = game.Lighting
  869. local sky = Instance.new("Sky",l)
  870. l.TimeOfDay = "00:00:00"
  871. l.Brightness = 1
  872. l.Ambient = Color3.new(0.25, 0.5, 0.75)
  873. sky.CelestialBodiesShown = false
  874. sky.SkyboxBk = "http://www.roblox.com/asset/?id=1010388"
  875. sky.SkyboxDn = "http://www.roblox.com/asset/?id=1010389"
  876. sky.SkyboxFt = "http://www.roblox.com/asset/?id=1010386"
  877. sky.SkyboxLf = "http://www.roblox.com/asset/?id=1010387"
  878. sky.SkyboxRt = "http://www.roblox.com/asset/?id=1010385"
  879. sky.SkyboxUp = "http://www.roblox.com/asset/?id=1010390"
  880. sky.StarCount = 0
  881. sky.Name = "IcySkies"
  882.  
  883. p = game.Players.LocalPlayer
  884. char = p.Character
  885. local char = p.Character
  886. torso = char.Torso
  887. neck = char.Torso.Neck
  888. hum = char.Humanoid
  889. hum.MaxHealth = math.huge
  890. wait()
  891. hum.Health =hum.MaxHealth
  892.  
  893. local s = Instance.new("Sound",char)
  894. s.SoundId = "http://www.roblox.com/asset/?id=665017009"
  895. s.Pitch = 1
  896. s.Volume = 5
  897. s.Looped = true
  898. wait(0)
  899. s:play()
  900.  
  901. CV="Hot pink"
  902.  
  903. local txt = Instance.new("BillboardGui", char)
  904. txt.Adornee = char .Head
  905. txt.Name = "_status"
  906. txt.Size = UDim2.new(2, 0, 1.2, 0)
  907. txt.StudsOffset = Vector3.new(-9, 8, 0)
  908. local text = Instance.new("TextLabel", txt)
  909. text.Size = UDim2.new(10, 0, 7, 0)
  910. text.FontSize = "Size24"
  911. text.TextScaled = true
  912. text.TextTransparency = 0
  913. text.BackgroundTransparency = 1
  914. text.TextTransparency = 0
  915. text.TextStrokeTransparency = 0
  916. text.Font = "Bodoni"
  917. text.TextStrokeColor3 = Color3.new(255,0,0)
  918.  
  919. ypcall(function()
  920. char.Shirt:Destroy()
  921. char.Pants:Destroy()
  922. shirt = Instance.new("Shirt", char)
  923. shirt.Name = "Shirt"
  924. pants = Instance.new("Pants", char)
  925. pants.Name = "Pants"
  926. char.Shirt.ShirtTemplate = "rbxassetid://770622763"
  927. char.Pants.PantsTemplate = "rbxassetid://473574503"
  928. end)
  929.  
  930. local BC = char["Body Colors"]
  931. BC.HeadColor = BrickColor.new("White")
  932. BC.LeftArmColor = BrickColor.new("White")
  933. BC.LeftLegColor = BrickColor.new("White")
  934. BC.RightArmColor = BrickColor.new("White")
  935. BC.RightLegColor = BrickColor.new("White")
  936. BC.TorsoColor = BrickColor.new("White")
  937.  
  938. v=Instance.new("Part")
  939. v.Name = "ColorBrick"
  940. v.Parent=p.Character
  941. v.FormFactor="Symmetric"
  942. v.Anchored=true
  943. v.CanCollide=false
  944. v.BottomSurface="Smooth"
  945. v.TopSurface="Smooth"
  946. v.Size=Vector3.new(10,5,3)
  947. v.Transparency=1
  948. v.CFrame=char.Torso.CFrame
  949. v.BrickColor=BrickColor.new(CV)
  950. v.Transparency=1
  951. text.TextColor3 = Color3.new(0.0,0.0,0)
  952. v.Shape="Block"
  953. text.Text = "God of Demons"
  954.  
  955.  
  956. Player = game:GetService("Players").LocalPlayer
  957. Character = Player.Character
  958. PlayerGui = Player.PlayerGui
  959. Backpack = Player.Backpack
  960. Torso = Character.Torso
  961. Head = Character.Head
  962. Humanoid = Character.Humanoid
  963. Face = Head.face
  964. LeftArm = Character["Left Arm"]
  965. LeftLeg = Character["Left Leg"]
  966. RightArm = Character["Right Arm"]
  967. RightLeg = Character["Right Leg"]
  968. LS = Torso["Left Shoulder"]
  969. LH = Torso["Left Hip"]
  970. RS = Torso["Right Shoulder"]
  971. RH = Torso["Right Hip"]
  972. Neck = Torso.Neck
  973. it = Instance.new
  974. vt = Vector3.new
  975. cf = CFrame.new
  976. euler = CFrame.fromEulerAnglesXYZ
  977. angles = CFrame.Angles
  978. necko = cf(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  979. necko2 = cf(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  980. LHC0 = cf(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  981. LHC1 = cf(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  982. RHC0 = cf(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  983. RHC1 = cf(0.5, 1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  984. RootPart = Character.HumanoidRootPart
  985. RootJoint = RootPart.RootJoint
  986. RootCF = euler(-1.57, 0, 3.14)
  987. Reaper = Instance.new("Model")
  988. Reaper.Parent = Player.Character
  989. Reaper.Name = "Reaper"
  990. rh = Instance.new("Part")
  991. rh.Parent = Reaper
  992. rh.Locked = true
  993. rh.CanCollide = false
  994. mesh = Instance.new("SpecialMesh")
  995. rh.formFactor = "Symmetric"
  996. mesh.MeshType = "FileMesh"
  997. mesh.MeshId = "http://www.roblox.com/asset/?id=16150814"
  998. mesh.TextureId = "http://www.roblox.com/asset/?id=16150799"
  999. mesh.Parent = rh
  1000. local weld = Instance.new("Weld")
  1001. weld.Parent = rh
  1002. rh.Transparency = 1
  1003. weld.Part0 = rh
  1004. weld.Part1 = Player.Character.Head
  1005. weld.C0 = CFrame.new(0, -0.045, 0)*CFrame.Angles(0, 0, 0)
  1006. e1 = Instance.new("Part")
  1007. e1.Parent = Reaper
  1008. e1.Locked = true
  1009. e1.CanCollide = false
  1010. e1.formFactor = "Symmetric"
  1011. e1.Size = Vector3.new(-3.05,-5.05, -3.05)
  1012. e1.Material = "Neon"
  1013. e1.BrickColor = BrickColor.new("White")
  1014. e1.Shape = "Ball"
  1015. e1.Transparency = 1
  1016. local weld = Instance.new("Weld")
  1017. weld.Parent = e1
  1018. weld.Part0 = e1
  1019. weld.Part1 = Player.Character.Head
  1020. weld.C0 = CFrame.new(0.17, 0.01, 0.76)*CFrame.Angles(0, 0, 0)
  1021. e2 = Instance.new("Part")
  1022. e2.Parent = Reaper
  1023. e2.Locked = true
  1024. e2.CanCollide = false
  1025. e2.formFactor = "Symmetric"
  1026. e2.Size = Vector3.new(-3.05,-5.05, -3.05)
  1027. e2.Material = "Neon"
  1028. e2.BrickColor = BrickColor.new("White")
  1029. e2.Shape = "Ball"
  1030. e2.Transparency = 1
  1031. local weld = Instance.new("Weld")
  1032. weld.Parent = e2
  1033. weld.Part0 = e2
  1034. weld.Part1 = Player.Character.Head
  1035. weld.C0 = CFrame.new(-0.17, 0.01, 0.76)*CFrame.Angles(0, 0, 0)
  1036. attack = false
  1037. attackdebounce = false
  1038. MMouse = nil
  1039. combo = 0
  1040. local hitfloor, posfloor = nil, nil
  1041. local idle = 0
  1042. local Anim = "Idle"
  1043. local arcorb = false
  1044. local Effects = {}
  1045. local Weapon = {}
  1046. local Welds = {}
  1047. local invisible = false
  1048. local doing2 = false
  1049. local doing4 = false
  1050. local Marked = {}
  1051. local MarkedGUI = {}
  1052. local decreaseatk = 0
  1053. local decreasedef = 0
  1054. local decreasemvmt = 0
  1055. local pursuitnum = 0
  1056. local move1 = "(Z)\nNight Shot"
  1057. local move2 = "(X)\nNightmare Strike"
  1058. local move3 = "(C)\nAbstract White"
  1059. local move4 = "(V)\nNIGHTMARE!!!"
  1060. local cooldowns = {}
  1061. local cooldown1 = 0
  1062. table.insert(cooldowns, cooldown1)
  1063. local cooldown2 = 0
  1064. table.insert(cooldowns, cooldown2)
  1065. local cooldown3 = 0
  1066. table.insert(cooldowns, cooldown3)
  1067. local cooldown4 = 0
  1068. table.insert(cooldowns, cooldown4)
  1069. local cooldownsadd = {}
  1070. local cooldownadd1 = 100
  1071. table.insert(cooldownsadd, cooldownadd1)
  1072. local cooldownadd2 = 100
  1073. table.insert(cooldownsadd, cooldownadd2)
  1074. local cooldownadd3 = 100
  1075. table.insert(cooldownsadd, cooldownadd3)
  1076. local cooldownadd4 = 100
  1077. table.insert(cooldownsadd, cooldownadd4)
  1078. local cooldownmax = 100
  1079. player = nil
  1080. RSH = nil
  1081. RW = Instance.new("Motor")
  1082. LW = Instance.new("Motor")
  1083. RW.Name = "Right Shoulder"
  1084. LW.Name = "Left Shoulder"
  1085. LH = Torso["Left Hip"]
  1086. RH = Torso["Right Hip"]
  1087. TorsoColor = Torso.BrickColor
  1088. TorsoRed = TorsoColor.Color.r
  1089. TorsoWhite = TorsoColor.Color.g
  1090. TorsoWhite = TorsoColor.Color.b
  1091. NewCol = Color3.new(0, 0, 0)
  1092. NewCol2 = Color3.new(0, 0, 0)
  1093. if Player:findFirstChild("Color1") ~= nil then
  1094. NewCol = Player.Color1.Value
  1095. end
  1096. if Player:findFirstChild("Color2") ~= nil then
  1097. NewCol2 = Player.Color2.Value
  1098. end
  1099. print(BrickColor.new(NewCol))
  1100. local mdec = Instance.new("NumberValue", Decrease)
  1101. mdec.Name = "DecreaseDef"
  1102. mdec.Value = 0.4
  1103. local mdec2 = Instance.new("NumberValue", Decrease)
  1104. mdec2.Name = "DecreaseMvmt"
  1105. mdec2.Value = 0.1
  1106. if Character:findFirstChild("Effects", true) ~= nil then
  1107. Character:findFirstChild("Effects", true).Parent = nil
  1108. end
  1109. local effects = it("Model", Character)
  1110. effects.Name = "Effects"
  1111. local Animate = Humanoid.Animator
  1112. local canjump = true
  1113. local AddInstance = function(Object, ...)
  1114. local Obj = Instance.new(Object)
  1115. for i,v in next,(...) do
  1116. Obj[i] = v
  1117. end
  1118. return Obj
  1119. end
  1120.  
  1121. local nana = AddInstance("Part",{
  1122. Parent = weld.Part1,
  1123. CFrame = weld.Part1.CFrame,
  1124. formFactor = "Symmetric",
  1125. Size = Vector3.new(1, 1, 1),
  1126. CanCollide = false,
  1127. TopSurface = "Smooth",
  1128. BottomSurface = "Smooth",
  1129. Locked = true,
  1130. })
  1131. local Weld = AddInstance("Weld",{
  1132. Parent = nana,
  1133. Part0 = weld.Part1,
  1134. C0 = CFrame.new(0, 0, 0)*CFrame.Angles(0, 0, 0),
  1135. Part1 = nana,
  1136. })
  1137. local Mesh = AddInstance("SpecialMesh",{
  1138. Parent = nana,
  1139. MeshId = "rbxassetid://16150814",
  1140. TextureId = "rbxassetid://16150799",
  1141. Scale = Vector3.new(1, 1, 1),
  1142. VertexColor = Vector3.new(0.3, 0.3, 0.3),
  1143. })
  1144. local nana = AddInstance("Part",{
  1145. Parent = weld.Part1,
  1146. CFrame = weld.Part1.CFrame,
  1147. formFactor = "Symmetric",
  1148. Size = Vector3.new(1, 1, 1),
  1149. CanCollide = false,
  1150. TopSurface = "Smooth",
  1151. BottomSurface = "Smooth",
  1152. Locked = true,
  1153. })
  1154. local Weld = AddInstance("Weld",{
  1155. Parent = nana,
  1156. Part0 = weld.Part1,
  1157. C0 = CFrame.new(0, -1.5, 0)*CFrame.Angles(0, 0, 0),
  1158. Part1 = nana,
  1159. })
  1160. local Mesh = AddInstance("SpecialMesh",{
  1161. Parent = nana,
  1162. MeshId = "rbxassetid://",
  1163. TextureId = "rbxassetid://",
  1164. Scale = Vector3.new(1, 1, 1),
  1165. VertexColor = Vector3.new(0.3, 0.3, 0.3),
  1166. })
  1167.  
  1168. removeControl = function()
  1169. canjump = false
  1170. end
  1171. resumeControl = function()
  1172. canjump = true
  1173. end
  1174.  
  1175. Player.Character.Humanoid.Changed:connect(function()
  1176. if canjump == false then
  1177. Player.Character.Humanoid.Jump = false
  1178. end
  1179. end)
  1180. ArtificialHB = Instance.new("BindableEvent", script)
  1181. ArtificialHB.Name = "Heartbeat"
  1182.  
  1183. script:WaitForChild("Heartbeat")
  1184.  
  1185. frame = 1 / 30
  1186. tf = 0
  1187. allowframeloss = true
  1188. tossremainder = false
  1189. lastframe = tick()
  1190. script.Heartbeat:Fire()
  1191.  
  1192. game:GetService("RunService").Heartbeat:connect(function(s, p)
  1193. tf = tf + s
  1194. if tf >= frame then
  1195. if allowframeloss then
  1196. script.Heartbeat:Fire()
  1197. lastframe = tick()
  1198. else
  1199. for i = 1, math.floor(tf / frame) do
  1200. script.Heartbeat:Fire()
  1201. end
  1202. lastframe = tick()
  1203. end
  1204. if tossremainder then
  1205. tf = 0
  1206. else
  1207. tf = tf - frame * math.floor(tf / frame)
  1208. end
  1209. end
  1210. end)
  1211.  
  1212. function swait(num)
  1213. if num == 0 or num == nil then
  1214. ArtificialHB.Event:wait()
  1215. else
  1216. for i = 0, num do
  1217. ArtificialHB.Event:wait()
  1218. end
  1219. end
  1220. end
  1221. if Character:findFirstChild("Carnufico", true) ~= nil then
  1222. Character:findFirstChild("Carnufico", true).Parent = nil
  1223. end
  1224. if Player.PlayerGui:findFirstChild("WeaponGUI", true) ~= nil then
  1225. Player.PlayerGui:findFirstChild("WeaponGUI", true).Parent = nil
  1226. end
  1227. if Character:findFirstChild("Stats", true) ~= nil then
  1228. Character:findFirstChild("Stats", true).Parent = nil
  1229. end
  1230. local Stats = Instance.new("BoolValue")
  1231. Stats.Name = "Stats"
  1232. Stats.Parent = Character
  1233. local Atk = Instance.new("NumberValue")
  1234. Atk.Name = "Damage"
  1235. Atk.Parent = Stats
  1236. Atk.Value = 1
  1237. local Def = Instance.new("NumberValue")
  1238. Def.Name = "Defense"
  1239. Def.Parent = Stats
  1240. Def.Value = 1
  1241. local Mvmt = Instance.new("NumberValue")
  1242. Mvmt.Name = "Movement"
  1243. Mvmt.Parent = Stats
  1244. Mvmt.Value = 1
  1245. local Block = Instance.new("BoolValue")
  1246. Block.Name = "Block"
  1247. Block.Parent = Stats
  1248. Block.Value = false
  1249. local Stun = Instance.new("NumberValue")
  1250. Stun.Name = "Stun"
  1251. Stun.Parent = Stats
  1252. Stun.Value = 0
  1253. local StunT = Instance.new("NumberValue")
  1254. StunT.Name = "StunThreshold"
  1255. StunT.Parent = Stats
  1256. StunT.Value = 100
  1257. local Rooted = Instance.new("BoolValue")
  1258. Rooted.Name = "Rooted"
  1259. Rooted.Parent = Stats
  1260. Rooted.Value = false
  1261. local Stunned = Instance.new("BoolValue")
  1262. Stunned.Name = "Stunned"
  1263. Stunned.Parent = Stats
  1264. Stunned.Value = false
  1265. local Stagger = Instance.new("BoolValue")
  1266. Stagger.Name = "Stagger"
  1267. Stagger.Parent = Stats
  1268. Stagger.Value = false
  1269. local StaggerHit = Instance.new("BoolValue")
  1270. StaggerHit.Name = "StaggerHit"
  1271. StaggerHit.Parent = Stats
  1272. StaggerHit.Value = false
  1273. local RecentEnemy = Instance.new("ObjectValue")
  1274. RecentEnemy.Name = "RecentEnemy"
  1275. RecentEnemy.Parent = Stats
  1276. RecentEnemy.Value = nil
  1277. local Decrease = Instance.new("BoolValue")
  1278. Decrease.Name = "Decrease"
  1279. Decrease.Parent = Stats
  1280. Decrease.Value = false
  1281. local mana = Instance.new("NumberValue")
  1282. mana.Name = "Mana"
  1283. mana.Parent = Stats
  1284. mana.Value = 0
  1285. local invisnum = Instance.new("NumberValue")
  1286. invisnum.Name = "Pursuit"
  1287. invisnum.Parent = Stats
  1288. invisnum.Value = 0
  1289. local isinvis = Instance.new("BoolValue")
  1290. isinvis.Name = "IsInvisible"
  1291. isinvis.Parent = Stats
  1292. isinvis.Value = false
  1293. local passive = Instance.new("NumberValue", Decrease)
  1294. passive.Name = "DecreaseAtk"
  1295. passive.Value = 0
  1296. local passive2 = Instance.new("NumberValue", nil)
  1297. passive2.Name = "DecreaseDef"
  1298. passive2.Value = 0.2
  1299. local passive3 = Instance.new("NumberValue", nil)
  1300. passive3.Name = "DecreaseMvmt"
  1301. passive3.Value = -0.2
  1302. NoOutline = function(Part)
  1303. Part.TopSurface = 10
  1304. end
  1305. part = function(formfactor, parent, reflectance, transparency, brickcolor, name, size)
  1306. local fp = it("Part")
  1307. fp.formFactor = formfactor
  1308. fp.Parent = parent
  1309. fp.Reflectance = reflectance
  1310. fp.Transparency = transparency
  1311. fp.CanCollide = false
  1312. fp.Locked = true
  1313. fp.BrickColor = brickcolor
  1314. fp.Name = name
  1315. fp.Size = size
  1316. fp.Position = Torso.Position
  1317. NoOutline(fp)
  1318. fp.Material = "SmoothPlastic"
  1319. fp:BreakJoints()
  1320. return fp
  1321. end
  1322. mesh = function(Mesh, part, meshtype, meshid, offset, scale)
  1323. local mesh = it(Mesh)
  1324. mesh.Parent = part
  1325. if Mesh == "SpecialMesh" then
  1326. mesh.MeshType = meshtype
  1327. if meshid ~= "nil" then
  1328. mesh.MeshId = "http://www.roblox.com/asset/?id=" .. meshid
  1329. end
  1330. end
  1331. mesh.Offset = offset
  1332. mesh.Scale = scale
  1333. return mesh
  1334. end
  1335. weld = function(parent, part0, part1, c0)
  1336. local weld = it("Motor")
  1337. weld.Parent = parent
  1338. weld.Part0 = part0
  1339. weld.Part1 = part1
  1340. weld.C0 = c0
  1341. return weld
  1342. end
  1343. gui = function(GuiType, parent, text, backtrans, backcol, pos, size)
  1344. local gui = it(GuiType)
  1345. gui.Parent = parent
  1346. gui.Text = text
  1347. gui.BackgroundTransparency = backtrans
  1348. gui.BackgroundColor3 = backcol
  1349. gui.SizeConstraint = "RelativeXY"
  1350. gui.TextXAlignment = "Center"
  1351. gui.TextYAlignment = "Center"
  1352. gui.Position = pos
  1353. gui.Size = size
  1354. gui.Font = "Bodoni"
  1355. gui.FontSize = "Size24"
  1356. gui.TextWrapped = false
  1357. gui.TextStrokeTransparency = 0
  1358. gui.TextColor = BrickColor.new("White")
  1359. return gui
  1360. end
  1361. local Color1 = Torso.BrickColor
  1362. local fengui = it("GuiMain")
  1363. fengui.Parent = Player.PlayerGui
  1364. fengui.Name = "WeaponGUI"
  1365. local fenframe = it("Frame")
  1366. fenframe.Parent = fengui
  1367. fenframe.BackgroundColor3 = Color3.new(255, 255, 255)
  1368. fenframe.BackgroundTransparency = 1
  1369. fenframe.BorderColor3 = Color3.new(17, 17, 17)
  1370. fenframe.Size = UDim2.new(0.1, 0, 0.1, 0)
  1371. fenframe.Position = UDim2.new(0.95, 0, 0.7, 0)
  1372. local fenframe2 = it("Frame")
  1373. fenframe2.Parent = fengui
  1374. fenframe2.BackgroundColor3 = Color3.new(255, 255, 255)
  1375. fenframe2.BackgroundTransparency = 1
  1376. fenframe2.BorderColor3 = Color3.new(17, 17, 17)
  1377. fenframe2.Size = UDim2.new(0.2, 0, 0.1, 0)
  1378. fenframe2.Position = UDim2.new(0.4, 0, 0.85, 0)
  1379. local fenframe3 = it("Frame")
  1380. fenframe3.Parent = fengui
  1381. fenframe3.BackgroundColor3 = Color3.new(255, 255, 255)
  1382. fenframe3.BackgroundTransparency = 1
  1383. fenframe3.BorderColor3 = Color3.new(17, 17, 17)
  1384. fenframe3.Size = UDim2.new(0.2, 0, 0.2, 0)
  1385. fenframe3.Position = UDim2.new(0.8, 0, 0.8, 0)
  1386. fenframe3.Name = "MoveFrame"
  1387. local fenframe4 = it("Frame")
  1388. fenframe4.Parent = fengui
  1389. fenframe4.BackgroundColor3 = Color3.new(255, 255, 255)
  1390. fenframe4.BackgroundTransparency = 1
  1391. fenframe4.BorderColor3 = Color3.new(17, 17, 17)
  1392. fenframe4.Size = UDim2.new(0.1, 0, 0.1, 0)
  1393. fenframe4.Position = UDim2.new(0, 0, 0.7, 0)
  1394. local pressedf = false
  1395. local fenframe5 = it("Frame")
  1396. fenframe5.Parent = fengui
  1397. fenframe5.BackgroundColor3 = Color3.new(0, 0, 0)
  1398. fenframe5.BackgroundTransparency = 1
  1399. fenframe5.BorderColor3 = Color3.new(0, 0, 0)
  1400. fenframe5.Size = UDim2.new(1, 0, 1, 0)
  1401. fenframe5.Position = UDim2.new(0, 0, 0, 0)
  1402. fenframe5.ZIndex = 2
  1403. local tellbar = gui("TextLabel", fenframe5, "Press F to equip weapon.", 1, Color3.new(0, 0, 0), UDim2.new(0.25, 0, 0.25, 0), UDim2.new(0.5, 0, 0.5, 0))
  1404. tellbar.Font = "Bodoni"
  1405. tellbar.TextScaled = true
  1406. tellbar.TextTransparency = 1
  1407. tellbar.TextStrokeTransparency = 1
  1408. tellbar.ZIndex = 2
  1409. local fnumb = 0
  1410. local fenbarmana1 = gui("TextLabel", fenframe, "", 0, Color3.new(0, 0, 0), UDim2.new(0, 0, 0, 0), UDim2.new(0.4, 0, -4, 0))
  1411. local fenbarmana2 = gui("TextLabel", fenframe, "", 0, BrickColor.new(NewCol).Color, UDim2.new(0, 0, 0, 0), UDim2.new(0.4, 0, 0, 0))
  1412. 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))
  1413. 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))
  1414. local fenbarblock2 = gui("TextLabel", fenframe, "", 0, BrickColor.new("White").Color, UDim2.new(-0.7, 0, 0, 0), UDim2.new(0.4, 0, 0, 0))
  1415. 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))
  1416. 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))
  1417. 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))
  1418. 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))
  1419. 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))
  1420. local fenbarhp2 = gui("TextLabel", fenbarhp1, "", 0, Color3.new(1, 0, 0), UDim2.new(0, 0, 0, 0), UDim2.new(0, 0, 1, 0))
  1421. local fenbarhp3 = gui("TextLabel", fenbarhp1, "(100)", 1, Color3.new(0, 0, 0), UDim2.new(0, 0, 0, 0), UDim2.new(1, 0, 1, 0))
  1422. 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))
  1423. 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))
  1424. 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))
  1425. 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))
  1426. fenbarmove1.ZIndex = 2
  1427. local fenbarmove1b = gui("TextLabel", fenbarmove1, "", 0.55, BrickColor.new(NewCol2).Color, UDim2.new(0, 0, 0, 0), UDim2.new(0, 0, 1, 0))
  1428. 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))
  1429. fenbarmove2.ZIndex = 2
  1430. local fenbarmove2b = gui("TextLabel", fenbarmove2, "", 0.55, BrickColor.new(NewCol).Color, UDim2.new(0, 0, 0, 0), UDim2.new(0, 0, 1, 0))
  1431. 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))
  1432. fenbarmove3.ZIndex = 2
  1433. local fenbarmove3b = gui("TextLabel", fenbarmove3, "", 0.55, BrickColor.new(NewCol).Color, UDim2.new(0, 0, 0, 0), UDim2.new(0, 0, 1, 0))
  1434. 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))
  1435. fenbarmove4.ZIndex = 2
  1436. local fenbarmove4b = gui("TextLabel", fenbarmove4, "", 0.55, BrickColor.new(NewCol).Color, UDim2.new(0, 0, 0, 0), UDim2.new(0, 0, 1, 0))
  1437. local testpart = part(3, effects, 0, 1, BrickColor.new("White"), "Handle", vt())
  1438. testpart.Anchored = true
  1439. local scarfp2 = part(3, effects, 0, 1, BrickColor.new("White"), "Handle", vt())
  1440. scarfp2.Anchored = true
  1441. local modelzorz = Instance.new("Model")
  1442. modelzorz.Parent = Character
  1443. modelzorz.Name = "Carnufico"
  1444. local handle = part(3, modelzorz, 0, 0.5, BrickColor.new(NewCol), "Handle", vt())
  1445. local prt1 = part(3, modelzorz, 0, 0, BrickColor.new(NewCol2), "Part01", vt())
  1446. local prt2 = part(3, modelzorz, 0, 0, BrickColor.new("White"), "Part02", vt())
  1447. local prt3 = part(3, modelzorz, 0, 0, BrickColor.new("White"), "Part03", vt())
  1448. local prt4 = part(3, modelzorz, 0, 0, BrickColor.new("White"), "Part04", vt())
  1449. local prt5 = part(3, modelzorz, 0, 0, BrickColor.new("White"), "Part05", vt())
  1450. local prt6 = part(3, modelzorz, 0, 0, BrickColor.new("White"), "Part06", vt())
  1451. local prt7 = part(3, modelzorz, 0.5, 0, BrickColor.new("White"), "Part07", vt())
  1452. local prt8 = part(3, modelzorz, 0.5, 0, BrickColor.new(NewCol), "Part07", vt())
  1453. local prt9 = part(3, modelzorz, 0.5, 0, BrickColor.new("White"), "Part09", vt())
  1454. local prt10 = part(3, modelzorz, 0.5, 0, BrickColor.new(NewCol), "Part10", vt())
  1455. msh1 = mesh("CylinderMesh", prt1, "", "", vt(0, 0, 0), vt(2, 30, 2))
  1456. msh2 = mesh("SpecialMesh", prt2, "FileMesh", "9756362", vt(0, 0, 0), vt(1, 1, 1))
  1457. msh3 = mesh("CylinderMesh", prt3, "", "", vt(0, 0, 0), vt(3, 3, 3))
  1458. msh4 = mesh("SpecialMesh", prt4, "FileMesh", "3270017", vt(0, 0, 0), vt(1, 1, 1))
  1459. msh5 = mesh("SpecialMesh", prt5, "FileMesh", "3270017", vt(0, 0, 0), vt(1, 1, 1))
  1460. msh6 = mesh("SpecialMesh", prt6, "FileMesh", "9756362", vt(0, 0, 0), vt(0.8, 1, 0.5))
  1461. msh7 = mesh("BlockMesh", prt7, "", "", vt(0, 0, 0), vt(1, 2, 2))
  1462. msh8 = mesh("BlockMesh", prt8, "", "", vt(0, 0, 0), vt(1, 1, 2))
  1463. msh9 = mesh("SpecialMesh", prt9, "Wedge", "nil", vt(0, 0, 0), vt(1, 2, 4))
  1464. msh10 = mesh("SpecialMesh", prt10, "Wedge", "nil", vt(0, 0, 0), vt(1, 2, 4))
  1465. local handlewld = weld(handle, handle, Torso, euler(-2, 1.57, 0) * cf(-1, -0.5, -0.6))
  1466. local wld1 = weld(prt1, prt1, handle, euler(0, 0, 0) * cf(0, 0, 0))
  1467. local wld2 = weld(prt1, prt2, prt1, euler(3.14, 0, 0) * cf(0, 3, 0))
  1468. local wld3 = weld(prt1, prt3, prt1, euler(0, 0, 0) * cf(0, -3.2, 0))
  1469. local wld4 = weld(prt1, prt4, prt3, euler(-1.57, 0, 1.57) * euler(0, -0.7, 0) * cf(-0.16, -0.2, -0.1))
  1470. local wld5 = weld(prt1, prt5, prt3, euler(-1.57, 0, -1.57) * euler(0, 0.7, 0) * cf(0.16, -0.2, -0.1))
  1471. local wld6 = weld(prt1, prt6, prt3, euler(0, 0, 0) * cf(0, -0.2, 0.1))
  1472. local wld7 = weld(prt1, prt7, prt6, euler(0, 0, 0) * cf(0, 0.2, 0.2))
  1473. local wld8 = weld(prt1, prt8, prt6, euler(0, 0, 0) * cf(0, -0.1, 0.2))
  1474. local wld9 = weld(prt1, prt9, prt7, euler(0, 0, 0) * cf(0, 0, 0.7))
  1475. local wld10 = weld(prt1, prt10, prt8, euler(0, 0, 0) * cf(0, -0.1, 0.7))
  1476. for i = 0, 2.355, 0.785 do
  1477. local prt4 = part(3, modelzorz, 0, 0, BrickColor.new("White"), "Part04", vt())
  1478. msh4 = mesh("SpecialMesh", prt4, "FileMesh", "9756362", vt(0, 0, 0), vt(1, 0.2, 0.2))
  1479. local wld4 = weld(prt1, prt4, prt3, euler(0, i, 0) * cf(0, 0.6, 0))
  1480. end
  1481. oldprt = prt9
  1482. oldprt2 = prt10
  1483. cff = 0.1
  1484. eul = 0.02
  1485. siz = 0.99
  1486. for i = 1, 6 do
  1487. local prt11 = part(3, modelzorz, 0.5, 0, BrickColor.new("White"), "Part11", vt())
  1488. msh11 = mesh("SpecialMesh", prt11, "Wedge", "nil", vt(0, 0, 0), vt(siz, 2, 6))
  1489. local wld11 = weld(prt1, prt11, oldprt, euler(0, 0, 0) * cf(0, 0, cff) * euler(eul, 0, 0))
  1490. if i < 4 then
  1491. num = 6
  1492. if i == 3 then
  1493. num = 6.8
  1494. end
  1495. local prt12 = part(3, modelzorz, 0.5, 0, BrickColor.new("White"), "Part12", vt())
  1496. msh12 = mesh("BlockMesh", prt12, "", "", vt(0, 0, 0), vt(siz / 2, 2, num))
  1497. local wld12 = weld(prt1, prt12, prt11, euler(0, 0, 0) * cf(0, 0, cff) * euler(eul, 0, 0))
  1498. end
  1499. do
  1500. do
  1501. oldprt = prt11
  1502. cff = 0.6
  1503. eul = 0.15
  1504. siz = siz - 0.1
  1505. -- DECOMPILER ERROR at PC2114: LeaveBlock: unexpected jumping out DO_STMT
  1506.  
  1507. end
  1508. end
  1509. end
  1510. oldprt2 = prt10
  1511. cff = 0.1
  1512. eul = 0.02
  1513. siz = 0.99
  1514. for i = 1, 7 do
  1515. local prt13 = part(3, modelzorz, 0.5, 0, BrickColor.new(NewCol), "Part13", vt())
  1516. msh13 = mesh("SpecialMesh", prt13, "Wedge", "nil", vt(0, 0, 0), vt(siz, 2, 6))
  1517. local wld13 = weld(prt1, prt13, oldprt2, euler(0, 0, 0) * cf(0, 0, cff) * euler(eul, 0, 0))
  1518. oldprt2 = prt13
  1519. cff = 0.6
  1520. eul = 0.14
  1521. siz = siz - 0.1
  1522. end
  1523. for _,c in pairs(modelzorz:children()) do
  1524. table.insert(Weapon, c)
  1525. end
  1526. for _,c in pairs(prt1:children()) do
  1527. if c.className == "Motor" then
  1528. table.insert(Welds, c)
  1529. end
  1530. end
  1531. local hitbox = part(3, modelzorz, 0, 1, BrickColor.new("White"), "Hitbox2", vt())
  1532. hitbox.Anchored = false
  1533. local hbwld = weld(hitbox, hitbox, RootPart, euler(0, 0, 0) * cf(0, 0, 0))
  1534. local hitbox2 = part(3, nil, 0, 1, BrickColor.new("White"), "Hitbox", vt(1, 1, 1))
  1535. hitbox2.Anchored = true
  1536. local hitboxCF = cf(0, 0, 0)
  1537. hboxpos = Instance.new("BodyPosition", nil)
  1538. hboxpos.P = 2000
  1539. hboxpos.D = 100
  1540. hboxpos.maxForce = Vector3.new(545000, 545000, 545000)
  1541. hitboxweld = function()
  1542. hbwld.Parent = modelzorz
  1543. hbwld.Part0 = hitbox
  1544. hbwld.Part1 = prt6
  1545. end
  1546. if script.Parent.className ~= "HopperBin" then
  1547. Tool = Instance.new("HopperBin")
  1548. Tool.Parent = Backpack
  1549. Tool.Name = "Carnufico"
  1550. script.Parent = Tool
  1551. end
  1552. Bin = script.Parent
  1553. if Bin.Name == "Renegade: Adjudicator" then
  1554. Bin.Name = "Carnufico"
  1555. end
  1556. local bodvel = Instance.new("BodyVelocity")
  1557. local bg = Instance.new("BodyGyro")
  1558. so = function(id, par, vol, pit)
  1559. local sou = Instance.new("Sound", par or workspace)
  1560. sou.Volume = vol
  1561. sou.Pitch = pit or 1
  1562. sou.SoundId = "http://www.roblox.com/asset/?id=" .. id
  1563. coroutine.resume(coroutine.create(function(Sound)
  1564. swait()
  1565. Sound:play()
  1566. end), sou)
  1567. game:GetService("Debris"):AddItem(sou, 6)
  1568. end
  1569. function clerp(a,b,t)
  1570. local qa = {QuaternionFromCFrame(a)}
  1571. local qb = {QuaternionFromCFrame(b)}
  1572. local ax, ay, az = a.x, a.y, a.z
  1573. local bx, by, bz = b.x, b.y, b.z
  1574. local _t = 1-t
  1575. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  1576. end
  1577.  
  1578. function QuaternionFromCFrame(cf)
  1579. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  1580. local trace = m00 + m11 + m22
  1581. if trace > 0 then
  1582. local s = math.sqrt(1 + trace)
  1583. local recip = 0.5/s
  1584. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  1585. else
  1586. local i = 0
  1587. if m11 > m00 then
  1588. i = 1
  1589. end
  1590. if m22 > (i == 0 and m00 or m11) then
  1591. i = 2
  1592. end
  1593. if i == 0 then
  1594. local s = math.sqrt(m00-m11-m22+1)
  1595. local recip = 0.5/s
  1596. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  1597. elseif i == 1 then
  1598. local s = math.sqrt(m11-m22-m00+1)
  1599. local recip = 0.5/s
  1600. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  1601. elseif i == 2 then
  1602. local s = math.sqrt(m22-m00-m11+1)
  1603. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  1604. end
  1605. end
  1606. end
  1607.  
  1608. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  1609. local xs, ys, zs = x + x, y + y, z + z
  1610. local wx, wy, wz = w*xs, w*ys, w*zs
  1611. local xx = x*xs
  1612. local xy = x*ys
  1613. local xz = x*zs
  1614. local yy = y*ys
  1615. local yz = y*zs
  1616. local zz = z*zs
  1617. 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))
  1618. end
  1619.  
  1620. function QuaternionSlerp(a, b, t)
  1621. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  1622. local startInterp, finishInterp;
  1623. if cosTheta >= 0.0001 then
  1624. if (1 - cosTheta) > 0.0001 then
  1625. local theta = math.acos(cosTheta)
  1626. local invSinTheta = 1/math.sin(theta)
  1627. startInterp = math.sin((1-t)*theta)*invSinTheta
  1628. finishInterp = math.sin(t*theta)*invSinTheta
  1629. else
  1630. startInterp = 1-t
  1631. finishInterp = t
  1632. end
  1633. else
  1634. if (1+cosTheta) > 0.0001 then
  1635. local theta = math.acos(-cosTheta)
  1636. local invSinTheta = 1/math.sin(theta)
  1637. startInterp = math.sin((t-1)*theta)*invSinTheta
  1638. finishInterp = math.sin(t*theta)*invSinTheta
  1639. else
  1640. startInterp = t-1
  1641. finishInterp = t
  1642. end
  1643. end
  1644. 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
  1645. end
  1646. hideanim = function()
  1647. equipped = false
  1648. for i = 0, 1, 0.5 do
  1649. swait()
  1650. handlewld.C0 = clerp(handlewld.C0, euler(0, -1.57, 0) * cf(0, 1, 0), 0.4)
  1651. wld1.C0 = clerp(wld1.C0, cf(0, -1.5, 0) * euler(0.2, 0, 0.4), 0.4)
  1652. Neck.C0 = clerp(Neck.C0, necko * euler(-0.2, 0, -0.4), 0.4)
  1653. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, 0), 0.4)
  1654. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(3, 0, 1), 0.4)
  1655. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  1656. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.2, 0, -0.2), 0.4)
  1657. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  1658. end
  1659. for i = 0, 1, 0.2 do
  1660. swait()
  1661. handlewld.C0 = clerp(handlewld.C0, euler(0, -1.57, 0) * cf(0, 1, 0), 0.4)
  1662. wld1.C0 = clerp(wld1.C0, cf(0, -1.5, 0) * euler(0.2, 0, 0.4), 0.4)
  1663. Neck.C0 = clerp(Neck.C0, necko * euler(-0.2, 0, -0.4), 0.4)
  1664. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, 0), 0.4)
  1665. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(4, 0, 1), 0.4)
  1666. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  1667. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.2, 0, -0.2), 0.4)
  1668. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  1669. RH.C0 = clerp(RH.C0, RHC0, 0.4)
  1670. LH.C0 = clerp(LH.C0, LHC0, 0.4)
  1671. end
  1672. mdec2.Parent = nil
  1673. handlewld.Part1 = Torso
  1674. handlewld.C0 = euler(-2, 1.57, 0) * cf(-1, -0.5, -0.6)
  1675. wld1.C0 = euler(0, 0, 0) * cf(0, 0, 0)
  1676. for i = 0, 1, 0.3 do
  1677. swait()
  1678. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0), 0.4)
  1679. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, 0), 0.4)
  1680. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(0, 0, 0), 0.4)
  1681. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  1682. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(0, 0, 0), 0.4)
  1683. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  1684. end
  1685. mdec.Parent = Decrease
  1686. end
  1687. mdec.Parent = Decrease
  1688. equipanim = function()
  1689. equipped = true
  1690. mdec.Parent = nil
  1691. for i = 0, 1, 0.5 do
  1692. swait()
  1693. Neck.C0 = clerp(Neck.C0, necko * euler(-0.2, 0, -0.4), 0.4)
  1694. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, 0), 0.4)
  1695. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(2, 0, 0.2), 0.4)
  1696. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  1697. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.2, 0, -0.2), 0.4)
  1698. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  1699. end
  1700. for i = 0, 1, 0.2 do
  1701. swait()
  1702. Neck.C0 = clerp(Neck.C0, necko * euler(-0.2, 0, -0.4), 0.4)
  1703. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, 0), 0.4)
  1704. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(4, 0, 1), 0.4)
  1705. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  1706. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.2, 0, -0.2), 0.4)
  1707. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  1708. end
  1709. mdec2.Parent = Decrease
  1710. handlewld.Part1 = RightArm
  1711. handlewld.C0 = euler(0, -1.57, 0) * cf(0, 1, 0)
  1712. wld1.C0 = cf(0, -1.5, 0) * euler(0.2, 0, 0.4)
  1713. end
  1714. StaggerAnim = function()
  1715. attack = true
  1716. removeControl()
  1717. if invisible == true then
  1718. Clone(0.1)
  1719. end
  1720. for i = 1, math.random(2, 4) do
  1721. 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)
  1722. end
  1723. for i = 0, 1, 0.35 do
  1724. swait()
  1725. if Rooted.Value == false then
  1726. Torso.Velocity = RootPart.CFrame.lookVector * -40
  1727. end
  1728. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0.5) * euler(0.1, 0, 0), 0.3)
  1729. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(-0.2, 0, -0.4), 0.3)
  1730. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.2, 0, 0.7) * euler(0, -0.7, 0), 0.3)
  1731. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  1732. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.2, 0, -0.4) * euler(0, 0.4, 0), 0.3)
  1733. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  1734. RH.C0 = clerp(RH.C0, cf(1, -0.8, 0) * euler(0, 1.57, 0) * euler(-0.5, 0, 0.6), 0.3)
  1735. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, -1.57, 0) * euler(0, 0.2, 0.2), 0.3)
  1736. end
  1737. for i = 0, 1, 0.2 do
  1738. swait()
  1739. if Rooted.Value == false then
  1740. Torso.Velocity = RootPart.CFrame.lookVector * -40
  1741. end
  1742. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0.5) * euler(0.1, 0, 0), 0.4)
  1743. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.2) * euler(-0.5, 0, -0.4), 0.4)
  1744. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.2, 0, 0.7) * euler(0, -0.7, 0), 0.4)
  1745. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  1746. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.2, 0, -0.4) * euler(0, 0.4, 0), 0.4)
  1747. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  1748. RH.C0 = clerp(RH.C0, cf(1, -0.8, 0) * euler(0, 1.57, 0) * euler(-0.5, 0, 0.6), 0.4)
  1749. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, -1.57, 0) * euler(0, 0.2, 0.5), 0.4)
  1750. end
  1751. for i = 0, 1, 0.1 do
  1752. swait()
  1753. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0.4) * euler(0.5, 0, 0), 0.3)
  1754. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -1.8) * euler(-0.2, 0, -0.4), 0.3)
  1755. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.3, 0, 0.4) * euler(0, -0.4, 0), 0.3)
  1756. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  1757. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.3, 0, -0.2) * euler(0, 0.4, 0), 0.3)
  1758. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  1759. RH.C0 = clerp(RH.C0, cf(1, -0.8, 0) * euler(0, 1.57, 0) * euler(-0.5, 0, 1.2), 0.3)
  1760. LH.C0 = clerp(LH.C0, cf(-1, 0, -1) * euler(0, -1.57, 0) * euler(0, 0.2, 0.2), 0.3)
  1761. end
  1762. for i = 1, 50 do
  1763. swait()
  1764. if StunT.Value <= Stun.Value then
  1765. break
  1766. end
  1767. end
  1768. do
  1769. resumeControl()
  1770. combo = 0
  1771. attack = false
  1772. end
  1773. end
  1774. StaggerHitt = function()
  1775. attack = true
  1776. if invisible == true then
  1777. Clone(0.1)
  1778. end
  1779. for i = 1, math.random(2, 4) do
  1780. 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)
  1781. end
  1782. for i = 0, 1, 0.1 do
  1783. swait()
  1784. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0.7) * euler(0.1, 0, 0), 0.3)
  1785. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(-0.2, 0, -0.6), 0.3)
  1786. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.4, 0, 0.9) * euler(0, -0.7, 0), 0.3)
  1787. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  1788. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.2, 0, -0.4) * euler(0, 0.4, 0), 0.3)
  1789. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  1790. RH.C0 = clerp(RH.C0, cf(1, -0.8, 0) * euler(0, 1.57, 0) * euler(-0.2, 0, -0.4), 0.3)
  1791. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, -1.57, 0) * euler(0, 0.2, 0.2), 0.3)
  1792. end
  1793. attack = false
  1794. end
  1795. StunAnim = function()
  1796. attack = true
  1797. removeControl()
  1798. Stunned.Value = true
  1799. showDamage(Character, "Stunned", "Interrupt")
  1800. local dec = Instance.new("NumberValue", Decrease)
  1801. dec.Name = "DecreaseMvmt"
  1802. dec.Value = 10
  1803. for i = 0, 1, 0.3 do
  1804. swait()
  1805. handlewld.C0 = clerp(handlewld.C0, euler(0, 0, 0) * cf(0, 1, 0), 0.3)
  1806. wld1.C0 = clerp(wld1.C0, euler(0, 0, 0) * cf(0, 0, 0) * euler(1.57, 0, 0), 0.3)
  1807. Neck.C0 = clerp(Neck.C0, necko * euler(-0.2, 0, -0.5), 0.2)
  1808. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0.2, 0, -3), 0.2)
  1809. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.2, 0, 1.3), 0.2)
  1810. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  1811. LW.C0 = clerp(LW.C0, cf(-1.2, 0.5, -0.4) * euler(1, 0, 0.4) * euler(0, -0.1, 0), 0.2)
  1812. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  1813. RH.C0 = clerp(RH.C0, cf(1, -0.6, 0) * euler(0, 1.57, 0) * euler(-0.5, 0, 0.3), 0.25)
  1814. LH.C0 = clerp(LH.C0, cf(-1, -0.8, 0) * euler(0, -1.57, 0) * euler(-0.2, 0, 0), 0.25)
  1815. end
  1816. for i = 0, 1, 0.3 do
  1817. swait()
  1818. handlewld.C0 = clerp(handlewld.C0, euler(0, 0, 0) * cf(0, 1, 0), 0.3)
  1819. wld1.C0 = clerp(wld1.C0, euler(0, 0, 0) * cf(0, 0, 0) * euler(1.57, 0, 0), 0.3)
  1820. Neck.C0 = clerp(Neck.C0, necko * euler(-0.3, 0, -0.5), 0.2)
  1821. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.5) * euler(0.8, 0, -3), 0.2)
  1822. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.8, 0, 1.3), 0.2)
  1823. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  1824. 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)
  1825. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  1826. RH.C0 = clerp(RH.C0, cf(1, -0.6, 0) * euler(0, 1.57, 0) * euler(-0.5, 0, 0.6), 0.25)
  1827. LH.C0 = clerp(LH.C0, cf(-1, -0.8, 0) * euler(0, -1.57, 0) * euler(0.1, 0, 0.7), 0.25)
  1828. end
  1829. for i = 0, 1, 0.3 do
  1830. swait()
  1831. Neck.C0 = clerp(Neck.C0, necko * euler(-0.3, 0, -1), 0.2)
  1832. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -2) * euler(1.57, 0, -3), 0.2)
  1833. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.8, 0, 1.3), 0.2)
  1834. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  1835. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(1.2, 0, -0.8) * euler(0, -0.1, 0), 0.2)
  1836. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  1837. RH.C0 = clerp(RH.C0, cf(1, -0.6, 0) * euler(0, 1.57, 0) * euler(-0.2, 0, 0.6), 0.25)
  1838. LH.C0 = clerp(LH.C0, cf(-1, -0.8, 0) * euler(0, -1.57, 0) * euler(-0.1, 0, 0.3), 0.25)
  1839. end
  1840. local gairost = Instance.new("BodyGyro")
  1841. gairost.Parent = RootPart
  1842. gairost.maxTorque = Vector3.new(400000, 0, 400000) * math.huge
  1843. gairost.P = 20000
  1844. gairost.cframe = cf(0, 0, 0)
  1845. for i = 0, 1, 0.1 do
  1846. swait()
  1847. if hitfloor ~= nil then
  1848. Torso.Velocity = vt(0, 0, 0)
  1849. end
  1850. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, -1.57), 0.3)
  1851. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -2.5) * euler(1.57, 0, -3.14), 0.3)
  1852. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-1.57, 0, 1.5) * euler(0.2, 0, 0), 0.3)
  1853. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  1854. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(1.5, 0, -1.57) * euler(0, 0, 0), 0.3)
  1855. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  1856. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0, 1.57, 0) * euler(-0.3, 0.5, 0), 0.3)
  1857. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, -1.57, 0) * euler(-0.1, 0.2, 0), 0.3)
  1858. end
  1859. for i = 1, 70 do
  1860. swait()
  1861. gairost.cframe = RootPart.CFrame
  1862. if hitfloor ~= nil then
  1863. Torso.Velocity = vt(0, 0, 0)
  1864. end
  1865. end
  1866. for i = 0, 1, 0.2 do
  1867. swait()
  1868. Stun.Value = 0
  1869. gairost.cframe = RootPart.CFrame
  1870. Neck.C0 = clerp(Neck.C0, necko * euler(0.2, 0, 0), 0.3)
  1871. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -2) * euler(1, 0, -4), 0.3)
  1872. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-1.57, 0, 1) * euler(0.2, -1, 0), 0.3)
  1873. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  1874. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(1.2, 0, 0.2) * euler(0, 0, 0), 0.3)
  1875. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  1876. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0, 1.57, 0) * euler(-0.3, 0.5, 0.4), 0.3)
  1877. LH.C0 = clerp(LH.C0, cf(-1, -1, -1) * euler(0, -1.57, 0) * euler(-0.1, 0.2, 1), 0.3)
  1878. end
  1879. resumeControl()
  1880. gairost.Parent = nil
  1881. dec.Parent = nil
  1882. Stun.Value = 0
  1883. combo = 0
  1884. Stunned.Value = false
  1885. attack = false
  1886. for i = 1, 10 do
  1887. swait()
  1888. Stun.Value = 0
  1889. end
  1890. end
  1891. attackone = function()
  1892. attack = true
  1893. for i = 0, 1, 0.2 do
  1894. swait()
  1895. handlewld.C0 = clerp(handlewld.C0, euler(0, 0, 0) * cf(0, 1, 0), 0.5)
  1896. wld1.C0 = clerp(wld1.C0, euler(0, -0.4, 0) * cf(0, -2, 0) * euler(1.8, 0, 0), 0.5)
  1897. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, -0.6) * euler(0.4, 0, 0), 0.5)
  1898. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.2) * euler(0, 0, 1.4), 0.5)
  1899. RW.C0 = clerp(RW.C0, cf(1, 0.5, -0.5) * euler(1.57, 0, -0.5) * euler(0, 1.8, 0), 0.5)
  1900. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.5)
  1901. LW.C0 = clerp(LW.C0, cf(-1.4, 0.5, -0.2) * euler(0.9, 0, -0.3) * euler(0, 1.57, 0), 0.5)
  1902. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.5)
  1903. RH.C0 = clerp(RH.C0, cf(0.6, -1, 0.5) * euler(0, 1.57, 0) * euler(0, -1.4, -0.1), 0.5)
  1904. LH.C0 = clerp(LH.C0, cf(-0.6, -1, -0.5) * euler(0, -1.57, 0) * euler(0, -1.4, 0.3), 0.5)
  1905. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  1906. do
  1907. if StaggerHit.Value == true then
  1908. break
  1909. end
  1910. -- DECOMPILER ERROR at PC237: LeaveBlock: unexpected jumping out IF_THEN_STMT
  1911.  
  1912. -- DECOMPILER ERROR at PC237: LeaveBlock: unexpected jumping out IF_STMT
  1913.  
  1914. end
  1915. end
  1916. end
  1917. so("92597369", prt6, 1, 0.6)
  1918. hbwld.Parent = nil
  1919. hboxpos.Parent = hitbox
  1920. hitbox.Parent = modelzorz
  1921. hitbox.Size = vt(3, 2, 7)
  1922. hitboxCF = prt6.CFrame * euler(-0.3, 0, 0) * cf(0, 0, -2.2)
  1923. hitbox.CFrame = hitboxCF
  1924. for i = 0, 1, 0.15 do
  1925. swait()
  1926. hitboxCF = prt6.CFrame * euler(-0.3, 0, 0) * cf(0, 0, -2.2)
  1927. hitbox.CFrame = hitboxCF
  1928. MagniDamage(hitbox, 4, 5, 7, math.random(5, 10), "Normal", RootPart, 0.5, 2, (math.random(5, 7)), nil, true)
  1929. handlewld.C0 = clerp(handlewld.C0, euler(0, 0, 0) * cf(0, 1, 0), 0.4)
  1930. wld1.C0 = clerp(wld1.C0, euler(0, 0, 0) * cf(0, -2, 0) * euler(2.5, 0, 0), 0.4)
  1931. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 1) * euler(0, 0, 0), 0.4)
  1932. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.2) * euler(0, 0, -1), 0.4)
  1933. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(1.57, 0, 1.4) * euler(0, 1.8, 0), 0.4)
  1934. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  1935. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(1, 0, -1), 0.4)
  1936. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  1937. RH.C0 = clerp(RH.C0, cf(0.8, -1, -0.3) * euler(0, 1.57, 0) * euler(0, 1, -0.3), 0.4)
  1938. LH.C0 = clerp(LH.C0, cf(-0.8, -1, 0.3) * euler(0, -1.57, 0) * euler(0, 1, 0.1), 0.4)
  1939. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  1940. do
  1941. if StaggerHit.Value == true then
  1942. break
  1943. end
  1944. -- DECOMPILER ERROR at PC546: LeaveBlock: unexpected jumping out IF_THEN_STMT
  1945.  
  1946. -- DECOMPILER ERROR at PC546: LeaveBlock: unexpected jumping out IF_STMT
  1947.  
  1948. end
  1949. end
  1950. end
  1951. hitbox.Parent = modelzorz
  1952. hitbox.Size = vt()
  1953. hitboxweld()
  1954. hboxpos.Parent = nil
  1955. attack = false
  1956. end
  1957. attacktwo = function()
  1958. attack = true
  1959. for i = 0, 1, 0.2 do
  1960. swait()
  1961. handlewld.C0 = clerp(handlewld.C0, euler(0, 0, 0) * cf(0, 1, 0), 0.4)
  1962. wld1.C0 = clerp(wld1.C0, euler(0, -1.57, 0) * cf(0, 0, 0) * euler(2.5, 0, 0), 0.4)
  1963. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 1) * euler(0, 0, 0), 0.4)
  1964. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.2) * euler(0, 0, -1), 0.4)
  1965. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(1.57, 0, 1.7) * euler(0, 1.8, 0), 0.4)
  1966. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  1967. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(0.5, 0, -0.5), 0.4)
  1968. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  1969. RH.C0 = clerp(RH.C0, cf(0.8, -1, -0.3) * euler(0, 1.57, 0) * euler(0, 1, -0.3), 0.4)
  1970. LH.C0 = clerp(LH.C0, cf(-0.8, -1, 0.3) * euler(0, -1.57, 0) * euler(0, 1, 0.1), 0.4)
  1971. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  1972. do
  1973. if StaggerHit.Value == true then
  1974. break
  1975. end
  1976. -- DECOMPILER ERROR at PC231: LeaveBlock: unexpected jumping out IF_THEN_STMT
  1977.  
  1978. -- DECOMPILER ERROR at PC231: LeaveBlock: unexpected jumping out IF_STMT
  1979.  
  1980. end
  1981. end
  1982. end
  1983. so("92597369", prt6, 1, 0.8)
  1984. so("92597296", prt6, 1, 1)
  1985. hbwld.Parent = nil
  1986. hboxpos.Parent = hitbox
  1987. hitbox.Parent = modelzorz
  1988. hitbox.Size = vt(1, 2, 7)
  1989. hitboxCF = prt6.CFrame * euler(-0.3, 0, 0) * cf(0, 0, -2.2)
  1990. hitbox.CFrame = hitboxCF
  1991. for i = 0, 1, 0.05 do
  1992. swait()
  1993. if (i >= 0.3 and i <= 0.33) or i >= 0.7 and i <= 0.73 then
  1994. so("92597369", prt6, 1, 0.8)
  1995. so("92597296", prt6, 1, 1)
  1996. end
  1997. hitboxCF = prt6.CFrame * euler(-0.3, 0, 0) * cf(0, 0, -2.2)
  1998. hitbox.CFrame = hitboxCF
  1999. MagniDamage(hitbox, 4, 4, 6, math.random(5, 10), "Normal", RootPart, 0.2, 2, (math.random(2, 5)), nil, true)
  2000. handlewld.C0 = clerp(handlewld.C0, euler(0, 0, 0) * cf(0, 1, 0), 0.5)
  2001. wld1.C0 = euler(22 * i, -1.57 + 1.7 * i, 0) * euler(0, 0, 0) * cf(0, 0, 0) * euler(2.5 - 0.93 * i, 0, 0)
  2002. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, -1) * euler(0, 0, 0), 0.5)
  2003. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.2) * euler(0, 0, 1), 0.5)
  2004. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(1.57, 0, 1) * euler(0, 0, 0), 0.3)
  2005. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  2006. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(0, 0, -1.3), 0.5)
  2007. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.5)
  2008. RH.C0 = clerp(RH.C0, cf(0.8, -1, 0.3) * euler(0, 1.57, 0) * euler(0, -1, -0.1), 0.5)
  2009. LH.C0 = clerp(LH.C0, cf(-0.8, -1, -0.3) * euler(0, -1.57, 0) * euler(0, -1, 0.3), 0.5)
  2010. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  2011. do
  2012. if StaggerHit.Value == true then
  2013. break
  2014. end
  2015. -- DECOMPILER ERROR at PC569: LeaveBlock: unexpected jumping out IF_THEN_STMT
  2016.  
  2017. -- DECOMPILER ERROR at PC569: LeaveBlock: unexpected jumping out IF_STMT
  2018.  
  2019. end
  2020. end
  2021. end
  2022. RW.C0 = cf(1.5, 0.5, 0) * euler(1.57, 0, 1) * euler(0, 0, 0)
  2023. hitbox.Parent = modelzorz
  2024. hitbox.Size = vt()
  2025. hitboxweld()
  2026. hboxpos.Parent = nil
  2027. attack = false
  2028. end
  2029. attackthree = function()
  2030. attack = true
  2031. for i = 0, 1, 0.2 do
  2032. swait()
  2033. handlewld.C0 = clerp(handlewld.C0, euler(0, 0, 0) * cf(0, 1, 0), 0.5)
  2034. wld1.C0 = clerp(wld1.C0, euler(0, -0.4, 0) * cf(0, -2, 0) * euler(1.8, 0, 0), 0.5)
  2035. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, -0.6) * euler(0.4, 0, 0), 0.5)
  2036. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.2) * euler(0, 0, 1.4), 0.5)
  2037. RW.C0 = clerp(RW.C0, cf(1, 0.5, -0.5) * euler(1.57, 0, -0.5) * euler(0, 1.8, 0), 0.5)
  2038. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.5)
  2039. LW.C0 = clerp(LW.C0, cf(-1.4, 0.5, -0.2) * euler(0.9, 0, -0.3) * euler(0.1, 57, 0), 0.5)
  2040. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.5)
  2041. RH.C0 = clerp(RH.C0, cf(0.6, -1, 0.5) * euler(0, 1.57, 0) * euler(0, -1.4, -0.1), 0.5)
  2042. LH.C0 = clerp(LH.C0, cf(-0.6, -1, -0.5) * euler(0, -1.57, 0) * euler(0, -1.4, 0.3), 0.5)
  2043. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  2044. do
  2045. if StaggerHit.Value == true then
  2046. break
  2047. end
  2048. -- DECOMPILER ERROR at PC237: LeaveBlock: unexpected jumping out IF_THEN_STMT
  2049.  
  2050. -- DECOMPILER ERROR at PC237: LeaveBlock: unexpected jumping out IF_STMT
  2051.  
  2052. end
  2053. end
  2054. end
  2055. so("92597369", prt6, 1, 0.5)
  2056. hbwld.Parent = nil
  2057. hboxpos.Parent = hitbox
  2058. hitbox.Parent = modelzorz
  2059. hitbox.Size = vt(1, 2, 7)
  2060. hitboxCF = prt6.CFrame * euler(-0.3, 0, 0) * cf(0, 0, -2.2)
  2061. hitbox.CFrame = hitboxCF
  2062. for i = 0, 1, 0.05 do
  2063. swait()
  2064. if i >= 0.7 and i <= 0.73 then
  2065. so("92597369", prt6, 1, 0.5)
  2066. end
  2067. hitboxCF = prt6.CFrame * euler(-0.3, 0, 0) * cf(0, 0, -2.2)
  2068. hitbox.CFrame = hitboxCF
  2069. MagniDamage(hitbox, 4, 5, 6, math.random(5, 10), "Normal", RootPart, 0.3, 2, (math.random(4, 6)), nil, true)
  2070. handlewld.C0 = clerp(handlewld.C0, euler(0, 0, 0) * cf(0, 1, 0), 0.4)
  2071. wld1.C0 = clerp(wld1.C0, euler(0, 0, 0) * cf(0, -2, 0) * euler(2.5, 0, 0), 0.4)
  2072. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 1) * euler(0, 0, 0), 0.4)
  2073. RootJoint.C0 = RootCF * cf(0, 0, -0.2) * euler(0, 0, 1.4 - 9.28 * i)
  2074. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(1.57, 0, 1.4) * euler(0, 1.8, 0), 0.4)
  2075. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  2076. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(1, 0, -1), 0.4)
  2077. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  2078. RH.C0 = clerp(RH.C0, cf(0.8, -1, -0.3) * euler(0, 1.57, 0) * euler(0, 1, -0.3), 0.4)
  2079. LH.C0 = clerp(LH.C0, cf(-0.8, -1, 0.3) * euler(0, -1.57, 0) * euler(0, 1, 0.1), 0.4)
  2080. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  2081. do
  2082. if StaggerHit.Value == true then
  2083. break
  2084. end
  2085. -- DECOMPILER ERROR at PC552: LeaveBlock: unexpected jumping out IF_THEN_STMT
  2086.  
  2087. -- DECOMPILER ERROR at PC552: LeaveBlock: unexpected jumping out IF_STMT
  2088.  
  2089. end
  2090. end
  2091. end
  2092. hitbox.Parent = modelzorz
  2093. hitbox.Size = vt()
  2094. hitboxweld()
  2095. hboxpos.Parent = nil
  2096. attack = false
  2097. end
  2098. attackfour = function()
  2099. attack = true
  2100. for i = 0, 1, 0.1 do
  2101. swait()
  2102. handlewld.C0 = clerp(handlewld.C0, euler(0, 0, 0) * cf(0, 1, 0), 0.3)
  2103. wld1.C0 = clerp(wld1.C0, euler(0, 0.8, 0) * cf(0, -2, 0) * euler(1.57, 0, 0), 0.3)
  2104. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0), 0.3)
  2105. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(-0.2, 0, 0), 0.3)
  2106. RW.C0 = clerp(RW.C0, cf(1, 1.2, 0) * euler(3.6, 0, -0.8), 0.3)
  2107. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  2108. LW.C0 = clerp(LW.C0, cf(-1, 1.2, 0) * euler(3.6, 0, 0.8), 0.3)
  2109. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  2110. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0, 1.57, 0) * euler(0, 0, -0.2), 0.3)
  2111. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, -1.57, 0) * euler(0, 0, 0.2), 0.3)
  2112. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  2113. do
  2114. if StaggerHit.Value == true then
  2115. break
  2116. end
  2117. -- DECOMPILER ERROR at PC213: LeaveBlock: unexpected jumping out IF_THEN_STMT
  2118.  
  2119. -- DECOMPILER ERROR at PC213: LeaveBlock: unexpected jumping out IF_STMT
  2120.  
  2121. end
  2122. end
  2123. end
  2124. so("28144425", prt6, 1, 0.7)
  2125. so("92597369", prt6, 1, 0.5)
  2126. hbwld.Parent = nil
  2127. hboxpos.Parent = hitbox
  2128. hitbox.Parent = modelzorz
  2129. hitbox.Size = vt(1, 2, 7)
  2130. hitboxCF = prt6.CFrame * euler(-0.3, 0, 0) * cf(0, 0, -2.2)
  2131. hitbox.CFrame = hitboxCF
  2132. blcf = nil
  2133. scfr = nil
  2134. for i = 0, 1, 0.1 do
  2135. swait()
  2136. handlewld.C0 = clerp(handlewld.C0, euler(0, 0, 0) * cf(0, 1, 0), 0.3)
  2137. wld1.C0 = clerp(wld1.C0, euler(0, 0.8, 0) * cf(0, -2, 0) * euler(1.57, 0, 0), 0.3)
  2138. hitboxCF = prt6.CFrame * euler(-0.3, 0, 0) * cf(0, 0, -2.2)
  2139. hitbox.CFrame = hitboxCF
  2140. MagniDamage(hitbox, 4, 5, 7, math.random(5, 10), "Normal", RootPart, 0.5, 2, (math.random(5, 8)), nil, true)
  2141. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0), 0.4)
  2142. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0.4, 0, 0), 0.4)
  2143. RW.C0 = clerp(RW.C0, cf(1, 0.3, -0.5) * euler(0.5, 0, -0.8), 0.4)
  2144. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  2145. LW.C0 = clerp(LW.C0, cf(-1, 0.3, -0.5) * euler(0.5, 0, 0.8), 0.4)
  2146. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  2147. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0, 1.57, 0) * euler(-0.2, 0, 0.3), 0.4)
  2148. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, -1.57, 0) * euler(-0.2, 0, -0.7), 0.4)
  2149. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  2150. do
  2151. if StaggerHit.Value == true then
  2152. break
  2153. end
  2154. -- DECOMPILER ERROR at PC514: LeaveBlock: unexpected jumping out IF_THEN_STMT
  2155.  
  2156. -- DECOMPILER ERROR at PC514: LeaveBlock: unexpected jumping out IF_STMT
  2157.  
  2158. end
  2159. end
  2160. end
  2161. hitbox.Parent = modelzorz
  2162. hitbox.Size = vt()
  2163. hitboxweld()
  2164. hboxpos.Parent = nil
  2165. attack = false
  2166. end
  2167. Invisibility = function()
  2168. if invisible == false then
  2169. so("324867021", Torso, 1, 1.4)
  2170. MagicWave(BrickColor.new("White"), scarfp2.CFrame * euler(math.rad(180), 0, 0), 1, 1, 1, 0.5, 1.5, 0.5, 0.1)
  2171. MagicWave(BrickColor.new("White"), scarfp2.CFrame * euler(math.rad(180), 0, 0), 1, 1, 1, 1, 0.5, 1, 0.1)
  2172. invisnum.Value = invisnum.Value - 10
  2173. for _,c in pairs(Decrease:children()) do
  2174. if c.Name == "DecreaseMvmt" and c:findFirstChild("Renegade") ~= nil then
  2175. c.Parent = nil
  2176. end
  2177. end
  2178. d = Instance.new("NumberValue", Decrease)
  2179. d.Name = "DecreaseMvmt"
  2180. d.Value = -0.5
  2181. dur = Instance.new("NumberValue", d)
  2182. dur.Name = "Duration"
  2183. dur.Value = 50
  2184. display = "+Movement"
  2185. showDamage(Character, display, "Debuff")
  2186. da = Instance.new("BoolValue", d)
  2187. da.Name = "Renegade"
  2188. DecreaseStat(Character, "Defense", 0.1, 80)
  2189. invisible = true
  2190. isinvis.Value = true
  2191. passive3.Parent = Decrease
  2192. else
  2193. invisible = false
  2194. isinvis.Value = false
  2195. passive3.Parent = nil
  2196. end
  2197. end
  2198.  
  2199. Runes = {"rbxassetid://200326272", "rbxassetid://200326330", "rbxassetid://200326394", "rbxassetid://200326465", "rbxassetid://200326593", "rbxassetid://200326667", "rbxassetid://200326796", "rbxassetid://200326880", "rbxassetid://200327025", "rbxassetid://200327088", "rbxassetid://200327279", "rbxassetid://200327394", "rbxassetid://200327439", "rbxassetid://200327517", "rbxassetid://200327625", "rbxassetid://200327725", "rbxassetid://200327804", "rbxassetid://200327922", "rbxassetid://200327991", "rbxassetid://200328063", "rbxassetid://200328131", "rbxassetid://200328211", "rbxassetid://200328319", "rbxassetid://200328365", "rbxassetid://200328401", "rbxassetid://200328461", "rbxassetid://200328530", "rbxassetid://200328645", "rbxassetid://200328713"}
  2200. ContentProvider = game:GetService("ContentProvider")
  2201. for _,v in pairs(Runes) do
  2202. ContentProvider:Preload(v)
  2203. end
  2204. secrit = function()
  2205. print("git dunked on n00b")
  2206. end
  2207. do1 = function()
  2208. if attack == true then
  2209. return
  2210. end
  2211. if Stagger.Value == true or StunT.Value <= Stun.Value or StaggerHit.Value == true then
  2212. return
  2213. end
  2214. if cooldownmax <= cooldowns[1] and mana.Value >= 0 then
  2215. deb = 0.2
  2216. attack = true
  2217. cooldowns[1] = 100
  2218. mana.Value = mana.Value - 20
  2219. local orb = part(3, modelzorz, 0, 0.5, BrickColor.new(NewCol), "Effect", vt())
  2220. do
  2221. swait()
  2222. local dec = Instance.new("NumberValue", Decrease)
  2223. dec.Name = "DecreaseMvmt"
  2224. dec.Value = 0.2
  2225. for i = 0, 1, 0.2 do
  2226. swait()
  2227. handlewld.C0 = clerp(handlewld.C0, euler(0, 0, 0) * cf(0, 1, 0), 0.3)
  2228. wld1.C0 = clerp(wld1.C0, euler(0, 0, 0) * cf(0, 0, 0) * euler(1.57, 0, 0), 0.3)
  2229. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 1.57) * euler(0, 0, 0), 0.3)
  2230. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.2) * euler(0, 0, -1.57), 0.3)
  2231. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(1, 0, 1) * euler(0, 1.5, 0), 0.3)
  2232. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  2233. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(1.57, 0, -1.57) * euler(0, 0, 0), 0.3)
  2234. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  2235. RH.C0 = clerp(RH.C0, cf(0.5, -1, -0.3) * euler(0, 1.57, 0) * euler(0, 1.57, -0.3), 0.3)
  2236. LH.C0 = clerp(LH.C0, cf(-0.5, -1, 0.3) * euler(0, -1.57, 0) * euler(0, 1.57, 0.1), 0.3)
  2237. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  2238. do
  2239. if StaggerHit.Value == true then
  2240. break
  2241. end
  2242. end
  2243. end
  2244. end
  2245. if Stagger.Value ~= true then --and StunT.Value > Stun.Value then
  2246. if StaggerHit.Value ~= true then
  2247. swait()
  2248. arcorb = true
  2249. orb.Anchored = true
  2250. orb.CFrame = RootPart.CFrame * cf(0, 0.5, -3)
  2251. so("199145761", orb, 3.5, 1)
  2252. do
  2253. local msh = mesh("SpecialMesh", orb, "Sphere", "nil", vt(0, 0, 0), vt(10, 10, 10))
  2254. ogui = Instance.new("BillboardGui")
  2255. ogui.Parent = orb
  2256. ogui.Size = UDim2.new(5, 0, 5, 0)
  2257. oimg = Instance.new("ImageLabel")
  2258. oimg.Parent = ogui
  2259. oimg.BackgroundTransparency = 1
  2260. oimg.Size = UDim2.new(1, 0, 1, 0)
  2261. oimg.Image = Runes[math.random(1, #Runes)]
  2262. oimg.ImageColor3 = BrickColor.new(NewCol).Color
  2263. orbnum = 100
  2264. while arcorb==true do
  2265. if arcorb == true then
  2266. swait()
  2267. end
  2268. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  2269. if StaggerHit.Value == true then
  2270. break
  2271. end
  2272. orb.CFrame = RootPart.CFrame * cf(0, 0.5, -3)
  2273. MagicBlock(BrickColor.new(NewCol), cf(orb.Position) * cf(math.random(-200, 200) / 100, math.random(-200, 200) / 100, math.random(-200, 200) / 100) * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 1, 1, 1, 1, 1, 1, 0.1, 2)
  2274. MagicCircle(BrickColor.new(NewCol), cf(orb.Position), 0, 0, 0, 1, 1, 1, 0.05)
  2275. MagicCircle(BrickColor.new(NewCol), cf(orb.Position) * cf(math.random(-200, 200) / 100, math.random(-200, 200) / 100, math.random(-200, 200) / 100) * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 10, 10, 10, -1, -1, -1, 0.05)
  2276. if orbnum < 0 or MMouse == nil then
  2277. arcorb = false
  2278. end
  2279. swait()
  2280. orbnum = orbnum - 1
  2281. if Stagger.Value == true or StunT.Value <= Stun.Value or StaggerHit.Value == true then
  2282. arcorb = false
  2283. break
  2284. end
  2285. end
  2286. end
  2287. if MMouse.Hit.p ~= nil then
  2288. swait()
  2289. local MainPos = orb.Position
  2290. local MainPos2 = MMouse.Hit.p
  2291. local MouseLook = cf((MainPos + MainPos2) / 2, MainPos2)
  2292. so("200633492", orb, 1, 0.75)
  2293. coroutine.resume(coroutine.create(function(Pos1, Pos2, Look)
  2294. local num = 50
  2295. repeat
  2296. swait()
  2297. local ohit, opos = rayCast(Pos1, Look.lookVector, 5, Character)
  2298. orb.CFrame = CFrame.new((Pos1 + opos) / 2, opos)
  2299. MagniDamage(orb, 15, 5, 8, math.random(5, 10), "Normal", RootPart, 0.5, 2, (math.random(5, 7)), nil, true)
  2300. MagicBlock(BrickColor.new(NewCol), cf(orb.Position) * cf(math.random(-200, 200) / 100, math.random(-200, 200) / 100, math.random(-200, 200) / 100) * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 1, 1, 1, 2.5, 2.5, 2.5, 0.1, 2)
  2301. MagicWave(BrickColor.new("White"), cf(orb.Position) * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) * cf(0, -2, 0), 1, 5, 1, 1.25, 0, 1.25, 0.065, 5)
  2302. MagicCircle(BrickColor.new(NewCol), cf(orb.Position), 10, 10, 10, 5, 5, 5, 0.05)
  2303. Pos1 = Pos1 + Look.lookVector * 10
  2304. orb.CFrame = CFrame.new(orb.Position, MMouse.Hit.p)
  2305. if ohit ~= nil then
  2306. num = 0
  2307. end
  2308. num = num - 1
  2309. until num <= 0
  2310. local ref = part(3, workspace, 0, 1, BrickColor.new("White"), "Effect", vt())
  2311. ref.Anchored = true
  2312. ref.CFrame = cf(orb.Position)
  2313. so("203691653", ref, 10, 0.75)
  2314. so("199146035", ref, 5, 1)
  2315. game:GetService("Debris"):AddItem(ref, 0.5)
  2316. MagicCircle(BrickColor.new(NewCol), cf(ref.Position), 0, 0, 0, 60, 60, 60, 0.065)
  2317. MagicCircle(BrickColor.new(NewCol), cf(ref.Position), 0, 0, 0, 40, 40, 40, 0.065)
  2318. MagicCircle(BrickColor.new(NewCol), cf(ref.Position), 0, 0, 0, 20, 20, 20, 0.025)
  2319. MagicCircle(BrickColor.new(NewCol), cf(ref.Position), 0, 0, 0, 25, 25, 25, 0.065)
  2320. MagicCircle(BrickColor.new(NewCol), cf(ref.Position), 100, 100, 100, -5, -5, -5, 0.065)
  2321. MagniDamage(ref, 25, 10, 17, math.random(5, 10), "Normal", RootPart, 0.5, 2, (math.random(5, 7)), nil, true)
  2322. if isjugg == false then
  2323. end
  2324. orb.Parent = nil
  2325. end
  2326. ), MainPos, MainPos2, MouseLook)
  2327. end
  2328. do
  2329. dec.Parent = nil
  2330. swait()
  2331. attack = false
  2332. end
  2333. end
  2334. end
  2335. end
  2336. end
  2337. end
  2338. end
  2339. do2 = function()
  2340. if attack == true then
  2341. return
  2342. end
  2343. if Stagger.Value == true or StunT.Value <= Stun.Value or StaggerHit.Value == true then
  2344. return
  2345. end
  2346. if cooldownmax <= cooldowns[3] and mana.Value >= 30 then
  2347. attack = true
  2348. cooldowns[3] = 0
  2349. local dec = Instance.new("NumberValue", Decrease)
  2350. dec.Name = "DecreaseMvmt"
  2351. dec.Value = 10
  2352. local dec2 = Instance.new("NumberValue", Decrease)
  2353. dec2.Name = "DecreaseDef"
  2354. dec2.Value = -10
  2355. LW.C0 = clerp(LW.C0, cf(-1, 0.5, -0.5) * euler(2, 0, 1), 0.5)
  2356. for i = 0, 1, 0.1 do
  2357. swait()
  2358. Neck.C0 = clerp(Neck.C0, necko * euler(-0.4, 0, -0.2), 0.4)
  2359. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -1.5) * euler(0.8, 0, 0.5), 0.4)
  2360. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(1.4, 0, 0.5), 0.4)
  2361. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  2362. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.2, 0, -0.4), 0.4)
  2363. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  2364. RH.C0 = clerp(RH.C0, RHC0 * cf(0, 0, 0) * euler(0, -0.5, -0.5), 0.4)
  2365. LH.C0 = clerp(LH.C0, LHC0 * cf(-0.5, 1, 0) * euler(0.5, 0, -0.5), 0.4)
  2366. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  2367. do
  2368. if StaggerHit.Value == true then
  2369. break
  2370. end
  2371. -- DECOMPILER ERROR at PC281: LeaveBlock: unexpected jumping out IF_THEN_STMT
  2372.  
  2373. -- DECOMPILER ERROR at PC281: LeaveBlock: unexpected jumping out IF_STMT
  2374.  
  2375. end
  2376. end
  2377. end
  2378. so("200633077", workspace, 1, 1)
  2379. for i = 1, 50 do
  2380. swait(1)
  2381. CF = RootPart.CFrame * cf(math.random(-100,100), 0, math.random(-100,100))
  2382. ref2 = part(3, workspace, 0, 1, BrickColor.new("White"), "Reference", vt())
  2383. ref2.Anchored = true
  2384. ref2.CFrame = CF
  2385. game:GetService("Debris"):AddItem(ref2, 5)
  2386. so("199146035", ref2, 3, 1.5)
  2387. hitfloor2, posfloor2 = rayCast(ref2.Position, CFrame.new(ref2.Position, ref2.Position - Vector3.new(0, 1, 0)).lookVector, 100, Character)
  2388. if hitfloor2 ~= nil then
  2389. mana.Value = mana.Value - 30
  2390. ref2.CFrame = cf(posfloor2)
  2391. MagicCircle(BrickColor.new("White"), cf(posfloor2), 150, 1, 150, 0, 0, 0, 0.025)
  2392. MagicCircle(BrickColor.new("White"), cf(posfloor2), 150, 1, 150, 5, 0, 5, 0.05)
  2393. MagicCircle(BrickColor.new("White"), cf(posfloor2), 0, 1, 0, 4, 0, 4, 0.0285)
  2394. MagicCircle(BrickColor.new("White"), cf(posfloor2), 0, 0, 0, 40, 40, 40, 0.1)
  2395. for i = 0, 1, 0.05 do
  2396. end
  2397. so("278596476", ref2, 10, 1.5)
  2398. so("278596476", ref2, 10, 1.5)
  2399. so("199146035", ref2, 2.5, 1)
  2400. MagniDamage(ref2, 12, 5, 10, math.random(-50, -30), "Knockdown2", RootPart, 0, 1, (math.random(5, 10)), nil, nil, true)
  2401. MagicBlock(BrickColor.new("White"), cf(posfloor2), 0, 0, 0, 18, 18, 18, 0.05, 1)
  2402. MagicBlock(BrickColor.new("White"), cf(posfloor2), 0, 0, 0, 12, 12, 12, 0.05, 1)
  2403. MagicBlock(BrickColor.new("White"), cf(posfloor2), 0, 0, 0, 6, 6, 6, 0.05, 1)
  2404. MagicBlock(BrickColor.new("White"), cf(posfloor2), 2.5, 0, 2.5, -0.025, 50, -0.025, 0.05, 1)
  2405. MagicBlock(BrickColor.new("White"), cf(posfloor2), 2.5, 0, 2.5, -0.025, 50, -0.025, 0.05, 1)
  2406. MagicBlock(BrickColor.new("White"), cf(posfloor2), 2.5, 0, 2.5, -0.025, 50, -0.025, 0.05, 1)
  2407. MagicBlock(BrickColor.new("White"), cf(posfloor2), 2.5, 0, 2.5, -0.025, 50, -0.025, 0.05, 1)
  2408. MagicCircle(BrickColor.new("White"), cf(posfloor2), 5, 0, 5, -0.125, 9001, -0.125, 0.075)
  2409. end
  2410. swait(1)
  2411. MagicWave(BrickColor.new("White"), cf(RootPart.Position) * euler(0, math.random(-50, 50), 0) * cf(0, -2, 0), 30, 0, 30, -1.5, 1, -1.5, 0.05, 3)
  2412. MagicWave(BrickColor.new("White"), cf(RootPart.Position) * euler(0, math.random(-50, 50), 0) * cf(0, -2, 0), 30, 3, 30, 0.5, -0.05, 0.5, 0.05, 3)
  2413. end
  2414. do
  2415. mana.Value = mana.Value - 30
  2416. passivenum = -30
  2417. dec.Parent = nil
  2418. dec2.Parent = nil
  2419. passive.Value = -1
  2420. MagicCircle(BrickColor.new(NewCol2), cf(Torso.Position), 0, 0, 0, 0, 0, 0, 1)
  2421. MagniDamage(RootPart, 0, 0, 0, math.random(30, 50), "Knockdown2", RootPart, 0, 1, (math.random(4, 8)), nil, nil, false)
  2422. for i = 0, 1, 0.1 do
  2423. swait()
  2424. Neck.C0 = clerp(Neck.C0, necko * euler(-0.4, 0, -0.2), 0.4)
  2425. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -1.5) * euler(0.8, 0, 0.5), 0.4)
  2426. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(1.4, 0, 0.5), 0.4)
  2427. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  2428. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.2, 0, -0.4), 0.4)
  2429. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  2430. RH.C0 = clerp(RH.C0, RHC0 * cf(0, 0, 0) * euler(0, -0.5, -0.5), 0.4)
  2431. LH.C0 = clerp(LH.C0, LHC0 * cf(-0.5, 1, 0) * euler(0.5, 0, -0.5), 0.4)
  2432. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  2433. do
  2434. if StaggerHit.Value == true then
  2435. break
  2436. end
  2437. -- DECOMPILER ERROR at PC648: LeaveBlock: unexpected jumping out IF_THEN_STMT
  2438.  
  2439. -- DECOMPILER ERROR at PC648: LeaveBlock: unexpected jumping out IF_STMT
  2440.  
  2441. end
  2442. end
  2443. end
  2444. dec.Parent = nil
  2445. dec2.Parent = nil
  2446. attack = false
  2447. end
  2448. end
  2449. end
  2450. do3 = function()
  2451. if attack == true then
  2452. return
  2453. end
  2454. if Stagger.Value == true or StunT.Value <= Stun.Value or StaggerHit.Value == true then
  2455. return
  2456. end
  2457. if cooldownmax <= cooldowns[3] and mana.Value >= 30 then
  2458. attack = true
  2459. cooldowns[3] = 0
  2460. local doinvisatk = false
  2461. for i = 0, 1, 0.1 do
  2462. swait()
  2463. handlewld.C0 = clerp(handlewld.C0, euler(0, 0, 0) * cf(0, 1, 0), 0.3)
  2464. wld1.C0 = clerp(wld1.C0, euler(0, 0.8, 0) * cf(0, -2, 0) * euler(1.57, 0, 0), 0.3)
  2465. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0), 0.3)
  2466. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(-0.2, 0, 0), 0.3)
  2467. RW.C0 = clerp(RW.C0, cf(1, 1.2, 0) * euler(3.6, 0, -0.8), 0.3)
  2468. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  2469. LW.C0 = clerp(LW.C0, cf(-1, 1.2, 0) * euler(3.6, 0, 0.8), 0.3)
  2470. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  2471. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0, 1.57, 0) * euler(0, 0, -0.2), 0.3)
  2472. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, -1.57, 0) * euler(0, 0, 0.2), 0.3)
  2473. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  2474. do
  2475. if StaggerHit.Value == true then
  2476. break
  2477. end
  2478. end
  2479. end
  2480. end
  2481. so("92597369", prt6, 0, 0)
  2482. blcf = nil
  2483. scfr = nil
  2484. for i = 0, 1, 0.1 do
  2485. swait()
  2486. handlewld.C0 = clerp(handlewld.C0, euler(0, 0, 0) * cf(0, 1, 0), 0.3)
  2487. wld1.C0 = clerp(wld1.C0, euler(0, 0.8, 0) * cf(0, -2, 0) * euler(1.57, 0, 0), 0.3)
  2488. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0), 0.4)
  2489. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0.4, 0, 0), 0.4)
  2490. RW.C0 = clerp(RW.C0, cf(1, 0.3, -0.5) * euler(0.5, 0, -0.8), 0.4)
  2491. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  2492. LW.C0 = clerp(LW.C0, cf(-1, 0.3, -0.5) * euler(0.5, 0, 0.8), 0.4)
  2493. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  2494. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0, 1.57, 0) * euler(-0.2, 0, 0.3), 0.4)
  2495. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, -1.57, 0) * euler(-0.2, 0, -0.7), 0.4)
  2496. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  2497. do
  2498. if StaggerHit.Value == true then
  2499. break
  2500. end
  2501. end
  2502. end
  2503. end
  2504. attack = false
  2505. CF = RootPart.CFrame * cf(0, 0, -75)
  2506. ref2 = part(3, workspace, 0, 1, BrickColor.new("White"), "Reference", vt())
  2507. ref2.Anchored = true
  2508. ref2.CFrame = CF
  2509. game:GetService("Debris"):AddItem(ref2, 5)
  2510. so("199145761", ref2, 1, 0.75)
  2511. so("199146035", ref2, 3, 0.75)
  2512. hitfloor2, posfloor2 = rayCast(ref2.Position, CFrame.new(ref2.Position, ref2.Position - Vector3.new(0, 1, 0)).lookVector, 100, Character)
  2513. if hitfloor2 ~= nil then
  2514. mana.Value = mana.Value - 30
  2515. ref2.CFrame = cf(posfloor2)
  2516. MagicCircle(BrickColor.new("White"), cf(posfloor2), 400, 400, 400, 0, 0, 0, 0.01)
  2517. MagicCircle(BrickColor.new("White"), cf(posfloor2), 0, 0, 0, 4.5, 4.5, 4.5, 0.0125)
  2518. MagicCircle(BrickColor.new("White"), cf(posfloor2), 400, 400, 400, 10, 10, 10, 0.075)
  2519. for i = 0, 1, 0.05 do
  2520. swait(4)
  2521. MagicBlock(BrickColor.new("White"), cf(posfloor2) * cf(math.random(-2000, 2000) / 100, math.random(-2000, 2000) / 100, math.random(-2000, 2000) / 100), 15, 15, 15, 1, 1, 1, 0.1, 1)
  2522. end
  2523. so("203691653", ref2, 5, 0.75)
  2524. so("203691653", ref2, 5, 1)
  2525. so("199146035", ref2, 10, 0.75)
  2526. MagniDamage(ref2, 125, 7, 21, math.random(-50, -30), "Knockdown2", RootPart, 0, 1, (math.random(5, 10)), nil, nil, true)
  2527. MagicBlock(BrickColor.new("White"), cf(posfloor2), 0, 0, 0, 100, 100, 100, 0.05, 1)
  2528. MagicBlock(BrickColor.new("White"), cf(posfloor2), 0, 0, 0, 75, 75, 75, 0.05, 1)
  2529. MagicBlock(BrickColor.new("White"), cf(posfloor2), 0, 0, 0, 50, 50, 50, 0.05, 1)
  2530. MagicCircle(BrickColor.new("White"), cf(posfloor2), 400, 400, 400, 50, 50, 50, 0.05)
  2531. MagicCircle(BrickColor.new("White"), cf(posfloor2), 0, 0, 0, 0.5, 9001, 0.5, 0.01)
  2532. MagicCircle(BrickColor.new("White"), cf(posfloor2), 0, 0, 0, 1, 9001, 1, 0.01)
  2533. end
  2534. end
  2535. end
  2536. do4 = function()
  2537. if attack == true then
  2538. return
  2539. end
  2540. if Stagger.Value == true or StunT.Value <= Stun.Value or StaggerHit.Value == true then
  2541. return
  2542. end
  2543. if cooldownmax <= cooldowns[3] and mana.Value >= 30 then
  2544. attack = true
  2545. cooldowns[3] = 0
  2546. local dec = Instance.new("NumberValue", Decrease)
  2547. dec.Name = "DecreaseMvmt"
  2548. dec.Value = 10
  2549. local dec2 = Instance.new("NumberValue", Decrease)
  2550. dec2.Name = "DecreaseDef"
  2551. dec2.Value = -10
  2552. LW.C0 = clerp(LW.C0, cf(-1, 0.5, -0.5) * euler(2, 0, 1), 0.5)
  2553. for i = 0, 1, 0.1 do
  2554. swait()
  2555. Neck.C0 = clerp(Neck.C0, necko * euler(-0.4, 0, -0.2), 0.4)
  2556. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -1.5) * euler(0.8, 0, 0.5), 0.4)
  2557. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(1.4, 0, 0.5), 0.4)
  2558. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  2559. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.2, 0, -0.4), 0.4)
  2560. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  2561. RH.C0 = clerp(RH.C0, RHC0 * cf(0, 0, 0) * euler(0, -0.5, -0.5), 0.4)
  2562. LH.C0 = clerp(LH.C0, LHC0 * cf(-0.5, 1, 0) * euler(0.5, 0, -0.5), 0.4)
  2563. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  2564. do
  2565. if StaggerHit.Value == true then
  2566. break
  2567. end
  2568. -- DECOMPILER ERROR at PC281: LeaveBlock: unexpected jumping out IF_THEN_STMT
  2569.  
  2570. -- DECOMPILER ERROR at PC281: LeaveBlock: unexpected jumping out IF_STMT
  2571.  
  2572. end
  2573. end
  2574. end
  2575. so("315746833", workspace, 2, 0.75)
  2576. for i = 1, 50 do
  2577. swait(1)
  2578. CF = RootPart.CFrame * cf(math.random(-100,100), 0, math.random(-100,100))
  2579. ref2 = part(3, workspace, 0, 1, BrickColor.new("White"), "Reference", vt())
  2580. ref2.Anchored = true
  2581. ref2.CFrame = CF
  2582. game:GetService("Debris"):AddItem(ref2, 5)
  2583. so("199146035", ref2, 3, 1.5)
  2584. hitfloor2, posfloor2 = rayCast(ref2.Position, CFrame.new(ref2.Position, ref2.Position - Vector3.new(0, 1, 0)).lookVector, 100, Character)
  2585. if hitfloor2 ~= nil then
  2586. mana.Value = mana.Value - 30
  2587. ref2.CFrame = cf(posfloor2)
  2588. MagicCircle(BrickColor.new("White"), cf(posfloor2), 50, 1, 50, 0, 0, 0, 0.025)
  2589. MagicCircle(BrickColor.new("White"), cf(posfloor2), 50, 1, 50, 1.25, 0, 1.25, 0.05)
  2590. MagicCircle(BrickColor.new("White"), cf(posfloor2), 0, 1, 0, 1, 0, 1, 0.0285)
  2591. MagicCircle(BrickColor.new("White"), cf(posfloor2), 0, 0, 0, 20, 20, 20, 0.1)
  2592. for i = 0, 1, 0.05 do
  2593. end
  2594. so("199146035", ref2, 5, 1)
  2595. MagniDamage(ref2, 4, 2, 5, math.random(-50, -30), "Knockdown2", RootPart, 0, 1, (math.random(5, 10)), nil, nil, true)
  2596. MagicCircle(BrickColor.new("White"), cf(posfloor2), 0, 0, 0, 9, 9, 9, 0.05)
  2597. MagicCircle(BrickColor.new("White"), cf(posfloor2), 0, 0, 0, 6, 6, 6, 0.05)
  2598. MagicCircle(BrickColor.new("White"), cf(posfloor2), 0, 0, 0, 3, 3, 3, 0.05)
  2599. MagicCircle(BrickColor.new("White"), cf(posfloor2), 5, 0, 5, -0.125, 9001, -0.125, 0.075)
  2600. end
  2601. CF = RootPart.CFrame * cf(math.random(-100,100), 0, math.random(-100,100))
  2602. ref2 = part(3, workspace, 0, 1, BrickColor.new("White"), "Reference", vt())
  2603. ref2.Anchored = true
  2604. ref2.CFrame = CF
  2605. game:GetService("Debris"):AddItem(ref2, 5)
  2606. so("199146035", ref2, 3, 1.5)
  2607. hitfloor2, posfloor2 = rayCast(ref2.Position, CFrame.new(ref2.Position, ref2.Position - Vector3.new(0, 1, 0)).lookVector, 100, Character)
  2608. if hitfloor2 ~= nil then
  2609. mana.Value = mana.Value - 30
  2610. ref2.CFrame = cf(posfloor2)
  2611. MagicCircle(BrickColor.new("White"), cf(posfloor2), 50, 1, 50, 0, 0, 0, 0.025)
  2612. MagicCircle(BrickColor.new("White"), cf(posfloor2), 50, 1, 50, 1.25, 0, 1.25, 0.05)
  2613. MagicCircle(BrickColor.new("White"), cf(posfloor2), 0, 1, 0, 1, 0, 1, 0.0285)
  2614. MagicCircle(BrickColor.new("White"), cf(posfloor2), 0, 0, 0, 20, 20, 20, 0.1)
  2615. for i = 0, 1, 0.05 do
  2616. end
  2617. so("199146035", ref2, 5, 1)
  2618. MagniDamage(ref2, 4, 2, 5, math.random(-50, -30), "Knockdown2", RootPart, 0, 1, (math.random(5, 10)), nil, nil, true)
  2619. MagicCircle(BrickColor.new("White"), cf(posfloor2), 0, 0, 0, 9, 9, 9, 0.05)
  2620. MagicCircle(BrickColor.new("White"), cf(posfloor2), 0, 0, 0, 6, 6, 6, 0.05)
  2621. MagicCircle(BrickColor.new("White"), cf(posfloor2), 0, 0, 0, 3, 3, 3, 0.05)
  2622. MagicCircle(BrickColor.new("White"), cf(posfloor2), 5, 0, 5, -0.125, 9001, -0.125, 0.075)
  2623. end
  2624. swait(1)
  2625. MagicBlock(BrickColor.new(NewCol2), cf(RootPart.Position) * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) * cf(0, -8, 0), 10, 10, 10, -0.75, -0.75, -0.75, 0.05, 3)
  2626. MagicWave(BrickColor.new("White"), 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)
  2627. MagicCircle(BrickColor.new(NewCol2), cf(Torso.Position), 60, 0, 60, -6, 500, -6, 0.075, 3)
  2628. end
  2629. do
  2630. mana.Value = mana.Value - 30
  2631. passivenum = -30
  2632. dec.Parent = nil
  2633. dec2.Parent = nil
  2634. passive.Value = -1
  2635. so("87767777", workspace, 10, 1)
  2636. so("178452221", workspace, 10, 0.6)
  2637. so("87767777", workspace, 10, 0.75)
  2638. MagicWave(BrickColor.new("White"), cf(RootPart.Position) * euler(0, math.random(-50, 50), 0) * cf(0, -2, 0), 1, 4, 1, 10, 4, 10, 0.0075)
  2639. MagicWave(BrickColor.new(NewCol2), cf(RootPart.Position) * euler(0, math.random(-50, 50), 0) * cf(0, -2, 0), 1, 4, 1, 10, 4, 10, 0.025)
  2640. MagicWave(BrickColor.new("White"), cf(RootPart.Position) * euler(0, math.random(-50, 50), 0) * cf(0, -2, 0), 1, 8, 1, 10, 6, 10, 0.0075)
  2641. MagicWave(BrickColor.new(NewCol2), cf(RootPart.Position) * euler(0, math.random(-50, 50), 0) * cf(0, -2, 0), 1, 8, 1, 10, 6, 10, 0.025)
  2642. MagicWave(BrickColor.new("White"), cf(RootPart.Position) * euler(0, math.random(-50, 50), 0) * cf(0, -2, 0), 1, 12, 1, 10, 8, 10, 0.0075)
  2643. MagicWave(BrickColor.new(NewCol2), cf(RootPart.Position) * euler(0, math.random(-50, 50), 0) * cf(0, -2, 0), 1, 12, 1, 10, 8, 10, 0.0075)
  2644. MagicWave(BrickColor.new("White"), cf(RootPart.Position) * euler(0, math.random(-50, 50), 0) * cf(0, -2, 0), 1, 16, 1, 10, 10, 10, 0.0075)
  2645. MagicCircle(BrickColor.new(NewCol2), cf(Torso.Position), 1, 1, 1, 100, 100, 100, 0.02)
  2646. MagicCircle(BrickColor.new("White"), cf(Torso.Position), 1, 1, 1, 105, 105, 105, 0.02)
  2647. MagicCircle(BrickColor.new(NewCol2), cf(Torso.Position), 400, 1, 400, 1, 500, 1, 0.01)
  2648. MagniDamage(RootPart, 125, 4, 6, math.random(30, 50), "Knockdown2", RootPart, 0, 1, (math.random(4, 8)), nil, nil, false)
  2649. for i = 0, 1, 0.1 do
  2650. swait()
  2651. Neck.C0 = clerp(Neck.C0, necko * euler(-0.4, 0, -0.2), 0.4)
  2652. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -1.5) * euler(0.8, 0, 0.5), 0.4)
  2653. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(1.4, 0, 0.5), 0.4)
  2654. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  2655. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.2, 0, -0.4), 0.4)
  2656. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  2657. RH.C0 = clerp(RH.C0, RHC0 * cf(0, 0, 0) * euler(0, -0.5, -0.5), 0.4)
  2658. LH.C0 = clerp(LH.C0, LHC0 * cf(-0.5, 1, 0) * euler(0.5, 0, -0.5), 0.4)
  2659. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  2660. do
  2661. if StaggerHit.Value == true then
  2662. break
  2663. end
  2664. -- DECOMPILER ERROR at PC648: LeaveBlock: unexpected jumping out IF_THEN_STMT
  2665.  
  2666. -- DECOMPILER ERROR at PC648: LeaveBlock: unexpected jumping out IF_STMT
  2667.  
  2668. end
  2669. end
  2670. end
  2671. dec.Parent = nil
  2672. dec2.Parent = nil
  2673. attack = false
  2674. end
  2675. end
  2676. end
  2677. DecreaseStat = function(Model, Stat, Amount, Duration, cangui)
  2678. if Model:findFirstChild("Stats") ~= nil and Model.Stats[Stat] ~= nil then
  2679. Model.Stats[Stat].Value = Model.Stats[Stat].Value - Amount
  2680. d = Instance.new("NumberValue", Model.Stats.Decrease)
  2681. dur = Instance.new("NumberValue", d)
  2682. dur.Name = "Duration"
  2683. dur.Value = Duration
  2684. game:GetService("Debris"):AddItem(d, 20)
  2685. if Stat == "Damage" then
  2686. d.Name = "DecreaseAtk"
  2687. else
  2688. if Stat == "Defense" then
  2689. d.Name = "DecreaseDef"
  2690. else
  2691. if Stat == "Movement" then
  2692. d.Name = "DecreaseMvmt"
  2693. end
  2694. end
  2695. end
  2696. if Model:findFirstChild("Torso") ~= nil then
  2697. display = ""
  2698. if Stat == "Damage" then
  2699. if Amount > 0 then
  2700. display = "-Damage"
  2701. else
  2702. display = "+Damage"
  2703. end
  2704. else
  2705. if Stat == "Defense" then
  2706. if Amount > 0 then
  2707. display = "-Defense"
  2708. else
  2709. display = "+Defense"
  2710. end
  2711. else
  2712. if Stat == "Movement" then
  2713. if Amount > 0 then
  2714. display = "-Movement"
  2715. else
  2716. display = "+Movement"
  2717. end
  2718. end
  2719. end
  2720. end
  2721. if cangui ~= true then
  2722. showDamage(Model, display, "Debuff")
  2723. end
  2724. end
  2725. d.Value = Amount
  2726. end
  2727. end
  2728. GetDist = function(Part1, Part2, magni)
  2729. local targ = Part1.Position - Part2.Position
  2730. local mag = targ.magnitude
  2731. if mag <= magni then
  2732. return true
  2733. else
  2734. return false
  2735. end
  2736. end
  2737. MagniDamage = function(Part, magni, minim, maxim, knockback, Type, Property, Delay, KnockbackType, incstun, stagger, staghit, ranged, DecreaseState, DecreaseAmount, Duration)
  2738. for _,c in pairs(workspace:children()) do
  2739. local hum = c:findFirstChild("Humanoid")
  2740. if hum ~= nil then
  2741. local head = nil
  2742. for _,d in pairs(c:children()) do
  2743. if d.className == "Model" and ranged ~= true then
  2744. head = d:findFirstChild("Hitbox")
  2745. if d.Parent == Character then
  2746. break
  2747. end
  2748. if head ~= nil then
  2749. local targ = head.Position - Part.Position
  2750. local mag = targ.magnitude
  2751. if mag <= magni and c.Name ~= Player.Name then
  2752. ref = part(3, workspace, 0, 1, BrickColor.new("White"), "Reference", vt())
  2753. ref.Anchored = true
  2754. ref.CFrame = cf(head.Position)
  2755. game:GetService("Debris"):AddItem(ref, 1)
  2756. hitnum = math.random(1, 5)
  2757. if hitnum == 1 then
  2758. so("199148971", ref, 1, 1)
  2759. else
  2760. if hitnum == 2 then
  2761. so("199149025", ref, 1, 1)
  2762. else
  2763. if hitnum == 3 then
  2764. so("199149072", ref, 1, 1)
  2765. else
  2766. if hitnum == 4 then
  2767. so("199149109", ref, 1, 1)
  2768. else
  2769. if hitnum == 5 then
  2770. so("199149119", ref, 1, 1)
  2771. end
  2772. end
  2773. end
  2774. end
  2775. end
  2776. StaggerHit.Value = true
  2777. end
  2778. end
  2779. end
  2780. do
  2781. if d.className == "Part" and d.Name=="Torso" then
  2782. head = d
  2783. if head ~= nil then
  2784. local targ = head.Position - Part.Position
  2785. local mag = targ.magnitude
  2786. if mag <= magni and c.Name ~= Player.Name then
  2787. if stun == nil then
  2788. stun = math.random(5, 10)
  2789. end
  2790. local Rang = nil
  2791. if Ranged == false then
  2792. Rang = true
  2793. end
  2794. local stag = nil
  2795. if shbash == true then
  2796. stag = true
  2797. end
  2798. Damagefunc(head, minim, maxim, knockback, Type, Property, Delay, KnockbackType, incstun, stagger, staghit, ranged, DecreaseState, DecreaseAmount, Duration)
  2799. end
  2800. end
  2801. end
  2802. do
  2803. -- DECOMPILER ERROR at PC183: LeaveBlock: unexpected jumping out DO_STMT
  2804.  
  2805. end
  2806. end
  2807. end
  2808. end
  2809. end
  2810. end
  2811. rayCast = function(Pos, Dir, Max, Ignore)
  2812. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  2813. end
  2814. local Point = Torso.CFrame * cf(0, Torso.Size.Y, 0)
  2815. LastPoint = Point
  2816. effect = function(Color, Ref, LP, P1, returnn)
  2817. if LP == nil or P1 == nil then
  2818. return
  2819. end
  2820. local effectsmsh = Instance.new("CylinderMesh")
  2821. effectsmsh.Scale = Vector3.new(0.2, 1, 0.2)
  2822. effectsmsh.Name = "Mesh"
  2823. local effectsg = Instance.new("Part")
  2824. NoOutline(effectsg)
  2825. effectsg.formFactor = 3
  2826. effectsg.CanCollide = false
  2827. effectsg.Name = "Eff"
  2828. effectsg.Locked = true
  2829. effectsg.Anchored = true
  2830. effectsg.Size = Vector3.new(0.5, 1, 0.5)
  2831. effectsg.Parent = workspace
  2832. effectsmsh.Parent = effectsg
  2833. effectsg.BrickColor = BrickColor.new(Color)
  2834. effectsg.Reflectance = Ref
  2835. local point1 = P1
  2836. local mg = (LP.p - point1.p).magnitude
  2837. effectsg.Size = Vector3.new(0.5, mg, 0.5)
  2838. effectsg.CFrame = cf((LP.p + point1.p) / 2, point1.p) * CFrame.Angles(math.rad(90), 0, 0)
  2839. effectsmsh.Scale = Vector3.new(0.2, 1, 0.2)
  2840. game:GetService("Debris"):AddItem(effectsg, 2)
  2841. if returnn then
  2842. return effectsg
  2843. end
  2844. if not returnn then
  2845. table.insert(Effects, {effectsg, "Cylinder", 0.2, 0.01, 0, 0.01, effectsmsh})
  2846. end
  2847. end
  2848. MagicBlock = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type, parent)
  2849. local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt())
  2850. prt.Anchored = true
  2851. prt.CFrame = cframe
  2852. msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
  2853. game:GetService("Debris"):AddItem(prt, 10)
  2854. if Type == 1 or Type == nil then
  2855. table.insert(Effects, {prt, "Block1", delay, x3, y3, z3, msh})
  2856. else
  2857. if Type == 2 then
  2858. table.insert(Effects, {prt, "Block2", delay, x3, y3, z3, msh})
  2859. else
  2860. if Type == 3 then
  2861. 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})
  2862. end
  2863. end
  2864. end
  2865. end
  2866. MagicSkull = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, goe)
  2867. local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt())
  2868. prt.Anchored = true
  2869. prt.CFrame = cframe
  2870. msh = mesh("SpecialMesh", prt, "FileMesh", "4770583", vt(0, 0, 0), vt(x1, y1, z1))
  2871. game:GetService("Debris"):AddItem(prt, 10)
  2872. table.insert(Effects, {prt, "Skull", delay, x3, y3, z3, msh, goe})
  2873. end
  2874. MagicCircle = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  2875. local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt())
  2876. prt.Anchored = true
  2877. prt.CFrame = cframe
  2878. local msh = mesh("SpecialMesh", prt, "Sphere", "nil", vt(0, 0, 0), vt(x1, y1, z1))
  2879. game:GetService("Debris"):AddItem(prt, 10)
  2880. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  2881. end
  2882. MagicCircle2 = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, push)
  2883. local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt())
  2884. prt.Anchored = true
  2885. prt.CFrame = cframe
  2886. local msh = mesh("SpecialMesh", prt, "Sphere", "nil", vt(0, 0, 0), vt(x1, y1, z1))
  2887. game:GetService("Debris"):AddItem(prt, 10)
  2888. table.insert(Effects, {prt, "Blood", delay, x3, y3, z3, msh, push})
  2889. end
  2890. MagicCylinder = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  2891. local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt())
  2892. prt.Anchored = true
  2893. prt.CFrame = cframe
  2894. local msh = mesh("CylinderMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
  2895. game:GetService("Debris"):AddItem(prt, 10)
  2896. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  2897. end
  2898. MagicCylinder2 = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, goe)
  2899. local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt())
  2900. prt.Anchored = true
  2901. prt.CFrame = cframe
  2902. local msh = mesh("CylinderMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
  2903. game:GetService("Debris"):AddItem(prt, 10)
  2904. table.insert(Effects, {prt, "Cylinder2", delay, x3, y3, z3, msh, goe})
  2905. end
  2906. MagicHead = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  2907. local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt())
  2908. prt.Anchored = true
  2909. prt.CFrame = cframe
  2910. local msh = mesh("SpecialMesh", prt, "Head", "nil", vt(0, 0, 0), vt(x1, y1, z1))
  2911. game:GetService("Debris"):AddItem(prt, 10)
  2912. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  2913. end
  2914. ClangEffect = function(brickcolor, cframe, duration, decrease, size, power)
  2915. local prt = part(3, workspace, 0, 1, brickcolor, "Effect", vt())
  2916. prt.Anchored = true
  2917. prt.CFrame = cframe
  2918. local msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(5, 5, 5))
  2919. game:GetService("Debris"):AddItem(prt, 10)
  2920. table.insert(Effects, {prt, "CylinderClang", duration, decrease, size, power, prt.CFrame, nil})
  2921. end
  2922. MagicWave = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  2923. local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt())
  2924. prt.Anchored = true
  2925. prt.CFrame = cframe
  2926. local msh = mesh("SpecialMesh", prt, "FileMesh", "20329976", vt(0, 0, 0), vt(x1, y1, z1))
  2927. game:GetService("Debris"):AddItem(prt, 10)
  2928. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  2929. end
  2930. MagicFire = function(brickcolor, cframe, x1, y1, z1, delay)
  2931. local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt())
  2932. prt.Anchored = true
  2933. prt.CFrame = cframe
  2934. msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
  2935. game:GetService("Debris"):AddItem(prt, 10)
  2936. table.insert(Effects, {prt, "Fire", delay, 1, 1, 1, msh})
  2937. end
  2938. MagicFireWave = function(brickcolor, cframe, x1, y1, z1)
  2939. local prt = part(3, workspace, 0, 1, brickcolor, "Effect", vt())
  2940. prt.Anchored = true
  2941. prt.CFrame = cframe
  2942. msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
  2943. d = Instance.new("Decal")
  2944. d.Parent = prt
  2945. d.Texture = "http://www.roblox.com/asset/?id=26356434"
  2946. d.Face = "Top"
  2947. d = Instance.new("Decal")
  2948. d.Parent = prt
  2949. d.Texture = "http://www.roblox.com/asset/?id=26356434"
  2950. d.Face = "Bottom"
  2951. game:GetService("Debris"):AddItem(prt, 10)
  2952. table.insert(Effects, {prt, "FireWave", 1, 30, math.random(400, 600) / 100, msh})
  2953. end
  2954. ElecEffect = function(cff, x, y, z)
  2955. local prt = part(3, workspace, 0, 0, BrickColor.new("White"), "Part", vt(1, 1, 1))
  2956. prt.Anchored = true
  2957. prt.CFrame = cff * cf(math.random(-x, x), math.random(-y, y), math.random(-z, z))
  2958. prt.CFrame = cf(prt.Position)
  2959. game:GetService("Debris"):AddItem(prt, 10)
  2960. xval = math.random() / 3
  2961. yval = math.random() / 3
  2962. zval = math.random() / 3
  2963. msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(xval, yval, zval))
  2964. Effects[#Effects + 1] = {prt, "Elec", 0.2, x, y, z, xval, yval, zval, msh}
  2965. end
  2966. CloneBody = function()
  2967. for _,v in pairs(Torso.Parent:children()) do
  2968. if v.className == "Part" and v.Name ~= "HumanoidRootPart" then
  2969. local c = part(3, workspace, 0, 0.5, BrickColor.new("White"), "Effect", v.Size)
  2970. c.Anchored = true
  2971. c.CFrame = v.CFrame
  2972. game:GetService("Debris"):AddItem(c, 5)
  2973. if v.Name == "Head" then
  2974. cmsh = mesh("SpecialMesh", c, "Head", "nil", vt(0, 0, 0), v.Mesh.Scale)
  2975. end
  2976. table.insert(Effects, {c, "Disappear", 0.05})
  2977. end
  2978. end
  2979. end
  2980. Clone = function(duration)
  2981. for _,v in pairs(Torso.Parent:children()) do
  2982. if v.className == "Part" and v.Name ~= "HumanoidRootPart" then
  2983. local c = part(3, workspace, 0, 0, BrickColor.new("White"), "Effect", v.Size)
  2984. c.Anchored = true
  2985. c.CFrame = v.CFrame
  2986. game:GetService("Debris"):AddItem(c, 5)
  2987. if v.Name == "Head" then
  2988. cmsh = mesh("SpecialMesh", c, "Head", "nil", vt(0, 0, 0), v.Mesh.Scale)
  2989. end
  2990. table.insert(Effects, {c, "Disappear", duration})
  2991. else
  2992. do
  2993. do
  2994. if v.className == "Hat" then
  2995. n = v.Handle:clone()
  2996. n:BreakJoints()
  2997. n.archivable = true
  2998. n.Anchored = true
  2999. n.CanCollide = false
  3000. n.Name = "Effect"
  3001. n.BrickColor = BrickColor.new("White")
  3002. n.Parent = workspace
  3003. n.CFrame = v.Handle.CFrame
  3004. n.Transparency = 1
  3005. n:BreakJoints()
  3006. table.insert(Effects, {n, "Disappear", duration})
  3007. end
  3008. -- DECOMPILER ERROR at PC108: LeaveBlock: unexpected jumping out DO_STMT
  3009.  
  3010. -- DECOMPILER ERROR at PC108: LeaveBlock: unexpected jumping out IF_ELSE_STMT
  3011.  
  3012. -- DECOMPILER ERROR at PC108: LeaveBlock: unexpected jumping out IF_STMT
  3013.  
  3014. end
  3015. end
  3016. end
  3017. end
  3018. for _,v in pairs(modelzorz:children()) do
  3019. if v.className == "Part" and v.Name ~= "Hitbox" and v.Name ~= "Hitbox2" then
  3020. n = v:clone()
  3021. for _,b in pairs(n:children()) do
  3022. if b.className == "Motor" then
  3023. b.Parent = nil
  3024. end
  3025. end
  3026. n.archivable = true
  3027. n.Anchored = true
  3028. n.CanCollide = false
  3029. n.Name = "Effect"
  3030. n.BrickColor = BrickColor.new("White")
  3031. n.Parent = workspace
  3032. n.CFrame = v.CFrame
  3033. n.Transparency = 0
  3034. n:BreakJoints()
  3035. table.insert(Effects, {n, "Disappear", duration})
  3036. end
  3037. end
  3038. end
  3039. Cloak = function()
  3040. so("697784157", Torso, 1, 1)
  3041. Face.Parent = nil
  3042. Clone(0.02)
  3043. for _,v in pairs(Torso.Parent:children()) do
  3044. do
  3045. if v.className == "Part" and v.Name ~= "HumanoidRootPart" then
  3046. coroutine.resume(coroutine.create(function()
  3047. for i = 0, 1, 0.1 do
  3048. wait()
  3049. v.Transparency = v.Transparency + 0.1
  3050. end
  3051. v.Transparency = 1
  3052. end))
  3053. end
  3054. if v.className == "Hat" then
  3055. do
  3056. hatp = v.Handle
  3057. coroutine.resume(coroutine.create(function(derp)
  3058. for i = 0, 1, 0.1 do
  3059. wait()
  3060. derp.Transparency = derp.Transparency + 0.1
  3061. end
  3062. derp.Transparency = 1
  3063. end), hatp)
  3064. -- DECOMPILER ERROR at PC45: LeaveBlock: unexpected jumping out IF_THEN_STMT
  3065.  
  3066. -- DECOMPILER ERROR at PC45: LeaveBlock: unexpected jumping out IF_STMT
  3067.  
  3068. end
  3069. end
  3070. end
  3071. end
  3072. for _,v in pairs(modelzorz:children()) do
  3073. if v.className == "Part" and v.Name ~= "Hitbox" and v.Name ~= "Hitbox2" then
  3074. coroutine.resume(coroutine.create(function()
  3075. for i = 0, 1, 0.1 do
  3076. wait()
  3077. v.Transparency = v.Transparency + 0.1
  3078. end
  3079. v.Transparency = 1
  3080. end))
  3081. end
  3082. end
  3083. end
  3084. UnCloak = function()
  3085. so("697784157", Torso, 1, 1.1)
  3086. Face.Parent = Head
  3087. for _,v in pairs(Torso.Parent:children()) do
  3088. do
  3089. if v.className == "Part" and v.Name ~= "HumanoidRootPart" then
  3090. coroutine.resume(coroutine.create(function()
  3091. for i = 0, 1, 0.1 do
  3092. wait()
  3093. v.Transparency = v.Transparency - 0.1
  3094. end
  3095. v.Transparency = 0
  3096. end))
  3097. end
  3098. if v.className == "Hat" then
  3099. do
  3100. hatp = v.Handle
  3101. coroutine.resume(coroutine.create(function(derp)
  3102. for i = 0, 1, 0.1 do
  3103. wait()
  3104. derp.Transparency = derp.Transparency - 0.1
  3105. end
  3106. derp.Transparency = 1
  3107. end), hatp)
  3108. -- DECOMPILER ERROR at PC43: LeaveBlock: unexpected jumping out IF_THEN_STMT
  3109.  
  3110. -- DECOMPILER ERROR at PC43: LeaveBlock: unexpected jumping out IF_STMT
  3111.  
  3112. end
  3113. end
  3114. end
  3115. end
  3116. for _,v in pairs(modelzorz:children()) do
  3117. if v.className == "Part" and v.Name ~= "Hitbox" and v.Name ~= "Hitbox2" then
  3118. coroutine.resume(coroutine.create(function()
  3119. for i = 0, 1, 0.1 do
  3120. wait()
  3121. v.Transparency = v.Transparency - 0.1
  3122. end
  3123. for i = 0, 1, 0.3 do
  3124. wait()
  3125. v.Transparency = 0
  3126. end
  3127. end))
  3128. end
  3129. end
  3130. end
  3131. Damagefunc = function(hit, minim, maxim, knockback, Type, Property, Delay, KnockbackType, incstun, stagger, staghit, ranged, DecreaseState, DecreaseAmount, Duration)
  3132. if hit.Parent == nil then
  3133. return
  3134. end
  3135. if hit.Name == "Hitbox" and hit.Parent ~= modelzorz and ranged ~= true then
  3136. ref = part(3, workspace, 0, 1, BrickColor.new("White"), "Reference", vt())
  3137. ref.Anchored = true
  3138. ref.CFrame = cf(hit.Position)
  3139. game:GetService("Debris"):AddItem(ref, 1)
  3140. hitnum = math.random(1, 5)
  3141. if hitnum == 1 then
  3142. so("199148971", ref, 1, 1)
  3143. else
  3144. if hitnum == 2 then
  3145. so("199149025", ref, 1, 1)
  3146. else
  3147. if hitnum == 3 then
  3148. so("199149072", ref, 1, 1)
  3149. else
  3150. if hitnum == 4 then
  3151. so("199149109", ref, 1, 1)
  3152. else
  3153. if hitnum == 5 then
  3154. so("199149119", ref, 1, 1)
  3155. end
  3156. end
  3157. end
  3158. end
  3159. end
  3160. StaggerHit.Value = true
  3161. end
  3162. h = hit.Parent:FindFirstChild("Humanoid")
  3163. if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
  3164. if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then
  3165. return
  3166. end
  3167. if Player.Neutral == false then
  3168. if hit.Parent:findFirstChild("Alignment") ~= nil and hit.Parent.Alignment.Value == Player.TeamColor.Color then
  3169. return
  3170. end
  3171. if game.Players:GetPlayerFromCharacter(hit.Parent) ~= nil and game.Players:GetPlayerFromCharacter(hit.Parent).TeamColor == Player.TeamColor then
  3172. return
  3173. end
  3174. end
  3175. c = Instance.new("ObjectValue")
  3176. c.Name = "creator"
  3177. c.Value = game:service("Players").LocalPlayer
  3178. c.Parent = h
  3179. RecentEnemy.Value = hit.Parent
  3180. game:GetService("Debris"):AddItem(c, 0.5)
  3181. if doing4 == false then
  3182. minim = minim * Atk.Value
  3183. maxim = maxim * Atk.Value
  3184. end
  3185. Damage = 0
  3186. if minim == maxim then
  3187. Damage = maxim
  3188. else
  3189. Damage = math.random(minim, maxim)
  3190. end
  3191. blocked = false
  3192. enblock = nil
  3193. Stats = hit.Parent:findFirstChild("Stats")
  3194. if Stats == nil then
  3195. Character.Stats:Clone().Parent=hit.Parent
  3196. end
  3197. if Stats ~= nil then
  3198. Stats.Defense.Value=1
  3199. invis = Stats:findFirstChild("Invisibility")
  3200. if (ranged == false or ranged == nil) and invis ~= nil then
  3201. invis.Value = 0
  3202. end
  3203. enblock = Stats:findFirstChild("Block")
  3204. if enblock ~= nil and enblock.Value == true then
  3205. blocked = true
  3206. end
  3207. if Stats:findFirstChild("Defense") ~= nil then
  3208. if doing2 ~= true and doing4 ~= true then
  3209. local divide = Stats.Defense.Value
  3210. Damage = Damage / divide
  3211. end
  3212. do
  3213. Damage = Damage
  3214. if Damage <= 3 and (ranged == false or ranged == nil) and blocked ~= true then
  3215. hitnum = math.random(1, 5)
  3216. if hitnum == 1 then
  3217. so("199149321", hit, 1, 1)
  3218. else
  3219. if hitnum == 2 then
  3220. so("199149338", hit, 1, 1)
  3221. else
  3222. if hitnum == 3 then
  3223. so("199149367", hit, 1, 1)
  3224. else
  3225. if hitnum == 4 then
  3226. so("199149409", hit, 1, 1)
  3227. else
  3228. if hitnum == 5 then
  3229. so("199149452", hit, 1, 1)
  3230. end
  3231. end
  3232. end
  3233. end
  3234. end
  3235. else
  3236. if ranged == false or ranged == nil and blocked ~= true then
  3237. hitnum = math.random(1, 6)
  3238. if hitnum == 1 then
  3239. so("199149137", hit, 1, 1)
  3240. else
  3241. if hitnum == 2 then
  3242. so("199149186", hit, 1, 1)
  3243. else
  3244. if hitnum == 3 then
  3245. so("199149221", hit, 1, 1)
  3246. else
  3247. if hitnum == 4 then
  3248. so("199149235", hit, 1, 1)
  3249. else
  3250. if hitnum == 5 then
  3251. so("199149269", hit, 1, 1)
  3252. else
  3253. if hitnum == 6 then
  3254. so("199149297", hit, 1, 1)
  3255. end
  3256. end
  3257. end
  3258. end
  3259. end
  3260. end
  3261. end
  3262. end
  3263. if Damage <= 3 and staghit == true and ranged ~= true then
  3264. StaggerHit.Value = true
  3265. end
  3266. if Stats:findFirstChild("Stun") ~= nil then
  3267. if blocked == true then
  3268. incstun = incstun / 2
  3269. end
  3270. if Stats.Stun.Value < Stats.StunThreshold.Value then
  3271. Stats.Stun.Value = Stats.Stun.Value + incstun
  3272. end
  3273. end
  3274. if Stats:findFirstChild("Stagger") ~= nil and stagger == true then
  3275. Stats.Stagger.Value = true
  3276. end
  3277. if blocked == true then
  3278. showDamage(hit.Parent, "Block", "Damage")
  3279. if ranged ~= true then
  3280. enblock.Value = false
  3281. Stagger.Value = true
  3282. hitnum = math.random(1, 2)
  3283. if hitnum == 1 then
  3284. so("199148933", hit, 1, 1)
  3285. else
  3286. if hitnum == 2 then
  3287. so("199148947", hit, 1, 1)
  3288. end
  3289. end
  3290. end
  3291. else
  3292. Damage = math.floor(Damage)
  3293. if hit.Parent:findFirstChild("Mark") == nil then
  3294. d = it("BoolValue", hit.Parent)
  3295. d.Name = "Mark"
  3296. b = it("NumberValue", d)
  3297. b.Name = "MarkTime"
  3298. b.Value = 200
  3299. v = it("NumberValue", d)
  3300. v.Name = "MarkValue"
  3301. v.Value = 0
  3302. if doing4 == true then
  3303. v.Value = 10
  3304. end
  3305. sz = it("NumberValue", d)
  3306. sz.Name = "MarkSize"
  3307. sz.Value = 5
  3308. st = it("StringValue", d)
  3309. st.Name = "MarkType"
  3310. st.Value = "Adjudicator"
  3311. local tehpart = hit.Parent:findFirstChild("HumanoidRootPart")
  3312. if tehpart == nil then
  3313. tehpart = hit.Parent:findFirstChild("Torso")
  3314. end
  3315. if hit.Parent.Name == "Neflhelm" then
  3316. tehpart = hit
  3317. end
  3318. if tehpart ~= nil then
  3319. markgui = it("BillboardGui", tehpart)
  3320. markgui.Name = "Mark Gui"
  3321. markgui.Size = UDim2.new(7, 0, 7, 0)
  3322. markgui.StudsOffset = vt(0, 10, 0)
  3323. markgui.AlwaysOnTop = true
  3324. markscy = it("ImageLabel", markgui)
  3325. markscy.Name = "Scythe"
  3326. markscy.BackgroundTransparency = 1
  3327. markscy.Image = "rbxassetid://278007861"
  3328. markscy.ImageColor3 = Color3.new(1, 0, 0)
  3329. markscy.Size = UDim2.new(1, 0, 1, 0)
  3330. table.insert(MarkedGUI, {markgui, markscy})
  3331. end
  3332. table.insert(Marked, {d, b, v, sz})
  3333. else
  3334. mark = hit.Parent:findFirstChild("Mark")
  3335. if mark:findFirstChild("MarkTime") ~= nil then
  3336. mark.MarkTime.Value = 700
  3337. end
  3338. if mark:findFirstChild("MarkValue") ~= nil then
  3339. if mark.MarkValue.Value >= 10 then
  3340. if mark:findFirstChild("MarkTime") ~= nil then
  3341. mark.MarkTime.Value = 400
  3342. end
  3343. if mark.MarkType.Value == "Classic" then
  3344. mark.Parent = nil
  3345. Damage = Damage * 2
  3346. print("double damage")
  3347. if hit.Parent:findFirstChild("HumanoidRootPart") ~= nil then
  3348. ref = part(3, workspace, 0, 1, BrickColor.new("White"), "Reference", vt())
  3349. ref.Anchored = true
  3350. ref.CFrame = hit.Parent.HumanoidRootPart.CFrame
  3351. game:GetService("Debris"):AddItem(ref, 5)
  3352. local nr = NumberRange.new
  3353. local ns = NumberSequence.new
  3354. local cs = ColorSequence.new
  3355. local parti = it("ParticleEmitter")
  3356. parti.Color = cs(NewCol, Color3.new(0, 0, 0))
  3357. parti.LightEmission = 0
  3358. parti.Size = ns(10)
  3359. parti.Texture = "http://www.roblox.com/asset/?id=243660364"
  3360. transseq = ns({NumberSequenceKeypoint.new(0, 0), NumberSequenceKeypoint.new(1, 1)})
  3361. parti.Transparency = transseq
  3362. parti.ZOffset = 1
  3363. parti.Acceleration = vt(0, 0, 0)
  3364. parti.Lifetime = nr(1)
  3365. parti.Rate = 20
  3366. parti.Rotation = nr(0, 360)
  3367. parti.Speed = nr(0)
  3368. parti.VelocitySpread = 0
  3369. parti.Parent = ref
  3370. parti.Enabled = true
  3371. table.insert(Effects, {parti, "PartiEmi", 20})
  3372. markscy = it("ImageLabel", markgui)
  3373. markscy.Name = "Scythe"
  3374. markscy.BackgroundTransparency = 1
  3375. markscy.Image = "rbxassetid://258927926"
  3376. markscy.ImageColor3 = Color3.new(1, 0, 0)
  3377. markscy.Size = UDim2.new(1, 0, 1, 0)
  3378. table.insert(Effects, {markgui, "AdjuEff", 10, markscy})
  3379. end
  3380. elseif mark.MarkType.Value == "Adjudicator" and hit.Parent:findFirstChild("HumanoidRootPart") ~= nil then
  3381. da = math.random(1, 4)
  3382. inc = 1
  3383. if doing2 == true then
  3384. inc = 2
  3385. end
  3386. if da == 1 then
  3387. DecreaseStat(Character, "Damage", -math.random(6, 10) / 100 * inc, 150, true)
  3388. DecreaseStat(Character, "Movement", -math.random(2, 6) / 100 * inc, 200, true)
  3389. else
  3390. if da == 2 then
  3391. DecreaseStat(Character, "Defense", -math.random(2, 6) / 100 * inc, 150, true)
  3392. DecreaseStat(Character, "Movement", -math.random(2, 6) / 100 * inc, 200, true)
  3393. else
  3394. if da == 3 then
  3395. DecreaseStat(hit.Parent, "Damage", math.random(6, 10) / 100 * inc, 150, true)
  3396. DecreaseStat(hit.Parent, "Movement", math.random(1, 3) / 100 * inc, 200, true)
  3397. else
  3398. if da == 4 then
  3399. DecreaseStat(hit.Parent, "Defense", math.random(2, 6) / 100 * inc, 150, true)
  3400. DecreaseStat(hit.Parent, "Movement", math.random(1, 3) / 100 * inc, 200, true)
  3401. end
  3402. end
  3403. end
  3404. end
  3405. ref = part(3, workspace, 0, 1, BrickColor.new("White"), "Reference", vt())
  3406. ref.Anchored = true
  3407. ref.CFrame = hit.Parent.HumanoidRootPart.CFrame
  3408. game:GetService("Debris"):AddItem(ref, 5)
  3409. markgui = it("BillboardGui", ref)
  3410. markgui.Name = "Mark Gui"
  3411. markgui.Size = UDim2.new(7, 0, 7, 0)
  3412. markgui.StudsOffset = vt(0, 10, 0)
  3413. markgui.AlwaysOnTop = true
  3414. markscy = it("ImageLabel", markgui)
  3415. markscy.Name = "Scythe"
  3416. markscy.BackgroundTransparency = 1
  3417. markscy.Image = "rbxassetid://278007453"
  3418. markscy.ImageColor3 = Color3.new(1, 0, 0)
  3419. markscy.Size = UDim2.new(1, 0, 1, 0)
  3420. table.insert(Effects, {markgui, "AdjuEff", 10, markscy})
  3421. end
  3422. elseif --[[mark.MarkType.Value ~= "Thanatos" or --]]doing4 == true then
  3423. mark.MarkValue.Value = 10
  3424. else
  3425. mark.MarkValue.Value = mark.MarkValue.Value + 1
  3426. end
  3427. end
  3428. if mark:findFirstChild("MarkSize") ~= nil then
  3429. mark.MarkSize.Value = 5
  3430. end
  3431. coroutine.resume(coroutine.create(function(Hum, Dam)
  3432. hit.Parent.Humanoid:TakeDamage(Damage)
  3433. end), h, Damage)
  3434. pursuitnum = 0
  3435. if isinvis.Value == false then
  3436. invisnum.Value = math.floor(invisnum.Value + math.random(4, 8) + Damage / 5)
  3437. end
  3438. showDamage(hit.Parent, Damage, "Damage")
  3439. if DecreaseState ~= nil then
  3440. DecreaseStat(hit.Parent, DecreaseState, DecreaseAmount, Duration)
  3441. end
  3442. if Type == "NormalDecreaseMvmt1" then
  3443. DecreaseStat(hit.Parent, "Movement", 0.1, 200)
  3444. end
  3445. if Type == "Knockdown" then
  3446. hum = hit.Parent.Humanoid
  3447. hum.PlatformStand = true
  3448. coroutine.resume(coroutine.create(function(HHumanoid)
  3449. swait(1)
  3450. HHumanoid.PlatformStand = false
  3451. end), hum)
  3452. local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit
  3453. local bodvol = Instance.new("BodyVelocity")
  3454. bodvol.velocity = angle * knockback
  3455. bodvol.P = 500
  3456. bodvol.maxForce = Vector3.new(2000, 2000, 2000)
  3457. bodvol.Parent = hit
  3458. rl = Instance.new("BodyAngularVelocity")
  3459. rl.P = 3000
  3460. rl.maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000
  3461. rl.angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10))
  3462. rl.Parent = hit
  3463. game:GetService("Debris"):AddItem(bodvol, 0.5)
  3464. game:GetService("Debris"):AddItem(rl, 0.5)
  3465. else
  3466. do
  3467. if Type == "Knockdown2" then
  3468. hum = hit.Parent.Humanoid
  3469. local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit
  3470. local bodvol = Instance.new("BodyVelocity")
  3471. bodvol.velocity = angle * knockback
  3472. bodvol.P = 500
  3473. bodvol.maxForce = Vector3.new(2000, 2000, 2000)
  3474. bodvol.Parent = hit
  3475. game:GetService("Debris"):AddItem(bodvol, 0.5)
  3476. else
  3477. do
  3478. if Type == "Normal" or Type == "NormalDecreaseMvmt1" then
  3479. vp = Instance.new("BodyVelocity")
  3480. vp.P = 500
  3481. vp.maxForce = Vector3.new(math.huge, 0, math.huge)
  3482. if KnockbackType == 1 then
  3483. vp.velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05
  3484. else
  3485. if KnockbackType == 2 then
  3486. vp.velocity = Property.CFrame.lookVector * knockback
  3487. end
  3488. end
  3489. game:GetService("Debris"):AddItem(vp, 0.5)
  3490. if knockback > 0 then
  3491. vp.Parent = hit.Parent.Torso
  3492. end
  3493. end
  3494. debounce = Instance.new("BoolValue")
  3495. debounce.Name = "DebounceHit"
  3496. debounce.Parent = hit.Parent
  3497. debounce.Value = true
  3498. game:GetService("Debris"):AddItem(debounce, Delay)
  3499. c = Instance.new("ObjectValue")
  3500. c.Name = "creator"
  3501. c.Value = Player
  3502. c.Parent = h
  3503. game:GetService("Debris"):AddItem(c, 0.5)
  3504. CRIT = false
  3505. end
  3506. end
  3507. end
  3508. end
  3509. end
  3510. end
  3511. end
  3512. end
  3513. end
  3514. end
  3515. end
  3516. -- end
  3517. --end
  3518. --end
  3519. --end
  3520. --end
  3521. showDamage = function(Char, Dealt, Type)
  3522. m = Instance.new("Model")
  3523. m.Name = "Effect"
  3524. c = Instance.new("Part")
  3525. c.Transparency = 1
  3526. c.Name = "Head"
  3527. c.TopSurface = 0
  3528. c.BottomSurface = 0
  3529. c.formFactor = "Plate"
  3530. c.Size = Vector3.new(1, 0.4, 1)
  3531. b = Instance.new("BillboardGui", c)
  3532. b.Size = UDim2.new(5, 0, 5, 0)
  3533. b.AlwaysOnTop = true
  3534. damgui = gui("TextLabel", b, tostring(Dealt), 1, Color3.new(0, 0, 0), UDim2.new(0, 0, 0, 0), UDim2.new(1, 0, 1, 0))
  3535. if Type == "Damage" then
  3536. damgui.Font = "SciFi"
  3537. if Dealt == "Block" then
  3538. damgui.TextColor3 = BrickColor.new("White").Color
  3539. else
  3540. if Dealt < 3 then
  3541. damgui.TextColor3 = BrickColor.new("White").Color
  3542. else
  3543. if Dealt >= 3 and Dealt < 20 then
  3544. damgui.TextColor3 = BrickColor.new("White").Color
  3545. else
  3546. damgui.TextColor3 = BrickColor.new("White").Color
  3547. damgui.Font = "SciFi"
  3548. end
  3549. end
  3550. end
  3551. else
  3552. if Type == "Debuff" then
  3553. damgui.TextColor3 = BrickColor.new("White").Color
  3554. else
  3555. if Type == "Interrupt" then
  3556. damgui.TextColor3 = BrickColor.new("New Yeller").Color
  3557. end
  3558. end
  3559. end
  3560. damgui.TextScaled = true
  3561. ms = Instance.new("CylinderMesh")
  3562. ms.Scale = Vector3.new(0.8, 0.8, 0.8)
  3563. ms.Parent = c
  3564. c.Reflectance = 0
  3565. Instance.new("BodyGyro").Parent = c
  3566. c.Parent = m
  3567. if Char:findFirstChild("Head") ~= nil then
  3568. c.CFrame = cf(Char.Head.CFrame.p + Vector3.new(math.random(-100, 100) / 100, 3, math.random(-100, 100) / 100))
  3569. else
  3570. if Char.Parent:findFirstChild("Head") ~= nil then
  3571. c.CFrame = cf(Char.Parent.Head.CFrame.p + Vector3.new(math.random(-100, 100) / 100, 3, math.random(-100, 100) / 100))
  3572. end
  3573. end
  3574. f = Instance.new("BodyPosition")
  3575. f.P = 2000
  3576. f.D = 100
  3577. f.maxForce = Vector3.new(545000, 545000, 545000)
  3578. if Type == "Damage" then
  3579. f.position = c.Position + Vector3.new(0, 3, 0)
  3580. else
  3581. if Type == "Debuff" or Type == "Interrupt" then
  3582. f.position = c.Position + Vector3.new(0, 5, 0)
  3583. end
  3584. end
  3585. f.Parent = c
  3586. game:GetService("Debris"):AddItem(m, 5)
  3587. table.insert(Effects, {m, "showDamage", damgui, f, 10, 1, 15, 50, 100})
  3588. c.CanCollide = false
  3589. m.Parent = workspace
  3590. c.CanCollide = false
  3591. end
  3592. combo = 0
  3593. ob1d = function(mouse)
  3594. if arcorb == true then
  3595. arcorb = false
  3596. end
  3597. if attack == true or equipped == false then
  3598. return
  3599. end
  3600. deb = 0.5
  3601. hold = true
  3602. if combo == 0 then
  3603. combo = 1
  3604. attackone()
  3605. else
  3606. if combo == 1 then
  3607. combo = 2
  3608. attacktwo()
  3609. else
  3610. if combo == 2 then
  3611. combo = 3
  3612. attackthree()
  3613. else
  3614. if combo == 3 then
  3615. combo = 0
  3616. attackfour()
  3617. end
  3618. end
  3619. end
  3620. end
  3621. coroutine.resume(coroutine.create(function()
  3622. for i = 1, 50 do
  3623. if attack == false then
  3624. swait()
  3625. end
  3626. end
  3627. if attack == false then
  3628. combo = 0
  3629. end
  3630. end))
  3631. end
  3632. ob1u = function(mouse)
  3633. hold = false
  3634. end
  3635. buttonhold = false
  3636. fenbarmove1.MouseButton1Click:connect(do1)
  3637. fenbarmove2.MouseButton1Click:connect(do2)
  3638. fenbarmove3.MouseButton1Click:connect(do3)
  3639. fenbarmove4.MouseButton1Click:connect(do4)
  3640. eul = 0
  3641. equipped = false
  3642. key = function(key)
  3643. if attack == true then
  3644. return
  3645. end
  3646. if key == "f" then
  3647. pressedf = true
  3648. fnumb = 0
  3649. attack = true
  3650. if equipped == false then
  3651. equipped = true
  3652. RSH = ch.Torso["Right Shoulder"]
  3653. LSH = ch.Torso["Left Shoulder"]
  3654. RSH.Parent = nil
  3655. LSH.Parent = nil
  3656. RW.Name = "Right Shoulder"
  3657. RW.Part0 = ch.Torso
  3658. RW.C0 = cf(1.5, 0.5, 0)
  3659. RW.C1 = cf(0, 0.5, 0)
  3660. RW.Part1 = ch["Right Arm"]
  3661. RW.Parent = ch.Torso
  3662. LW.Name = "Left Shoulder"
  3663. LW.Part0 = ch.Torso
  3664. LW.C0 = cf(-1.5, 0.5, 0)
  3665. LW.C1 = cf(0, 0.5, 0)
  3666. LW.Part1 = ch["Left Arm"]
  3667. LW.Parent = ch.Torso
  3668. Animate.Parent = nil
  3669. equipanim()
  3670. else
  3671. equipped = false
  3672. hideanim()
  3673. LH.C1 = LHC1
  3674. RH.C1 = RHC1
  3675. Animate.Parent = Humanoid
  3676. swait(0)
  3677. RW.Parent = nil
  3678. LW.Parent = nil
  3679. RSH.Parent = player.Character.Torso
  3680. LSH.Parent = player.Character.Torso
  3681. end
  3682. attack = false
  3683. end
  3684. if equipped == false then
  3685. return
  3686. end
  3687. if key == "e" and invisnum.Value > 5 then
  3688. Invisibility()
  3689. end
  3690. if key == "z" then
  3691. do1()
  3692. end
  3693. if key == "g" then
  3694. secrit()
  3695. end
  3696. if key == "x" then
  3697. do2()
  3698. end
  3699. if key == "c" then
  3700. do3()
  3701. end
  3702. if key == "v" then
  3703. do4()
  3704. end
  3705. end
  3706. key2 = function(key)
  3707. end
  3708. s = function(mouse)
  3709. mouse.Button1Down:connect(function()
  3710. ob1d(mouse)
  3711. end)
  3712. mouse.Button1Up:connect(function()
  3713. ob1u(mouse)
  3714. end)
  3715. mouse.KeyDown:connect(key)
  3716. mouse.KeyUp:connect(key2)
  3717. player = Player
  3718. ch = Character
  3719. MMouse = mouse
  3720. end
  3721. ds = function(mouse)
  3722. end
  3723. Bin.Selected:connect(s)
  3724. Bin.Deselected:connect(ds)
  3725. print("Renegade loaded.")
  3726. local mananum = 0
  3727. local donum = 0
  3728. local stunnum = 0
  3729. local staggeranim = false
  3730. local stunanim = false
  3731. local Point, LastPoint = nil, nil
  3732. local passivenum = 100
  3733. local pnum2 = 0
  3734. local walk = 0
  3735. local walkforw = true
  3736. local addpassive = 0
  3737. local gashnum = 0
  3738. while true do
  3739. swait()
  3740. if Humanoid.Health <= 0 then
  3741. attack = true
  3742. for i = 1, #Marked do
  3743. if MarkedGUI[i] ~= nil and MarkedGUI[i][1] ~= nil then
  3744. MarkedGUI[i][1].Parent = nil
  3745. end
  3746. table.remove(MarkedGUI, i)
  3747. table.remove(Marked, i)
  3748. end
  3749. resumeControl()
  3750. modelzorz.Parent = workspace
  3751. game:GetService("Debris"):AddItem(modelzorz, 30)
  3752. for i = 1, #Weapon do
  3753. Weapon[i].Parent = modelzorz
  3754. Weapon[i].CanCollide = true
  3755. end
  3756. for i = 1, #Welds do
  3757. if Welds[i].Part0.Parent == Character or Welds[i].Part1.Parent == Character then
  3758. Welds[i].Parent = nil
  3759. else
  3760. Welds[i].Parent = prt1
  3761. end
  3762. end
  3763. end
  3764. do
  3765. if fnumb < 21 then
  3766. fnumb = fnumb + 1
  3767. if pressedf == false then
  3768. fenframe5.BackgroundTransparency = fenframe5.BackgroundTransparency - 0.025
  3769. tellbar.TextTransparency = tellbar.TextTransparency - 0.05
  3770. tellbar.TextStrokeTransparency = tellbar.TextStrokeTransparency - 0.05
  3771. else
  3772. if fnumb == 20 then
  3773. fenframe5.Parent = nil
  3774. print("daigui")
  3775. end
  3776. fenframe5.BackgroundTransparency = fenframe5.BackgroundTransparency + 0.025
  3777. tellbar.TextTransparency = tellbar.TextTransparency + 0.05
  3778. tellbar.TextStrokeTransparency = tellbar.TextStrokeTransparency + 0.05
  3779. end
  3780. end
  3781. if hbwld.Parent == nil then
  3782. hitbox2.Name = "Hitbox"
  3783. else
  3784. hitbox2.Name = "Hitbox2"
  3785. end
  3786. if doing2 == true then
  3787. gashnum = gashnum + 1
  3788. if (gashnum) % 10 == 0 then
  3789. if 0 < mana.Value then
  3790. mana.Value = mana.Value - -2
  3791. else
  3792. do2()
  3793. end
  3794. end
  3795. MagicCircle(BrickColor.new(NewCol), prt6.CFrame * euler(-0.3, 0, 0), 0, 0, 0, 0.5, 0.5, 0.5, 0.05)
  3796. MagicBlock(BrickColor.new(NewCol), prt6.CFrame * euler(-0.3, 0, 0), 0, 0, 0, 1, 1, 1, 1, 0.025)
  3797. MagicBlock(BrickColor.new("White"), 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)
  3798. end
  3799. hitbox2.Parent = hitbox.Parent
  3800. hitbox2.Size = hitbox.Size
  3801. hitbox2.CFrame = hitboxCF
  3802. hboxpos.position = hitbox2.Position + vt(math.random(-100, 100) / 100, math.random(-100, 100) / 100, math.random(-100, 100) / 100)
  3803. hitbox.Transparency = 1
  3804. hitbox2.Transparency = 1
  3805. for i = 1, #Marked do
  3806. if Marked[i] ~= nil then
  3807. if Marked[i][1].Parent == nil then
  3808. MarkedGUI[i][1].Parent = nil
  3809. table.remove(MarkedGUI, i)
  3810. table.remove(Marked, i)
  3811. else
  3812. if MarkedGUI[i][1].Parent ~= nil then
  3813. MarkedGUI[i][1].Size = UDim2.new(7 + Marked[i][4].Value, 0, 7 + Marked[i][4].Value, 0)
  3814. if 0 < Marked[i][4].Value then
  3815. Marked[i][4].Value = Marked[i][4].Value - 1
  3816. end
  3817. if MarkedGUI[i][2].Parent ~= nil then
  3818. if Marked[i][3].Value == 0 then
  3819. MarkedGUI[i][2].Image = "rbxassetid://278007861"
  3820. else
  3821. if Marked[i][3].Value == 1 then
  3822. MarkedGUI[i][2].Image = "rbxassetid://278007839"
  3823. else
  3824. if Marked[i][3].Value == 2 then
  3825. MarkedGUI[i][2].Image = "rbxassetid://278007803"
  3826. else
  3827. if Marked[i][3].Value == 3 then
  3828. MarkedGUI[i][2].Image = "rbxassetid://278007757"
  3829. else
  3830. if Marked[i][3].Value == 4 then
  3831. MarkedGUI[i][2].Image = "rbxassetid://278007704"
  3832. else
  3833. if Marked[i][3].Value == 5 then
  3834. MarkedGUI[i][2].Image = "rbxassetid://278007663"
  3835. else
  3836. if Marked[i][3].Value == 6 then
  3837. MarkedGUI[i][2].Image = "rbxassetid://278007643"
  3838. else
  3839. if Marked[i][3].Value == 7 then
  3840. MarkedGUI[i][2].Image = "rbxassetid://278007606"
  3841. else
  3842. if Marked[i][3].Value == 8 then
  3843. MarkedGUI[i][2].Image = "rbxassetid://278007570"
  3844. else
  3845. if Marked[i][3].Value == 9 then
  3846. MarkedGUI[i][2].Image = "rbxassetid://278007545"
  3847. else
  3848. if Marked[i][3].Value == 10 then
  3849. MarkedGUI[i][2].Image = "rbxassetid://278007515"
  3850. end
  3851. end
  3852. end
  3853. end
  3854. end
  3855. end
  3856. end
  3857. end
  3858. end
  3859. end
  3860. end
  3861. end
  3862. end
  3863. if Marked[i][2] ~= nil then
  3864. Marked[i][2].Value = Marked[i][2].Value - 1
  3865. if Marked[i][2].Value <= 0 then
  3866. Marked[i][1].Parent = nil
  3867. MarkedGUI[i][1].Parent = nil
  3868. table.remove(MarkedGUI, i)
  3869. table.remove(Marked, i)
  3870. end
  3871. end
  3872. end
  3873. end
  3874. end
  3875. scarfp2.CFrame = cf(RootPart.Position, testpart.Position) * cf(0, 0, 0)
  3876. scarfp2.CFrame = scarfp2.CFrame + scarfp2.CFrame.lookVector * 0.5
  3877. scarfp2.CFrame = scarfp2.CFrame * cf(0, 0, 0) * euler(1.57, 0, 0)
  3878. testpart.CFrame = cf(RootPart.Position - RootPart.Velocity) * cf(0, 1, 0)
  3879. if invisible == true then
  3880. addpassive = addpassive + 1
  3881. for i = 1, 1 do
  3882. MagicCircle2(BrickColor.new("White"), 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)
  3883. end
  3884. if 50 <= addpassive then
  3885. addpassive = 0
  3886. for _,c in pairs(workspace:children()) do
  3887. local hum = (c:findFirstChild("Humanoid"))
  3888. if hum ~= nil then
  3889. local head = nil
  3890. for _,d in pairs(c:children()) do
  3891. if d.Name == "HumanoidRootPart" then
  3892. local targ = d.Position - RootPart.Position
  3893. local mag = targ.magnitude
  3894. if mag <= 60 and c.Name ~= Player.Name then
  3895. mark = d.Parent:findFirstChild("Mark")
  3896. if mark ~= nil then
  3897. if (mark:findFirstChild("MarkTime")) ~= nil then
  3898. mark.MarkTime.Value = 500
  3899. end
  3900. if (mark:findFirstChild("MarkValue")) ~= nil then
  3901. if (mark:findFirstChild("MarkSize")) ~= nil then
  3902. mark.MarkSize.Value = 5
  3903. end
  3904. if mark.MarkValue.Value < 10 then
  3905. mark.MarkValue.Value = mark.MarkValue.Value + 1
  3906. end
  3907. end
  3908. end
  3909. end
  3910. end
  3911. end
  3912. end
  3913. end
  3914. end
  3915. end
  3916. do
  3917. pursuitnum = pursuitnum + 1
  3918. if 13 <= passivenum and 150 < pursuitnum and 0 < invisnum.Value then
  3919. invisnum.Value = invisnum.Value - 1
  3920. passivenum = 0
  3921. end
  3922. if 8 <= passivenum and invisible == true then
  3923. invisnum.Value = invisnum.Value - 1
  3924. pursuitnum = 0
  3925. passivenum = 0
  3926. end
  3927. if 100 <= invisnum.Value then
  3928. invisnum.Value = 100
  3929. end
  3930. if invisible == true and invisnum.Value <= 0 then
  3931. Invisibility()
  3932. end
  3933. passivenum = passivenum + 1
  3934. if Stagger.Value == true and staggeranim == false then
  3935. coroutine.resume(coroutine.create(function()
  3936. staggeranim = true
  3937. while attack == true do
  3938. swait()
  3939. end
  3940. StaggerAnim()
  3941. StaggerHit.Value = false
  3942. Stagger.Value = false
  3943. staggeranim = false
  3944. end))
  3945. end
  3946. if StaggerHit.Value == true and staggeranim == false then
  3947. coroutine.resume(coroutine.create(function()
  3948. staggeranim = true
  3949. while attack == true do
  3950. swait()
  3951. end
  3952. StaggerHitt()
  3953. StaggerHit.Value = false
  3954. Stagger.Value = false
  3955. staggeranim = false
  3956. end))
  3957. end
  3958. if Mvmt.Value < 0 or Stagger.Value == true or StunT.Value <= Stun.Value or StaggerHit.Value == true or Rooted.Value == true then
  3959. Humanoid.WalkSpeed = 0
  3960. else
  3961. Humanoid.WalkSpeed = 16 * Mvmt.Value
  3962. end
  3963. if StunT.Value <= Stun.Value and stunanim == false then
  3964. coroutine.resume(coroutine.create(function()
  3965. stunanim = true
  3966. while attack == true do
  3967. swait()
  3968. end
  3969. StunAnim()
  3970. Stun.Value = 0
  3971. stunanim = false
  3972. end))
  3973. end
  3974. local stunnum2 = 30
  3975. if stunnum2 <= stunnum then
  3976. if 0 < Stun.Value then
  3977. Stun.Value = Stun.Value - 1
  3978. end
  3979. stunnum = 0
  3980. end
  3981. stunnum = stunnum + 1
  3982. if 0.5 <= donum then
  3983. handidle = true
  3984. else
  3985. if donum <= 0 then
  3986. handidle = false
  3987. end
  3988. end
  3989. if handidle == false then
  3990. donum = donum + 0.003
  3991. else
  3992. donum = donum - 0.003
  3993. end
  3994. local torvel = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  3995. local velderp = RootPart.Velocity.y
  3996. hitfloor = rayCast(RootPart.Position, CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0)).lookVector, 4, Character)
  3997. if equipped == true then
  3998. if attack == false then
  3999. idle = idle + 1
  4000. else
  4001. idle = 0
  4002. end
  4003. if (500 <= idle and attack ~= false) or Anim == "Walk" then
  4004. if walkforw == true then
  4005. RH.C1 = clerp(RH.C1, RHC1 * cf(0.2, -0.2, 0) * euler(0, 0, 1), Mvmt.Value * 10 / 50)
  4006. LH.C1 = clerp(LH.C1, LHC1 * cf(0.1, 0.2, 0) * euler(0, 0, 1), Mvmt.Value * 10 / 50)
  4007. else
  4008. RH.C1 = clerp(RH.C1, RHC1 * cf(-0.1, 0.2, 0) * euler(0, 0, -1), Mvmt.Value * 10 / 50)
  4009. LH.C1 = clerp(LH.C1, LHC1 * cf(-0.2, -0.2, 0) * euler(0, 0, -1), Mvmt.Value * 10 / 50)
  4010. end
  4011. else
  4012. RH.C1 = clerp(RH.C1, RHC1, 0.2)
  4013. LH.C1 = clerp(LH.C1, LHC1, 0.2)
  4014. end
  4015. if 1 < RootPart.Velocity.y and hitfloor == nil then
  4016. Anim = "Jump"
  4017. if attack == false then
  4018. handlewld.C0 = clerp(handlewld.C0, euler(0, 0, 0) * cf(0, 1, 0), 0.2)
  4019. wld1.C0 = clerp(wld1.C0, cf(0, -2, 0) * euler(0.3, 0, -0.1), 0.2)
  4020. Neck.C0 = clerp(Neck.C0, necko * euler(-0.2, 0, 0), 0.2)
  4021. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, 0), 0.2)
  4022. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(1.5, 0, 0.5), 0.2)
  4023. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  4024. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-1, 0, -0.2), 0.2)
  4025. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  4026. RH.C0 = clerp(RH.C0, cf(1, -1, -0.3) * euler(-0.5, 1.57, 0) * euler(-0.2, 0, 0), 0.2)
  4027. LH.C0 = clerp(LH.C0, cf(-1, -1, -0.3) * euler(-0.5, -1.57, 0) * euler(-0.2, 0, 0), 0.2)
  4028. end
  4029. else
  4030. if RootPart.Velocity.y < -1 and hitfloor == nil then
  4031. Anim = "Fall"
  4032. if attack == false then
  4033. handlewld.C0 = clerp(handlewld.C0, euler(0, 0, 0) * cf(0, 1, 0), 0.2)
  4034. wld1.C0 = clerp(wld1.C0, cf(0, -2, 0) * euler(0.3, 0, -0.1), 0.2)
  4035. Neck.C0 = clerp(Neck.C0, necko * euler(0.4, 0, 0), 0.2)
  4036. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, 0), 0.2)
  4037. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(1, 0, 1), 0.2)
  4038. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  4039. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.3, 0, -0.2), 0.2)
  4040. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  4041. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0.4, 1.57, 0), 0.2)
  4042. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(-0.2, -1.57, 0), 0.2)
  4043. end
  4044. else
  4045. if torvel < 1 and hitfloor ~= nil then
  4046. Anim = "Idle"
  4047. if attack == false then
  4048. handlewld.C0 = clerp(handlewld.C0, euler(0, 0, 0) * cf(0, 1, 0), 0.2)
  4049. wld1.C0 = clerp(wld1.C0, euler(0, -0.4 - (donum) / 2, 0) * cf(0, -2, 0) * euler(1, 0, 0), 0.2)
  4050. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, -1) * euler(0.2, 0, 0), 0.15)
  4051. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.2) * euler(0, 0, 1), 0.15)
  4052. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(2 + (donum) / 3, 0, 0.5 - (donum) / 3) * euler(0, 2.1, 0), 0.15)
  4053. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.15)
  4054. LW.C0 = clerp(LW.C0, cf(-1.3 - (donum) / 3, 0.5, -0.4 + (donum) / 3) * euler(0.7 + (donum) / 6, 0, 0.4 + (donum) / 6) * euler(0, -1.57, 0), 0.15)
  4055. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.15)
  4056. RH.C0 = clerp(RH.C0, cf(0.8, -1, 0.3) * euler(0, 1.57, 0) * euler(0, -1, -0.1), 0.2)
  4057. LH.C0 = clerp(LH.C0, cf(-0.8, -1, -0.3) * euler(0, -1.57, 0) * euler(0, -1, 0.3), 0.2)
  4058. end
  4059. else
  4060. if 2 < torvel and torvel < 30 and hitfloor ~= nil then
  4061. Anim = "Walk"
  4062. walk = walk + 1
  4063. if 15 - 5 * Mvmt.Value <= walk then
  4064. walk = 0
  4065. if walkforw == true then
  4066. walkforw = false
  4067. else
  4068. if walkforw == false then
  4069. walkforw = true
  4070. end
  4071. end
  4072. end
  4073. if attack == false then
  4074. handlewld.C0 = clerp(handlewld.C0, euler(0, 0, 0) * cf(0, 1, 0), 0.2)
  4075. wld1.C0 = clerp(wld1.C0, cf(0, -2, 0) * euler(0.3, 0, -0.3), 0.2)
  4076. Neck.C0 = clerp(Neck.C0, necko * euler(0.2 - (donum) / 5, 0, 0), 0.2)
  4077. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, 0), 0.2)
  4078. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(1.3 + (donum) / 3, 0, 0.5 - (donum) / 3), 0.2)
  4079. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  4080. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.2 + (donum) / 3, 0, -0.4 + (donum) / 3), 0.2)
  4081. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  4082. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0, 1.57, 0), 0.2)
  4083. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, -1.57, 0), 0.2)
  4084. end
  4085. else
  4086. if 30 <= torvel and hitfloor ~= nil then
  4087. Anim = "Walk"
  4088. walk = walk + 1
  4089. if 15 - 5 * Mvmt.Value <= walk then
  4090. walk = 0
  4091. if walkforw == true then
  4092. walkforw = false
  4093. else
  4094. if walkforw == false then
  4095. walkforw = true
  4096. end
  4097. end
  4098. end
  4099. if attack == false then
  4100. handlewld.C0 = clerp(handlewld.C0, euler(0, 0, 0) * cf(0, 1, 0), 0.2)
  4101. wld1.C0 = clerp(wld1.C0, cf(0, -2, 0) * euler(0.3, 0, -0.3), 0.2)
  4102. Neck.C0 = clerp(Neck.C0, necko * euler(0.2 - (donum) / 5, 0, 0), 0.2)
  4103. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, 0), 0.2)
  4104. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(1.3 + (donum) / 3, 0, 0.5 - (donum) / 3), 0.2)
  4105. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  4106. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.2 + (donum) / 3, 0, -0.4 + (donum) / 3), 0.2)
  4107. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  4108. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0, 1.57, 0), 0.2)
  4109. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, -1.57, 0), 0.2)
  4110. end
  4111. end
  4112. end
  4113. end
  4114. end
  4115. end
  4116. end
  4117. if 0 < #Effects then
  4118. for e = 1, #Effects do
  4119. if Effects[e] ~= nil then
  4120. local Thing = Effects[e]
  4121. if Thing ~= nil then
  4122. local Part = Thing[1]
  4123. local Mode = Thing[2]
  4124. local Delay = Thing[3]
  4125. local IncX = Thing[4]
  4126. local IncY = Thing[5]
  4127. local IncZ = Thing[6]
  4128. if Thing[2] == "CylinderClang" then
  4129. if Thing[3] <= 1 then
  4130. Thing[1].CFrame = Thing[1].CFrame * CFrame.new(0, 2.5 * Thing[5], 0) * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0)
  4131. Thing[7] = Thing[1].CFrame
  4132. effect("New Yeller", 0, Thing[8], Thing[7])
  4133. Thing[8] = Thing[7]
  4134. Thing[3] = Thing[3] + Thing[4]
  4135. else
  4136. Part.Parent = nil
  4137. table.remove(Effects, e)
  4138. end
  4139. end
  4140. if Thing[2] == "showDamage" then
  4141. if Thing[6] < Thing[5] then
  4142. Thing[6] = Thing[6] + 1
  4143. else
  4144. if Thing[6] < Thing[7] then
  4145. Thing[4].position = Thing[4].position + vt(0, -0.2, 0)
  4146. Thing[6] = Thing[6] + 1
  4147. else
  4148. if Thing[6] < Thing[8] then
  4149. Thing[6] = Thing[6] + 1
  4150. else
  4151. if Thing[6] < Thing[9] then
  4152. Thing[6] = Thing[6] + 1
  4153. Thing[4].position = Thing[4].position + vt(0, 0.2, 0)
  4154. Thing[3].TextStrokeTransparency = Thing[3].TextStrokeTransparency + 0.1
  4155. Thing[3].TextTransparency = Thing[3].TextTransparency + 0.1
  4156. else
  4157. Thing[1].Parent = nil
  4158. table.remove(Effects, e)
  4159. end
  4160. end
  4161. end
  4162. end
  4163. end
  4164. if Thing[2] == "PartiEmi" then
  4165. Thing[3] = Thing[3] - 1
  4166. if Thing[3] <= 0 then
  4167. Thing[1].Enabled = false
  4168. table.remove(Effects, e)
  4169. end
  4170. end
  4171. if Thing[2] == "AdjuEff" then
  4172. if 0 < Thing[3] then
  4173. Thing[3] = Thing[3] - 1
  4174. Thing[1].Size = Thing[1].Size + UDim2.new(0.2, 0, 0.2, 0)
  4175. Thing[1].StudsOffset = Thing[1].StudsOffset + vt(0, -0.2, 0)
  4176. Thing[4].ImageTransparency = Thing[4].ImageTransparency + 0.1
  4177. else
  4178. Thing[1].Parent = nil
  4179. table.remove(Effects, e)
  4180. end
  4181. end
  4182. 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
  4183. if Thing[1].Transparency <= 1 then
  4184. if Thing[2] == "Block1" then
  4185. Thing[1].CFrame = Thing[1].CFrame * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  4186. Mesh = Thing[7]
  4187. Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6])
  4188. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  4189. else
  4190. if Thing[2] == "Block2" then
  4191. Thing[1].CFrame = Thing[1].CFrame
  4192. Mesh = Thing[7]
  4193. Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6])
  4194. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  4195. else
  4196. if Thing[2] == "Block3" then
  4197. Thing[9] = Thing[9] + 0.5
  4198. Thing[1].CFrame = Thing[8] * cf(0, Thing[9], 0)
  4199. Thing[1].CFrame = Thing[1].CFrame * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  4200. Mesh = Thing[7]
  4201. Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6])
  4202. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  4203. else
  4204. if Thing[2] == "Skull" then
  4205. Thing[1].CFrame = Thing[1].CFrame * cf(0, Thing[8] / 2, -Thing[8])
  4206. Mesh = Thing[7]
  4207. Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6])
  4208. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  4209. else
  4210. if Thing[2] == "Cylinder" then
  4211. Mesh = Thing[7]
  4212. Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6])
  4213. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  4214. else
  4215. if Thing[2] == "Cylinder2" then
  4216. Thing[1].CFrame = Thing[1].CFrame * cf(0, Thing[8], 0)
  4217. Mesh = Thing[7]
  4218. Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6])
  4219. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  4220. else
  4221. if Thing[2] == "Blood" then
  4222. Mesh = Thing[7]
  4223. Thing[1].CFrame = Thing[1].CFrame * cf(0, 0.5, 0)
  4224. Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6])
  4225. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  4226. else
  4227. if Thing[2] == "Elec" then
  4228. Mesh = Thing[10]
  4229. Mesh.Scale = Mesh.Scale + vt(Thing[7], Thing[8], Thing[9])
  4230. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  4231. else
  4232. if Thing[2] == "Disappear" then
  4233. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  4234. end
  4235. end
  4236. end
  4237. end
  4238. end
  4239. end
  4240. end
  4241. end
  4242. end
  4243. else
  4244. Part.Parent = nil
  4245. table.remove(Effects, e)
  4246. end
  4247. end
  4248. end
  4249. end
  4250. end
  4251. end
  4252. do
  4253. fenbarmana2:TweenSize((UDim2.new(0.4, 0, -4 * mana.Value / 100, 0)), nil, 1, 0.4, true)
  4254. fenbarmana4.Text = "Mana(" .. mana.Value .. ")"
  4255. fenbarhp2.BackgroundColor3 = Color3.new(Humanoid.Health / Humanoid.MaxHealth, 0, 0)
  4256. fenbarhp2:TweenSize((UDim2.new(Humanoid.Health / Humanoid.MaxHealth, 0, 1, 0)), nil, 1, 0.4, true)
  4257. fenbarhp3.Text = "(" .. math.floor(Humanoid.Health) .. ")"
  4258. fenbarblock2:TweenSize((UDim2.new(0.4, 0, -4 * invisnum.Value / 100, 0)), nil, 1, 0.4, true)
  4259. fenbarblock3.Text = "Pursuit(" .. invisnum.Value .. ")"
  4260. fenbarmove1b:TweenSize((UDim2.new(1 * cooldowns[1] / cooldownmax, 0, 1, 0)), nil, 1, 0.4, true)
  4261. fenbarmove2b:TweenSize((UDim2.new(1 * cooldowns[2] / cooldownmax, 0, 1, 0)), nil, 1, 0.4, true)
  4262. fenbarmove3b:TweenSize((UDim2.new(1 * cooldowns[3] / cooldownmax, 0, 1, 0)), nil, 1, 0.4, true)
  4263. fenbarmove4b:TweenSize((UDim2.new(1 * cooldowns[4] / cooldownmax, 0, 1, 0)), nil, 1, 0.4, true)
  4264. for _,c in pairs(Decrease:children()) do
  4265. if (c:findFirstChild("Duration")) ~= nil then
  4266. c.Duration.Value = c.Duration.Value - 1
  4267. if c.Duration.Value <= 0 then
  4268. c.Parent = nil
  4269. end
  4270. end
  4271. if c.Name == "DecreaseAtk" then
  4272. decreaseatk = decreaseatk + c.Value
  4273. else
  4274. if c.Name == "DecreaseDef" then
  4275. decreasedef = decreasedef + c.Value
  4276. else
  4277. if c.Name == "DecreaseMvmt" then
  4278. decreasemvmt = decreasemvmt + c.Value
  4279. end
  4280. end
  4281. end
  4282. end
  4283. Atk.Value = math.huge - (decreaseatk)
  4284. if Atk.Value <= 0 then
  4285. Atk.Value = math.huge
  4286. end
  4287. Def.Value = math.huge - (decreasedef)
  4288. if Def.Value <= 0 then
  4289. Def.Value = math.huge
  4290. end
  4291. Mvmt.Value = 1 - (decreasemvmt)
  4292. if Mvmt.Value <= 0 then
  4293. Mvmt.Value = 0
  4294. end
  4295. decreaseatk = 0
  4296. decreasedef = 0
  4297. decreasemvmt = 0
  4298. AtkVal = Atk.Value * 100
  4299. AtkVal = math.floor(AtkVal)
  4300. AtkVal = AtkVal / 100
  4301. fenbardamage.Text = "Damage\n(" .. AtkVal .. ")"
  4302. DefVal = Def.Value * 100
  4303. DefVal = math.floor(DefVal)
  4304. DefVal = DefVal / 100
  4305. fenbardef.Text = "Defense\n(" .. DefVal .. ")"
  4306. MvmtVal = Mvmt.Value * 100
  4307. MvmtVal = math.floor(MvmtVal)
  4308. MvmtVal = MvmtVal / 100
  4309. if Rooted.Value == true then
  4310. MvmtVal = 0
  4311. end
  4312. fenbarmove.Text = "Walkspeed\n(" .. MvmtVal .. ")"
  4313. if StunT.Value <= Stun.Value then
  4314. fenbarstun2:TweenSize((UDim2.new(0.4, 0, -4, 0)), nil, 1, 0.4, true)
  4315. else
  4316. fenbarstun2:TweenSize((UDim2.new(0.4, 0, -4 * Stun.Value / StunT.Value, 0)), nil, 1, 0.4, true)
  4317. end
  4318. fenbarstun3.Text = "Stun(" .. Stun.Value .. ")"
  4319. if 100 <= mana.Value then
  4320. mana.Value = 100
  4321. else
  4322. if mananum <= 12 then
  4323. mananum = mananum + 1
  4324. else
  4325. mananum = 0
  4326. mana.Value = mana.Value + 100
  4327. end
  4328. end
  4329. for i = 1, #cooldowns do
  4330. if cooldownmax <= cooldowns[i] then
  4331. cooldowns[i] = cooldownmax
  4332. else
  4333. cooldowns[i] = cooldowns[i] + cooldownsadd[i]
  4334. end
  4335. end
  4336. -- DECOMPILER ERROR at PC6064: LeaveBlock: unexpected jumping out DO_STMT
  4337.  
  4338. -- DECOMPILER ERROR at PC6064: LeaveBlock: unexpected jumping out DO_STMT
  4339.  
  4340. -- DECOMPILER ERROR at PC6064: LeaveBlock: unexpected jumping out DO_STMT
  4341.  
  4342. end
  4343. end
  4344. end
  4345. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement