Advertisement
rivahaviz

Untitled

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