Advertisement
Xector666X

Untitled

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