Advertisement
AndrewTheMaster

PLayer Stuff

Jun 29th, 2017
196
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 168.31 KB | None | 0 0
  1. -- Player Stuff
  2. -- Sawyerqqqqq Edit
  3. Pleyur = game.Players:WaitForChild("andrewengen1")
  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 = 3
  897. s.Looped = true
  898. wait(0)
  899. s:play()
  900. --472006887 Doom Choir
  901. --598378876 War of Change
  902. --194431946 Carol of the Bells
  903. --251935616 Child-of-Light-Boss-Battle-Theme-3-With-Choir
  904. --571756774 Angel
  905. --545677173 Red Army Choir
  906. --738743040 Choir Of The Fayth
  907.  
  908. CV="Hot pink"
  909.  
  910. local txt = Instance.new("BillboardGui", char)
  911. txt.Adornee = char .Head
  912. txt.Name = "_status"
  913. txt.Size = UDim2.new(2, 0, 1.2, 0)
  914. txt.StudsOffset = Vector3.new(-9, 8, 0)
  915. local text = Instance.new("TextLabel", txt)
  916. text.Size = UDim2.new(10, 0, 7, 0)
  917. text.FontSize = "Size24"
  918. text.TextScaled = true
  919. text.TextTransparency = 0
  920. text.BackgroundTransparency = 1
  921. text.TextTransparency = 0
  922. text.TextStrokeTransparency = 0
  923. text.Font = "Bodoni"
  924. text.TextStrokeColor3 = Color3.new(255,0,0)
  925.  
  926. ypcall(function()
  927. char.Shirt:Destroy()
  928. char.Pants:Destroy()
  929. shirt = Instance.new("Shirt", char)
  930. shirt.Name = "Shirt"
  931. pants = Instance.new("Pants", char)
  932. pants.Name = "Pants"
  933. char.Shirt.ShirtTemplate = "rbxassetid://770622763"
  934. char.Pants.PantsTemplate = "rbxassetid://473574503"
  935. end)
  936.  
  937. local BC = char["Body Colors"]
  938. BC.HeadColor = BrickColor.new("White")
  939. BC.LeftArmColor = BrickColor.new("White")
  940. BC.LeftLegColor = BrickColor.new("White")
  941. BC.RightArmColor = BrickColor.new("White")
  942. BC.RightLegColor = BrickColor.new("White")
  943. BC.TorsoColor = BrickColor.new("White")
  944.  
  945. v=Instance.new("Part")
  946. v.Name = "ColorBrick"
  947. v.Parent=p.Character
  948. v.FormFactor="Symmetric"
  949. v.Anchored=true
  950. v.CanCollide=false
  951. v.BottomSurface="Smooth"
  952. v.TopSurface="Smooth"
  953. v.Size=Vector3.new(10,5,3)
  954. v.Transparency=1
  955. v.CFrame=char.Torso.CFrame
  956. v.BrickColor=BrickColor.new(CV)
  957. v.Transparency=1
  958. text.TextColor3 = Color3.new(0.0,0.0,0)
  959. v.Shape="Block"
  960. text.Text = "God of Demons"
  961.  
  962.  
  963. Player = game:GetService("Players").LocalPlayer
  964. Character = Player.Character
  965. PlayerGui = Player.PlayerGui
  966. Backpack = Player.Backpack
  967. Torso = Character.Torso
  968. Head = Character.Head
  969. Humanoid = Character.Humanoid
  970. Face = Head.face
  971. LeftArm = Character["Left Arm"]
  972. LeftLeg = Character["Left Leg"]
  973. RightArm = Character["Right Arm"]
  974. RightLeg = Character["Right Leg"]
  975. LS = Torso["Left Shoulder"]
  976. LH = Torso["Left Hip"]
  977. RS = Torso["Right Shoulder"]
  978. RH = Torso["Right Hip"]
  979. Neck = Torso.Neck
  980. it = Instance.new
  981. vt = Vector3.new
  982. cf = CFrame.new
  983. euler = CFrame.fromEulerAnglesXYZ
  984. angles = CFrame.Angles
  985. necko = cf(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  986. necko2 = cf(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  987. LHC0 = cf(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  988. LHC1 = cf(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  989. RHC0 = cf(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  990. RHC1 = cf(0.5, 1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  991. RootPart = Character.HumanoidRootPart
  992. RootJoint = RootPart.RootJoint
  993. RootCF = euler(-1.57, 0, 3.14)
  994. Reaper = Instance.new("Model")
  995. Reaper.Parent = Player.Character
  996. Reaper.Name = "Reaper"
  997. rh = Instance.new("Part")
  998. rh.Parent = Reaper
  999. rh.Locked = true
  1000. rh.CanCollide = false
  1001. mesh = Instance.new("SpecialMesh")
  1002. rh.formFactor = "Symmetric"
  1003. mesh.MeshType = "FileMesh"
  1004. mesh.MeshId = "http://www.roblox.com/asset/?id=16150814"
  1005. mesh.TextureId = "http://www.roblox.com/asset/?id=16150799"
  1006. mesh.Parent = rh
  1007. local weld = Instance.new("Weld")
  1008. weld.Parent = rh
  1009. rh.Transparency = 1
  1010. weld.Part0 = rh
  1011. weld.Part1 = Player.Character.Head
  1012. weld.C0 = CFrame.new(0, -0.045, 0)*CFrame.Angles(0, 0, 0)
  1013. e1 = Instance.new("Part")
  1014. e1.Parent = Reaper
  1015. e1.Locked = true
  1016. e1.CanCollide = false
  1017. e1.formFactor = "Symmetric"
  1018. e1.Size = Vector3.new(-3.05,-5.05, -3.05)
  1019. e1.Material = "Neon"
  1020. e1.BrickColor = BrickColor.new("White")
  1021. e1.Shape = "Ball"
  1022. e1.Transparency = 1
  1023. local weld = Instance.new("Weld")
  1024. weld.Parent = e1
  1025. weld.Part0 = e1
  1026. weld.Part1 = Player.Character.Head
  1027. weld.C0 = CFrame.new(0.17, 0.01, 0.76)*CFrame.Angles(0, 0, 0)
  1028. e2 = Instance.new("Part")
  1029. e2.Parent = Reaper
  1030. e2.Locked = true
  1031. e2.CanCollide = false
  1032. e2.formFactor = "Symmetric"
  1033. e2.Size = Vector3.new(-3.05,-5.05, -3.05)
  1034. e2.Material = "Neon"
  1035. e2.BrickColor = BrickColor.new("White")
  1036. e2.Shape = "Ball"
  1037. e2.Transparency = 1
  1038. local weld = Instance.new("Weld")
  1039. weld.Parent = e2
  1040. weld.Part0 = e2
  1041. weld.Part1 = Player.Character.Head
  1042. weld.C0 = CFrame.new(-0.17, 0.01, 0.76)*CFrame.Angles(0, 0, 0)
  1043. attack = false
  1044. attackdebounce = false
  1045. MMouse = nil
  1046. combo = 0
  1047. local hitfloor, posfloor = nil, nil
  1048. local idle = 0
  1049. local Anim = "Idle"
  1050. local arcorb = false
  1051. local Effects = {}
  1052. local Weapon = {}
  1053. local Welds = {}
  1054. local invisible = false
  1055. local doing2 = false
  1056. local doing4 = false
  1057. local Marked = {}
  1058. local MarkedGUI = {}
  1059. local decreaseatk = 0
  1060. local decreasedef = 0
  1061. local decreasemvmt = 0
  1062. local pursuitnum = 0
  1063. local move1 = "(Z)\nNight Shot"
  1064. local move2 = "(X)\nNightmare Strike"
  1065. local move3 = "(C)\nAbstract White"
  1066. local move4 = "(V)\nNIGHTMARE!!!"
  1067. local cooldowns = {}
  1068. local cooldown1 = 0
  1069. table.insert(cooldowns, cooldown1)
  1070. local cooldown2 = 0
  1071. table.insert(cooldowns, cooldown2)
  1072. local cooldown3 = 0
  1073. table.insert(cooldowns, cooldown3)
  1074. local cooldown4 = 0
  1075. table.insert(cooldowns, cooldown4)
  1076. local cooldownsadd = {}
  1077. local cooldownadd1 = 100
  1078. table.insert(cooldownsadd, cooldownadd1)
  1079. local cooldownadd2 = 100
  1080. table.insert(cooldownsadd, cooldownadd2)
  1081. local cooldownadd3 = 100
  1082. table.insert(cooldownsadd, cooldownadd3)
  1083. local cooldownadd4 = 100
  1084. table.insert(cooldownsadd, cooldownadd4)
  1085. local cooldownmax = 100
  1086. player = nil
  1087. RSH = nil
  1088. RW = Instance.new("Motor")
  1089. LW = Instance.new("Motor")
  1090. RW.Name = "Right Shoulder"
  1091. LW.Name = "Left Shoulder"
  1092. LH = Torso["Left Hip"]
  1093. RH = Torso["Right Hip"]
  1094. TorsoColor = Torso.BrickColor
  1095. TorsoRed = TorsoColor.Color.r
  1096. TorsoWhite = TorsoColor.Color.g
  1097. TorsoWhite = TorsoColor.Color.b
  1098. NewCol = Color3.new(0, 0, 0)
  1099. NewCol2 = Color3.new(0, 0, 0)
  1100. if Player:findFirstChild("Color1") ~= nil then
  1101. NewCol = Player.Color1.Value
  1102. end
  1103. if Player:findFirstChild("Color2") ~= nil then
  1104. NewCol2 = Player.Color2.Value
  1105. end
  1106. print(BrickColor.new(NewCol))
  1107. local mdec = Instance.new("NumberValue", Decrease)
  1108. mdec.Name = "DecreaseDef"
  1109. mdec.Value = 0.4
  1110. local mdec2 = Instance.new("NumberValue", Decrease)
  1111. mdec2.Name = "DecreaseMvmt"
  1112. mdec2.Value = 0.1
  1113. if Character:findFirstChild("Effects", true) ~= nil then
  1114. Character:findFirstChild("Effects", true).Parent = nil
  1115. end
  1116. local effects = it("Model", Character)
  1117. effects.Name = "Effects"
  1118. local Animate = Humanoid.Animator
  1119. local canjump = true
  1120. local AddInstance = function(Object, ...)
  1121. local Obj = Instance.new(Object)
  1122. for i,v in next,(...) do
  1123. Obj[i] = v
  1124. end
  1125. return Obj
  1126. end
  1127.  
  1128. local nana = AddInstance("Part",{
  1129. Parent = weld.Part1,
  1130. CFrame = weld.Part1.CFrame,
  1131. formFactor = "Symmetric",
  1132. Size = Vector3.new(1, 1, 1),
  1133. CanCollide = false,
  1134. TopSurface = "Smooth",
  1135. BottomSurface = "Smooth",
  1136. Locked = true,
  1137. })
  1138. local Weld = AddInstance("Weld",{
  1139. Parent = nana,
  1140. Part0 = weld.Part1,
  1141. C0 = CFrame.new(0, 0, 0)*CFrame.Angles(0, 0, 0),
  1142. Part1 = nana,
  1143. })
  1144. local Mesh = AddInstance("SpecialMesh",{
  1145. Parent = nana,
  1146. MeshId = "rbxassetid://16150814",
  1147. TextureId = "rbxassetid://16150799",
  1148. Scale = Vector3.new(1, 1, 1),
  1149. VertexColor = Vector3.new(0.3, 0.3, 0.3),
  1150. })
  1151. local nana = AddInstance("Part",{
  1152. Parent = weld.Part1,
  1153. CFrame = weld.Part1.CFrame,
  1154. formFactor = "Symmetric",
  1155. Size = Vector3.new(1, 1, 1),
  1156. CanCollide = false,
  1157. TopSurface = "Smooth",
  1158. BottomSurface = "Smooth",
  1159. Locked = true,
  1160. })
  1161. local Weld = AddInstance("Weld",{
  1162. Parent = nana,
  1163. Part0 = weld.Part1,
  1164. C0 = CFrame.new(0, -1.5, 0)*CFrame.Angles(0, 0, 0),
  1165. Part1 = nana,
  1166. })
  1167. local Mesh = AddInstance("SpecialMesh",{
  1168. Parent = nana,
  1169. MeshId = "rbxassetid://",
  1170. TextureId = "rbxassetid://",
  1171. Scale = Vector3.new(1, 1, 1),
  1172. VertexColor = Vector3.new(0.3, 0.3, 0.3),
  1173. })
  1174.  
  1175. removeControl = function()
  1176. canjump = false
  1177. end
  1178. resumeControl = function()
  1179. canjump = true
  1180. end
  1181.  
  1182. Player.Character.Humanoid.Changed:connect(function()
  1183. if canjump == false then
  1184. Player.Character.Humanoid.Jump = false
  1185. end
  1186. end)
  1187. ArtificialHB = Instance.new("BindableEvent", script)
  1188. ArtificialHB.Name = "Heartbeat"
  1189.  
  1190. script:WaitForChild("Heartbeat")
  1191.  
  1192. frame = 1 / 30
  1193. tf = 0
  1194. allowframeloss = true
  1195. tossremainder = false
  1196. lastframe = tick()
  1197. script.Heartbeat:Fire()
  1198.  
  1199. game:GetService("RunService").Heartbeat:connect(function(s, p)
  1200. tf = tf + s
  1201. if tf >= frame then
  1202. if allowframeloss then
  1203. script.Heartbeat:Fire()
  1204. lastframe = tick()
  1205. else
  1206. for i = 1, math.floor(tf / frame) do
  1207. script.Heartbeat:Fire()
  1208. end
  1209. lastframe = tick()
  1210. end
  1211. if tossremainder then
  1212. tf = 0
  1213. else
  1214. tf = tf - frame * math.floor(tf / frame)
  1215. end
  1216. end
  1217. end)
  1218.  
  1219. function swait(num)
  1220. if num == 0 or num == nil then
  1221. ArtificialHB.Event:wait()
  1222. else
  1223. for i = 0, num do
  1224. ArtificialHB.Event:wait()
  1225. end
  1226. end
  1227. end
  1228. if Character:findFirstChild("Carnufico", true) ~= nil then
  1229. Character:findFirstChild("Carnufico", true).Parent = nil
  1230. end
  1231. if Player.PlayerGui:findFirstChild("WeaponGUI", true) ~= nil then
  1232. Player.PlayerGui:findFirstChild("WeaponGUI", true).Parent = nil
  1233. end
  1234. if Character:findFirstChild("Stats", true) ~= nil then
  1235. Character:findFirstChild("Stats", true).Parent = nil
  1236. end
  1237. local Stats = Instance.new("BoolValue")
  1238. Stats.Name = "Stats"
  1239. Stats.Parent = Character
  1240. local Atk = Instance.new("NumberValue")
  1241. Atk.Name = "Damage"
  1242. Atk.Parent = Stats
  1243. Atk.Value = 1
  1244. local Def = Instance.new("NumberValue")
  1245. Def.Name = "Defense"
  1246. Def.Parent = Stats
  1247. Def.Value = 1
  1248. local Mvmt = Instance.new("NumberValue")
  1249. Mvmt.Name = "Movement"
  1250. Mvmt.Parent = Stats
  1251. Mvmt.Value = 1
  1252. local Block = Instance.new("BoolValue")
  1253. Block.Name = "Block"
  1254. Block.Parent = Stats
  1255. Block.Value = false
  1256. local Stun = Instance.new("NumberValue")
  1257. Stun.Name = "Stun"
  1258. Stun.Parent = Stats
  1259. Stun.Value = 0
  1260. local StunT = Instance.new("NumberValue")
  1261. StunT.Name = "StunThreshold"
  1262. StunT.Parent = Stats
  1263. StunT.Value = 100
  1264. local Rooted = Instance.new("BoolValue")
  1265. Rooted.Name = "Rooted"
  1266. Rooted.Parent = Stats
  1267. Rooted.Value = false
  1268. local Stunned = Instance.new("BoolValue")
  1269. Stunned.Name = "Stunned"
  1270. Stunned.Parent = Stats
  1271. Stunned.Value = false
  1272. local Stagger = Instance.new("BoolValue")
  1273. Stagger.Name = "Stagger"
  1274. Stagger.Parent = Stats
  1275. Stagger.Value = false
  1276. local StaggerHit = Instance.new("BoolValue")
  1277. StaggerHit.Name = "StaggerHit"
  1278. StaggerHit.Parent = Stats
  1279. StaggerHit.Value = false
  1280. local RecentEnemy = Instance.new("ObjectValue")
  1281. RecentEnemy.Name = "RecentEnemy"
  1282. RecentEnemy.Parent = Stats
  1283. RecentEnemy.Value = nil
  1284. local Decrease = Instance.new("BoolValue")
  1285. Decrease.Name = "Decrease"
  1286. Decrease.Parent = Stats
  1287. Decrease.Value = false
  1288. local mana = Instance.new("NumberValue")
  1289. mana.Name = "Mana"
  1290. mana.Parent = Stats
  1291. mana.Value = 0
  1292. local invisnum = Instance.new("NumberValue")
  1293. invisnum.Name = "Pursuit"
  1294. invisnum.Parent = Stats
  1295. invisnum.Value = 0
  1296. local isinvis = Instance.new("BoolValue")
  1297. isinvis.Name = "IsInvisible"
  1298. isinvis.Parent = Stats
  1299. isinvis.Value = false
  1300. local passive = Instance.new("NumberValue", Decrease)
  1301. passive.Name = "DecreaseAtk"
  1302. passive.Value = 0
  1303. local passive2 = Instance.new("NumberValue", nil)
  1304. passive2.Name = "DecreaseDef"
  1305. passive2.Value = 0.2
  1306. local passive3 = Instance.new("NumberValue", nil)
  1307. passive3.Name = "DecreaseMvmt"
  1308. passive3.Value = -0.2
  1309. NoOutline = function(Part)
  1310. Part.TopSurface = 10
  1311. end
  1312. part = function(formfactor, parent, reflectance, transparency, brickcolor, name, size)
  1313. local fp = it("Part")
  1314. fp.formFactor = formfactor
  1315. fp.Parent = parent
  1316. fp.Reflectance = reflectance
  1317. fp.Transparency = transparency
  1318. fp.CanCollide = false
  1319. fp.Locked = true
  1320. fp.BrickColor = brickcolor
  1321. fp.Name = name
  1322. fp.Size = size
  1323. fp.Position = Torso.Position
  1324. NoOutline(fp)
  1325. fp.Material = "SmoothPlastic"
  1326. fp:BreakJoints()
  1327. return fp
  1328. end
  1329. mesh = function(Mesh, part, meshtype, meshid, offset, scale)
  1330. local mesh = it(Mesh)
  1331. mesh.Parent = part
  1332. if Mesh == "SpecialMesh" then
  1333. mesh.MeshType = meshtype
  1334. if meshid ~= "nil" then
  1335. mesh.MeshId = "http://www.roblox.com/asset/?id=" .. meshid
  1336. end
  1337. end
  1338. mesh.Offset = offset
  1339. mesh.Scale = scale
  1340. return mesh
  1341. end
  1342. weld = function(parent, part0, part1, c0)
  1343. local weld = it("Motor")
  1344. weld.Parent = parent
  1345. weld.Part0 = part0
  1346. weld.Part1 = part1
  1347. weld.C0 = c0
  1348. return weld
  1349. end
  1350. gui = function(GuiType, parent, text, backtrans, backcol, pos, size)
  1351. local gui = it(GuiType)
  1352. gui.Parent = parent
  1353. gui.Text = text
  1354. gui.BackgroundTransparency = backtrans
  1355. gui.BackgroundColor3 = backcol
  1356. gui.SizeConstraint = "RelativeXY"
  1357. gui.TextXAlignment = "Center"
  1358. gui.TextYAlignment = "Center"
  1359. gui.Position = pos
  1360. gui.Size = size
  1361. gui.Font = "Bodoni"
  1362. gui.FontSize = "Size24"
  1363. gui.TextWrapped = false
  1364. gui.TextStrokeTransparency = 0
  1365. gui.TextColor = BrickColor.new("White")
  1366. return gui
  1367. end
  1368. local Color1 = Torso.BrickColor
  1369. local fengui = it("GuiMain")
  1370. fengui.Parent = Player.PlayerGui
  1371. fengui.Name = "WeaponGUI"
  1372. local fenframe = it("Frame")
  1373. fenframe.Parent = fengui
  1374. fenframe.BackgroundColor3 = Color3.new(255, 255, 255)
  1375. fenframe.BackgroundTransparency = 1
  1376. fenframe.BorderColor3 = Color3.new(17, 17, 17)
  1377. fenframe.Size = UDim2.new(0.1, 0, 0.1, 0)
  1378. fenframe.Position = UDim2.new(0.95, 0, 0.7, 0)
  1379. local fenframe2 = it("Frame")
  1380. fenframe2.Parent = fengui
  1381. fenframe2.BackgroundColor3 = Color3.new(255, 255, 255)
  1382. fenframe2.BackgroundTransparency = 1
  1383. fenframe2.BorderColor3 = Color3.new(17, 17, 17)
  1384. fenframe2.Size = UDim2.new(0.2, 0, 0.1, 0)
  1385. fenframe2.Position = UDim2.new(0.4, 0, 0.85, 0)
  1386. local fenframe3 = it("Frame")
  1387. fenframe3.Parent = fengui
  1388. fenframe3.BackgroundColor3 = Color3.new(255, 255, 255)
  1389. fenframe3.BackgroundTransparency = 1
  1390. fenframe3.BorderColor3 = Color3.new(17, 17, 17)
  1391. fenframe3.Size = UDim2.new(0.2, 0, 0.2, 0)
  1392. fenframe3.Position = UDim2.new(0.8, 0, 0.8, 0)
  1393. fenframe3.Name = "MoveFrame"
  1394. local fenframe4 = it("Frame")
  1395. fenframe4.Parent = fengui
  1396. fenframe4.BackgroundColor3 = Color3.new(255, 255, 255)
  1397. fenframe4.BackgroundTransparency = 1
  1398. fenframe4.BorderColor3 = Color3.new(17, 17, 17)
  1399. fenframe4.Size = UDim2.new(0.1, 0, 0.1, 0)
  1400. fenframe4.Position = UDim2.new(0, 0, 0.7, 0)
  1401. local pressedf = false
  1402. local fenframe5 = it("Frame")
  1403. fenframe5.Parent = fengui
  1404. fenframe5.BackgroundColor3 = Color3.new(0, 0, 0)
  1405. fenframe5.BackgroundTransparency = 1
  1406. fenframe5.BorderColor3 = Color3.new(0, 0, 0)
  1407. fenframe5.Size = UDim2.new(1, 0, 1, 0)
  1408. fenframe5.Position = UDim2.new(0, 0, 0, 0)
  1409. fenframe5.ZIndex = 2
  1410. 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))
  1411. tellbar.Font = "Bodoni"
  1412. tellbar.TextScaled = true
  1413. tellbar.TextTransparency = 1
  1414. tellbar.TextStrokeTransparency = 1
  1415. tellbar.ZIndex = 2
  1416. local fnumb = 0
  1417. local fenbarmana1 = gui("TextLabel", fenframe, "", 0, Color3.new(0, 0, 0), UDim2.new(0, 0, 0, 0), UDim2.new(0.4, 0, -4, 0))
  1418. local fenbarmana2 = gui("TextLabel", fenframe, "", 0, BrickColor.new(NewCol).Color, UDim2.new(0, 0, 0, 0), UDim2.new(0.4, 0, 0, 0))
  1419. 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))
  1420. 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))
  1421. local fenbarblock2 = gui("TextLabel", fenframe, "", 0, BrickColor.new("White").Color, UDim2.new(-0.7, 0, 0, 0), UDim2.new(0.4, 0, 0, 0))
  1422. 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))
  1423. 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))
  1424. 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))
  1425. 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))
  1426. 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))
  1427. local fenbarhp2 = gui("TextLabel", fenbarhp1, "", 0, Color3.new(1, 0, 0), UDim2.new(0, 0, 0, 0), UDim2.new(0, 0, 1, 0))
  1428. local fenbarhp3 = gui("TextLabel", fenbarhp1, "(100)", 1, Color3.new(0, 0, 0), UDim2.new(0, 0, 0, 0), UDim2.new(1, 0, 1, 0))
  1429. 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))
  1430. 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))
  1431. 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))
  1432. 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))
  1433. fenbarmove1.ZIndex = 2
  1434. local fenbarmove1b = gui("TextLabel", fenbarmove1, "", 0.55, BrickColor.new(NewCol2).Color, UDim2.new(0, 0, 0, 0), UDim2.new(0, 0, 1, 0))
  1435. 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))
  1436. fenbarmove2.ZIndex = 2
  1437. local fenbarmove2b = gui("TextLabel", fenbarmove2, "", 0.55, BrickColor.new(NewCol).Color, UDim2.new(0, 0, 0, 0), UDim2.new(0, 0, 1, 0))
  1438. 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))
  1439. fenbarmove3.ZIndex = 2
  1440. local fenbarmove3b = gui("TextLabel", fenbarmove3, "", 0.55, BrickColor.new(NewCol).Color, UDim2.new(0, 0, 0, 0), UDim2.new(0, 0, 1, 0))
  1441. 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))
  1442. fenbarmove4.ZIndex = 2
  1443. local fenbarmove4b = gui("TextLabel", fenbarmove4, "", 0.55, BrickColor.new(NewCol).Color, UDim2.new(0, 0, 0, 0), UDim2.new(0, 0, 1, 0))
  1444. local testpart = part(3, effects, 0, 1, BrickColor.new("White"), "Handle", vt())
  1445. testpart.Anchored = true
  1446. local scarfp2 = part(3, effects, 0, 1, BrickColor.new("White"), "Handle", vt())
  1447. scarfp2.Anchored = true
  1448. local modelzorz = Instance.new("Model")
  1449. modelzorz.Parent = Character
  1450. modelzorz.Name = "Carnufico"
  1451. local handle = part(3, modelzorz, 0, 0.5, BrickColor.new(NewCol), "Handle", vt())
  1452. local prt1 = part(3, modelzorz, 0, 0, BrickColor.new(NewCol2), "Part01", vt())
  1453. local prt2 = part(3, modelzorz, 0, 0, BrickColor.new("White"), "Part02", vt())
  1454. local prt3 = part(3, modelzorz, 0, 0, BrickColor.new("White"), "Part03", vt())
  1455. local prt4 = part(3, modelzorz, 0, 0, BrickColor.new("White"), "Part04", vt())
  1456. local prt5 = part(3, modelzorz, 0, 0, BrickColor.new("White"), "Part05", vt())
  1457. local prt6 = part(3, modelzorz, 0, 0, BrickColor.new("White"), "Part06", vt())
  1458. local prt7 = part(3, modelzorz, 0.5, 0, BrickColor.new("White"), "Part07", vt())
  1459. local prt8 = part(3, modelzorz, 0.5, 0, BrickColor.new(NewCol), "Part07", vt())
  1460. local prt9 = part(3, modelzorz, 0.5, 0, BrickColor.new("White"), "Part09", vt())
  1461. local prt10 = part(3, modelzorz, 0.5, 0, BrickColor.new(NewCol), "Part10", vt())
  1462. msh1 = mesh("CylinderMesh", prt1, "", "", vt(0, 0, 0), vt(2, 30, 2))
  1463. msh2 = mesh("SpecialMesh", prt2, "FileMesh", "9756362", vt(0, 0, 0), vt(1, 1, 1))
  1464. msh3 = mesh("CylinderMesh", prt3, "", "", vt(0, 0, 0), vt(3, 3, 3))
  1465. msh4 = mesh("SpecialMesh", prt4, "FileMesh", "3270017", vt(0, 0, 0), vt(1, 1, 1))
  1466. msh5 = mesh("SpecialMesh", prt5, "FileMesh", "3270017", vt(0, 0, 0), vt(1, 1, 1))
  1467. msh6 = mesh("SpecialMesh", prt6, "FileMesh", "9756362", vt(0, 0, 0), vt(0.8, 1, 0.5))
  1468. msh7 = mesh("BlockMesh", prt7, "", "", vt(0, 0, 0), vt(1, 2, 2))
  1469. msh8 = mesh("BlockMesh", prt8, "", "", vt(0, 0, 0), vt(1, 1, 2))
  1470. msh9 = mesh("SpecialMesh", prt9, "Wedge", "nil", vt(0, 0, 0), vt(1, 2, 4))
  1471. msh10 = mesh("SpecialMesh", prt10, "Wedge", "nil", vt(0, 0, 0), vt(1, 2, 4))
  1472. local handlewld = weld(handle, handle, Torso, euler(-2, 1.57, 0) * cf(-1, -0.5, -0.6))
  1473. local wld1 = weld(prt1, prt1, handle, euler(0, 0, 0) * cf(0, 0, 0))
  1474. local wld2 = weld(prt1, prt2, prt1, euler(3.14, 0, 0) * cf(0, 3, 0))
  1475. local wld3 = weld(prt1, prt3, prt1, euler(0, 0, 0) * cf(0, -3.2, 0))
  1476. local wld4 = weld(prt1, prt4, prt3, euler(-1.57, 0, 1.57) * euler(0, -0.7, 0) * cf(-0.16, -0.2, -0.1))
  1477. local wld5 = weld(prt1, prt5, prt3, euler(-1.57, 0, -1.57) * euler(0, 0.7, 0) * cf(0.16, -0.2, -0.1))
  1478. local wld6 = weld(prt1, prt6, prt3, euler(0, 0, 0) * cf(0, -0.2, 0.1))
  1479. local wld7 = weld(prt1, prt7, prt6, euler(0, 0, 0) * cf(0, 0.2, 0.2))
  1480. local wld8 = weld(prt1, prt8, prt6, euler(0, 0, 0) * cf(0, -0.1, 0.2))
  1481. local wld9 = weld(prt1, prt9, prt7, euler(0, 0, 0) * cf(0, 0, 0.7))
  1482. local wld10 = weld(prt1, prt10, prt8, euler(0, 0, 0) * cf(0, -0.1, 0.7))
  1483. for i = 0, 2.355, 0.785 do
  1484. local prt4 = part(3, modelzorz, 0, 0, BrickColor.new("White"), "Part04", vt())
  1485. msh4 = mesh("SpecialMesh", prt4, "FileMesh", "9756362", vt(0, 0, 0), vt(1, 0.2, 0.2))
  1486. local wld4 = weld(prt1, prt4, prt3, euler(0, i, 0) * cf(0, 0.6, 0))
  1487. end
  1488. oldprt = prt9
  1489. oldprt2 = prt10
  1490. cff = 0.1
  1491. eul = 0.02
  1492. siz = 0.99
  1493. for i = 1, 6 do
  1494. local prt11 = part(3, modelzorz, 0.5, 0, BrickColor.new("White"), "Part11", vt())
  1495. msh11 = mesh("SpecialMesh", prt11, "Wedge", "nil", vt(0, 0, 0), vt(siz, 2, 6))
  1496. local wld11 = weld(prt1, prt11, oldprt, euler(0, 0, 0) * cf(0, 0, cff) * euler(eul, 0, 0))
  1497. if i < 4 then
  1498. num = 6
  1499. if i == 3 then
  1500. num = 6.8
  1501. end
  1502. local prt12 = part(3, modelzorz, 0.5, 0, BrickColor.new("White"), "Part12", vt())
  1503. msh12 = mesh("BlockMesh", prt12, "", "", vt(0, 0, 0), vt(siz / 2, 2, num))
  1504. local wld12 = weld(prt1, prt12, prt11, euler(0, 0, 0) * cf(0, 0, cff) * euler(eul, 0, 0))
  1505. end
  1506. do
  1507. do
  1508. oldprt = prt11
  1509. cff = 0.6
  1510. eul = 0.15
  1511. siz = siz - 0.1
  1512. -- DECOMPILER ERROR at PC2114: LeaveBlock: unexpected jumping out DO_STMT
  1513.  
  1514. end
  1515. end
  1516. end
  1517. oldprt2 = prt10
  1518. cff = 0.1
  1519. eul = 0.02
  1520. siz = 0.99
  1521. for i = 1, 7 do
  1522. local prt13 = part(3, modelzorz, 0.5, 0, BrickColor.new(NewCol), "Part13", vt())
  1523. msh13 = mesh("SpecialMesh", prt13, "Wedge", "nil", vt(0, 0, 0), vt(siz, 2, 6))
  1524. local wld13 = weld(prt1, prt13, oldprt2, euler(0, 0, 0) * cf(0, 0, cff) * euler(eul, 0, 0))
  1525. oldprt2 = prt13
  1526. cff = 0.6
  1527. eul = 0.14
  1528. siz = siz - 0.1
  1529. end
  1530. for _,c in pairs(modelzorz:children()) do
  1531. table.insert(Weapon, c)
  1532. end
  1533. for _,c in pairs(prt1:children()) do
  1534. if c.className == "Motor" then
  1535. table.insert(Welds, c)
  1536. end
  1537. end
  1538. local hitbox = part(3, modelzorz, 0, 1, BrickColor.new("White"), "Hitbox2", vt())
  1539. hitbox.Anchored = false
  1540. local hbwld = weld(hitbox, hitbox, RootPart, euler(0, 0, 0) * cf(0, 0, 0))
  1541. local hitbox2 = part(3, nil, 0, 1, BrickColor.new("White"), "Hitbox", vt(1, 1, 1))
  1542. hitbox2.Anchored = true
  1543. local hitboxCF = cf(0, 0, 0)
  1544. hboxpos = Instance.new("BodyPosition", nil)
  1545. hboxpos.P = 2000
  1546. hboxpos.D = 100
  1547. hboxpos.maxForce = Vector3.new(545000, 545000, 545000)
  1548. hitboxweld = function()
  1549. hbwld.Parent = modelzorz
  1550. hbwld.Part0 = hitbox
  1551. hbwld.Part1 = prt6
  1552. end
  1553. if script.Parent.className ~= "HopperBin" then
  1554. Tool = Instance.new("HopperBin")
  1555. Tool.Parent = Backpack
  1556. Tool.Name = "Carnufico"
  1557. script.Parent = Tool
  1558. end
  1559. Bin = script.Parent
  1560. if Bin.Name == "Renegade: Adjudicator" then
  1561. Bin.Name = "Carnufico"
  1562. end
  1563. local bodvel = Instance.new("BodyVelocity")
  1564. local bg = Instance.new("BodyGyro")
  1565. so = function(id, par, vol, pit)
  1566. local sou = Instance.new("Sound", par or workspace)
  1567. sou.Volume = vol
  1568. sou.Pitch = pit or 1
  1569. sou.SoundId = "http://www.roblox.com/asset/?id=" .. id
  1570. coroutine.resume(coroutine.create(function(Sound)
  1571. swait()
  1572. Sound:play()
  1573. end), sou)
  1574. game:GetService("Debris"):AddItem(sou, 6)
  1575. end
  1576. function clerp(a,b,t)
  1577. local qa = {QuaternionFromCFrame(a)}
  1578. local qb = {QuaternionFromCFrame(b)}
  1579. local ax, ay, az = a.x, a.y, a.z
  1580. local bx, by, bz = b.x, b.y, b.z
  1581. local _t = 1-t
  1582. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  1583. end
  1584.  
  1585. function QuaternionFromCFrame(cf)
  1586. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  1587. local trace = m00 + m11 + m22
  1588. if trace > 0 then
  1589. local s = math.sqrt(1 + trace)
  1590. local recip = 0.5/s
  1591. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  1592. else
  1593. local i = 0
  1594. if m11 > m00 then
  1595. i = 1
  1596. end
  1597. if m22 > (i == 0 and m00 or m11) then
  1598. i = 2
  1599. end
  1600. if i == 0 then
  1601. local s = math.sqrt(m00-m11-m22+1)
  1602. local recip = 0.5/s
  1603. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  1604. elseif i == 1 then
  1605. local s = math.sqrt(m11-m22-m00+1)
  1606. local recip = 0.5/s
  1607. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  1608. elseif i == 2 then
  1609. local s = math.sqrt(m22-m00-m11+1)
  1610. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  1611. end
  1612. end
  1613. end
  1614.  
  1615. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  1616. local xs, ys, zs = x + x, y + y, z + z
  1617. local wx, wy, wz = w*xs, w*ys, w*zs
  1618. local xx = x*xs
  1619. local xy = x*ys
  1620. local xz = x*zs
  1621. local yy = y*ys
  1622. local yz = y*zs
  1623. local zz = z*zs
  1624. 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))
  1625. end
  1626.  
  1627. function QuaternionSlerp(a, b, t)
  1628. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  1629. local startInterp, finishInterp;
  1630. if cosTheta >= 0.0001 then
  1631. if (1 - cosTheta) > 0.0001 then
  1632. local theta = math.acos(cosTheta)
  1633. local invSinTheta = 1/math.sin(theta)
  1634. startInterp = math.sin((1-t)*theta)*invSinTheta
  1635. finishInterp = math.sin(t*theta)*invSinTheta
  1636. else
  1637. startInterp = 1-t
  1638. finishInterp = t
  1639. end
  1640. else
  1641. if (1+cosTheta) > 0.0001 then
  1642. local theta = math.acos(-cosTheta)
  1643. local invSinTheta = 1/math.sin(theta)
  1644. startInterp = math.sin((t-1)*theta)*invSinTheta
  1645. finishInterp = math.sin(t*theta)*invSinTheta
  1646. else
  1647. startInterp = t-1
  1648. finishInterp = t
  1649. end
  1650. end
  1651. 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
  1652. end
  1653. hideanim = function()
  1654. equipped = false
  1655. for i = 0, 1, 0.5 do
  1656. swait()
  1657. handlewld.C0 = clerp(handlewld.C0, euler(0, -1.57, 0) * cf(0, 1, 0), 0.4)
  1658. wld1.C0 = clerp(wld1.C0, cf(0, -1.5, 0) * euler(0.2, 0, 0.4), 0.4)
  1659. Neck.C0 = clerp(Neck.C0, necko * euler(-0.2, 0, -0.4), 0.4)
  1660. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, 0), 0.4)
  1661. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(3, 0, 1), 0.4)
  1662. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  1663. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.2, 0, -0.2), 0.4)
  1664. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  1665. end
  1666. for i = 0, 1, 0.2 do
  1667. swait()
  1668. handlewld.C0 = clerp(handlewld.C0, euler(0, -1.57, 0) * cf(0, 1, 0), 0.4)
  1669. wld1.C0 = clerp(wld1.C0, cf(0, -1.5, 0) * euler(0.2, 0, 0.4), 0.4)
  1670. Neck.C0 = clerp(Neck.C0, necko * euler(-0.2, 0, -0.4), 0.4)
  1671. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, 0), 0.4)
  1672. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(4, 0, 1), 0.4)
  1673. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  1674. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.2, 0, -0.2), 0.4)
  1675. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  1676. RH.C0 = clerp(RH.C0, RHC0, 0.4)
  1677. LH.C0 = clerp(LH.C0, LHC0, 0.4)
  1678. end
  1679. mdec2.Parent = nil
  1680. handlewld.Part1 = Torso
  1681. handlewld.C0 = euler(-2, 1.57, 0) * cf(-1, -0.5, -0.6)
  1682. wld1.C0 = euler(0, 0, 0) * cf(0, 0, 0)
  1683. for i = 0, 1, 0.3 do
  1684. swait()
  1685. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0), 0.4)
  1686. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, 0), 0.4)
  1687. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(0, 0, 0), 0.4)
  1688. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  1689. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(0, 0, 0), 0.4)
  1690. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  1691. end
  1692. mdec.Parent = Decrease
  1693. end
  1694. mdec.Parent = Decrease
  1695. equipanim = function()
  1696. equipped = true
  1697. mdec.Parent = nil
  1698. for i = 0, 1, 0.5 do
  1699. swait()
  1700. Neck.C0 = clerp(Neck.C0, necko * euler(-0.2, 0, -0.4), 0.4)
  1701. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, 0), 0.4)
  1702. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(2, 0, 0.2), 0.4)
  1703. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  1704. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.2, 0, -0.2), 0.4)
  1705. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  1706. end
  1707. for i = 0, 1, 0.2 do
  1708. swait()
  1709. Neck.C0 = clerp(Neck.C0, necko * euler(-0.2, 0, -0.4), 0.4)
  1710. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, 0), 0.4)
  1711. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(4, 0, 1), 0.4)
  1712. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  1713. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.2, 0, -0.2), 0.4)
  1714. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  1715. end
  1716. mdec2.Parent = Decrease
  1717. handlewld.Part1 = RightArm
  1718. handlewld.C0 = euler(0, -1.57, 0) * cf(0, 1, 0)
  1719. wld1.C0 = cf(0, -1.5, 0) * euler(0.2, 0, 0.4)
  1720. end
  1721. StaggerAnim = function()
  1722. attack = true
  1723. removeControl()
  1724. if invisible == true then
  1725. Clone(0.1)
  1726. end
  1727. for i = 1, math.random(2, 4) do
  1728. 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)
  1729. end
  1730. for i = 0, 1, 0.35 do
  1731. swait()
  1732. if Rooted.Value == false then
  1733. Torso.Velocity = RootPart.CFrame.lookVector * -40
  1734. end
  1735. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0.5) * euler(0.1, 0, 0), 0.3)
  1736. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(-0.2, 0, -0.4), 0.3)
  1737. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.2, 0, 0.7) * euler(0, -0.7, 0), 0.3)
  1738. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  1739. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.2, 0, -0.4) * euler(0, 0.4, 0), 0.3)
  1740. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  1741. RH.C0 = clerp(RH.C0, cf(1, -0.8, 0) * euler(0, 1.57, 0) * euler(-0.5, 0, 0.6), 0.3)
  1742. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, -1.57, 0) * euler(0, 0.2, 0.2), 0.3)
  1743. end
  1744. for i = 0, 1, 0.2 do
  1745. swait()
  1746. if Rooted.Value == false then
  1747. Torso.Velocity = RootPart.CFrame.lookVector * -40
  1748. end
  1749. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0.5) * euler(0.1, 0, 0), 0.4)
  1750. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.2) * euler(-0.5, 0, -0.4), 0.4)
  1751. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.2, 0, 0.7) * euler(0, -0.7, 0), 0.4)
  1752. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  1753. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.2, 0, -0.4) * euler(0, 0.4, 0), 0.4)
  1754. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  1755. RH.C0 = clerp(RH.C0, cf(1, -0.8, 0) * euler(0, 1.57, 0) * euler(-0.5, 0, 0.6), 0.4)
  1756. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, -1.57, 0) * euler(0, 0.2, 0.5), 0.4)
  1757. end
  1758. for i = 0, 1, 0.1 do
  1759. swait()
  1760. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0.4) * euler(0.5, 0, 0), 0.3)
  1761. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -1.8) * euler(-0.2, 0, -0.4), 0.3)
  1762. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.3, 0, 0.4) * euler(0, -0.4, 0), 0.3)
  1763. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  1764. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.3, 0, -0.2) * euler(0, 0.4, 0), 0.3)
  1765. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  1766. RH.C0 = clerp(RH.C0, cf(1, -0.8, 0) * euler(0, 1.57, 0) * euler(-0.5, 0, 1.2), 0.3)
  1767. LH.C0 = clerp(LH.C0, cf(-1, 0, -1) * euler(0, -1.57, 0) * euler(0, 0.2, 0.2), 0.3)
  1768. end
  1769. for i = 1, 50 do
  1770. swait()
  1771. if StunT.Value <= Stun.Value then
  1772. break
  1773. end
  1774. end
  1775. do
  1776. resumeControl()
  1777. combo = 0
  1778. attack = false
  1779. end
  1780. end
  1781. StaggerHitt = function()
  1782. attack = true
  1783. if invisible == true then
  1784. Clone(0.1)
  1785. end
  1786. for i = 1, math.random(2, 4) do
  1787. 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)
  1788. end
  1789. for i = 0, 1, 0.1 do
  1790. swait()
  1791. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0.7) * euler(0.1, 0, 0), 0.3)
  1792. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(-0.2, 0, -0.6), 0.3)
  1793. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.4, 0, 0.9) * euler(0, -0.7, 0), 0.3)
  1794. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  1795. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.2, 0, -0.4) * euler(0, 0.4, 0), 0.3)
  1796. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  1797. RH.C0 = clerp(RH.C0, cf(1, -0.8, 0) * euler(0, 1.57, 0) * euler(-0.2, 0, -0.4), 0.3)
  1798. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, -1.57, 0) * euler(0, 0.2, 0.2), 0.3)
  1799. end
  1800. attack = false
  1801. end
  1802. StunAnim = function()
  1803. attack = true
  1804. removeControl()
  1805. Stunned.Value = true
  1806. showDamage(Character, "Stunned", "Interrupt")
  1807. local dec = Instance.new("NumberValue", Decrease)
  1808. dec.Name = "DecreaseMvmt"
  1809. dec.Value = 10
  1810. for i = 0, 1, 0.3 do
  1811. swait()
  1812. handlewld.C0 = clerp(handlewld.C0, euler(0, 0, 0) * cf(0, 1, 0), 0.3)
  1813. wld1.C0 = clerp(wld1.C0, euler(0, 0, 0) * cf(0, 0, 0) * euler(1.57, 0, 0), 0.3)
  1814. Neck.C0 = clerp(Neck.C0, necko * euler(-0.2, 0, -0.5), 0.2)
  1815. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0.2, 0, -3), 0.2)
  1816. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.2, 0, 1.3), 0.2)
  1817. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  1818. LW.C0 = clerp(LW.C0, cf(-1.2, 0.5, -0.4) * euler(1, 0, 0.4) * euler(0, -0.1, 0), 0.2)
  1819. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  1820. RH.C0 = clerp(RH.C0, cf(1, -0.6, 0) * euler(0, 1.57, 0) * euler(-0.5, 0, 0.3), 0.25)
  1821. LH.C0 = clerp(LH.C0, cf(-1, -0.8, 0) * euler(0, -1.57, 0) * euler(-0.2, 0, 0), 0.25)
  1822. end
  1823. for i = 0, 1, 0.3 do
  1824. swait()
  1825. handlewld.C0 = clerp(handlewld.C0, euler(0, 0, 0) * cf(0, 1, 0), 0.3)
  1826. wld1.C0 = clerp(wld1.C0, euler(0, 0, 0) * cf(0, 0, 0) * euler(1.57, 0, 0), 0.3)
  1827. Neck.C0 = clerp(Neck.C0, necko * euler(-0.3, 0, -0.5), 0.2)
  1828. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.5) * euler(0.8, 0, -3), 0.2)
  1829. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.8, 0, 1.3), 0.2)
  1830. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  1831. 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)
  1832. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  1833. RH.C0 = clerp(RH.C0, cf(1, -0.6, 0) * euler(0, 1.57, 0) * euler(-0.5, 0, 0.6), 0.25)
  1834. LH.C0 = clerp(LH.C0, cf(-1, -0.8, 0) * euler(0, -1.57, 0) * euler(0.1, 0, 0.7), 0.25)
  1835. end
  1836. for i = 0, 1, 0.3 do
  1837. swait()
  1838. Neck.C0 = clerp(Neck.C0, necko * euler(-0.3, 0, -1), 0.2)
  1839. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -2) * euler(1.57, 0, -3), 0.2)
  1840. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.8, 0, 1.3), 0.2)
  1841. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  1842. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(1.2, 0, -0.8) * euler(0, -0.1, 0), 0.2)
  1843. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  1844. RH.C0 = clerp(RH.C0, cf(1, -0.6, 0) * euler(0, 1.57, 0) * euler(-0.2, 0, 0.6), 0.25)
  1845. LH.C0 = clerp(LH.C0, cf(-1, -0.8, 0) * euler(0, -1.57, 0) * euler(-0.1, 0, 0.3), 0.25)
  1846. end
  1847. local gairost = Instance.new("BodyGyro")
  1848. gairost.Parent = RootPart
  1849. gairost.maxTorque = Vector3.new(400000, 0, 400000) * math.huge
  1850. gairost.P = 20000
  1851. gairost.cframe = cf(0, 0, 0)
  1852. for i = 0, 1, 0.1 do
  1853. swait()
  1854. if hitfloor ~= nil then
  1855. Torso.Velocity = vt(0, 0, 0)
  1856. end
  1857. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, -1.57), 0.3)
  1858. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -2.5) * euler(1.57, 0, -3.14), 0.3)
  1859. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-1.57, 0, 1.5) * euler(0.2, 0, 0), 0.3)
  1860. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  1861. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(1.5, 0, -1.57) * euler(0, 0, 0), 0.3)
  1862. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  1863. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0, 1.57, 0) * euler(-0.3, 0.5, 0), 0.3)
  1864. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, -1.57, 0) * euler(-0.1, 0.2, 0), 0.3)
  1865. end
  1866. for i = 1, 70 do
  1867. swait()
  1868. gairost.cframe = RootPart.CFrame
  1869. if hitfloor ~= nil then
  1870. Torso.Velocity = vt(0, 0, 0)
  1871. end
  1872. end
  1873. for i = 0, 1, 0.2 do
  1874. swait()
  1875. Stun.Value = 0
  1876. gairost.cframe = RootPart.CFrame
  1877. Neck.C0 = clerp(Neck.C0, necko * euler(0.2, 0, 0), 0.3)
  1878. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -2) * euler(1, 0, -4), 0.3)
  1879. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-1.57, 0, 1) * euler(0.2, -1, 0), 0.3)
  1880. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  1881. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(1.2, 0, 0.2) * euler(0, 0, 0), 0.3)
  1882. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  1883. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0, 1.57, 0) * euler(-0.3, 0.5, 0.4), 0.3)
  1884. LH.C0 = clerp(LH.C0, cf(-1, -1, -1) * euler(0, -1.57, 0) * euler(-0.1, 0.2, 1), 0.3)
  1885. end
  1886. resumeControl()
  1887. gairost.Parent = nil
  1888. dec.Parent = nil
  1889. Stun.Value = 0
  1890. combo = 0
  1891. Stunned.Value = false
  1892. attack = false
  1893. for i = 1, 10 do
  1894. swait()
  1895. Stun.Value = 0
  1896. end
  1897. end
  1898. attackone = function()
  1899. attack = true
  1900. for i = 0, 1, 0.2 do
  1901. swait()
  1902. handlewld.C0 = clerp(handlewld.C0, euler(0, 0, 0) * cf(0, 1, 0), 0.5)
  1903. wld1.C0 = clerp(wld1.C0, euler(0, -0.4, 0) * cf(0, -2, 0) * euler(1.8, 0, 0), 0.5)
  1904. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, -0.6) * euler(0.4, 0, 0), 0.5)
  1905. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.2) * euler(0, 0, 1.4), 0.5)
  1906. RW.C0 = clerp(RW.C0, cf(1, 0.5, -0.5) * euler(1.57, 0, -0.5) * euler(0, 1.8, 0), 0.5)
  1907. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.5)
  1908. 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)
  1909. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.5)
  1910. RH.C0 = clerp(RH.C0, cf(0.6, -1, 0.5) * euler(0, 1.57, 0) * euler(0, -1.4, -0.1), 0.5)
  1911. LH.C0 = clerp(LH.C0, cf(-0.6, -1, -0.5) * euler(0, -1.57, 0) * euler(0, -1.4, 0.3), 0.5)
  1912. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  1913. do
  1914. if StaggerHit.Value == true then
  1915. break
  1916. end
  1917. -- DECOMPILER ERROR at PC237: LeaveBlock: unexpected jumping out IF_THEN_STMT
  1918.  
  1919. -- DECOMPILER ERROR at PC237: LeaveBlock: unexpected jumping out IF_STMT
  1920.  
  1921. end
  1922. end
  1923. end
  1924. so("92597369", prt6, 1, 0.6)
  1925. hbwld.Parent = nil
  1926. hboxpos.Parent = hitbox
  1927. hitbox.Parent = modelzorz
  1928. hitbox.Size = vt(3, 2, 7)
  1929. hitboxCF = prt6.CFrame * euler(-0.3, 0, 0) * cf(0, 0, -2.2)
  1930. hitbox.CFrame = hitboxCF
  1931. for i = 0, 1, 0.15 do
  1932. swait()
  1933. hitboxCF = prt6.CFrame * euler(-0.3, 0, 0) * cf(0, 0, -2.2)
  1934. hitbox.CFrame = hitboxCF
  1935. MagniDamage(hitbox, 4, 5, 7, math.random(5, 10), "Normal", RootPart, 0.5, 2, (math.random(5, 7)), nil, true)
  1936. handlewld.C0 = clerp(handlewld.C0, euler(0, 0, 0) * cf(0, 1, 0), 0.4)
  1937. wld1.C0 = clerp(wld1.C0, euler(0, 0, 0) * cf(0, -2, 0) * euler(2.5, 0, 0), 0.4)
  1938. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 1) * euler(0, 0, 0), 0.4)
  1939. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.2) * euler(0, 0, -1), 0.4)
  1940. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(1.57, 0, 1.4) * euler(0, 1.8, 0), 0.4)
  1941. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  1942. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(1, 0, -1), 0.4)
  1943. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  1944. RH.C0 = clerp(RH.C0, cf(0.8, -1, -0.3) * euler(0, 1.57, 0) * euler(0, 1, -0.3), 0.4)
  1945. LH.C0 = clerp(LH.C0, cf(-0.8, -1, 0.3) * euler(0, -1.57, 0) * euler(0, 1, 0.1), 0.4)
  1946. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  1947. do
  1948. if StaggerHit.Value == true then
  1949. break
  1950. end
  1951. -- DECOMPILER ERROR at PC546: LeaveBlock: unexpected jumping out IF_THEN_STMT
  1952.  
  1953. -- DECOMPILER ERROR at PC546: LeaveBlock: unexpected jumping out IF_STMT
  1954.  
  1955. end
  1956. end
  1957. end
  1958. hitbox.Parent = modelzorz
  1959. hitbox.Size = vt()
  1960. hitboxweld()
  1961. hboxpos.Parent = nil
  1962. attack = false
  1963. end
  1964. attacktwo = function()
  1965. attack = true
  1966. for i = 0, 1, 0.2 do
  1967. swait()
  1968. handlewld.C0 = clerp(handlewld.C0, euler(0, 0, 0) * cf(0, 1, 0), 0.4)
  1969. wld1.C0 = clerp(wld1.C0, euler(0, -1.57, 0) * cf(0, 0, 0) * euler(2.5, 0, 0), 0.4)
  1970. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 1) * euler(0, 0, 0), 0.4)
  1971. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.2) * euler(0, 0, -1), 0.4)
  1972. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(1.57, 0, 1.7) * euler(0, 1.8, 0), 0.4)
  1973. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  1974. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(0.5, 0, -0.5), 0.4)
  1975. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  1976. RH.C0 = clerp(RH.C0, cf(0.8, -1, -0.3) * euler(0, 1.57, 0) * euler(0, 1, -0.3), 0.4)
  1977. LH.C0 = clerp(LH.C0, cf(-0.8, -1, 0.3) * euler(0, -1.57, 0) * euler(0, 1, 0.1), 0.4)
  1978. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  1979. do
  1980. if StaggerHit.Value == true then
  1981. break
  1982. end
  1983. -- DECOMPILER ERROR at PC231: LeaveBlock: unexpected jumping out IF_THEN_STMT
  1984.  
  1985. -- DECOMPILER ERROR at PC231: LeaveBlock: unexpected jumping out IF_STMT
  1986.  
  1987. end
  1988. end
  1989. end
  1990. so("92597369", prt6, 1, 0.8)
  1991. so("92597296", prt6, 1, 1)
  1992. hbwld.Parent = nil
  1993. hboxpos.Parent = hitbox
  1994. hitbox.Parent = modelzorz
  1995. hitbox.Size = vt(1, 2, 7)
  1996. hitboxCF = prt6.CFrame * euler(-0.3, 0, 0) * cf(0, 0, -2.2)
  1997. hitbox.CFrame = hitboxCF
  1998. for i = 0, 1, 0.05 do
  1999. swait()
  2000. if (i >= 0.3 and i <= 0.33) or i >= 0.7 and i <= 0.73 then
  2001. so("92597369", prt6, 1, 0.8)
  2002. so("92597296", prt6, 1, 1)
  2003. end
  2004. hitboxCF = prt6.CFrame * euler(-0.3, 0, 0) * cf(0, 0, -2.2)
  2005. hitbox.CFrame = hitboxCF
  2006. MagniDamage(hitbox, 4, 4, 6, math.random(5, 10), "Normal", RootPart, 0.2, 2, (math.random(2, 5)), nil, true)
  2007. handlewld.C0 = clerp(handlewld.C0, euler(0, 0, 0) * cf(0, 1, 0), 0.5)
  2008. 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)
  2009. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, -1) * euler(0, 0, 0), 0.5)
  2010. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.2) * euler(0, 0, 1), 0.5)
  2011. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(1.57, 0, 1) * euler(0, 0, 0), 0.3)
  2012. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  2013. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(0, 0, -1.3), 0.5)
  2014. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.5)
  2015. RH.C0 = clerp(RH.C0, cf(0.8, -1, 0.3) * euler(0, 1.57, 0) * euler(0, -1, -0.1), 0.5)
  2016. LH.C0 = clerp(LH.C0, cf(-0.8, -1, -0.3) * euler(0, -1.57, 0) * euler(0, -1, 0.3), 0.5)
  2017. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  2018. do
  2019. if StaggerHit.Value == true then
  2020. break
  2021. end
  2022. -- DECOMPILER ERROR at PC569: LeaveBlock: unexpected jumping out IF_THEN_STMT
  2023.  
  2024. -- DECOMPILER ERROR at PC569: LeaveBlock: unexpected jumping out IF_STMT
  2025.  
  2026. end
  2027. end
  2028. end
  2029. RW.C0 = cf(1.5, 0.5, 0) * euler(1.57, 0, 1) * euler(0, 0, 0)
  2030. hitbox.Parent = modelzorz
  2031. hitbox.Size = vt()
  2032. hitboxweld()
  2033. hboxpos.Parent = nil
  2034. attack = false
  2035. end
  2036. attackthree = function()
  2037. attack = true
  2038. for i = 0, 1, 0.2 do
  2039. swait()
  2040. handlewld.C0 = clerp(handlewld.C0, euler(0, 0, 0) * cf(0, 1, 0), 0.5)
  2041. wld1.C0 = clerp(wld1.C0, euler(0, -0.4, 0) * cf(0, -2, 0) * euler(1.8, 0, 0), 0.5)
  2042. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, -0.6) * euler(0.4, 0, 0), 0.5)
  2043. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.2) * euler(0, 0, 1.4), 0.5)
  2044. RW.C0 = clerp(RW.C0, cf(1, 0.5, -0.5) * euler(1.57, 0, -0.5) * euler(0, 1.8, 0), 0.5)
  2045. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.5)
  2046. 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)
  2047. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.5)
  2048. RH.C0 = clerp(RH.C0, cf(0.6, -1, 0.5) * euler(0, 1.57, 0) * euler(0, -1.4, -0.1), 0.5)
  2049. LH.C0 = clerp(LH.C0, cf(-0.6, -1, -0.5) * euler(0, -1.57, 0) * euler(0, -1.4, 0.3), 0.5)
  2050. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  2051. do
  2052. if StaggerHit.Value == true then
  2053. break
  2054. end
  2055. -- DECOMPILER ERROR at PC237: LeaveBlock: unexpected jumping out IF_THEN_STMT
  2056.  
  2057. -- DECOMPILER ERROR at PC237: LeaveBlock: unexpected jumping out IF_STMT
  2058.  
  2059. end
  2060. end
  2061. end
  2062. so("92597369", prt6, 1, 0.5)
  2063. hbwld.Parent = nil
  2064. hboxpos.Parent = hitbox
  2065. hitbox.Parent = modelzorz
  2066. hitbox.Size = vt(1, 2, 7)
  2067. hitboxCF = prt6.CFrame * euler(-0.3, 0, 0) * cf(0, 0, -2.2)
  2068. hitbox.CFrame = hitboxCF
  2069. for i = 0, 1, 0.05 do
  2070. swait()
  2071. if i >= 0.7 and i <= 0.73 then
  2072. so("92597369", prt6, 1, 0.5)
  2073. end
  2074. hitboxCF = prt6.CFrame * euler(-0.3, 0, 0) * cf(0, 0, -2.2)
  2075. hitbox.CFrame = hitboxCF
  2076. MagniDamage(hitbox, 4, 5, 6, math.random(5, 10), "Normal", RootPart, 0.3, 2, (math.random(4, 6)), nil, true)
  2077. handlewld.C0 = clerp(handlewld.C0, euler(0, 0, 0) * cf(0, 1, 0), 0.4)
  2078. wld1.C0 = clerp(wld1.C0, euler(0, 0, 0) * cf(0, -2, 0) * euler(2.5, 0, 0), 0.4)
  2079. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 1) * euler(0, 0, 0), 0.4)
  2080. RootJoint.C0 = RootCF * cf(0, 0, -0.2) * euler(0, 0, 1.4 - 9.28 * i)
  2081. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(1.57, 0, 1.4) * euler(0, 1.8, 0), 0.4)
  2082. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  2083. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(1, 0, -1), 0.4)
  2084. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  2085. RH.C0 = clerp(RH.C0, cf(0.8, -1, -0.3) * euler(0, 1.57, 0) * euler(0, 1, -0.3), 0.4)
  2086. LH.C0 = clerp(LH.C0, cf(-0.8, -1, 0.3) * euler(0, -1.57, 0) * euler(0, 1, 0.1), 0.4)
  2087. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  2088. do
  2089. if StaggerHit.Value == true then
  2090. break
  2091. end
  2092. -- DECOMPILER ERROR at PC552: LeaveBlock: unexpected jumping out IF_THEN_STMT
  2093.  
  2094. -- DECOMPILER ERROR at PC552: LeaveBlock: unexpected jumping out IF_STMT
  2095.  
  2096. end
  2097. end
  2098. end
  2099. hitbox.Parent = modelzorz
  2100. hitbox.Size = vt()
  2101. hitboxweld()
  2102. hboxpos.Parent = nil
  2103. attack = false
  2104. end
  2105. attackfour = function()
  2106. attack = true
  2107. for i = 0, 1, 0.1 do
  2108. swait()
  2109. handlewld.C0 = clerp(handlewld.C0, euler(0, 0, 0) * cf(0, 1, 0), 0.3)
  2110. wld1.C0 = clerp(wld1.C0, euler(0, 0.8, 0) * cf(0, -2, 0) * euler(1.57, 0, 0), 0.3)
  2111. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0), 0.3)
  2112. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(-0.2, 0, 0), 0.3)
  2113. RW.C0 = clerp(RW.C0, cf(1, 1.2, 0) * euler(3.6, 0, -0.8), 0.3)
  2114. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  2115. LW.C0 = clerp(LW.C0, cf(-1, 1.2, 0) * euler(3.6, 0, 0.8), 0.3)
  2116. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  2117. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0, 1.57, 0) * euler(0, 0, -0.2), 0.3)
  2118. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, -1.57, 0) * euler(0, 0, 0.2), 0.3)
  2119. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  2120. do
  2121. if StaggerHit.Value == true then
  2122. break
  2123. end
  2124. -- DECOMPILER ERROR at PC213: LeaveBlock: unexpected jumping out IF_THEN_STMT
  2125.  
  2126. -- DECOMPILER ERROR at PC213: LeaveBlock: unexpected jumping out IF_STMT
  2127.  
  2128. end
  2129. end
  2130. end
  2131. so("28144425", prt6, 1, 0.7)
  2132. so("92597369", prt6, 1, 0.5)
  2133. hbwld.Parent = nil
  2134. hboxpos.Parent = hitbox
  2135. hitbox.Parent = modelzorz
  2136. hitbox.Size = vt(1, 2, 7)
  2137. hitboxCF = prt6.CFrame * euler(-0.3, 0, 0) * cf(0, 0, -2.2)
  2138. hitbox.CFrame = hitboxCF
  2139. blcf = nil
  2140. scfr = nil
  2141. for i = 0, 1, 0.1 do
  2142. swait()
  2143. handlewld.C0 = clerp(handlewld.C0, euler(0, 0, 0) * cf(0, 1, 0), 0.3)
  2144. wld1.C0 = clerp(wld1.C0, euler(0, 0.8, 0) * cf(0, -2, 0) * euler(1.57, 0, 0), 0.3)
  2145. hitboxCF = prt6.CFrame * euler(-0.3, 0, 0) * cf(0, 0, -2.2)
  2146. hitbox.CFrame = hitboxCF
  2147. MagniDamage(hitbox, 4, 5, 7, math.random(5, 10), "Normal", RootPart, 0.5, 2, (math.random(5, 8)), nil, true)
  2148. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0), 0.4)
  2149. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0.4, 0, 0), 0.4)
  2150. RW.C0 = clerp(RW.C0, cf(1, 0.3, -0.5) * euler(0.5, 0, -0.8), 0.4)
  2151. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  2152. LW.C0 = clerp(LW.C0, cf(-1, 0.3, -0.5) * euler(0.5, 0, 0.8), 0.4)
  2153. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  2154. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0, 1.57, 0) * euler(-0.2, 0, 0.3), 0.4)
  2155. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, -1.57, 0) * euler(-0.2, 0, -0.7), 0.4)
  2156. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  2157. do
  2158. if StaggerHit.Value == true then
  2159. break
  2160. end
  2161. -- DECOMPILER ERROR at PC514: LeaveBlock: unexpected jumping out IF_THEN_STMT
  2162.  
  2163. -- DECOMPILER ERROR at PC514: LeaveBlock: unexpected jumping out IF_STMT
  2164.  
  2165. end
  2166. end
  2167. end
  2168. hitbox.Parent = modelzorz
  2169. hitbox.Size = vt()
  2170. hitboxweld()
  2171. hboxpos.Parent = nil
  2172. attack = false
  2173. end
  2174. Invisibility = function()
  2175. if invisible == false then
  2176. so("324867021", Torso, 1, 1.4)
  2177. MagicWave(BrickColor.new("White"), scarfp2.CFrame * euler(math.rad(180), 0, 0), 1, 1, 1, 0.5, 1.5, 0.5, 0.1)
  2178. MagicWave(BrickColor.new("White"), scarfp2.CFrame * euler(math.rad(180), 0, 0), 1, 1, 1, 1, 0.5, 1, 0.1)
  2179. invisnum.Value = invisnum.Value - 10
  2180. for _,c in pairs(Decrease:children()) do
  2181. if c.Name == "DecreaseMvmt" and c:findFirstChild("Renegade") ~= nil then
  2182. c.Parent = nil
  2183. end
  2184. end
  2185. d = Instance.new("NumberValue", Decrease)
  2186. d.Name = "DecreaseMvmt"
  2187. d.Value = -0.5
  2188. dur = Instance.new("NumberValue", d)
  2189. dur.Name = "Duration"
  2190. dur.Value = 50
  2191. display = "+Movement"
  2192. showDamage(Character, display, "Debuff")
  2193. da = Instance.new("BoolValue", d)
  2194. da.Name = "Renegade"
  2195. DecreaseStat(Character, "Defense", 0.1, 80)
  2196. invisible = true
  2197. isinvis.Value = true
  2198. passive3.Parent = Decrease
  2199. else
  2200. invisible = false
  2201. isinvis.Value = false
  2202. passive3.Parent = nil
  2203. end
  2204. end
  2205.  
  2206. 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"}
  2207. ContentProvider = game:GetService("ContentProvider")
  2208. for _,v in pairs(Runes) do
  2209. ContentProvider:Preload(v)
  2210. end
  2211. secrit = function()
  2212. print("git dunked on n00b")
  2213. end
  2214. do1 = function()
  2215. if attack == true then
  2216. return
  2217. end
  2218. if Stagger.Value == true or StunT.Value <= Stun.Value or StaggerHit.Value == true then
  2219. return
  2220. end
  2221. if cooldownmax <= cooldowns[1] and mana.Value >= 0 then
  2222. deb = 0.2
  2223. attack = true
  2224. cooldowns[1] = 100
  2225. mana.Value = mana.Value - 20
  2226. local orb = part(3, modelzorz, 0, 0.5, BrickColor.new(NewCol), "Effect", vt())
  2227. do
  2228. swait()
  2229. local dec = Instance.new("NumberValue", Decrease)
  2230. dec.Name = "DecreaseMvmt"
  2231. dec.Value = 0.2
  2232. for i = 0, 1, 0.2 do
  2233. swait()
  2234. handlewld.C0 = clerp(handlewld.C0, euler(0, 0, 0) * cf(0, 1, 0), 0.3)
  2235. wld1.C0 = clerp(wld1.C0, euler(0, 0, 0) * cf(0, 0, 0) * euler(1.57, 0, 0), 0.3)
  2236. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 1.57) * euler(0, 0, 0), 0.3)
  2237. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.2) * euler(0, 0, -1.57), 0.3)
  2238. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(1, 0, 1) * euler(0, 1.5, 0), 0.3)
  2239. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  2240. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(1.57, 0, -1.57) * euler(0, 0, 0), 0.3)
  2241. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  2242. RH.C0 = clerp(RH.C0, cf(0.5, -1, -0.3) * euler(0, 1.57, 0) * euler(0, 1.57, -0.3), 0.3)
  2243. LH.C0 = clerp(LH.C0, cf(-0.5, -1, 0.3) * euler(0, -1.57, 0) * euler(0, 1.57, 0.1), 0.3)
  2244. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  2245. do
  2246. if StaggerHit.Value == true then
  2247. break
  2248. end
  2249. end
  2250. end
  2251. end
  2252. if Stagger.Value ~= true then --and StunT.Value > Stun.Value then
  2253. if StaggerHit.Value ~= true then
  2254. swait()
  2255. arcorb = true
  2256. orb.Anchored = true
  2257. orb.CFrame = RootPart.CFrame * cf(0, 0.5, -3)
  2258. so("199145761", orb, 3.5, 1)
  2259. do
  2260. local msh = mesh("SpecialMesh", orb, "Sphere", "nil", vt(0, 0, 0), vt(10, 10, 10))
  2261. ogui = Instance.new("BillboardGui")
  2262. ogui.Parent = orb
  2263. ogui.Size = UDim2.new(5, 0, 5, 0)
  2264. oimg = Instance.new("ImageLabel")
  2265. oimg.Parent = ogui
  2266. oimg.BackgroundTransparency = 1
  2267. oimg.Size = UDim2.new(1, 0, 1, 0)
  2268. oimg.Image = Runes[math.random(1, #Runes)]
  2269. oimg.ImageColor3 = BrickColor.new(NewCol).Color
  2270. orbnum = 100
  2271. while arcorb==true do
  2272. if arcorb == true then
  2273. swait()
  2274. end
  2275. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  2276. if StaggerHit.Value == true then
  2277. break
  2278. end
  2279. orb.CFrame = RootPart.CFrame * cf(0, 0.5, -3)
  2280. 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)
  2281. MagicCircle(BrickColor.new(NewCol), cf(orb.Position), 0, 0, 0, 1, 1, 1, 0.05)
  2282. 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)
  2283. if orbnum < 0 or MMouse == nil then
  2284. arcorb = false
  2285. end
  2286. swait()
  2287. orbnum = orbnum - 1
  2288. if Stagger.Value == true or StunT.Value <= Stun.Value or StaggerHit.Value == true then
  2289. arcorb = false
  2290. break
  2291. end
  2292. end
  2293. end
  2294. if MMouse.Hit.p ~= nil then
  2295. swait()
  2296. local MainPos = orb.Position
  2297. local MainPos2 = MMouse.Hit.p
  2298. local MouseLook = cf((MainPos + MainPos2) / 2, MainPos2)
  2299. so("200633492", orb, 1, 0.75)
  2300. coroutine.resume(coroutine.create(function(Pos1, Pos2, Look)
  2301. local num = 50
  2302. repeat
  2303. swait()
  2304. local ohit, opos = rayCast(Pos1, Look.lookVector, 5, Character)
  2305. orb.CFrame = CFrame.new((Pos1 + opos) / 2, opos)
  2306. MagniDamage(orb, 15, 5, 8, math.random(5, 10), "Normal", RootPart, 0.5, 2, (math.random(5, 7)), nil, true)
  2307. 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)
  2308. 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)
  2309. MagicCircle(BrickColor.new(NewCol), cf(orb.Position), 10, 10, 10, 5, 5, 5, 0.05)
  2310. Pos1 = Pos1 + Look.lookVector * 10
  2311. orb.CFrame = CFrame.new(orb.Position, MMouse.Hit.p)
  2312. if ohit ~= nil then
  2313. num = 0
  2314. end
  2315. num = num - 1
  2316. until num <= 0
  2317. local ref = part(3, workspace, 0, 1, BrickColor.new("White"), "Effect", vt())
  2318. ref.Anchored = true
  2319. ref.CFrame = cf(orb.Position)
  2320. so("203691653", ref, 10, 0.75)
  2321. so("199146035", ref, 5, 1)
  2322. game:GetService("Debris"):AddItem(ref, 0.5)
  2323. MagicCircle(BrickColor.new(NewCol), cf(ref.Position), 0, 0, 0, 60, 60, 60, 0.065)
  2324. MagicCircle(BrickColor.new(NewCol), cf(ref.Position), 0, 0, 0, 40, 40, 40, 0.065)
  2325. MagicCircle(BrickColor.new(NewCol), cf(ref.Position), 0, 0, 0, 20, 20, 20, 0.025)
  2326. MagicCircle(BrickColor.new(NewCol), cf(ref.Position), 0, 0, 0, 25, 25, 25, 0.065)
  2327. MagicCircle(BrickColor.new(NewCol), cf(ref.Position), 100, 100, 100, -5, -5, -5, 0.065)
  2328. MagniDamage(ref, 25, 10, 17, math.random(5, 10), "Normal", RootPart, 0.5, 2, (math.random(5, 7)), nil, true)
  2329. if isjugg == false then
  2330. end
  2331. orb.Parent = nil
  2332. end
  2333. ), MainPos, MainPos2, MouseLook)
  2334. end
  2335. do
  2336. dec.Parent = nil
  2337. swait()
  2338. attack = false
  2339. end
  2340. end
  2341. end
  2342. end
  2343. end
  2344. end
  2345. end
  2346. do2 = function()
  2347. if attack == true then
  2348. return
  2349. end
  2350. if Stagger.Value == true or StunT.Value <= Stun.Value or StaggerHit.Value == true then
  2351. return
  2352. end
  2353. if cooldownmax <= cooldowns[3] and mana.Value >= 30 then
  2354. attack = true
  2355. cooldowns[3] = 0
  2356. local dec = Instance.new("NumberValue", Decrease)
  2357. dec.Name = "DecreaseMvmt"
  2358. dec.Value = 10
  2359. local dec2 = Instance.new("NumberValue", Decrease)
  2360. dec2.Name = "DecreaseDef"
  2361. dec2.Value = -10
  2362. LW.C0 = clerp(LW.C0, cf(-1, 0.5, -0.5) * euler(2, 0, 1), 0.5)
  2363. for i = 0, 1, 0.1 do
  2364. swait()
  2365. Neck.C0 = clerp(Neck.C0, necko * euler(-0.4, 0, -0.2), 0.4)
  2366. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -1.5) * euler(0.8, 0, 0.5), 0.4)
  2367. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(1.4, 0, 0.5), 0.4)
  2368. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  2369. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.2, 0, -0.4), 0.4)
  2370. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  2371. RH.C0 = clerp(RH.C0, RHC0 * cf(0, 0, 0) * euler(0, -0.5, -0.5), 0.4)
  2372. LH.C0 = clerp(LH.C0, LHC0 * cf(-0.5, 1, 0) * euler(0.5, 0, -0.5), 0.4)
  2373. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  2374. do
  2375. if StaggerHit.Value == true then
  2376. break
  2377. end
  2378. -- DECOMPILER ERROR at PC281: LeaveBlock: unexpected jumping out IF_THEN_STMT
  2379.  
  2380. -- DECOMPILER ERROR at PC281: LeaveBlock: unexpected jumping out IF_STMT
  2381.  
  2382. end
  2383. end
  2384. end
  2385. so("200633077", workspace, 1, 1)
  2386. for i = 1, 50 do
  2387. swait(1)
  2388. CF = RootPart.CFrame * cf(math.random(-100,100), 0, math.random(-100,100))
  2389. ref2 = part(3, workspace, 0, 1, BrickColor.new("White"), "Reference", vt())
  2390. ref2.Anchored = true
  2391. ref2.CFrame = CF
  2392. game:GetService("Debris"):AddItem(ref2, 5)
  2393. so("199146035", ref2, 3, 1.5)
  2394. hitfloor2, posfloor2 = rayCast(ref2.Position, CFrame.new(ref2.Position, ref2.Position - Vector3.new(0, 1, 0)).lookVector, 100, Character)
  2395. if hitfloor2 ~= nil then
  2396. mana.Value = mana.Value - 30
  2397. ref2.CFrame = cf(posfloor2)
  2398. MagicCircle(BrickColor.new("White"), cf(posfloor2), 150, 1, 150, 0, 0, 0, 0.025)
  2399. MagicCircle(BrickColor.new("White"), cf(posfloor2), 150, 1, 150, 5, 0, 5, 0.05)
  2400. MagicCircle(BrickColor.new("White"), cf(posfloor2), 0, 1, 0, 4, 0, 4, 0.0285)
  2401. MagicCircle(BrickColor.new("White"), cf(posfloor2), 0, 0, 0, 40, 40, 40, 0.1)
  2402. for i = 0, 1, 0.05 do
  2403. end
  2404. so("278596476", ref2, 10, 1.5)
  2405. so("278596476", ref2, 10, 1.5)
  2406. so("199146035", ref2, 2.5, 1)
  2407. MagniDamage(ref2, 12, 5, 10, math.random(-50, -30), "Knockdown2", RootPart, 0, 1, (math.random(5, 10)), nil, nil, true)
  2408. MagicBlock(BrickColor.new("White"), cf(posfloor2), 0, 0, 0, 18, 18, 18, 0.05, 1)
  2409. MagicBlock(BrickColor.new("White"), cf(posfloor2), 0, 0, 0, 12, 12, 12, 0.05, 1)
  2410. MagicBlock(BrickColor.new("White"), cf(posfloor2), 0, 0, 0, 6, 6, 6, 0.05, 1)
  2411. MagicBlock(BrickColor.new("White"), cf(posfloor2), 2.5, 0, 2.5, -0.025, 50, -0.025, 0.05, 1)
  2412. MagicBlock(BrickColor.new("White"), cf(posfloor2), 2.5, 0, 2.5, -0.025, 50, -0.025, 0.05, 1)
  2413. MagicBlock(BrickColor.new("White"), cf(posfloor2), 2.5, 0, 2.5, -0.025, 50, -0.025, 0.05, 1)
  2414. MagicBlock(BrickColor.new("White"), cf(posfloor2), 2.5, 0, 2.5, -0.025, 50, -0.025, 0.05, 1)
  2415. MagicCircle(BrickColor.new("White"), cf(posfloor2), 5, 0, 5, -0.125, 9001, -0.125, 0.075)
  2416. end
  2417. swait(1)
  2418. 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)
  2419. 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)
  2420. end
  2421. do
  2422. mana.Value = mana.Value - 30
  2423. passivenum = -30
  2424. dec.Parent = nil
  2425. dec2.Parent = nil
  2426. passive.Value = -1
  2427. MagicCircle(BrickColor.new(NewCol2), cf(Torso.Position), 0, 0, 0, 0, 0, 0, 1)
  2428. MagniDamage(RootPart, 0, 0, 0, math.random(30, 50), "Knockdown2", RootPart, 0, 1, (math.random(4, 8)), nil, nil, false)
  2429. for i = 0, 1, 0.1 do
  2430. swait()
  2431. Neck.C0 = clerp(Neck.C0, necko * euler(-0.4, 0, -0.2), 0.4)
  2432. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -1.5) * euler(0.8, 0, 0.5), 0.4)
  2433. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(1.4, 0, 0.5), 0.4)
  2434. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  2435. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.2, 0, -0.4), 0.4)
  2436. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  2437. RH.C0 = clerp(RH.C0, RHC0 * cf(0, 0, 0) * euler(0, -0.5, -0.5), 0.4)
  2438. LH.C0 = clerp(LH.C0, LHC0 * cf(-0.5, 1, 0) * euler(0.5, 0, -0.5), 0.4)
  2439. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  2440. do
  2441. if StaggerHit.Value == true then
  2442. break
  2443. end
  2444. -- DECOMPILER ERROR at PC648: LeaveBlock: unexpected jumping out IF_THEN_STMT
  2445.  
  2446. -- DECOMPILER ERROR at PC648: LeaveBlock: unexpected jumping out IF_STMT
  2447.  
  2448. end
  2449. end
  2450. end
  2451. dec.Parent = nil
  2452. dec2.Parent = nil
  2453. attack = false
  2454. end
  2455. end
  2456. end
  2457. do3 = function()
  2458. if attack == true then
  2459. return
  2460. end
  2461. if Stagger.Value == true or StunT.Value <= Stun.Value or StaggerHit.Value == true then
  2462. return
  2463. end
  2464. if cooldownmax <= cooldowns[3] and mana.Value >= 30 then
  2465. attack = true
  2466. cooldowns[3] = 0
  2467. local doinvisatk = false
  2468. for i = 0, 1, 0.1 do
  2469. swait()
  2470. handlewld.C0 = clerp(handlewld.C0, euler(0, 0, 0) * cf(0, 1, 0), 0.3)
  2471. wld1.C0 = clerp(wld1.C0, euler(0, 0.8, 0) * cf(0, -2, 0) * euler(1.57, 0, 0), 0.3)
  2472. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0), 0.3)
  2473. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(-0.2, 0, 0), 0.3)
  2474. RW.C0 = clerp(RW.C0, cf(1, 1.2, 0) * euler(3.6, 0, -0.8), 0.3)
  2475. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  2476. LW.C0 = clerp(LW.C0, cf(-1, 1.2, 0) * euler(3.6, 0, 0.8), 0.3)
  2477. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  2478. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0, 1.57, 0) * euler(0, 0, -0.2), 0.3)
  2479. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, -1.57, 0) * euler(0, 0, 0.2), 0.3)
  2480. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  2481. do
  2482. if StaggerHit.Value == true then
  2483. break
  2484. end
  2485. end
  2486. end
  2487. end
  2488. so("92597369", prt6, 0, 0)
  2489. blcf = nil
  2490. scfr = nil
  2491. for i = 0, 1, 0.1 do
  2492. swait()
  2493. handlewld.C0 = clerp(handlewld.C0, euler(0, 0, 0) * cf(0, 1, 0), 0.3)
  2494. wld1.C0 = clerp(wld1.C0, euler(0, 0.8, 0) * cf(0, -2, 0) * euler(1.57, 0, 0), 0.3)
  2495. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0), 0.4)
  2496. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0.4, 0, 0), 0.4)
  2497. RW.C0 = clerp(RW.C0, cf(1, 0.3, -0.5) * euler(0.5, 0, -0.8), 0.4)
  2498. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  2499. LW.C0 = clerp(LW.C0, cf(-1, 0.3, -0.5) * euler(0.5, 0, 0.8), 0.4)
  2500. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  2501. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0, 1.57, 0) * euler(-0.2, 0, 0.3), 0.4)
  2502. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, -1.57, 0) * euler(-0.2, 0, -0.7), 0.4)
  2503. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  2504. do
  2505. if StaggerHit.Value == true then
  2506. break
  2507. end
  2508. end
  2509. end
  2510. end
  2511. attack = false
  2512. CF = RootPart.CFrame * cf(0, 0, -75)
  2513. ref2 = part(3, workspace, 0, 1, BrickColor.new("White"), "Reference", vt())
  2514. ref2.Anchored = true
  2515. ref2.CFrame = CF
  2516. game:GetService("Debris"):AddItem(ref2, 5)
  2517. so("199145761", ref2, 1, 0.75)
  2518. so("199146035", ref2, 3, 0.75)
  2519. hitfloor2, posfloor2 = rayCast(ref2.Position, CFrame.new(ref2.Position, ref2.Position - Vector3.new(0, 1, 0)).lookVector, 100, Character)
  2520. if hitfloor2 ~= nil then
  2521. mana.Value = mana.Value - 30
  2522. ref2.CFrame = cf(posfloor2)
  2523. MagicCircle(BrickColor.new("White"), cf(posfloor2), 400, 400, 400, 0, 0, 0, 0.01)
  2524. MagicCircle(BrickColor.new("White"), cf(posfloor2), 0, 0, 0, 4.5, 4.5, 4.5, 0.0125)
  2525. MagicCircle(BrickColor.new("White"), cf(posfloor2), 400, 400, 400, 10, 10, 10, 0.075)
  2526. for i = 0, 1, 0.05 do
  2527. swait(4)
  2528. 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)
  2529. end
  2530. so("203691653", ref2, 5, 0.75)
  2531. so("203691653", ref2, 5, 1)
  2532. so("199146035", ref2, 10, 0.75)
  2533. MagniDamage(ref2, 125, 7, 21, math.random(-50, -30), "Knockdown2", RootPart, 0, 1, (math.random(5, 10)), nil, nil, true)
  2534. MagicBlock(BrickColor.new("White"), cf(posfloor2), 0, 0, 0, 100, 100, 100, 0.05, 1)
  2535. MagicBlock(BrickColor.new("White"), cf(posfloor2), 0, 0, 0, 75, 75, 75, 0.05, 1)
  2536. MagicBlock(BrickColor.new("White"), cf(posfloor2), 0, 0, 0, 50, 50, 50, 0.05, 1)
  2537. MagicCircle(BrickColor.new("White"), cf(posfloor2), 400, 400, 400, 50, 50, 50, 0.05)
  2538. MagicCircle(BrickColor.new("White"), cf(posfloor2), 0, 0, 0, 0.5, 9001, 0.5, 0.01)
  2539. MagicCircle(BrickColor.new("White"), cf(posfloor2), 0, 0, 0, 1, 9001, 1, 0.01)
  2540. end
  2541. end
  2542. end
  2543. do4 = function()
  2544. if attack == true then
  2545. return
  2546. end
  2547. if Stagger.Value == true or StunT.Value <= Stun.Value or StaggerHit.Value == true then
  2548. return
  2549. end
  2550. if cooldownmax <= cooldowns[3] and mana.Value >= 30 then
  2551. attack = true
  2552. cooldowns[3] = 0
  2553. local dec = Instance.new("NumberValue", Decrease)
  2554. dec.Name = "DecreaseMvmt"
  2555. dec.Value = 10
  2556. local dec2 = Instance.new("NumberValue", Decrease)
  2557. dec2.Name = "DecreaseDef"
  2558. dec2.Value = -10
  2559. LW.C0 = clerp(LW.C0, cf(-1, 0.5, -0.5) * euler(2, 0, 1), 0.5)
  2560. for i = 0, 1, 0.1 do
  2561. swait()
  2562. Neck.C0 = clerp(Neck.C0, necko * euler(-0.4, 0, -0.2), 0.4)
  2563. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -1.5) * euler(0.8, 0, 0.5), 0.4)
  2564. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(1.4, 0, 0.5), 0.4)
  2565. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  2566. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.2, 0, -0.4), 0.4)
  2567. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  2568. RH.C0 = clerp(RH.C0, RHC0 * cf(0, 0, 0) * euler(0, -0.5, -0.5), 0.4)
  2569. LH.C0 = clerp(LH.C0, LHC0 * cf(-0.5, 1, 0) * euler(0.5, 0, -0.5), 0.4)
  2570. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  2571. do
  2572. if StaggerHit.Value == true then
  2573. break
  2574. end
  2575. -- DECOMPILER ERROR at PC281: LeaveBlock: unexpected jumping out IF_THEN_STMT
  2576.  
  2577. -- DECOMPILER ERROR at PC281: LeaveBlock: unexpected jumping out IF_STMT
  2578.  
  2579. end
  2580. end
  2581. end
  2582. so("315746833", workspace, 2, 0.75)
  2583. for i = 1, 50 do
  2584. swait(1)
  2585. CF = RootPart.CFrame * cf(math.random(-100,100), 0, math.random(-100,100))
  2586. ref2 = part(3, workspace, 0, 1, BrickColor.new("White"), "Reference", vt())
  2587. ref2.Anchored = true
  2588. ref2.CFrame = CF
  2589. game:GetService("Debris"):AddItem(ref2, 5)
  2590. so("199146035", ref2, 3, 1.5)
  2591. hitfloor2, posfloor2 = rayCast(ref2.Position, CFrame.new(ref2.Position, ref2.Position - Vector3.new(0, 1, 0)).lookVector, 100, Character)
  2592. if hitfloor2 ~= nil then
  2593. mana.Value = mana.Value - 30
  2594. ref2.CFrame = cf(posfloor2)
  2595. MagicCircle(BrickColor.new("White"), cf(posfloor2), 50, 1, 50, 0, 0, 0, 0.025)
  2596. MagicCircle(BrickColor.new("White"), cf(posfloor2), 50, 1, 50, 1.25, 0, 1.25, 0.05)
  2597. MagicCircle(BrickColor.new("White"), cf(posfloor2), 0, 1, 0, 1, 0, 1, 0.0285)
  2598. MagicCircle(BrickColor.new("White"), cf(posfloor2), 0, 0, 0, 20, 20, 20, 0.1)
  2599. for i = 0, 1, 0.05 do
  2600. end
  2601. so("199146035", ref2, 5, 1)
  2602. MagniDamage(ref2, 4, 2, 5, math.random(-50, -30), "Knockdown2", RootPart, 0, 1, (math.random(5, 10)), nil, nil, true)
  2603. MagicCircle(BrickColor.new("White"), cf(posfloor2), 0, 0, 0, 9, 9, 9, 0.05)
  2604. MagicCircle(BrickColor.new("White"), cf(posfloor2), 0, 0, 0, 6, 6, 6, 0.05)
  2605. MagicCircle(BrickColor.new("White"), cf(posfloor2), 0, 0, 0, 3, 3, 3, 0.05)
  2606. MagicCircle(BrickColor.new("White"), cf(posfloor2), 5, 0, 5, -0.125, 9001, -0.125, 0.075)
  2607. end
  2608. CF = RootPart.CFrame * cf(math.random(-100,100), 0, math.random(-100,100))
  2609. ref2 = part(3, workspace, 0, 1, BrickColor.new("White"), "Reference", vt())
  2610. ref2.Anchored = true
  2611. ref2.CFrame = CF
  2612. game:GetService("Debris"):AddItem(ref2, 5)
  2613. so("199146035", ref2, 3, 1.5)
  2614. hitfloor2, posfloor2 = rayCast(ref2.Position, CFrame.new(ref2.Position, ref2.Position - Vector3.new(0, 1, 0)).lookVector, 100, Character)
  2615. if hitfloor2 ~= nil then
  2616. mana.Value = mana.Value - 30
  2617. ref2.CFrame = cf(posfloor2)
  2618. MagicCircle(BrickColor.new("White"), cf(posfloor2), 50, 1, 50, 0, 0, 0, 0.025)
  2619. MagicCircle(BrickColor.new("White"), cf(posfloor2), 50, 1, 50, 1.25, 0, 1.25, 0.05)
  2620. MagicCircle(BrickColor.new("White"), cf(posfloor2), 0, 1, 0, 1, 0, 1, 0.0285)
  2621. MagicCircle(BrickColor.new("White"), cf(posfloor2), 0, 0, 0, 20, 20, 20, 0.1)
  2622. for i = 0, 1, 0.05 do
  2623. end
  2624. so("199146035", ref2, 5, 1)
  2625. MagniDamage(ref2, 4, 2, 5, math.random(-50, -30), "Knockdown2", RootPart, 0, 1, (math.random(5, 10)), nil, nil, true)
  2626. MagicCircle(BrickColor.new("White"), cf(posfloor2), 0, 0, 0, 9, 9, 9, 0.05)
  2627. MagicCircle(BrickColor.new("White"), cf(posfloor2), 0, 0, 0, 6, 6, 6, 0.05)
  2628. MagicCircle(BrickColor.new("White"), cf(posfloor2), 0, 0, 0, 3, 3, 3, 0.05)
  2629. MagicCircle(BrickColor.new("White"), cf(posfloor2), 5, 0, 5, -0.125, 9001, -0.125, 0.075)
  2630. end
  2631. swait(1)
  2632. 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)
  2633. 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)
  2634. MagicCircle(BrickColor.new(NewCol2), cf(Torso.Position), 60, 0, 60, -6, 500, -6, 0.075, 3)
  2635. end
  2636. do
  2637. mana.Value = mana.Value - 30
  2638. passivenum = -30
  2639. dec.Parent = nil
  2640. dec2.Parent = nil
  2641. passive.Value = -1
  2642. so("87767777", workspace, 10, 1)
  2643. so("178452221", workspace, 10, 0.6)
  2644. so("87767777", workspace, 10, 0.75)
  2645. 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)
  2646. 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)
  2647. 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)
  2648. 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)
  2649. 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)
  2650. 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)
  2651. 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)
  2652. MagicCircle(BrickColor.new(NewCol2), cf(Torso.Position), 1, 1, 1, 100, 100, 100, 0.02)
  2653. MagicCircle(BrickColor.new("White"), cf(Torso.Position), 1, 1, 1, 105, 105, 105, 0.02)
  2654. MagicCircle(BrickColor.new(NewCol2), cf(Torso.Position), 400, 1, 400, 1, 500, 1, 0.01)
  2655. MagniDamage(RootPart, 125, 4, 6, math.random(30, 50), "Knockdown2", RootPart, 0, 1, (math.random(4, 8)), nil, nil, false)
  2656. for i = 0, 1, 0.1 do
  2657. swait()
  2658. Neck.C0 = clerp(Neck.C0, necko * euler(-0.4, 0, -0.2), 0.4)
  2659. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -1.5) * euler(0.8, 0, 0.5), 0.4)
  2660. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(1.4, 0, 0.5), 0.4)
  2661. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  2662. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.2, 0, -0.4), 0.4)
  2663. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  2664. RH.C0 = clerp(RH.C0, RHC0 * cf(0, 0, 0) * euler(0, -0.5, -0.5), 0.4)
  2665. LH.C0 = clerp(LH.C0, LHC0 * cf(-0.5, 1, 0) * euler(0.5, 0, -0.5), 0.4)
  2666. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  2667. do
  2668. if StaggerHit.Value == true then
  2669. break
  2670. end
  2671. -- DECOMPILER ERROR at PC648: LeaveBlock: unexpected jumping out IF_THEN_STMT
  2672.  
  2673. -- DECOMPILER ERROR at PC648: LeaveBlock: unexpected jumping out IF_STMT
  2674.  
  2675. end
  2676. end
  2677. end
  2678. dec.Parent = nil
  2679. dec2.Parent = nil
  2680. attack = false
  2681. end
  2682. end
  2683. end
  2684. DecreaseStat = function(Model, Stat, Amount, Duration, cangui)
  2685. if Model:findFirstChild("Stats") ~= nil and Model.Stats[Stat] ~= nil then
  2686. Model.Stats[Stat].Value = Model.Stats[Stat].Value - Amount
  2687. d = Instance.new("NumberValue", Model.Stats.Decrease)
  2688. dur = Instance.new("NumberValue", d)
  2689. dur.Name = "Duration"
  2690. dur.Value = Duration
  2691. game:GetService("Debris"):AddItem(d, 20)
  2692. if Stat == "Damage" then
  2693. d.Name = "DecreaseAtk"
  2694. else
  2695. if Stat == "Defense" then
  2696. d.Name = "DecreaseDef"
  2697. else
  2698. if Stat == "Movement" then
  2699. d.Name = "DecreaseMvmt"
  2700. end
  2701. end
  2702. end
  2703. if Model:findFirstChild("Torso") ~= nil then
  2704. display = ""
  2705. if Stat == "Damage" then
  2706. if Amount > 0 then
  2707. display = "-Damage"
  2708. else
  2709. display = "+Damage"
  2710. end
  2711. else
  2712. if Stat == "Defense" then
  2713. if Amount > 0 then
  2714. display = "-Defense"
  2715. else
  2716. display = "+Defense"
  2717. end
  2718. else
  2719. if Stat == "Movement" then
  2720. if Amount > 0 then
  2721. display = "-Movement"
  2722. else
  2723. display = "+Movement"
  2724. end
  2725. end
  2726. end
  2727. end
  2728. if cangui ~= true then
  2729. showDamage(Model, display, "Debuff")
  2730. end
  2731. end
  2732. d.Value = Amount
  2733. end
  2734. end
  2735. GetDist = function(Part1, Part2, magni)
  2736. local targ = Part1.Position - Part2.Position
  2737. local mag = targ.magnitude
  2738. if mag <= magni then
  2739. return true
  2740. else
  2741. return false
  2742. end
  2743. end
  2744. MagniDamage = function(Part, magni, minim, maxim, knockback, Type, Property, Delay, KnockbackType, incstun, stagger, staghit, ranged, DecreaseState, DecreaseAmount, Duration)
  2745. for _,c in pairs(workspace:children()) do
  2746. local hum = c:findFirstChild("Humanoid")
  2747. if hum ~= nil then
  2748. local head = nil
  2749. for _,d in pairs(c:children()) do
  2750. if d.className == "Model" and ranged ~= true then
  2751. head = d:findFirstChild("Hitbox")
  2752. if d.Parent == Character then
  2753. break
  2754. end
  2755. if head ~= nil then
  2756. local targ = head.Position - Part.Position
  2757. local mag = targ.magnitude
  2758. if mag <= magni and c.Name ~= Player.Name then
  2759. ref = part(3, workspace, 0, 1, BrickColor.new("White"), "Reference", vt())
  2760. ref.Anchored = true
  2761. ref.CFrame = cf(head.Position)
  2762. game:GetService("Debris"):AddItem(ref, 1)
  2763. hitnum = math.random(1, 5)
  2764. if hitnum == 1 then
  2765. so("199148971", ref, 1, 1)
  2766. else
  2767. if hitnum == 2 then
  2768. so("199149025", ref, 1, 1)
  2769. else
  2770. if hitnum == 3 then
  2771. so("199149072", ref, 1, 1)
  2772. else
  2773. if hitnum == 4 then
  2774. so("199149109", ref, 1, 1)
  2775. else
  2776. if hitnum == 5 then
  2777. so("199149119", ref, 1, 1)
  2778. end
  2779. end
  2780. end
  2781. end
  2782. end
  2783. StaggerHit.Value = true
  2784. end
  2785. end
  2786. end
  2787. do
  2788. if d.className == "Part" and d.Name=="Torso" then
  2789. head = d
  2790. if head ~= nil then
  2791. local targ = head.Position - Part.Position
  2792. local mag = targ.magnitude
  2793. if mag <= magni and c.Name ~= Player.Name then
  2794. if stun == nil then
  2795. stun = math.random(5, 10)
  2796. end
  2797. local Rang = nil
  2798. if Ranged == false then
  2799. Rang = true
  2800. end
  2801. local stag = nil
  2802. if shbash == true then
  2803. stag = true
  2804. end
  2805. Damagefunc(head, minim, maxim, knockback, Type, Property, Delay, KnockbackType, incstun, stagger, staghit, ranged, DecreaseState, DecreaseAmount, Duration)
  2806. end
  2807. end
  2808. end
  2809. do
  2810. -- DECOMPILER ERROR at PC183: LeaveBlock: unexpected jumping out DO_STMT
  2811.  
  2812. end
  2813. end
  2814. end
  2815. end
  2816. end
  2817. end
  2818. rayCast = function(Pos, Dir, Max, Ignore)
  2819. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  2820. end
  2821. local Point = Torso.CFrame * cf(0, Torso.Size.Y, 0)
  2822. LastPoint = Point
  2823. effect = function(Color, Ref, LP, P1, returnn)
  2824. if LP == nil or P1 == nil then
  2825. return
  2826. end
  2827. local effectsmsh = Instance.new("CylinderMesh")
  2828. effectsmsh.Scale = Vector3.new(0.2, 1, 0.2)
  2829. effectsmsh.Name = "Mesh"
  2830. local effectsg = Instance.new("Part")
  2831. NoOutline(effectsg)
  2832. effectsg.formFactor = 3
  2833. effectsg.CanCollide = false
  2834. effectsg.Name = "Eff"
  2835. effectsg.Locked = true
  2836. effectsg.Anchored = true
  2837. effectsg.Size = Vector3.new(0.5, 1, 0.5)
  2838. effectsg.Parent = workspace
  2839. effectsmsh.Parent = effectsg
  2840. effectsg.BrickColor = BrickColor.new(Color)
  2841. effectsg.Reflectance = Ref
  2842. local point1 = P1
  2843. local mg = (LP.p - point1.p).magnitude
  2844. effectsg.Size = Vector3.new(0.5, mg, 0.5)
  2845. effectsg.CFrame = cf((LP.p + point1.p) / 2, point1.p) * CFrame.Angles(math.rad(90), 0, 0)
  2846. effectsmsh.Scale = Vector3.new(0.2, 1, 0.2)
  2847. game:GetService("Debris"):AddItem(effectsg, 2)
  2848. if returnn then
  2849. return effectsg
  2850. end
  2851. if not returnn then
  2852. table.insert(Effects, {effectsg, "Cylinder", 0.2, 0.01, 0, 0.01, effectsmsh})
  2853. end
  2854. end
  2855. MagicBlock = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type, parent)
  2856. local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt())
  2857. prt.Anchored = true
  2858. prt.CFrame = cframe
  2859. msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
  2860. game:GetService("Debris"):AddItem(prt, 10)
  2861. if Type == 1 or Type == nil then
  2862. table.insert(Effects, {prt, "Block1", delay, x3, y3, z3, msh})
  2863. else
  2864. if Type == 2 then
  2865. table.insert(Effects, {prt, "Block2", delay, x3, y3, z3, msh})
  2866. else
  2867. if Type == 3 then
  2868. 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})
  2869. end
  2870. end
  2871. end
  2872. end
  2873. MagicSkull = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, goe)
  2874. local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt())
  2875. prt.Anchored = true
  2876. prt.CFrame = cframe
  2877. msh = mesh("SpecialMesh", prt, "FileMesh", "4770583", vt(0, 0, 0), vt(x1, y1, z1))
  2878. game:GetService("Debris"):AddItem(prt, 10)
  2879. table.insert(Effects, {prt, "Skull", delay, x3, y3, z3, msh, goe})
  2880. end
  2881. MagicCircle = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  2882. local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt())
  2883. prt.Anchored = true
  2884. prt.CFrame = cframe
  2885. local msh = mesh("SpecialMesh", prt, "Sphere", "nil", vt(0, 0, 0), vt(x1, y1, z1))
  2886. game:GetService("Debris"):AddItem(prt, 10)
  2887. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  2888. end
  2889. MagicCircle2 = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, push)
  2890. local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt())
  2891. prt.Anchored = true
  2892. prt.CFrame = cframe
  2893. local msh = mesh("SpecialMesh", prt, "Sphere", "nil", vt(0, 0, 0), vt(x1, y1, z1))
  2894. game:GetService("Debris"):AddItem(prt, 10)
  2895. table.insert(Effects, {prt, "Blood", delay, x3, y3, z3, msh, push})
  2896. end
  2897. MagicCylinder = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  2898. local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt())
  2899. prt.Anchored = true
  2900. prt.CFrame = cframe
  2901. local msh = mesh("CylinderMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
  2902. game:GetService("Debris"):AddItem(prt, 10)
  2903. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  2904. end
  2905. MagicCylinder2 = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, goe)
  2906. local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt())
  2907. prt.Anchored = true
  2908. prt.CFrame = cframe
  2909. local msh = mesh("CylinderMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
  2910. game:GetService("Debris"):AddItem(prt, 10)
  2911. table.insert(Effects, {prt, "Cylinder2", delay, x3, y3, z3, msh, goe})
  2912. end
  2913. MagicHead = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  2914. local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt())
  2915. prt.Anchored = true
  2916. prt.CFrame = cframe
  2917. local msh = mesh("SpecialMesh", prt, "Head", "nil", vt(0, 0, 0), vt(x1, y1, z1))
  2918. game:GetService("Debris"):AddItem(prt, 10)
  2919. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  2920. end
  2921. ClangEffect = function(brickcolor, cframe, duration, decrease, size, power)
  2922. local prt = part(3, workspace, 0, 1, brickcolor, "Effect", vt())
  2923. prt.Anchored = true
  2924. prt.CFrame = cframe
  2925. local msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(5, 5, 5))
  2926. game:GetService("Debris"):AddItem(prt, 10)
  2927. table.insert(Effects, {prt, "CylinderClang", duration, decrease, size, power, prt.CFrame, nil})
  2928. end
  2929. MagicWave = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  2930. local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt())
  2931. prt.Anchored = true
  2932. prt.CFrame = cframe
  2933. local msh = mesh("SpecialMesh", prt, "FileMesh", "20329976", vt(0, 0, 0), vt(x1, y1, z1))
  2934. game:GetService("Debris"):AddItem(prt, 10)
  2935. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  2936. end
  2937. MagicFire = function(brickcolor, cframe, x1, y1, z1, delay)
  2938. local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt())
  2939. prt.Anchored = true
  2940. prt.CFrame = cframe
  2941. msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
  2942. game:GetService("Debris"):AddItem(prt, 10)
  2943. table.insert(Effects, {prt, "Fire", delay, 1, 1, 1, msh})
  2944. end
  2945. MagicFireWave = function(brickcolor, cframe, x1, y1, z1)
  2946. local prt = part(3, workspace, 0, 1, brickcolor, "Effect", vt())
  2947. prt.Anchored = true
  2948. prt.CFrame = cframe
  2949. msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
  2950. d = Instance.new("Decal")
  2951. d.Parent = prt
  2952. d.Texture = "http://www.roblox.com/asset/?id=26356434"
  2953. d.Face = "Top"
  2954. d = Instance.new("Decal")
  2955. d.Parent = prt
  2956. d.Texture = "http://www.roblox.com/asset/?id=26356434"
  2957. d.Face = "Bottom"
  2958. game:GetService("Debris"):AddItem(prt, 10)
  2959. table.insert(Effects, {prt, "FireWave", 1, 30, math.random(400, 600) / 100, msh})
  2960. end
  2961. ElecEffect = function(cff, x, y, z)
  2962. local prt = part(3, workspace, 0, 0, BrickColor.new("White"), "Part", vt(1, 1, 1))
  2963. prt.Anchored = true
  2964. prt.CFrame = cff * cf(math.random(-x, x), math.random(-y, y), math.random(-z, z))
  2965. prt.CFrame = cf(prt.Position)
  2966. game:GetService("Debris"):AddItem(prt, 10)
  2967. xval = math.random() / 3
  2968. yval = math.random() / 3
  2969. zval = math.random() / 3
  2970. msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(xval, yval, zval))
  2971. Effects[#Effects + 1] = {prt, "Elec", 0.2, x, y, z, xval, yval, zval, msh}
  2972. end
  2973. CloneBody = function()
  2974. for _,v in pairs(Torso.Parent:children()) do
  2975. if v.className == "Part" and v.Name ~= "HumanoidRootPart" then
  2976. local c = part(3, workspace, 0, 0.5, BrickColor.new("White"), "Effect", v.Size)
  2977. c.Anchored = true
  2978. c.CFrame = v.CFrame
  2979. game:GetService("Debris"):AddItem(c, 5)
  2980. if v.Name == "Head" then
  2981. cmsh = mesh("SpecialMesh", c, "Head", "nil", vt(0, 0, 0), v.Mesh.Scale)
  2982. end
  2983. table.insert(Effects, {c, "Disappear", 0.05})
  2984. end
  2985. end
  2986. end
  2987. Clone = function(duration)
  2988. for _,v in pairs(Torso.Parent:children()) do
  2989. if v.className == "Part" and v.Name ~= "HumanoidRootPart" then
  2990. local c = part(3, workspace, 0, 0, BrickColor.new("White"), "Effect", v.Size)
  2991. c.Anchored = true
  2992. c.CFrame = v.CFrame
  2993. game:GetService("Debris"):AddItem(c, 5)
  2994. if v.Name == "Head" then
  2995. cmsh = mesh("SpecialMesh", c, "Head", "nil", vt(0, 0, 0), v.Mesh.Scale)
  2996. end
  2997. table.insert(Effects, {c, "Disappear", duration})
  2998. else
  2999. do
  3000. do
  3001. if v.className == "Hat" then
  3002. n = v.Handle:clone()
  3003. n:BreakJoints()
  3004. n.archivable = true
  3005. n.Anchored = true
  3006. n.CanCollide = false
  3007. n.Name = "Effect"
  3008. n.BrickColor = BrickColor.new("White")
  3009. n.Parent = workspace
  3010. n.CFrame = v.Handle.CFrame
  3011. n.Transparency = 1
  3012. n:BreakJoints()
  3013. table.insert(Effects, {n, "Disappear", duration})
  3014. end
  3015. -- DECOMPILER ERROR at PC108: LeaveBlock: unexpected jumping out DO_STMT
  3016.  
  3017. -- DECOMPILER ERROR at PC108: LeaveBlock: unexpected jumping out IF_ELSE_STMT
  3018.  
  3019. -- DECOMPILER ERROR at PC108: LeaveBlock: unexpected jumping out IF_STMT
  3020.  
  3021. end
  3022. end
  3023. end
  3024. end
  3025. for _,v in pairs(modelzorz:children()) do
  3026. if v.className == "Part" and v.Name ~= "Hitbox" and v.Name ~= "Hitbox2" then
  3027. n = v:clone()
  3028. for _,b in pairs(n:children()) do
  3029. if b.className == "Motor" then
  3030. b.Parent = nil
  3031. end
  3032. end
  3033. n.archivable = true
  3034. n.Anchored = true
  3035. n.CanCollide = false
  3036. n.Name = "Effect"
  3037. n.BrickColor = BrickColor.new("White")
  3038. n.Parent = workspace
  3039. n.CFrame = v.CFrame
  3040. n.Transparency = 0
  3041. n:BreakJoints()
  3042. table.insert(Effects, {n, "Disappear", duration})
  3043. end
  3044. end
  3045. end
  3046. Cloak = function()
  3047. so("697784157", Torso, 1, 1)
  3048. Face.Parent = nil
  3049. Clone(0.02)
  3050. for _,v in pairs(Torso.Parent:children()) do
  3051. do
  3052. if v.className == "Part" and v.Name ~= "HumanoidRootPart" then
  3053. coroutine.resume(coroutine.create(function()
  3054. for i = 0, 1, 0.1 do
  3055. wait()
  3056. v.Transparency = v.Transparency + 0.1
  3057. end
  3058. v.Transparency = 1
  3059. end))
  3060. end
  3061. if v.className == "Hat" then
  3062. do
  3063. hatp = v.Handle
  3064. coroutine.resume(coroutine.create(function(derp)
  3065. for i = 0, 1, 0.1 do
  3066. wait()
  3067. derp.Transparency = derp.Transparency + 0.1
  3068. end
  3069. derp.Transparency = 1
  3070. end), hatp)
  3071. -- DECOMPILER ERROR at PC45: LeaveBlock: unexpected jumping out IF_THEN_STMT
  3072.  
  3073. -- DECOMPILER ERROR at PC45: LeaveBlock: unexpected jumping out IF_STMT
  3074.  
  3075. end
  3076. end
  3077. end
  3078. end
  3079. for _,v in pairs(modelzorz:children()) do
  3080. if v.className == "Part" and v.Name ~= "Hitbox" and v.Name ~= "Hitbox2" then
  3081. coroutine.resume(coroutine.create(function()
  3082. for i = 0, 1, 0.1 do
  3083. wait()
  3084. v.Transparency = v.Transparency + 0.1
  3085. end
  3086. v.Transparency = 1
  3087. end))
  3088. end
  3089. end
  3090. end
  3091. UnCloak = function()
  3092. so("697784157", Torso, 1, 1.1)
  3093. Face.Parent = Head
  3094. for _,v in pairs(Torso.Parent:children()) do
  3095. do
  3096. if v.className == "Part" and v.Name ~= "HumanoidRootPart" then
  3097. coroutine.resume(coroutine.create(function()
  3098. for i = 0, 1, 0.1 do
  3099. wait()
  3100. v.Transparency = v.Transparency - 0.1
  3101. end
  3102. v.Transparency = 0
  3103. end))
  3104. end
  3105. if v.className == "Hat" then
  3106. do
  3107. hatp = v.Handle
  3108. coroutine.resume(coroutine.create(function(derp)
  3109. for i = 0, 1, 0.1 do
  3110. wait()
  3111. derp.Transparency = derp.Transparency - 0.1
  3112. end
  3113. derp.Transparency = 1
  3114. end), hatp)
  3115. -- DECOMPILER ERROR at PC43: LeaveBlock: unexpected jumping out IF_THEN_STMT
  3116.  
  3117. -- DECOMPILER ERROR at PC43: LeaveBlock: unexpected jumping out IF_STMT
  3118.  
  3119. end
  3120. end
  3121. end
  3122. end
  3123. for _,v in pairs(modelzorz:children()) do
  3124. if v.className == "Part" and v.Name ~= "Hitbox" and v.Name ~= "Hitbox2" then
  3125. coroutine.resume(coroutine.create(function()
  3126. for i = 0, 1, 0.1 do
  3127. wait()
  3128. v.Transparency = v.Transparency - 0.1
  3129. end
  3130. for i = 0, 1, 0.3 do
  3131. wait()
  3132. v.Transparency = 0
  3133. end
  3134. end))
  3135. end
  3136. end
  3137. end
  3138. Damagefunc = function(hit, minim, maxim, knockback, Type, Property, Delay, KnockbackType, incstun, stagger, staghit, ranged, DecreaseState, DecreaseAmount, Duration)
  3139. if hit.Parent == nil then
  3140. return
  3141. end
  3142. if hit.Name == "Hitbox" and hit.Parent ~= modelzorz and ranged ~= true then
  3143. ref = part(3, workspace, 0, 1, BrickColor.new("White"), "Reference", vt())
  3144. ref.Anchored = true
  3145. ref.CFrame = cf(hit.Position)
  3146. game:GetService("Debris"):AddItem(ref, 1)
  3147. hitnum = math.random(1, 5)
  3148. if hitnum == 1 then
  3149. so("199148971", ref, 1, 1)
  3150. else
  3151. if hitnum == 2 then
  3152. so("199149025", ref, 1, 1)
  3153. else
  3154. if hitnum == 3 then
  3155. so("199149072", ref, 1, 1)
  3156. else
  3157. if hitnum == 4 then
  3158. so("199149109", ref, 1, 1)
  3159. else
  3160. if hitnum == 5 then
  3161. so("199149119", ref, 1, 1)
  3162. end
  3163. end
  3164. end
  3165. end
  3166. end
  3167. StaggerHit.Value = true
  3168. end
  3169. h = hit.Parent:FindFirstChild("Humanoid")
  3170. if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
  3171. if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then
  3172. return
  3173. end
  3174. if Player.Neutral == false then
  3175. if hit.Parent:findFirstChild("Alignment") ~= nil and hit.Parent.Alignment.Value == Player.TeamColor.Color then
  3176. return
  3177. end
  3178. if game.Players:GetPlayerFromCharacter(hit.Parent) ~= nil and game.Players:GetPlayerFromCharacter(hit.Parent).TeamColor == Player.TeamColor then
  3179. return
  3180. end
  3181. end
  3182. c = Instance.new("ObjectValue")
  3183. c.Name = "creator"
  3184. c.Value = game:service("Players").LocalPlayer
  3185. c.Parent = h
  3186. RecentEnemy.Value = hit.Parent
  3187. game:GetService("Debris"):AddItem(c, 0.5)
  3188. if doing4 == false then
  3189. minim = minim * Atk.Value
  3190. maxim = maxim * Atk.Value
  3191. end
  3192. Damage = 0
  3193. if minim == maxim then
  3194. Damage = maxim
  3195. else
  3196. Damage = math.random(minim, maxim)
  3197. end
  3198. blocked = false
  3199. enblock = nil
  3200. Stats = hit.Parent:findFirstChild("Stats")
  3201. if Stats == nil then
  3202. Character.Stats:Clone().Parent=hit.Parent
  3203. end
  3204. if Stats ~= nil then
  3205. Stats.Defense.Value=1
  3206. invis = Stats:findFirstChild("Invisibility")
  3207. if (ranged == false or ranged == nil) and invis ~= nil then
  3208. invis.Value = 0
  3209. end
  3210. enblock = Stats:findFirstChild("Block")
  3211. if enblock ~= nil and enblock.Value == true then
  3212. blocked = true
  3213. end
  3214. if Stats:findFirstChild("Defense") ~= nil then
  3215. if doing2 ~= true and doing4 ~= true then
  3216. local divide = Stats.Defense.Value
  3217. Damage = Damage / divide
  3218. end
  3219. do
  3220. Damage = Damage
  3221. if Damage <= 3 and (ranged == false or ranged == nil) and blocked ~= true then
  3222. hitnum = math.random(1, 5)
  3223. if hitnum == 1 then
  3224. so("199149321", hit, 1, 1)
  3225. else
  3226. if hitnum == 2 then
  3227. so("199149338", hit, 1, 1)
  3228. else
  3229. if hitnum == 3 then
  3230. so("199149367", hit, 1, 1)
  3231. else
  3232. if hitnum == 4 then
  3233. so("199149409", hit, 1, 1)
  3234. else
  3235. if hitnum == 5 then
  3236. so("199149452", hit, 1, 1)
  3237. end
  3238. end
  3239. end
  3240. end
  3241. end
  3242. else
  3243. if ranged == false or ranged == nil and blocked ~= true then
  3244. hitnum = math.random(1, 6)
  3245. if hitnum == 1 then
  3246. so("199149137", hit, 1, 1)
  3247. else
  3248. if hitnum == 2 then
  3249. so("199149186", hit, 1, 1)
  3250. else
  3251. if hitnum == 3 then
  3252. so("199149221", hit, 1, 1)
  3253. else
  3254. if hitnum == 4 then
  3255. so("199149235", hit, 1, 1)
  3256. else
  3257. if hitnum == 5 then
  3258. so("199149269", hit, 1, 1)
  3259. else
  3260. if hitnum == 6 then
  3261. so("199149297", hit, 1, 1)
  3262. end
  3263. end
  3264. end
  3265. end
  3266. end
  3267. end
  3268. end
  3269. end
  3270. if Damage <= 3 and staghit == true and ranged ~= true then
  3271. StaggerHit.Value = true
  3272. end
  3273. if Stats:findFirstChild("Stun") ~= nil then
  3274. if blocked == true then
  3275. incstun = incstun / 2
  3276. end
  3277. if Stats.Stun.Value < Stats.StunThreshold.Value then
  3278. Stats.Stun.Value = Stats.Stun.Value + incstun
  3279. end
  3280. end
  3281. if Stats:findFirstChild("Stagger") ~= nil and stagger == true then
  3282. Stats.Stagger.Value = true
  3283. end
  3284. if blocked == true then
  3285. showDamage(hit.Parent, "Block", "Damage")
  3286. if ranged ~= true then
  3287. enblock.Value = false
  3288. Stagger.Value = true
  3289. hitnum = math.random(1, 2)
  3290. if hitnum == 1 then
  3291. so("199148933", hit, 1, 1)
  3292. else
  3293. if hitnum == 2 then
  3294. so("199148947", hit, 1, 1)
  3295. end
  3296. end
  3297. end
  3298. else
  3299. Damage = math.floor(Damage)
  3300. if hit.Parent:findFirstChild("Mark") == nil then
  3301. d = it("BoolValue", hit.Parent)
  3302. d.Name = "Mark"
  3303. b = it("NumberValue", d)
  3304. b.Name = "MarkTime"
  3305. b.Value = 200
  3306. v = it("NumberValue", d)
  3307. v.Name = "MarkValue"
  3308. v.Value = 0
  3309. if doing4 == true then
  3310. v.Value = 10
  3311. end
  3312. sz = it("NumberValue", d)
  3313. sz.Name = "MarkSize"
  3314. sz.Value = 5
  3315. st = it("StringValue", d)
  3316. st.Name = "MarkType"
  3317. st.Value = "Adjudicator"
  3318. local tehpart = hit.Parent:findFirstChild("HumanoidRootPart")
  3319. if tehpart == nil then
  3320. tehpart = hit.Parent:findFirstChild("Torso")
  3321. end
  3322. if hit.Parent.Name == "Neflhelm" then
  3323. tehpart = hit
  3324. end
  3325. if tehpart ~= nil then
  3326. markgui = it("BillboardGui", tehpart)
  3327. markgui.Name = "Mark Gui"
  3328. markgui.Size = UDim2.new(7, 0, 7, 0)
  3329. markgui.StudsOffset = vt(0, 10, 0)
  3330. markgui.AlwaysOnTop = true
  3331. markscy = it("ImageLabel", markgui)
  3332. markscy.Name = "Scythe"
  3333. markscy.BackgroundTransparency = 1
  3334. markscy.Image = "rbxassetid://278007861"
  3335. markscy.ImageColor3 = Color3.new(1, 0, 0)
  3336. markscy.Size = UDim2.new(1, 0, 1, 0)
  3337. table.insert(MarkedGUI, {markgui, markscy})
  3338. end
  3339. table.insert(Marked, {d, b, v, sz})
  3340. else
  3341. mark = hit.Parent:findFirstChild("Mark")
  3342. if mark:findFirstChild("MarkTime") ~= nil then
  3343. mark.MarkTime.Value = 700
  3344. end
  3345. if mark:findFirstChild("MarkValue") ~= nil then
  3346. if mark.MarkValue.Value >= 10 then
  3347. if mark:findFirstChild("MarkTime") ~= nil then
  3348. mark.MarkTime.Value = 400
  3349. end
  3350. if mark.MarkType.Value == "Classic" then
  3351. mark.Parent = nil
  3352. Damage = Damage * 2
  3353. print("double damage")
  3354. if hit.Parent:findFirstChild("HumanoidRootPart") ~= nil then
  3355. ref = part(3, workspace, 0, 1, BrickColor.new("White"), "Reference", vt())
  3356. ref.Anchored = true
  3357. ref.CFrame = hit.Parent.HumanoidRootPart.CFrame
  3358. game:GetService("Debris"):AddItem(ref, 5)
  3359. local nr = NumberRange.new
  3360. local ns = NumberSequence.new
  3361. local cs = ColorSequence.new
  3362. local parti = it("ParticleEmitter")
  3363. parti.Color = cs(NewCol, Color3.new(0, 0, 0))
  3364. parti.LightEmission = 0
  3365. parti.Size = ns(10)
  3366. parti.Texture = "http://www.roblox.com/asset/?id=243660364"
  3367. transseq = ns({NumberSequenceKeypoint.new(0, 0), NumberSequenceKeypoint.new(1, 1)})
  3368. parti.Transparency = transseq
  3369. parti.ZOffset = 1
  3370. parti.Acceleration = vt(0, 0, 0)
  3371. parti.Lifetime = nr(1)
  3372. parti.Rate = 20
  3373. parti.Rotation = nr(0, 360)
  3374. parti.Speed = nr(0)
  3375. parti.VelocitySpread = 0
  3376. parti.Parent = ref
  3377. parti.Enabled = true
  3378. table.insert(Effects, {parti, "PartiEmi", 20})
  3379. markscy = it("ImageLabel", markgui)
  3380. markscy.Name = "Scythe"
  3381. markscy.BackgroundTransparency = 1
  3382. markscy.Image = "rbxassetid://258927926"
  3383. markscy.ImageColor3 = Color3.new(1, 0, 0)
  3384. markscy.Size = UDim2.new(1, 0, 1, 0)
  3385. table.insert(Effects, {markgui, "AdjuEff", 10, markscy})
  3386. end
  3387. elseif mark.MarkType.Value == "Adjudicator" and hit.Parent:findFirstChild("HumanoidRootPart") ~= nil then
  3388. da = math.random(1, 4)
  3389. inc = 1
  3390. if doing2 == true then
  3391. inc = 2
  3392. end
  3393. if da == 1 then
  3394. DecreaseStat(Character, "Damage", -math.random(6, 10) / 100 * inc, 150, true)
  3395. DecreaseStat(Character, "Movement", -math.random(2, 6) / 100 * inc, 200, true)
  3396. else
  3397. if da == 2 then
  3398. DecreaseStat(Character, "Defense", -math.random(2, 6) / 100 * inc, 150, true)
  3399. DecreaseStat(Character, "Movement", -math.random(2, 6) / 100 * inc, 200, true)
  3400. else
  3401. if da == 3 then
  3402. DecreaseStat(hit.Parent, "Damage", math.random(6, 10) / 100 * inc, 150, true)
  3403. DecreaseStat(hit.Parent, "Movement", math.random(1, 3) / 100 * inc, 200, true)
  3404. else
  3405. if da == 4 then
  3406. DecreaseStat(hit.Parent, "Defense", math.random(2, 6) / 100 * inc, 150, true)
  3407. DecreaseStat(hit.Parent, "Movement", math.random(1, 3) / 100 * inc, 200, true)
  3408. end
  3409. end
  3410. end
  3411. end
  3412. ref = part(3, workspace, 0, 1, BrickColor.new("White"), "Reference", vt())
  3413. ref.Anchored = true
  3414. ref.CFrame = hit.Parent.HumanoidRootPart.CFrame
  3415. game:GetService("Debris"):AddItem(ref, 5)
  3416. markgui = it("BillboardGui", ref)
  3417. markgui.Name = "Mark Gui"
  3418. markgui.Size = UDim2.new(7, 0, 7, 0)
  3419. markgui.StudsOffset = vt(0, 10, 0)
  3420. markgui.AlwaysOnTop = true
  3421. markscy = it("ImageLabel", markgui)
  3422. markscy.Name = "Scythe"
  3423. markscy.BackgroundTransparency = 1
  3424. markscy.Image = "rbxassetid://278007453"
  3425. markscy.ImageColor3 = Color3.new(1, 0, 0)
  3426. markscy.Size = UDim2.new(1, 0, 1, 0)
  3427. table.insert(Effects, {markgui, "AdjuEff", 10, markscy})
  3428. end
  3429. elseif --[[mark.MarkType.Value ~= "Thanatos" or --]]doing4 == true then
  3430. mark.MarkValue.Value = 10
  3431. else
  3432. mark.MarkValue.Value = mark.MarkValue.Value + 1
  3433. end
  3434. end
  3435. if mark:findFirstChild("MarkSize") ~= nil then
  3436. mark.MarkSize.Value = 5
  3437. end
  3438. coroutine.resume(coroutine.create(function(Hum, Dam)
  3439. hit.Parent.Humanoid:TakeDamage(Damage)
  3440. end), h, Damage)
  3441. pursuitnum = 0
  3442. if isinvis.Value == false then
  3443. invisnum.Value = math.floor(invisnum.Value + math.random(4, 8) + Damage / 5)
  3444. end
  3445. showDamage(hit.Parent, Damage, "Damage")
  3446. if DecreaseState ~= nil then
  3447. DecreaseStat(hit.Parent, DecreaseState, DecreaseAmount, Duration)
  3448. end
  3449. if Type == "NormalDecreaseMvmt1" then
  3450. DecreaseStat(hit.Parent, "Movement", 0.1, 200)
  3451. end
  3452. if Type == "Knockdown" then
  3453. hum = hit.Parent.Humanoid
  3454. hum.PlatformStand = true
  3455. coroutine.resume(coroutine.create(function(HHumanoid)
  3456. swait(1)
  3457. HHumanoid.PlatformStand = false
  3458. end), hum)
  3459. local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit
  3460. local bodvol = Instance.new("BodyVelocity")
  3461. bodvol.velocity = angle * knockback
  3462. bodvol.P = 500
  3463. bodvol.maxForce = Vector3.new(2000, 2000, 2000)
  3464. bodvol.Parent = hit
  3465. rl = Instance.new("BodyAngularVelocity")
  3466. rl.P = 3000
  3467. rl.maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000
  3468. rl.angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10))
  3469. rl.Parent = hit
  3470. game:GetService("Debris"):AddItem(bodvol, 0.5)
  3471. game:GetService("Debris"):AddItem(rl, 0.5)
  3472. else
  3473. do
  3474. if Type == "Knockdown2" then
  3475. hum = hit.Parent.Humanoid
  3476. local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit
  3477. local bodvol = Instance.new("BodyVelocity")
  3478. bodvol.velocity = angle * knockback
  3479. bodvol.P = 500
  3480. bodvol.maxForce = Vector3.new(2000, 2000, 2000)
  3481. bodvol.Parent = hit
  3482. game:GetService("Debris"):AddItem(bodvol, 0.5)
  3483. else
  3484. do
  3485. if Type == "Normal" or Type == "NormalDecreaseMvmt1" then
  3486. vp = Instance.new("BodyVelocity")
  3487. vp.P = 500
  3488. vp.maxForce = Vector3.new(math.huge, 0, math.huge)
  3489. if KnockbackType == 1 then
  3490. vp.velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05
  3491. else
  3492. if KnockbackType == 2 then
  3493. vp.velocity = Property.CFrame.lookVector * knockback
  3494. end
  3495. end
  3496. game:GetService("Debris"):AddItem(vp, 0.5)
  3497. if knockback > 0 then
  3498. vp.Parent = hit.Parent.Torso
  3499. end
  3500. end
  3501. debounce = Instance.new("BoolValue")
  3502. debounce.Name = "DebounceHit"
  3503. debounce.Parent = hit.Parent
  3504. debounce.Value = true
  3505. game:GetService("Debris"):AddItem(debounce, Delay)
  3506. c = Instance.new("ObjectValue")
  3507. c.Name = "creator"
  3508. c.Value = Player
  3509. c.Parent = h
  3510. game:GetService("Debris"):AddItem(c, 0.5)
  3511. CRIT = false
  3512. end
  3513. end
  3514. end
  3515. end
  3516. end
  3517. end
  3518. end
  3519. end
  3520. end
  3521. end
  3522. end
  3523. -- end
  3524. --end
  3525. --end
  3526. --end
  3527. --end
  3528. showDamage = function(Char, Dealt, Type)
  3529. m = Instance.new("Model")
  3530. m.Name = "Effect"
  3531. c = Instance.new("Part")
  3532. c.Transparency = 1
  3533. c.Name = "Head"
  3534. c.TopSurface = 0
  3535. c.BottomSurface = 0
  3536. c.formFactor = "Plate"
  3537. c.Size = Vector3.new(1, 0.4, 1)
  3538. b = Instance.new("BillboardGui", c)
  3539. b.Size = UDim2.new(5, 0, 5, 0)
  3540. b.AlwaysOnTop = true
  3541. damgui = gui("TextLabel", b, tostring(Dealt), 1, Color3.new(0, 0, 0), UDim2.new(0, 0, 0, 0), UDim2.new(1, 0, 1, 0))
  3542. if Type == "Damage" then
  3543. damgui.Font = "SciFi"
  3544. if Dealt == "Block" then
  3545. damgui.TextColor3 = BrickColor.new("White").Color
  3546. else
  3547. if Dealt < 3 then
  3548. damgui.TextColor3 = BrickColor.new("White").Color
  3549. else
  3550. if Dealt >= 3 and Dealt < 20 then
  3551. damgui.TextColor3 = BrickColor.new("White").Color
  3552. else
  3553. damgui.TextColor3 = BrickColor.new("White").Color
  3554. damgui.Font = "SciFi"
  3555. end
  3556. end
  3557. end
  3558. else
  3559. if Type == "Debuff" then
  3560. damgui.TextColor3 = BrickColor.new("White").Color
  3561. else
  3562. if Type == "Interrupt" then
  3563. damgui.TextColor3 = BrickColor.new("New Yeller").Color
  3564. end
  3565. end
  3566. end
  3567. damgui.TextScaled = true
  3568. ms = Instance.new("CylinderMesh")
  3569. ms.Scale = Vector3.new(0.8, 0.8, 0.8)
  3570. ms.Parent = c
  3571. c.Reflectance = 0
  3572. Instance.new("BodyGyro").Parent = c
  3573. c.Parent = m
  3574. if Char:findFirstChild("Head") ~= nil then
  3575. c.CFrame = cf(Char.Head.CFrame.p + Vector3.new(math.random(-100, 100) / 100, 3, math.random(-100, 100) / 100))
  3576. else
  3577. if Char.Parent:findFirstChild("Head") ~= nil then
  3578. c.CFrame = cf(Char.Parent.Head.CFrame.p + Vector3.new(math.random(-100, 100) / 100, 3, math.random(-100, 100) / 100))
  3579. end
  3580. end
  3581. f = Instance.new("BodyPosition")
  3582. f.P = 2000
  3583. f.D = 100
  3584. f.maxForce = Vector3.new(545000, 545000, 545000)
  3585. if Type == "Damage" then
  3586. f.position = c.Position + Vector3.new(0, 3, 0)
  3587. else
  3588. if Type == "Debuff" or Type == "Interrupt" then
  3589. f.position = c.Position + Vector3.new(0, 5, 0)
  3590. end
  3591. end
  3592. f.Parent = c
  3593. game:GetService("Debris"):AddItem(m, 5)
  3594. table.insert(Effects, {m, "showDamage", damgui, f, 10, 1, 15, 50, 100})
  3595. c.CanCollide = false
  3596. m.Parent = workspace
  3597. c.CanCollide = false
  3598. end
  3599. combo = 0
  3600. ob1d = function(mouse)
  3601. if arcorb == true then
  3602. arcorb = false
  3603. end
  3604. if attack == true or equipped == false then
  3605. return
  3606. end
  3607. deb = 0.5
  3608. hold = true
  3609. if combo == 0 then
  3610. combo = 1
  3611. attackone()
  3612. else
  3613. if combo == 1 then
  3614. combo = 2
  3615. attacktwo()
  3616. else
  3617. if combo == 2 then
  3618. combo = 3
  3619. attackthree()
  3620. else
  3621. if combo == 3 then
  3622. combo = 0
  3623. attackfour()
  3624. end
  3625. end
  3626. end
  3627. end
  3628. coroutine.resume(coroutine.create(function()
  3629. for i = 1, 50 do
  3630. if attack == false then
  3631. swait()
  3632. end
  3633. end
  3634. if attack == false then
  3635. combo = 0
  3636. end
  3637. end))
  3638. end
  3639. ob1u = function(mouse)
  3640. hold = false
  3641. end
  3642. buttonhold = false
  3643. fenbarmove1.MouseButton1Click:connect(do1)
  3644. fenbarmove2.MouseButton1Click:connect(do2)
  3645. fenbarmove3.MouseButton1Click:connect(do3)
  3646. fenbarmove4.MouseButton1Click:connect(do4)
  3647. eul = 0
  3648. equipped = false
  3649. key = function(key)
  3650. if attack == true then
  3651. return
  3652. end
  3653. if key == "f" then
  3654. pressedf = true
  3655. fnumb = 0
  3656. attack = true
  3657. if equipped == false then
  3658. equipped = true
  3659. RSH = ch.Torso["Right Shoulder"]
  3660. LSH = ch.Torso["Left Shoulder"]
  3661. RSH.Parent = nil
  3662. LSH.Parent = nil
  3663. RW.Name = "Right Shoulder"
  3664. RW.Part0 = ch.Torso
  3665. RW.C0 = cf(1.5, 0.5, 0)
  3666. RW.C1 = cf(0, 0.5, 0)
  3667. RW.Part1 = ch["Right Arm"]
  3668. RW.Parent = ch.Torso
  3669. LW.Name = "Left Shoulder"
  3670. LW.Part0 = ch.Torso
  3671. LW.C0 = cf(-1.5, 0.5, 0)
  3672. LW.C1 = cf(0, 0.5, 0)
  3673. LW.Part1 = ch["Left Arm"]
  3674. LW.Parent = ch.Torso
  3675. Animate.Parent = nil
  3676. equipanim()
  3677. else
  3678. equipped = false
  3679. hideanim()
  3680. LH.C1 = LHC1
  3681. RH.C1 = RHC1
  3682. Animate.Parent = Humanoid
  3683. swait(0)
  3684. RW.Parent = nil
  3685. LW.Parent = nil
  3686. RSH.Parent = player.Character.Torso
  3687. LSH.Parent = player.Character.Torso
  3688. end
  3689. attack = false
  3690. end
  3691. if equipped == false then
  3692. return
  3693. end
  3694. if key == "e" and invisnum.Value > 5 then
  3695. Invisibility()
  3696. end
  3697. if key == "z" then
  3698. do1()
  3699. end
  3700. if key == "g" then
  3701. secrit()
  3702. end
  3703. if key == "x" then
  3704. do2()
  3705. end
  3706. if key == "c" then
  3707. do3()
  3708. end
  3709. if key == "v" then
  3710. do4()
  3711. end
  3712. end
  3713. key2 = function(key)
  3714. end
  3715. s = function(mouse)
  3716. mouse.Button1Down:connect(function()
  3717. ob1d(mouse)
  3718. end)
  3719. mouse.Button1Up:connect(function()
  3720. ob1u(mouse)
  3721. end)
  3722. mouse.KeyDown:connect(key)
  3723. mouse.KeyUp:connect(key2)
  3724. player = Player
  3725. ch = Character
  3726. MMouse = mouse
  3727. end
  3728. ds = function(mouse)
  3729. end
  3730. Bin.Selected:connect(s)
  3731. Bin.Deselected:connect(ds)
  3732. print("Renegade loaded.")
  3733. local mananum = 0
  3734. local donum = 0
  3735. local stunnum = 0
  3736. local staggeranim = false
  3737. local stunanim = false
  3738. local Point, LastPoint = nil, nil
  3739. local passivenum = 100
  3740. local pnum2 = 0
  3741. local walk = 0
  3742. local walkforw = true
  3743. local addpassive = 0
  3744. local gashnum = 0
  3745. while true do
  3746. swait()
  3747. if Humanoid.Health <= 0 then
  3748. attack = true
  3749. for i = 1, #Marked do
  3750. if MarkedGUI[i] ~= nil and MarkedGUI[i][1] ~= nil then
  3751. MarkedGUI[i][1].Parent = nil
  3752. end
  3753. table.remove(MarkedGUI, i)
  3754. table.remove(Marked, i)
  3755. end
  3756. resumeControl()
  3757. modelzorz.Parent = workspace
  3758. game:GetService("Debris"):AddItem(modelzorz, 30)
  3759. for i = 1, #Weapon do
  3760. Weapon[i].Parent = modelzorz
  3761. Weapon[i].CanCollide = true
  3762. end
  3763. for i = 1, #Welds do
  3764. if Welds[i].Part0.Parent == Character or Welds[i].Part1.Parent == Character then
  3765. Welds[i].Parent = nil
  3766. else
  3767. Welds[i].Parent = prt1
  3768. end
  3769. end
  3770. end
  3771. do
  3772. if fnumb < 21 then
  3773. fnumb = fnumb + 1
  3774. if pressedf == false then
  3775. fenframe5.BackgroundTransparency = fenframe5.BackgroundTransparency - 0.025
  3776. tellbar.TextTransparency = tellbar.TextTransparency - 0.05
  3777. tellbar.TextStrokeTransparency = tellbar.TextStrokeTransparency - 0.05
  3778. else
  3779. if fnumb == 20 then
  3780. fenframe5.Parent = nil
  3781. print("daigui")
  3782. end
  3783. fenframe5.BackgroundTransparency = fenframe5.BackgroundTransparency + 0.025
  3784. tellbar.TextTransparency = tellbar.TextTransparency + 0.05
  3785. tellbar.TextStrokeTransparency = tellbar.TextStrokeTransparency + 0.05
  3786. end
  3787. end
  3788. if hbwld.Parent == nil then
  3789. hitbox2.Name = "Hitbox"
  3790. else
  3791. hitbox2.Name = "Hitbox2"
  3792. end
  3793. if doing2 == true then
  3794. gashnum = gashnum + 1
  3795. if (gashnum) % 10 == 0 then
  3796. if 0 < mana.Value then
  3797. mana.Value = mana.Value - -2
  3798. else
  3799. do2()
  3800. end
  3801. end
  3802. MagicCircle(BrickColor.new(NewCol), prt6.CFrame * euler(-0.3, 0, 0), 0, 0, 0, 0.5, 0.5, 0.5, 0.05)
  3803. MagicBlock(BrickColor.new(NewCol), prt6.CFrame * euler(-0.3, 0, 0), 0, 0, 0, 1, 1, 1, 1, 0.025)
  3804. 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)
  3805. end
  3806. hitbox2.Parent = hitbox.Parent
  3807. hitbox2.Size = hitbox.Size
  3808. hitbox2.CFrame = hitboxCF
  3809. hboxpos.position = hitbox2.Position + vt(math.random(-100, 100) / 100, math.random(-100, 100) / 100, math.random(-100, 100) / 100)
  3810. hitbox.Transparency = 1
  3811. hitbox2.Transparency = 1
  3812. for i = 1, #Marked do
  3813. if Marked[i] ~= nil then
  3814. if Marked[i][1].Parent == nil then
  3815. MarkedGUI[i][1].Parent = nil
  3816. table.remove(MarkedGUI, i)
  3817. table.remove(Marked, i)
  3818. else
  3819. if MarkedGUI[i][1].Parent ~= nil then
  3820. MarkedGUI[i][1].Size = UDim2.new(7 + Marked[i][4].Value, 0, 7 + Marked[i][4].Value, 0)
  3821. if 0 < Marked[i][4].Value then
  3822. Marked[i][4].Value = Marked[i][4].Value - 1
  3823. end
  3824. if MarkedGUI[i][2].Parent ~= nil then
  3825. if Marked[i][3].Value == 0 then
  3826. MarkedGUI[i][2].Image = "rbxassetid://278007861"
  3827. else
  3828. if Marked[i][3].Value == 1 then
  3829. MarkedGUI[i][2].Image = "rbxassetid://278007839"
  3830. else
  3831. if Marked[i][3].Value == 2 then
  3832. MarkedGUI[i][2].Image = "rbxassetid://278007803"
  3833. else
  3834. if Marked[i][3].Value == 3 then
  3835. MarkedGUI[i][2].Image = "rbxassetid://278007757"
  3836. else
  3837. if Marked[i][3].Value == 4 then
  3838. MarkedGUI[i][2].Image = "rbxassetid://278007704"
  3839. else
  3840. if Marked[i][3].Value == 5 then
  3841. MarkedGUI[i][2].Image = "rbxassetid://278007663"
  3842. else
  3843. if Marked[i][3].Value == 6 then
  3844. MarkedGUI[i][2].Image = "rbxassetid://278007643"
  3845. else
  3846. if Marked[i][3].Value == 7 then
  3847. MarkedGUI[i][2].Image = "rbxassetid://278007606"
  3848. else
  3849. if Marked[i][3].Value == 8 then
  3850. MarkedGUI[i][2].Image = "rbxassetid://278007570"
  3851. else
  3852. if Marked[i][3].Value == 9 then
  3853. MarkedGUI[i][2].Image = "rbxassetid://278007545"
  3854. else
  3855. if Marked[i][3].Value == 10 then
  3856. MarkedGUI[i][2].Image = "rbxassetid://278007515"
  3857. end
  3858. end
  3859. end
  3860. end
  3861. end
  3862. end
  3863. end
  3864. end
  3865. end
  3866. end
  3867. end
  3868. end
  3869. end
  3870. if Marked[i][2] ~= nil then
  3871. Marked[i][2].Value = Marked[i][2].Value - 1
  3872. if Marked[i][2].Value <= 0 then
  3873. Marked[i][1].Parent = nil
  3874. MarkedGUI[i][1].Parent = nil
  3875. table.remove(MarkedGUI, i)
  3876. table.remove(Marked, i)
  3877. end
  3878. end
  3879. end
  3880. end
  3881. end
  3882. scarfp2.CFrame = cf(RootPart.Position, testpart.Position) * cf(0, 0, 0)
  3883. scarfp2.CFrame = scarfp2.CFrame + scarfp2.CFrame.lookVector * 0.5
  3884. scarfp2.CFrame = scarfp2.CFrame * cf(0, 0, 0) * euler(1.57, 0, 0)
  3885. testpart.CFrame = cf(RootPart.Position - RootPart.Velocity) * cf(0, 1, 0)
  3886. if invisible == true then
  3887. addpassive = addpassive + 1
  3888. for i = 1, 1 do
  3889. 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)
  3890. end
  3891. if 50 <= addpassive then
  3892. addpassive = 0
  3893. for _,c in pairs(workspace:children()) do
  3894. local hum = (c:findFirstChild("Humanoid"))
  3895. if hum ~= nil then
  3896. local head = nil
  3897. for _,d in pairs(c:children()) do
  3898. if d.Name == "HumanoidRootPart" then
  3899. local targ = d.Position - RootPart.Position
  3900. local mag = targ.magnitude
  3901. if mag <= 60 and c.Name ~= Player.Name then
  3902. mark = d.Parent:findFirstChild("Mark")
  3903. if mark ~= nil then
  3904. if (mark:findFirstChild("MarkTime")) ~= nil then
  3905. mark.MarkTime.Value = 500
  3906. end
  3907. if (mark:findFirstChild("MarkValue")) ~= nil then
  3908. if (mark:findFirstChild("MarkSize")) ~= nil then
  3909. mark.MarkSize.Value = 5
  3910. end
  3911. if mark.MarkValue.Value < 10 then
  3912. mark.MarkValue.Value = mark.MarkValue.Value + 1
  3913. end
  3914. end
  3915. end
  3916. end
  3917. end
  3918. end
  3919. end
  3920. end
  3921. end
  3922. end
  3923. do
  3924. pursuitnum = pursuitnum + 1
  3925. if 13 <= passivenum and 150 < pursuitnum and 0 < invisnum.Value then
  3926. invisnum.Value = invisnum.Value - 1
  3927. passivenum = 0
  3928. end
  3929. if 8 <= passivenum and invisible == true then
  3930. invisnum.Value = invisnum.Value - 1
  3931. pursuitnum = 0
  3932. passivenum = 0
  3933. end
  3934. if 100 <= invisnum.Value then
  3935. invisnum.Value = 100
  3936. end
  3937. if invisible == true and invisnum.Value <= 0 then
  3938. Invisibility()
  3939. end
  3940. passivenum = passivenum + 1
  3941. if Stagger.Value == true and staggeranim == false then
  3942. coroutine.resume(coroutine.create(function()
  3943. staggeranim = true
  3944. while attack == true do
  3945. swait()
  3946. end
  3947. StaggerAnim()
  3948. StaggerHit.Value = false
  3949. Stagger.Value = false
  3950. staggeranim = false
  3951. end))
  3952. end
  3953. if StaggerHit.Value == true and staggeranim == false then
  3954. coroutine.resume(coroutine.create(function()
  3955. staggeranim = true
  3956. while attack == true do
  3957. swait()
  3958. end
  3959. StaggerHitt()
  3960. StaggerHit.Value = false
  3961. Stagger.Value = false
  3962. staggeranim = false
  3963. end))
  3964. end
  3965. if Mvmt.Value < 0 or Stagger.Value == true or StunT.Value <= Stun.Value or StaggerHit.Value == true or Rooted.Value == true then
  3966. Humanoid.WalkSpeed = 0
  3967. else
  3968. Humanoid.WalkSpeed = 16 * Mvmt.Value
  3969. end
  3970. if StunT.Value <= Stun.Value and stunanim == false then
  3971. coroutine.resume(coroutine.create(function()
  3972. stunanim = true
  3973. while attack == true do
  3974. swait()
  3975. end
  3976. StunAnim()
  3977. Stun.Value = 0
  3978. stunanim = false
  3979. end))
  3980. end
  3981. local stunnum2 = 30
  3982. if stunnum2 <= stunnum then
  3983. if 0 < Stun.Value then
  3984. Stun.Value = Stun.Value - 1
  3985. end
  3986. stunnum = 0
  3987. end
  3988. stunnum = stunnum + 1
  3989. if 0.5 <= donum then
  3990. handidle = true
  3991. else
  3992. if donum <= 0 then
  3993. handidle = false
  3994. end
  3995. end
  3996. if handidle == false then
  3997. donum = donum + 0.003
  3998. else
  3999. donum = donum - 0.003
  4000. end
  4001. local torvel = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  4002. local velderp = RootPart.Velocity.y
  4003. hitfloor = rayCast(RootPart.Position, CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0)).lookVector, 4, Character)
  4004. if equipped == true then
  4005. if attack == false then
  4006. idle = idle + 1
  4007. else
  4008. idle = 0
  4009. end
  4010. if (500 <= idle and attack ~= false) or Anim == "Walk" then
  4011. if walkforw == true then
  4012. RH.C1 = clerp(RH.C1, RHC1 * cf(0.2, -0.2, 0) * euler(0, 0, 1), Mvmt.Value * 10 / 50)
  4013. LH.C1 = clerp(LH.C1, LHC1 * cf(0.1, 0.2, 0) * euler(0, 0, 1), Mvmt.Value * 10 / 50)
  4014. else
  4015. RH.C1 = clerp(RH.C1, RHC1 * cf(-0.1, 0.2, 0) * euler(0, 0, -1), Mvmt.Value * 10 / 50)
  4016. LH.C1 = clerp(LH.C1, LHC1 * cf(-0.2, -0.2, 0) * euler(0, 0, -1), Mvmt.Value * 10 / 50)
  4017. end
  4018. else
  4019. RH.C1 = clerp(RH.C1, RHC1, 0.2)
  4020. LH.C1 = clerp(LH.C1, LHC1, 0.2)
  4021. end
  4022. if 1 < RootPart.Velocity.y and hitfloor == nil then
  4023. Anim = "Jump"
  4024. if attack == false then
  4025. handlewld.C0 = clerp(handlewld.C0, euler(0, 0, 0) * cf(0, 1, 0), 0.2)
  4026. wld1.C0 = clerp(wld1.C0, cf(0, -2, 0) * euler(0.3, 0, -0.1), 0.2)
  4027. Neck.C0 = clerp(Neck.C0, necko * euler(-0.2, 0, 0), 0.2)
  4028. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, 0), 0.2)
  4029. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(1.5, 0, 0.5), 0.2)
  4030. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  4031. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-1, 0, -0.2), 0.2)
  4032. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  4033. RH.C0 = clerp(RH.C0, cf(1, -1, -0.3) * euler(-0.5, 1.57, 0) * euler(-0.2, 0, 0), 0.2)
  4034. LH.C0 = clerp(LH.C0, cf(-1, -1, -0.3) * euler(-0.5, -1.57, 0) * euler(-0.2, 0, 0), 0.2)
  4035. end
  4036. else
  4037. if RootPart.Velocity.y < -1 and hitfloor == nil then
  4038. Anim = "Fall"
  4039. if attack == false then
  4040. handlewld.C0 = clerp(handlewld.C0, euler(0, 0, 0) * cf(0, 1, 0), 0.2)
  4041. wld1.C0 = clerp(wld1.C0, cf(0, -2, 0) * euler(0.3, 0, -0.1), 0.2)
  4042. Neck.C0 = clerp(Neck.C0, necko * euler(0.4, 0, 0), 0.2)
  4043. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, 0), 0.2)
  4044. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(1, 0, 1), 0.2)
  4045. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  4046. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.3, 0, -0.2), 0.2)
  4047. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  4048. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0.4, 1.57, 0), 0.2)
  4049. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(-0.2, -1.57, 0), 0.2)
  4050. end
  4051. else
  4052. if torvel < 1 and hitfloor ~= nil then
  4053. Anim = "Idle"
  4054. if attack == false then
  4055. handlewld.C0 = clerp(handlewld.C0, euler(0, 0, 0) * cf(0, 1, 0), 0.2)
  4056. wld1.C0 = clerp(wld1.C0, euler(0, -0.4 - (donum) / 2, 0) * cf(0, -2, 0) * euler(1, 0, 0), 0.2)
  4057. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, -1) * euler(0.2, 0, 0), 0.15)
  4058. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.2) * euler(0, 0, 1), 0.15)
  4059. 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)
  4060. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.15)
  4061. 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)
  4062. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.15)
  4063. RH.C0 = clerp(RH.C0, cf(0.8, -1, 0.3) * euler(0, 1.57, 0) * euler(0, -1, -0.1), 0.2)
  4064. LH.C0 = clerp(LH.C0, cf(-0.8, -1, -0.3) * euler(0, -1.57, 0) * euler(0, -1, 0.3), 0.2)
  4065. end
  4066. else
  4067. if 2 < torvel and torvel < 30 and hitfloor ~= nil then
  4068. Anim = "Walk"
  4069. walk = walk + 1
  4070. if 15 - 5 * Mvmt.Value <= walk then
  4071. walk = 0
  4072. if walkforw == true then
  4073. walkforw = false
  4074. else
  4075. if walkforw == false then
  4076. walkforw = true
  4077. end
  4078. end
  4079. end
  4080. if attack == false then
  4081. handlewld.C0 = clerp(handlewld.C0, euler(0, 0, 0) * cf(0, 1, 0), 0.2)
  4082. wld1.C0 = clerp(wld1.C0, cf(0, -2, 0) * euler(0.3, 0, -0.3), 0.2)
  4083. Neck.C0 = clerp(Neck.C0, necko * euler(0.2 - (donum) / 5, 0, 0), 0.2)
  4084. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, 0), 0.2)
  4085. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(1.3 + (donum) / 3, 0, 0.5 - (donum) / 3), 0.2)
  4086. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  4087. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.2 + (donum) / 3, 0, -0.4 + (donum) / 3), 0.2)
  4088. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  4089. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0, 1.57, 0), 0.2)
  4090. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, -1.57, 0), 0.2)
  4091. end
  4092. else
  4093. if 30 <= torvel and hitfloor ~= nil then
  4094. Anim = "Walk"
  4095. walk = walk + 1
  4096. if 15 - 5 * Mvmt.Value <= walk then
  4097. walk = 0
  4098. if walkforw == true then
  4099. walkforw = false
  4100. else
  4101. if walkforw == false then
  4102. walkforw = true
  4103. end
  4104. end
  4105. end
  4106. if attack == false then
  4107. handlewld.C0 = clerp(handlewld.C0, euler(0, 0, 0) * cf(0, 1, 0), 0.2)
  4108. wld1.C0 = clerp(wld1.C0, cf(0, -2, 0) * euler(0.3, 0, -0.3), 0.2)
  4109. Neck.C0 = clerp(Neck.C0, necko * euler(0.2 - (donum) / 5, 0, 0), 0.2)
  4110. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, 0), 0.2)
  4111. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(1.3 + (donum) / 3, 0, 0.5 - (donum) / 3), 0.2)
  4112. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  4113. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.2 + (donum) / 3, 0, -0.4 + (donum) / 3), 0.2)
  4114. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  4115. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0, 1.57, 0), 0.2)
  4116. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, -1.57, 0), 0.2)
  4117. end
  4118. end
  4119. end
  4120. end
  4121. end
  4122. end
  4123. end
  4124. if 0 < #Effects then
  4125. for e = 1, #Effects do
  4126. if Effects[e] ~= nil then
  4127. local Thing = Effects[e]
  4128. if Thing ~= nil then
  4129. local Part = Thing[1]
  4130. local Mode = Thing[2]
  4131. local Delay = Thing[3]
  4132. local IncX = Thing[4]
  4133. local IncY = Thing[5]
  4134. local IncZ = Thing[6]
  4135. if Thing[2] == "CylinderClang" then
  4136. if Thing[3] <= 1 then
  4137. Thing[1].CFrame = Thing[1].CFrame * CFrame.new(0, 2.5 * Thing[5], 0) * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0)
  4138. Thing[7] = Thing[1].CFrame
  4139. effect("New Yeller", 0, Thing[8], Thing[7])
  4140. Thing[8] = Thing[7]
  4141. Thing[3] = Thing[3] + Thing[4]
  4142. else
  4143. Part.Parent = nil
  4144. table.remove(Effects, e)
  4145. end
  4146. end
  4147. if Thing[2] == "showDamage" then
  4148. if Thing[6] < Thing[5] then
  4149. Thing[6] = Thing[6] + 1
  4150. else
  4151. if Thing[6] < Thing[7] then
  4152. Thing[4].position = Thing[4].position + vt(0, -0.2, 0)
  4153. Thing[6] = Thing[6] + 1
  4154. else
  4155. if Thing[6] < Thing[8] then
  4156. Thing[6] = Thing[6] + 1
  4157. else
  4158. if Thing[6] < Thing[9] then
  4159. Thing[6] = Thing[6] + 1
  4160. Thing[4].position = Thing[4].position + vt(0, 0.2, 0)
  4161. Thing[3].TextStrokeTransparency = Thing[3].TextStrokeTransparency + 0.1
  4162. Thing[3].TextTransparency = Thing[3].TextTransparency + 0.1
  4163. else
  4164. Thing[1].Parent = nil
  4165. table.remove(Effects, e)
  4166. end
  4167. end
  4168. end
  4169. end
  4170. end
  4171. if Thing[2] == "PartiEmi" then
  4172. Thing[3] = Thing[3] - 1
  4173. if Thing[3] <= 0 then
  4174. Thing[1].Enabled = false
  4175. table.remove(Effects, e)
  4176. end
  4177. end
  4178. if Thing[2] == "AdjuEff" then
  4179. if 0 < Thing[3] then
  4180. Thing[3] = Thing[3] - 1
  4181. Thing[1].Size = Thing[1].Size + UDim2.new(0.2, 0, 0.2, 0)
  4182. Thing[1].StudsOffset = Thing[1].StudsOffset + vt(0, -0.2, 0)
  4183. Thing[4].ImageTransparency = Thing[4].ImageTransparency + 0.1
  4184. else
  4185. Thing[1].Parent = nil
  4186. table.remove(Effects, e)
  4187. end
  4188. end
  4189. 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
  4190. if Thing[1].Transparency <= 1 then
  4191. if Thing[2] == "Block1" then
  4192. Thing[1].CFrame = Thing[1].CFrame * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  4193. Mesh = Thing[7]
  4194. Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6])
  4195. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  4196. else
  4197. if Thing[2] == "Block2" then
  4198. Thing[1].CFrame = Thing[1].CFrame
  4199. Mesh = Thing[7]
  4200. Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6])
  4201. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  4202. else
  4203. if Thing[2] == "Block3" then
  4204. Thing[9] = Thing[9] + 0.5
  4205. Thing[1].CFrame = Thing[8] * cf(0, Thing[9], 0)
  4206. Thing[1].CFrame = Thing[1].CFrame * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  4207. Mesh = Thing[7]
  4208. Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6])
  4209. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  4210. else
  4211. if Thing[2] == "Skull" then
  4212. Thing[1].CFrame = Thing[1].CFrame * cf(0, Thing[8] / 2, -Thing[8])
  4213. Mesh = Thing[7]
  4214. Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6])
  4215. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  4216. else
  4217. if Thing[2] == "Cylinder" then
  4218. Mesh = Thing[7]
  4219. Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6])
  4220. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  4221. else
  4222. if Thing[2] == "Cylinder2" then
  4223. Thing[1].CFrame = Thing[1].CFrame * cf(0, Thing[8], 0)
  4224. Mesh = Thing[7]
  4225. Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6])
  4226. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  4227. else
  4228. if Thing[2] == "Blood" then
  4229. Mesh = Thing[7]
  4230. Thing[1].CFrame = Thing[1].CFrame * cf(0, 0.5, 0)
  4231. Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6])
  4232. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  4233. else
  4234. if Thing[2] == "Elec" then
  4235. Mesh = Thing[10]
  4236. Mesh.Scale = Mesh.Scale + vt(Thing[7], Thing[8], Thing[9])
  4237. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  4238. else
  4239. if Thing[2] == "Disappear" then
  4240. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  4241. end
  4242. end
  4243. end
  4244. end
  4245. end
  4246. end
  4247. end
  4248. end
  4249. end
  4250. else
  4251. Part.Parent = nil
  4252. table.remove(Effects, e)
  4253. end
  4254. end
  4255. end
  4256. end
  4257. end
  4258. end
  4259. do
  4260. fenbarmana2:TweenSize((UDim2.new(0.4, 0, -4 * mana.Value / 100, 0)), nil, 1, 0.4, true)
  4261. fenbarmana4.Text = "Mana(" .. mana.Value .. ")"
  4262. fenbarhp2.BackgroundColor3 = Color3.new(Humanoid.Health / Humanoid.MaxHealth, 0, 0)
  4263. fenbarhp2:TweenSize((UDim2.new(Humanoid.Health / Humanoid.MaxHealth, 0, 1, 0)), nil, 1, 0.4, true)
  4264. fenbarhp3.Text = "(" .. math.floor(Humanoid.Health) .. ")"
  4265. fenbarblock2:TweenSize((UDim2.new(0.4, 0, -4 * invisnum.Value / 100, 0)), nil, 1, 0.4, true)
  4266. fenbarblock3.Text = "Pursuit(" .. invisnum.Value .. ")"
  4267. fenbarmove1b:TweenSize((UDim2.new(1 * cooldowns[1] / cooldownmax, 0, 1, 0)), nil, 1, 0.4, true)
  4268. fenbarmove2b:TweenSize((UDim2.new(1 * cooldowns[2] / cooldownmax, 0, 1, 0)), nil, 1, 0.4, true)
  4269. fenbarmove3b:TweenSize((UDim2.new(1 * cooldowns[3] / cooldownmax, 0, 1, 0)), nil, 1, 0.4, true)
  4270. fenbarmove4b:TweenSize((UDim2.new(1 * cooldowns[4] / cooldownmax, 0, 1, 0)), nil, 1, 0.4, true)
  4271. for _,c in pairs(Decrease:children()) do
  4272. if (c:findFirstChild("Duration")) ~= nil then
  4273. c.Duration.Value = c.Duration.Value - 1
  4274. if c.Duration.Value <= 0 then
  4275. c.Parent = nil
  4276. end
  4277. end
  4278. if c.Name == "DecreaseAtk" then
  4279. decreaseatk = decreaseatk + c.Value
  4280. else
  4281. if c.Name == "DecreaseDef" then
  4282. decreasedef = decreasedef + c.Value
  4283. else
  4284. if c.Name == "DecreaseMvmt" then
  4285. decreasemvmt = decreasemvmt + c.Value
  4286. end
  4287. end
  4288. end
  4289. end
  4290. Atk.Value = math.huge - (decreaseatk)
  4291. if Atk.Value <= 0 then
  4292. Atk.Value = math.huge
  4293. end
  4294. Def.Value = math.huge - (decreasedef)
  4295. if Def.Value <= 0 then
  4296. Def.Value = math.huge
  4297. end
  4298. Mvmt.Value = 1 - (decreasemvmt)
  4299. if Mvmt.Value <= 0 then
  4300. Mvmt.Value = 0
  4301. end
  4302. decreaseatk = 0
  4303. decreasedef = 0
  4304. decreasemvmt = 0
  4305. AtkVal = Atk.Value * 100
  4306. AtkVal = math.floor(AtkVal)
  4307. AtkVal = AtkVal / 100
  4308. fenbardamage.Text = "Damage\n(" .. AtkVal .. ")"
  4309. DefVal = Def.Value * 100
  4310. DefVal = math.floor(DefVal)
  4311. DefVal = DefVal / 100
  4312. fenbardef.Text = "Defense\n(" .. DefVal .. ")"
  4313. MvmtVal = Mvmt.Value * 100
  4314. MvmtVal = math.floor(MvmtVal)
  4315. MvmtVal = MvmtVal / 100
  4316. if Rooted.Value == true then
  4317. MvmtVal = 0
  4318. end
  4319. fenbarmove.Text = "Walkspeed\n(" .. MvmtVal .. ")"
  4320. if StunT.Value <= Stun.Value then
  4321. fenbarstun2:TweenSize((UDim2.new(0.4, 0, -4, 0)), nil, 1, 0.4, true)
  4322. else
  4323. fenbarstun2:TweenSize((UDim2.new(0.4, 0, -4 * Stun.Value / StunT.Value, 0)), nil, 1, 0.4, true)
  4324. end
  4325. fenbarstun3.Text = "Stun(" .. Stun.Value .. ")"
  4326. if 100 <= mana.Value then
  4327. mana.Value = 100
  4328. else
  4329. if mananum <= 12 then
  4330. mananum = mananum + 1
  4331. else
  4332. mananum = 0
  4333. mana.Value = mana.Value + 100
  4334. end
  4335. end
  4336. for i = 1, #cooldowns do
  4337. if cooldownmax <= cooldowns[i] then
  4338. cooldowns[i] = cooldownmax
  4339. else
  4340. cooldowns[i] = cooldowns[i] + cooldownsadd[i]
  4341. end
  4342. end
  4343. -- DECOMPILER ERROR at PC6064: LeaveBlock: unexpected jumping out DO_STMT
  4344.  
  4345. -- DECOMPILER ERROR at PC6064: LeaveBlock: unexpected jumping out DO_STMT
  4346.  
  4347. -- DECOMPILER ERROR at PC6064: LeaveBlock: unexpected jumping out DO_STMT
  4348.  
  4349. end
  4350. end
  4351. end
  4352. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement