Advertisement
metilol

Untitled

Apr 14th, 2018
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 37.48 KB | None | 0 0
  1. Player = game:GetService("Players").LocalPlayer
  2. PlayerGui = Player.PlayerGui
  3. Cam = workspace.CurrentCamera
  4. Backpack = Player.Backpack
  5. Character = Player.Character
  6. Humanoid = Character.Humanoid
  7. Mouse = Player:GetMouse()
  8. RootPart = Character["HumanoidRootPart"]
  9. Torso = Character["Torso"]
  10. Head = Character["Head"]
  11. RightArm = Character["Right Arm"]
  12. LeftArm = Character["Left Arm"]
  13. RightLeg = Character["Right Leg"]
  14. LeftLeg = Character["Left Leg"]
  15. RootJoint = RootPart["RootJoint"]
  16. Neck = Torso["Neck"]
  17. RightShoulder = Torso["Right Shoulder"]
  18. LeftShoulder = Torso["Left Shoulder"]
  19. RightHip = Torso["Right Hip"]
  20. LeftHip = Torso["Left Hip"]
  21. local sick = Instance.new("Sound",Character)
  22. sick.SoundId = "rbxassetid://1477446404"
  23. sick.Looped = true
  24. sick.Pitch = 1
  25. sick.Volume = 1
  26. sick:Play()
  27.  
  28. IT = Instance.new
  29. CF = CFrame.new
  30. VT = Vector3.new
  31. RAD = math.rad
  32. C3 = Color3.new
  33. UD2 = UDim2.new
  34. BRICKC = BrickColor.new
  35. ANGLES = CFrame.Angles
  36. EULER = CFrame.fromEulerAnglesXYZ
  37. COS = math.cos
  38. ACOS = math.acos
  39. SIN = math.sin
  40. ASIN = math.asin
  41. ABS = math.abs
  42. MRANDOM = math.random
  43. FLOOR = math.floor
  44.  
  45.  
  46.  
  47. Animation_Speed = 3
  48. Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
  49. local Speed = 23
  50. local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  51. local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  52. local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
  53. local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
  54. local DAMAGEMULTIPLIER = 1
  55. local ANIM = "Idle"
  56. local ATTACK = false
  57. local EQUIPPED = false
  58. local HOLD = false
  59. local COMBO = 1
  60. local Rooted = false
  61. local SINE = 0
  62. local KEYHOLD = false
  63. local CHANGE = 2 / Animation_Speed
  64. local WALKINGANIM = false
  65. local VALUE1 = false
  66. local VALUE2 = false
  67. local ROBLOXIDLEANIMATION = IT("Animation")
  68. ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
  69. ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  70. --ROBLOXIDLEANIMATION.Parent = Humanoid
  71. local WEAPONGUI = IT("ScreenGui", PlayerGui)
  72. WEAPONGUI.Name = "Weapon GUI"
  73. local Effects = IT("Folder", Character)
  74. Effects.Name = "Effects"
  75. local ANIMATOR = Humanoid.Animator
  76. local ANIMATE = Character.Animate
  77. local UNANCHOR = true
  78.  
  79. ArtificialHB = Instance.new("BindableEvent", script)
  80. ArtificialHB.Name = "ArtificialHB"
  81.  
  82. script:WaitForChild("ArtificialHB")
  83.  
  84. frame = Frame_Speed
  85. tf = 0
  86. allowframeloss = false
  87. tossremainder = false
  88. lastframe = tick()
  89. script.ArtificialHB:Fire()
  90.  
  91. game:GetService("RunService").Heartbeat:connect(function(s, p)
  92. tf = tf + s
  93. if tf >= frame then
  94. if allowframeloss then
  95. script.ArtificialHB:Fire()
  96. lastframe = tick()
  97. else
  98. for i = 1, math.floor(tf / frame) do
  99. script.ArtificialHB:Fire()
  100. end
  101. lastframe = tick()
  102. end
  103. if tossremainder then
  104. tf = 0
  105. else
  106. tf = tf - frame * math.floor(tf / frame)
  107. end
  108. end
  109. end)
  110.  
  111.  
  112. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  113. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  114. end
  115.  
  116. function PositiveAngle(NUMBER)
  117. if NUMBER >= 0 then
  118. NUMBER = 0
  119. end
  120. return NUMBER
  121. end
  122.  
  123. function NegativeAngle(NUMBER)
  124. if NUMBER <= 0 then
  125. NUMBER = 0
  126. end
  127. return NUMBER
  128. end
  129.  
  130. function Swait(NUMBER)
  131. if NUMBER == 0 or NUMBER == nil then
  132. ArtificialHB.Event:wait()
  133. else
  134. for i = 1, NUMBER do
  135. ArtificialHB.Event:wait()
  136. end
  137. end
  138. end
  139.  
  140. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  141. local NEWMESH = IT(MESH)
  142. if MESH == "SpecialMesh" then
  143. NEWMESH.MeshType = MESHTYPE
  144. if MESHID ~= "nil" and MESHID ~= "" then
  145. NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
  146. end
  147. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  148. NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
  149. end
  150. end
  151. NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  152. NEWMESH.Scale = SCALE
  153. NEWMESH.Parent = PARENT
  154. return NEWMESH
  155. end
  156.  
  157. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  158. local NEWPART = IT("Part")
  159. NEWPART.formFactor = FORMFACTOR
  160. NEWPART.Reflectance = REFLECTANCE
  161. NEWPART.Transparency = TRANSPARENCY
  162. NEWPART.CanCollide = false
  163. NEWPART.Locked = true
  164. NEWPART.Anchored = true
  165. if ANCHOR == false then
  166. NEWPART.Anchored = false
  167. end
  168. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  169. NEWPART.Name = NAME
  170. NEWPART.Size = SIZE
  171. NEWPART.Position = Torso.Position
  172. NEWPART.Material = MATERIAL
  173. NEWPART:BreakJoints()
  174. NEWPART.Parent = PARENT
  175. return NEWPART
  176. end
  177.  
  178. local function weldBetween(a, b)
  179. local weldd = Instance.new("ManualWeld")
  180. weldd.Part0 = a
  181. weldd.Part1 = b
  182. weldd.C0 = CFrame.new()
  183. weldd.C1 = b.CFrame:inverse() * a.CFrame
  184. weldd.Parent = a
  185. return weldd
  186. end
  187.  
  188.  
  189. function QuaternionFromCFrame(cf)
  190. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  191. local trace = m00 + m11 + m22
  192. if trace > 0 then
  193. local s = math.sqrt(1 + trace)
  194. local recip = 0.5 / s
  195. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  196. else
  197. local i = 0
  198. if m11 > m00 then
  199. i = 1
  200. end
  201. if m22 > (i == 0 and m00 or m11) then
  202. i = 2
  203. end
  204. if i == 0 then
  205. local s = math.sqrt(m00 - m11 - m22 + 1)
  206. local recip = 0.5 / s
  207. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  208. elseif i == 1 then
  209. local s = math.sqrt(m11 - m22 - m00 + 1)
  210. local recip = 0.5 / s
  211. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  212. elseif i == 2 then
  213. local s = math.sqrt(m22 - m00 - m11 + 1)
  214. local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  215. end
  216. end
  217. end
  218.  
  219. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  220. local xs, ys, zs = x + x, y + y, z + z
  221. local wx, wy, wz = w * xs, w * ys, w * zs
  222. local xx = x * xs
  223. local xy = x * ys
  224. local xz = x * zs
  225. local yy = y * ys
  226. local yz = y * zs
  227. local zz = z * zs
  228. 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))
  229. end
  230.  
  231. function QuaternionSlerp(a, b, t)
  232. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  233. local startInterp, finishInterp;
  234. if cosTheta >= 0.0001 then
  235. if (1 - cosTheta) > 0.0001 then
  236. local theta = ACOS(cosTheta)
  237. local invSinTheta = 1 / SIN(theta)
  238. startInterp = SIN((1 - t) * theta) * invSinTheta
  239. finishInterp = SIN(t * theta) * invSinTheta
  240. else
  241. startInterp = 1 - t
  242. finishInterp = t
  243. end
  244. else
  245. if (1 + cosTheta) > 0.0001 then
  246. local theta = ACOS(-cosTheta)
  247. local invSinTheta = 1 / SIN(theta)
  248. startInterp = SIN((t - 1) * theta) * invSinTheta
  249. finishInterp = SIN(t * theta) * invSinTheta
  250. else
  251. startInterp = t - 1
  252. finishInterp = t
  253. end
  254. end
  255. 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
  256. end
  257.  
  258. function Clerp(a, b, t)
  259. local qa = {QuaternionFromCFrame(a)}
  260. local qb = {QuaternionFromCFrame(b)}
  261. local ax, ay, az = a.x, a.y, a.z
  262. local bx, by, bz = b.x, b.y, b.z
  263. local _t = 1 - t
  264. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  265. end
  266.  
  267. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  268. local frame = IT("Frame")
  269. frame.BackgroundTransparency = TRANSPARENCY
  270. frame.BorderSizePixel = BORDERSIZEPIXEL
  271. frame.Position = POSITION
  272. frame.Size = SIZE
  273. frame.BackgroundColor3 = COLOR
  274. frame.BorderColor3 = BORDERCOLOR
  275. frame.Name = NAME
  276. frame.Parent = PARENT
  277. return frame
  278. end
  279.  
  280. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  281. local label = IT("TextLabel")
  282. label.BackgroundTransparency = 1
  283. label.Size = UD2(1, 0, 1, 0)
  284. label.Position = UD2(0, 0, 0, 0)
  285. label.TextColor3 = TEXTCOLOR
  286. label.TextStrokeTransparency = STROKETRANSPARENCY
  287. label.TextTransparency = TRANSPARENCY
  288. label.FontSize = TEXTFONTSIZE
  289. label.Font = TEXTFONT
  290. label.BorderSizePixel = BORDERSIZEPIXEL
  291. label.TextScaled = false
  292. label.Text = TEXT
  293. label.Name = NAME
  294. label.Parent = PARENT
  295. return label
  296. end
  297.  
  298. function NoOutlines(PART)
  299. PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
  300. end
  301.  
  302. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  303. local NEWWELD = IT(TYPE)
  304. NEWWELD.Part0 = PART0
  305. NEWWELD.Part1 = PART1
  306. NEWWELD.C0 = C0
  307. NEWWELD.C1 = C1
  308. NEWWELD.Parent = PARENT
  309. return NEWWELD
  310. end
  311.  
  312. local S = IT("Sound")
  313. function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP)
  314. local NEWSOUND = nil
  315. coroutine.resume(coroutine.create(function()
  316. NEWSOUND = S:Clone()
  317. NEWSOUND.Parent = PARENT
  318. NEWSOUND.Volume = VOLUME
  319. NEWSOUND.Pitch = PITCH
  320. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  321. NEWSOUND:play()
  322. if DOESLOOP == true then
  323. NEWSOUND.Looped = true
  324. else
  325. repeat Swait() until NEWSOUND.Playing == false
  326. NEWSOUND:remove()
  327. end
  328. end))
  329. return NEWSOUND
  330. end
  331.  
  332. function CFrameFromTopBack(at, top, back)
  333. local right = top:Cross(back)
  334. return CF(at.x, at.y, at.z, right.x, top.x, back.x, right.y, top.y, back.y, right.z, top.z, back.z)
  335. end
  336.  
  337. --WACKYEFFECT({EffectType = "", Size = VT(1,1,1), Size2 = VT(0,0,0), Transparency = 0, Transparency2 = 1, CFrame = CF(), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  338. function WACKYEFFECT(Table)
  339. local TYPE = (Table.EffectType or "Sphere")
  340. local SIZE = (Table.Size or VT(1,1,1))
  341. local ENDSIZE = (Table.Size2 or VT(0,0,0))
  342. local TRANSPARENCY = (Table.Transparency or 0)
  343. local ENDTRANSPARENCY = (Table.Transparency2 or 1)
  344. local CFRAME = (Table.CFrame or Torso.CFrame)
  345. local MOVEDIRECTION = (Table.MoveToPos or nil)
  346. local ROTATION1 = (Table.RotationX or 0)
  347. local ROTATION2 = (Table.RotationY or 0)
  348. local ROTATION3 = (Table.RotationZ or 0)
  349. local MATERIAL = (Table.Material or "Neon")
  350. local COLOR = (Table.Color or C3(1,1,1))
  351. local TIME = (Table.Time or 45)
  352. local SOUNDID = (Table.SoundID or nil)
  353. local SOUNDPITCH = (Table.SoundPitch or nil)
  354. local SOUNDVOLUME = (Table.SoundVolume or nil)
  355. coroutine.resume(coroutine.create(function()
  356. local PLAYSSOUND = false
  357. local SOUND = nil
  358. local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true)
  359. if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
  360. PLAYSSOUND = true
  361. SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
  362. end
  363. EFFECT.Color = COLOR
  364. local MSH = nil
  365. if TYPE == "Sphere" then
  366. MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
  367. elseif TYPE == "Block" then
  368. MSH = IT("BlockMesh",EFFECT)
  369. MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X)
  370. elseif TYPE == "Wave" then
  371. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
  372. elseif TYPE == "Ring" then
  373. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
  374. elseif TYPE == "Slash" then
  375. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  376. elseif TYPE == "Round Slash" then
  377. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  378. elseif TYPE == "Swirl" then
  379. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0))
  380. elseif TYPE == "Skull" then
  381. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
  382. elseif TYPE == "Crystal" then
  383. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
  384. end
  385. if MSH ~= nil then
  386. local MOVESPEED = nil
  387. if MOVEDIRECTION ~= nil then
  388. MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME
  389. end
  390. local GROWTH = SIZE - ENDSIZE
  391. local TRANS = TRANSPARENCY - ENDTRANSPARENCY
  392. if TYPE == "Block" then
  393. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  394. else
  395. EFFECT.CFrame = CFRAME
  396. end
  397. for LOOP = 1, TIME do
  398. Swait()
  399. MSH.Scale = MSH.Scale - GROWTH/TIME
  400. if TYPE == "Wave" then
  401. MSH.Offset = VT(0,0,-MSH.Scale.X/8)
  402. end
  403. EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
  404. if TYPE == "Block" then
  405. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  406. else
  407. EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))
  408. end
  409. if MOVEDIRECTION ~= nil then
  410. local ORI = EFFECT.Orientation
  411. EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED)
  412. EFFECT.Orientation = ORI
  413. end
  414. end
  415. if PLAYSSOUND == false then
  416. EFFECT:remove()
  417. else
  418. repeat Swait() until SOUND.Playing == false
  419. EFFECT:remove()
  420. end
  421. else
  422. if PLAYSSOUND == false then
  423. EFFECT:remove()
  424. else
  425. repeat Swait() until SOUND.Playing == false
  426. EFFECT:remove()
  427. end
  428. end
  429. end))
  430. end
  431.  
  432. function MakeForm(PART,TYPE)
  433. if TYPE == "Cyl" then
  434. local MSH = IT("CylinderMesh",PART)
  435. elseif TYPE == "Ball" then
  436. local MSH = IT("SpecialMesh",PART)
  437. MSH.MeshType = "Sphere"
  438. elseif TYPE == "Wedge" then
  439. local MSH = IT("SpecialMesh",PART)
  440. MSH.MeshType = "Wedge"
  441. end
  442. end
  443.  
  444. Debris = game:GetService("Debris")
  445.  
  446. function CastProperRay(StartPos, EndPos, Distance, Ignore)
  447. local DIRECTION = CF(StartPos,EndPos).lookVector
  448. return Raycast(StartPos, DIRECTION, Distance, Ignore)
  449. end
  450.  
  451. function turnto(position)
  452. RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0)
  453. end
  454.  
  455. function ApplyDamage(Humanoid,Damage,CritRate,CritMultiplier)
  456. local LOWDMG = false
  457. local defence = Instance.new("BoolValue",Humanoid.Parent)
  458. defence.Name = ("HitBy"..Player.Name)
  459. game:GetService("Debris"):AddItem(defence, 0.001)
  460. Damage = Damage * DAMAGEMULTIPLIER
  461. if Damage < 1 then
  462. LOWDMG = true
  463. end
  464. if Humanoid.Health ~= 0 then
  465. local CritChance = MRANDOM(1,100)
  466. if CritChance < CritRate + 1 then
  467. Damage = Damage*CritMultiplier
  468. end
  469. if Damage > Humanoid.Health then
  470. Damage = math.ceil(Humanoid.Health)
  471. if Damage == 0 then
  472. Damage = 0.1
  473. end
  474. end
  475. Humanoid.Health = Humanoid.Health - Damage
  476. if Humanoid.Parent:FindFirstChild("Head") then
  477. if LOWDMG == false then
  478. if CritChance < CritRate + 1 then
  479. StatLabel(Humanoid.Parent.Head.CFrame * CF(0, 0 + (Humanoid.Parent.Head.Size.z - 1), 0), "CRIT//"..Damage, C3(1, 0, 0))
  480. else
  481. StatLabel(Humanoid.Parent.Head.CFrame * CF(0, 0 + (Humanoid.Parent.Head.Size.z - 1), 0), Damage, C3(0, 0, 0))
  482. end
  483. elseif LOWDMG == true then
  484. if CritChance < CritRate + 1 then
  485. StatLabel(Humanoid.Parent.Head.CFrame * CF(0, 0 + (Humanoid.Parent.Head.Size.z - 1), 0), "CRIT//".."."..Damage*10, C3(1, 0, 0))
  486. else
  487. StatLabel(Humanoid.Parent.Head.CFrame * CF(0, 0 + (Humanoid.Parent.Head.Size.z - 1), 0), "."..Damage*10, C3(0, 0, 0))
  488. end
  489. end
  490. end
  491. if Humanoid.Health == 0 then
  492. KillChildren(Humanoid.Parent)
  493. end
  494. end
  495. end
  496.  
  497. function AoEDamage(position,radius,min,max,maxstrength,critrate,critmultiplier,CanBeDodgedByJumping)
  498. local dmg = math.random(min,max)
  499. for i,v in ipairs(workspace:GetChildren()) do
  500. if v:FindFirstChild("HitBy"..Player.Name) == nil then
  501. local body = v:GetChildren()
  502. for part = 1, #body do
  503. if(v:FindFirstChild("HitBy"..Player.Name) == nil and (body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then
  504. if(body[part].Position - position).Magnitude < radius then
  505. if v.ClassName == "Model" then
  506. if v:FindFirstChildOfClass("Humanoid") then
  507. if CanBeDodgedByJumping == true then
  508. if body[part].Position.Y < position.Y+5 then
  509. ApplyDamage(v:FindFirstChildOfClass("Humanoid"),dmg,critrate,critmultiplier)
  510. end
  511. else
  512. ApplyDamage(v:FindFirstChildOfClass("Humanoid"),dmg,critrate,critmultiplier)
  513. end
  514. if maxstrength ~= 0 then
  515. local bv = Instance.new("BodyVelocity")
  516. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  517. bv.velocity = CF(position,body[part].Position).lookVector*maxstrength
  518. bv.Parent = body[part]
  519. Debris:AddItem(bv,0.2)
  520. end
  521. end
  522. end
  523. end
  524. end
  525. end
  526. end
  527. if v:FindFirstChild("HitBy"..Player.Name) then
  528. v:FindFirstChild("HitBy"..Player.Name):remove()
  529. end
  530. end
  531. end
  532.  
  533. function KillChildren(v)
  534. local PARTS = {}
  535. coroutine.resume(coroutine.create(function()
  536. v:BreakJoints()
  537. for _, c in pairs(v:GetChildren()) do
  538. if c.ClassName == "Part" or c.ClassName == "MesPart" then
  539. if c.Transparency < 1 then
  540. if c:FindFirstChildOfClass("Decal") then
  541. c:FindFirstChildOfClass("Decal"):remove()
  542. end
  543. c.Parent = Effects
  544. c.Material = "Neon"
  545. c.Color = C3(0,0,0)
  546. c.Transparency = 0
  547. c.CanCollide = true
  548. c.Anchored = true
  549. if c:FindFirstChildOfClass("SpecialMesh") then
  550. c:FindFirstChildOfClass("SpecialMesh").TextureId = ""
  551. end
  552. if c:FindFirstChildOfClass("Part") then
  553. c:FindFirstChildOfClass("Part").Anchored = true
  554. c:FindFirstChildOfClass("Part").Color = C3(0,0,0)
  555. c:FindFirstChildOfClass("Part").Material = "Neon"
  556. c:FindFirstChildOfClass("Part").Parent = Effects
  557. table.insert(PARTS,c:FindFirstChildOfClass("Part"))
  558. end
  559. table.insert(PARTS,c)
  560. end
  561. end
  562. end
  563. wait(0.25)
  564. for e = 1, #PARTS do
  565. if PARTS[e] ~= nil then
  566. local c = PARTS[e]
  567. local bv = IT("BodyVelocity")
  568. bv.maxForce = VT(1,1,1)*1e5
  569. bv.velocity = VT(math.random()-.5, 0, math.random()-.5).unit*2*40
  570. bv.Parent = c
  571. c.Anchored = false
  572. Debris:AddItem(c,5)
  573. end
  574. end
  575. end))
  576. end
  577.  
  578. function DarkheartSpire()
  579. local HITFLOOR,HITPOS,NORMAL = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 7, Character)
  580. if HITFLOOR ~= nil then
  581. ATTACK = true
  582. Rooted = false
  583. local GYRO = IT("BodyGyro",RootPart)
  584. GYRO.D = 100
  585. GYRO.P = 2000
  586. GYRO.MaxTorque = VT(0,40000000,0)
  587. GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p)
  588. for i=0, 1, 0.1 / Animation_Speed do
  589. Swait()
  590. GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p)
  591. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(4 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(-15 + 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
  592. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(15 - 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
  593. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(-45), RAD(0 - 7.5 * SIN(SINE / 12)), RAD(32 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  594. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(5), RAD(0 + 7.5 * SIN(SINE / 12)), RAD(-12 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  595. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-7.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  596. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-7.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  597. end
  598. local AIMPOS = Mouse.Hit.p
  599. coroutine.resume(coroutine.create(function()
  600. local FRAME = RootPart.CFrame*CF(0,-8,-2)
  601. local SPIRE = CreatePart(3, Effects, "Neon", 0,0, "Really black", "SPIRE", VT(2,45,2))
  602. CreateSound("93724183", SPIRE, 5, 1, false)
  603. MakeForm(SPIRE,"Ball")
  604. SPIRE.Color = C3(0,0,0)
  605. for i = 1, 145 do
  606. Swait()
  607. local HITFLOOR,HITPOS,NORMAL = Raycast(SPIRE.Position+VT(0,5,0), (CF(SPIRE.Position, SPIRE.Position + VT(0, -1, 0))).lookVector, 100, Character)
  608. if HITFLOOR then
  609. SPIRE.CFrame = FRAME*CF(0,0,-i)
  610. local POS = HITPOS.Y
  611. if POS then
  612. SPIRE.CFrame = CF(VT(SPIRE.Position.X,POS-3,SPIRE.Position.Z))
  613. WACKYEFFECT({EffectType = "Block", Size = VT(3,3,3), Size2 = VT(2,2,2), Transparency = 0, Transparency2 = 1, CFrame = CF(SPIRE.Position+VT(0,3,0)), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = HITFLOOR.Material, Color = HITFLOOR.Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  614. end
  615. AoEDamage(SPIRE.Position,7,2,3,6,2,4,false)
  616. else
  617. --break
  618. end
  619. end
  620. for i = 1, 25 do
  621. Swait()
  622. SPIRE.CFrame = SPIRE.CFrame*CF(0,-0.75,0)
  623. end
  624. SPIRE:remove()
  625. end))
  626. for i=0, 0.15, 0.1 / Animation_Speed do
  627. Swait()
  628. GYRO.cframe = CF(RootPart.Position,AIMPOS)
  629. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(4 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(85 + 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
  630. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(-85 - 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
  631. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(0 - 7.5 * SIN(SINE / 12)), RAD(90 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  632. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(5), RAD(0 + 7.5 * SIN(SINE / 12)), RAD(-12 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  633. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-7.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  634. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-7.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  635. end
  636. for i=0, 1, 0.1 / Animation_Speed do
  637. Swait()
  638. GYRO.cframe = CF(RootPart.Position,AIMPOS)
  639. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(4 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(85 + 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
  640. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(-85 - 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
  641. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(145), RAD(0 - 7.5 * SIN(SINE / 12)), RAD(-15 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  642. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(-25), RAD(0 + 7.5 * SIN(SINE / 12)), RAD(-12 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  643. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-7.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  644. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-7.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  645. end
  646. GYRO:remove()
  647. ATTACK = false
  648. Rooted = false
  649. end
  650. end
  651.  
  652. function DarkheartToss()
  653. ATTACK = true
  654. Rooted = false
  655. local GYRO = IT("BodyGyro",RootPart)
  656. GYRO.D = 100
  657. GYRO.P = 2000
  658. GYRO.MaxTorque = VT(0,40000000,0)
  659. GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p)
  660. local Darkheart = CreatePart(3, Effects, "SmoothPlastic", 0, 0, "Really black", "Darkheart", VT(1,1,1),false)
  661. local SwordWeld = CreateWeldOrSnapOrMotor("Weld", Darkheart, RightArm, Darkheart, CF(0,-1,0) * ANGLES(RAD(0), RAD(0), RAD(90)), CF(0, 0, -1.8))
  662. local MSH = IT("SpecialMesh",Darkheart)
  663. MSH.MeshId = "rbxasset://fonts/sword.mesh"
  664. Darkheart.Color = C3(0,0,0)
  665. repeat
  666. Swait()
  667. GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p)
  668. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(4 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(-25 + 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
  669. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(25 - 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
  670. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.15, 1 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(160), RAD(0 - 2.5 * SIN(SINE / 12)), RAD(5 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  671. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(90), RAD(0 + 2.5 * SIN(SINE / 12)), RAD(-25 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  672. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  673. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  674. until HOLD == true
  675. Rooted = true
  676. CreateSound("1112042117", RightArm, 5, 1.2, false)
  677. SwordWeld:remove()
  678. coroutine.resume(coroutine.create(function()
  679. local DISTANCE = (RootPart.Position - Mouse.Hit.p).Magnitude
  680. local NoHit,HitPos,NORMAL = Raycast(RootPart.Position, RootPart.CFrame.lookVector, DISTANCE, workspace)
  681. local ThrowHit,HitPos2,NORMAL2 = Raycast(RootPart.Position, CF(RootPart.Position,VT(HitPos.X,Mouse.Hit.p.Y,HitPos.Z)).lookVector, 1000, Character)
  682. if ThrowHit then
  683. Darkheart.CFrame = CF(HitPos2,RootPart.Position)*ANGLES(RAD(0),RAD(0),RAD(180))
  684. weldBetween(ThrowHit,Darkheart)
  685. if ThrowHit.Parent:FindFirstChildOfClass("Humanoid") then
  686. CreateSound("1306077413", ThrowHit, 5, 1, false)
  687. local HUM = ThrowHit.Parent:FindFirstChildOfClass("Humanoid")
  688. if ThrowHit.Name ~= "Head" and ThrowHit.Name ~= "Torso" and ThrowHit.Name ~= "UpperTorso" then
  689. for i = 1, 15 do
  690. ApplyDamage(HUM,1,2,2)
  691. wait()
  692. end
  693. elseif ThrowHit.Name == "Head" then
  694. for i = 1, 15 do
  695. ApplyDamage(HUM,3,2,2)
  696. wait()
  697. end
  698. elseif ThrowHit.Name == "Torso" or ThrowHit.Name == "UpperTorso" then
  699. for i = 1, 15 do
  700. ApplyDamage(HUM,2,2,2)
  701. wait()
  702. end
  703. end
  704. wait(2)
  705. for i = 1, 10 do
  706. Swait()
  707. Darkheart.Transparency = i/10
  708. end
  709. Darkheart:remove()
  710. elseif ThrowHit.Parent.ClassName == "Accessory" then
  711. local HUM = ThrowHit.Parent.Parent:FindFirstChildOfClass("Humanoid")
  712. if HUM then
  713. for i = 1, 15 do
  714. ApplyDamage(HUM,1,2,2)
  715. wait()
  716. end
  717. wait(2)
  718. for i = 1, 10 do
  719. Swait()
  720. Darkheart.Transparency = i/10
  721. end
  722. Darkheart:remove()
  723. else
  724. wait(2)
  725. for i = 1, 10 do
  726. Swait()
  727. Darkheart.Transparency = i/10
  728. end
  729. Darkheart:remove()
  730. end
  731. else
  732. wait(2)
  733. for i = 1, 10 do
  734. Swait()
  735. Darkheart.Transparency = i/10
  736. end
  737. Darkheart:remove()
  738. end
  739. else
  740. Darkheart:remove()
  741. end
  742. end))
  743. for i=0, 1, 0.1 / Animation_Speed do
  744. Swait()
  745. GYRO.cframe = CF(RootPart.Position,Darkheart.Position)
  746. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(4 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(55 + 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
  747. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(-55 - 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
  748. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5 + 0.25 * COS(SINE / 12), -0.4) * ANGLES(RAD(90), RAD(0 - 2.5 * SIN(SINE / 12)), RAD(55 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  749. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(0 + 2.5 * SIN(SINE / 12)), RAD(-5 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  750. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  751. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  752. end
  753. GYRO:remove()
  754. ATTACK = false
  755. Rooted = false
  756. end
  757.  
  758. function DarkseedBarrage()
  759. ATTACK = true
  760. Rooted = true
  761. local GYRO = IT("BodyGyro",RootPart)
  762. GYRO.D = 100
  763. GYRO.P = 2000
  764. GYRO.MaxTorque = VT(0,4000000,0)
  765. GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p)
  766. for i=1, 35 do
  767. Swait()
  768. WACKYEFFECT({Time = 5, EffectType = "Sphere", Size = VT(5,5,5), Size2 = VT(0,0,0), Transparency = 1, Transparency2 = 0.25, CFrame = RightArm.CFrame*CF(0,-2,0), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = nil, SoundPitch = 0.6, SoundVolume = 6})
  769. GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p)
  770. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(4 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(45)), 1 / Animation_Speed)
  771. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(-45 - 4 * SIN(SINE / 12))), 1 / Animation_Speed)
  772. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.025 * COS(SINE / 12), -0.5) * ANGLES(RAD(90), RAD(0 - 7.5 * SIN(SINE / 12)), RAD(45 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  773. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.025 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(0 + 7.5 * SIN(SINE / 12)), RAD(-12 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  774. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-7.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  775. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-7.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  776. end
  777. local BEAM = CreatePart(3, Effects, "Neon", 0, 1, "Mulberry", "Lazer", VT(0,0,0))
  778. local LOOP = CreateSound("289315275", RightArm, 5, 1.2, false)
  779. local MSH = IT("CylinderMesh",BEAM)
  780. local TOCH = BEAM.Touched:Connect(function(hit)
  781. if hit.Anchored == false and hit.Parent ~= Head and hit.Parent ~= Character and hit.Parent ~= Effects then
  782. if hit.Parent:FindFirstChildOfClass("Humanoid") then
  783. ApplyDamage(hit.Parent:FindFirstChildOfClass("Humanoid"),2,2,2)
  784. end
  785. end
  786. end)
  787. local I = 0
  788. repeat
  789. Swait()
  790. I = I + 1
  791. if I <= 10 then
  792. BEAM.Transparency = BEAM.Transparency - 0.1
  793. end
  794. local STARTPOS = RightArm.CFrame*CF(0,-2,0).p
  795. local ENDHIT,ENDPOS = CastProperRay(STARTPOS,Mouse.Hit.p,650,Character)
  796. local DISTANCE = (STARTPOS - ENDPOS).Magnitude
  797. BEAM.CFrame = CF(STARTPOS,ENDPOS)*CF(0,0,-DISTANCE/2)*ANGLES(RAD(90),RAD(0),RAD(0))
  798. BEAM.Size = VT(1,DISTANCE,1)
  799. WACKYEFFECT({Time = 5, EffectType = "Sphere", Size = VT(3,3,3), Size2 = VT(0,0,0), Transparency = 0, Transparency2 = 0.25, CFrame = RightArm.CFrame*CF(0,-2,0), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = nil, SoundPitch = 0.6, SoundVolume = 6})
  800. WACKYEFFECT({Time = 5, EffectType = "Sphere", Size = VT(3,3,3), Size2 = VT(0,0,0), Transparency = 0, Transparency2 = 0.25, CFrame = CF(ENDPOS), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = nil, SoundPitch = 0.6, SoundVolume = 6})
  801. GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p)
  802. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(4 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(45)), 1 / Animation_Speed)
  803. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(-45 - 4 * SIN(SINE / 12))), 1 / Animation_Speed)
  804. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.025 * COS(SINE / 12), -0.5) * ANGLES(RAD(90), RAD(0 - 7.5 * SIN(SINE / 12)), RAD(45 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  805. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.025 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(0 + 7.5 * SIN(SINE / 12)), RAD(-12 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  806. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-7.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  807. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-7.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  808. if ENDHIT ~= nil then
  809. if ENDHIT.Anchored == false and ENDHIT.Parent ~= Effects then
  810. if ENDHIT.Parent:FindFirstChildOfClass("Humanoid") then
  811. ApplyDamage(ENDHIT.Parent:FindFirstChildOfClass("Humanoid"),0.1,2,2)
  812. end
  813. end
  814. end
  815. until LOOP.Playing == false
  816. BEAM:remove()
  817. GYRO:remove()
  818. ATTACK = false
  819. Rooted = false
  820. end
  821.  
  822.  
  823.  
  824. function unanchor()
  825. if UNANCHOR == true then
  826. g = Character:GetChildren()
  827. for i = 1, #g do
  828. if g[i].ClassName == "Part" then
  829. g[i].Anchored = false
  830. end
  831. end
  832. end
  833. end
  834.  
  835. local top = Instance.new("Shirt")
  836. top.ShirtTemplate = "rbxassetid://525527764"
  837. top.Parent = Character
  838. top.Name = "DarkseedClothes"
  839. local bottom = Instance.new("Pants")
  840. bottom.PantsTemplate = "rbxassetid://108739568"
  841. bottom.Parent = Character
  842. bottom.Name = "DarkseedClothes"
  843.  
  844. Humanoid.HipHeight = 2
  845.  
  846. while true do
  847. Swait()
  848. Character.Parent = workspace
  849. Humanoid.Parent = Character
  850. script.Parent = WEAPONGUI
  851. ANIMATE.Parent = nil
  852. if Humanoid then
  853. local IDLEANIMATION = Humanoid:LoadAnimation(ROBLOXIDLEANIMATION)
  854. IDLEANIMATION:Play()
  855. end
  856. SINE = SINE + CHANGE
  857. local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
  858. local TORSOVERTICALVELOCITY = RootPart.Velocity.y
  859. local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 6, Character)
  860. local WALKSPEEDVALUE = 6 / (Humanoid.WalkSpeed / 16)
  861. if ATTACK == false then
  862. if TORSOVELOCITY < 1 then
  863. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(4 + 0.5 * SIN(SINE / 12)), RAD(0), RAD(5 + 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
  864. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(-5 - 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
  865. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0 - 2.5 * SIN(SINE / 12)), RAD(5 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  866. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0 + 2.5 * SIN(SINE / 12)), RAD(-5 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  867. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  868. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  869. elseif TORSOVELOCITY > 1 then
  870. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(Speed/3 + 0.5 * SIN(SINE / 12)), RAD(0), RAD(5 + 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
  871. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-Speed/3 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(-5 - 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
  872. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-25), RAD(0 - 2.5 * SIN(SINE / 12)), RAD(15 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  873. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-25), RAD(0 + 2.5 * SIN(SINE / 12)), RAD(-15 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  874. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-25-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 5.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  875. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  876. end
  877. end
  878. unanchor()
  879. Humanoid.MaxHealth = "inf"
  880. Humanoid.Health = "inf"
  881. if Rooted == false then
  882. Disable_Jump = false
  883. Humanoid.WalkSpeed = Speed
  884. elseif Rooted == true then
  885. Disable_Jump = true
  886. Humanoid.WalkSpeed = 0
  887. end
  888. Humanoid.DisplayDistanceType = "None"
  889. for _, c in pairs(Character:GetChildren()) do
  890. if c.ClassName == "Part" and c.Name ~= "Eye" then
  891. c.Material = "Neon"
  892. if c:FindFirstChildOfClass("ParticleEmitter") then
  893. c:FindFirstChildOfClass("ParticleEmitter"):remove()
  894. end
  895. c.Color = C3(0,0,0)
  896. if c == Head then
  897. if c:FindFirstChild("Pumpkin") == nil then
  898. local M = CreateMesh("SpecialMesh", c, "FileMesh", "1029012", "1028814", VT(6,6,6)*0.45, VT(0,0.25,0))
  899. M.Name = "Pumpkin"
  900. local FIRE = CreatePart(3, Head, "Plastic", 0, 0, "Really black", "Fire", VT(2,2,2)*1.7,false)
  901. MakeForm(FIRE,"Ball")
  902. FIRE.CFrame = Head.CFrame*CF(0,0.1,0)
  903. weldBetween(Head,FIRE)
  904. end
  905.  
  906.  
  907. if (c.ClassName == "Shirt" or c.ClassName == "Pants") and c.Name ~= "DarkseedClothes" then
  908. c:remove()
  909. end
  910. end
  911. sick.Parent = Character
  912. sick.Playing = true
  913. AoEDamage(Torso.Position,5,1,1,0,0,2,false)
  914. if Head:FindFirstChildOfClass("Sound") then
  915. Head:FindFirstChildOfClass("Sound"):remove()
  916. end
  917. end
  918. end
  919. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement