Advertisement
gecksad

Untitled

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