Advertisement
XSleepyDemonX_17

LUCIFERRRR

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