Advertisement
RobloxHackImporium

csdsdawdad

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