Advertisement
5sdfsadgaq5465

Blight scripte FE

May 13th, 2019
567
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. -- This script has been converted to FE by iPxter
  2.  
  3.  
  4. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  5. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  6. do
  7. print("FE Compatibility code by Mokiros | Translated to FE by iPxter")
  8. script.Parent = Player.Character
  9.  
  10. --RemoteEvent for communicating
  11. local Event = Instance.new("RemoteEvent")
  12. Event.Name = "UserInput_Event"
  13.  
  14. --Fake event to make stuff like Mouse.KeyDown work
  15. local function fakeEvent()
  16. local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
  17. t.connect = t.Connect
  18. return t
  19. end
  20.  
  21. --Creating fake input objects with fake variables
  22. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  23. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  24. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  25. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  26. end}
  27. --Merged 2 functions into one by checking amount of arguments
  28. CAS.UnbindAction = CAS.BindAction
  29.  
  30. --This function will trigger the events that have been :Connect()'ed
  31. local function te(self,ev,...)
  32. local t = m[ev]
  33. if t and t._fakeEvent and t.Function then
  34. t.Function(...)
  35. end
  36. end
  37. m.TrigEvent = te
  38. UIS.TrigEvent = te
  39.  
  40. Event.OnServerEvent:Connect(function(plr,io)
  41. if plr~=Player then return end
  42. if io.isMouse then
  43. m.Target = io.Target
  44. m.Hit = io.Hit
  45. else
  46. local b = io.UserInputState == Enum.UserInputState.Begin
  47. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  48. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  49. end
  50. for _,t in pairs(CAS.Actions) do
  51. for _,k in pairs(t.Keys) do
  52. if k==io.KeyCode then
  53. t.Function(t.Name,io.UserInputState,io)
  54. end
  55. end
  56. end
  57. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  58. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  59. end
  60. end)
  61. Event.Parent = NLS([==[
  62. local Player = game:GetService("Players").LocalPlayer
  63. local Event = script:WaitForChild("UserInput_Event")
  64.  
  65. local UIS = game:GetService("UserInputService")
  66. local input = function(io,a)
  67. if a then return end
  68. --Since InputObject is a client-side instance, we create and pass table instead
  69. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
  70. end
  71. UIS.InputBegan:Connect(input)
  72. UIS.InputEnded:Connect(input)
  73.  
  74. local Mouse = Player:GetMouse()
  75. local h,t
  76. --Give the server mouse data 30 times every second, but only if the values changed
  77. --If player is not moving their mouse, client won't fire events
  78. while wait(1/30) do
  79. if h~=Mouse.Hit or t~=Mouse.Target then
  80. h,t=Mouse.Hit,Mouse.Target
  81. Event:FireServer({isMouse=true,Target=t,Hit=h})
  82. end
  83. end]==],Player.Character)
  84. Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  85. end
  86. -----------------------
  87. --[[ Name : Blight ]]--
  88. -------------------------------------------------------
  89. --A script By makhail07
  90.  
  91. --Discord Creterisk#2958
  92.  
  93. --NOTE THIS SCRIPT WAS PURELY MADE FROM MY FUCKING IMAGINATION
  94. --IF IT HAPPENS TO LOOK LIKE ANOTHER SCRIPT
  95. --DONT CALL IT A FUCKING BOOTLEG THANK YOU AND ENJOY THE SCRIPT
  96. --YOU FUCKING SKIDS,
  97. --For Those who log/decompile this, If you sell or trade this,
  98. --and I find out who you are, i will take massive action.
  99.  
  100. -------------------------------------------------------
  101.  
  102. local FavIDs = {
  103. 340106355, --Nefl Crystals
  104. 927529620, --Dimension
  105. 876981900, --Fantasy
  106. 398987889, --Ordinary Days
  107. 1117396305, --Oh wait, it's you.
  108. 885996042, --Action Winter Journey
  109. 919231299, --Sprawling Idiot Effigy
  110. 743466274, --Good Day Sunshine
  111. 727411183, --Knife Fight
  112. 1402748531, --The Earth Is Counting On You!
  113. 595230126 --Robot Language
  114. }
  115.  
  116.  
  117.  
  118. --The reality of my life isn't real but a Universe -makhail07
  119. wait()
  120. local plr = owner
  121. print('Local User is '..plr.Name)
  122. print('Blight Loaded')
  123. print('Let justice be done, though the heavens fall.')
  124. local char = plr.Character
  125. local hum = char.Humanoid
  126. local hed = char.Head
  127. local root = char.HumanoidRootPart
  128. local rootj = root.RootJoint
  129. local tors = char.Torso
  130. local ra = char["Right Arm"]
  131. local la = char["Left Arm"]
  132. local rl = char["Right Leg"]
  133. local ll = char["Left Leg"]
  134. local neck = tors["Neck"]
  135. local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  136. local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0)
  137. local LHCF = CFrame.fromEulerAnglesXYZ(0, -1.6, 0)
  138. local maincolor = BrickColor.new("Really black")
  139.  
  140. -------------------------------------------------------
  141. --Start Good Stuff--
  142. -------------------------------------------------------
  143. cam = game.Workspace.CurrentCamera
  144. CF = CFrame.new
  145. angles = CFrame.Angles
  146. attack = false
  147. Euler = CFrame.fromEulerAnglesXYZ
  148. Rad = math.rad
  149. IT = Instance.new
  150. BrickC = BrickColor.new
  151. Cos = math.cos
  152. Acos = math.acos
  153. Sin = math.sin
  154. Asin = math.asin
  155. Abs = math.abs
  156. Mrandom = math.random
  157. Floor = math.floor
  158. -------------------------------------------------------
  159. --End Good Stuff--
  160. -------------------------------------------------------
  161. necko = CF(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  162. RSH, LSH = nil, nil
  163. RW = Instance.new("Weld")
  164. LW = Instance.new("Weld")
  165. RH = tors["Right Hip"]
  166. LH = tors["Left Hip"]
  167. RSH = tors["Right Shoulder"]
  168. LSH = tors["Left Shoulder"]
  169. RSH.Parent = nil
  170. LSH.Parent = nil
  171. RW.Name = "RW"
  172. RW.Part0 = tors
  173. RW.C0 = CF(1.5, 0.5, 0)
  174. RW.C1 = CF(0, 0.5, 0)
  175. RW.Part1 = ra
  176. RW.Parent = tors
  177. LW.Name = "LW"
  178. LW.Part0 = tors
  179. LW.C0 = CF(-1.5, 0.5, 0)
  180. LW.C1 = CF(0, 0.5, 0)
  181. LW.Part1 = la
  182. LW.Parent = tors
  183. Effects = {}
  184. -------------------------------------------------------
  185. --Start HeartBeat--
  186. -------------------------------------------------------
  187. ArtificialHB = Instance.new("BindableEvent", script)
  188. ArtificialHB.Name = "Heartbeat"
  189. script:WaitForChild("Heartbeat")
  190.  
  191. frame = 1 / 60
  192. tf = 0
  193. allowframeloss = false
  194. tossremainder = false
  195.  
  196.  
  197. lastframe = tick()
  198. script.Heartbeat:Fire()
  199.  
  200.  
  201. game:GetService("RunService").Heartbeat:connect(function(s, p)
  202. tf = tf + s
  203. if tf >= frame then
  204. if allowframeloss then
  205. script.Heartbeat:Fire()
  206. lastframe = tick()
  207. else
  208. for i = 1, math.floor(tf / frame) do
  209. script.Heartbeat:Fire()
  210. end
  211. lastframe = tick()
  212. end
  213. if tossremainder then
  214. tf = 0
  215. else
  216. tf = tf - frame * math.floor(tf / frame)
  217. end
  218. end
  219. end)
  220. -------------------------------------------------------
  221. --End HeartBeat--
  222. -------------------------------------------------------
  223.  
  224. -------------------------------------------------------
  225. --Start Important Functions--
  226. -------------------------------------------------------
  227. function swait(num)
  228. if num == 0 or num == nil then
  229. game:service("RunService").Stepped:wait(0)
  230. else
  231. for i = 0, num do
  232. game:service("RunService").Stepped:wait(0)
  233. end
  234. end
  235. end
  236. function thread(f)
  237. coroutine.resume(coroutine.create(f))
  238. end
  239. function clerp(a, b, t)
  240. local qa = {
  241. QuaternionFromCFrame(a)
  242. }
  243. local qb = {
  244. QuaternionFromCFrame(b)
  245. }
  246. local ax, ay, az = a.x, a.y, a.z
  247. local bx, by, bz = b.x, b.y, b.z
  248. local _t = 1 - t
  249. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  250. end
  251. function QuaternionFromCFrame(cf)
  252. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  253. local trace = m00 + m11 + m22
  254. if trace > 0 then
  255. local s = math.sqrt(1 + trace)
  256. local recip = 0.5 / s
  257. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  258. else
  259. local i = 0
  260. if m00 < m11 then
  261. i = 1
  262. end
  263. if m22 > (i == 0 and m00 or m11) then
  264. i = 2
  265. end
  266. if i == 0 then
  267. local s = math.sqrt(m00 - m11 - m22 + 1)
  268. local recip = 0.5 / s
  269. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  270. elseif i == 1 then
  271. local s = math.sqrt(m11 - m22 - m00 + 1)
  272. local recip = 0.5 / s
  273. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  274. elseif i == 2 then
  275. local s = math.sqrt(m22 - m00 - m11 + 1)
  276. local recip = 0.5 / s
  277. return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  278. end
  279. end
  280. end
  281. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  282. local xs, ys, zs = x + x, y + y, z + z
  283. local wx, wy, wz = w * xs, w * ys, w * zs
  284. local xx = x * xs
  285. local xy = x * ys
  286. local xz = x * zs
  287. local yy = y * ys
  288. local yz = y * zs
  289. local zz = z * zs
  290. 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))
  291. end
  292. function QuaternionSlerp(a, b, t)
  293. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  294. local startInterp, finishInterp
  295. if cosTheta >= 1.0E-4 then
  296. if 1 - cosTheta > 1.0E-4 then
  297. local theta = math.acos(cosTheta)
  298. local invSinTheta = 1 / Sin(theta)
  299. startInterp = Sin((1 - t) * theta) * invSinTheta
  300. finishInterp = Sin(t * theta) * invSinTheta
  301. else
  302. startInterp = 1 - t
  303. finishInterp = t
  304. end
  305. elseif 1 + cosTheta > 1.0E-4 then
  306. local theta = math.acos(-cosTheta)
  307. local invSinTheta = 1 / Sin(theta)
  308. startInterp = Sin((t - 1) * theta) * invSinTheta
  309. finishInterp = Sin(t * theta) * invSinTheta
  310. else
  311. startInterp = t - 1
  312. finishInterp = t
  313. end
  314. 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
  315. end
  316. function rayCast(Position, Direction, Range, Ignore)
  317. return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  318. end
  319. local RbxUtility = LoadLibrary("RbxUtility")
  320. local Create = RbxUtility.Create
  321.  
  322. -------------------------------------------------------
  323. --Start Damage Function--
  324. -------------------------------------------------------
  325. function Damage(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  326. if hit.Parent == nil then
  327. return
  328. end
  329. local h = hit.Parent:FindFirstChildOfClass("Humanoid")
  330. for _, v in pairs(hit.Parent:children()) do
  331. if v:IsA("Humanoid") then
  332. h = v
  333. end
  334. end
  335. if h ~= nil and hit.Parent.Name ~= char.Name and hit.Parent:FindFirstChild("UpperTorso") ~= nil then
  336.  
  337. hit.Parent:FindFirstChild("Head"):BreakJoints()
  338. end
  339.  
  340. if h ~= nil and hit.Parent.Name ~= char.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
  341. if hit.Parent:findFirstChild("DebounceHit") ~= nil then
  342. if hit.Parent.DebounceHit.Value == true then
  343. return
  344. end
  345. end
  346. if insta == true then
  347. hit.Parent:FindFirstChild("Head"):BreakJoints()
  348. end
  349. local c = Create("ObjectValue"){
  350. Name = "creator",
  351. Value = owner,
  352. Parent = h,
  353. }
  354. game:GetService("Debris"):AddItem(c, .5)
  355. if HitSound ~= nil and HitPitch ~= nil then
  356. CFuncs.Sound.Create(HitSound, hit, 1, HitPitch)
  357. end
  358. local Damage = math.random(minim, maxim)
  359. local blocked = false
  360. local block = hit.Parent:findFirstChild("Block")
  361. if block ~= nil then
  362. if block.className == "IntValue" then
  363. if block.Value > 0 then
  364. blocked = true
  365. block.Value = block.Value - 1
  366. print(block.Value)
  367. end
  368. end
  369. end
  370. if blocked == false then
  371. h.Health = h.Health - Damage
  372. ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, tors.BrickColor.Color)
  373. else
  374. h.Health = h.Health - (Damage / 2)
  375. ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, tors.BrickColor.Color)
  376. end
  377. if Type == "Knockdown" then
  378. local hum = hit.Parent.Humanoid
  379. hum.PlatformStand = true
  380. coroutine.resume(coroutine.create(function(HHumanoid)
  381. swait(1)
  382. HHumanoid.PlatformStand = false
  383. end), hum)
  384. local angle = (hit.Position - (Property.Position + Vector3.new(0, 0, 0))).unit
  385. local bodvol = Create("BodyVelocity"){
  386. velocity = angle * knockback,
  387. P = 5000,
  388. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  389. Parent = hit,
  390. }
  391. local rl = Create("BodyAngularVelocity"){
  392. P = 3000,
  393. maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
  394. angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
  395. Parent = hit,
  396. }
  397. game:GetService("Debris"):AddItem(bodvol, .5)
  398. game:GetService("Debris"):AddItem(rl, .5)
  399. elseif Type == "Normal" then
  400. local vp = Create("BodyVelocity"){
  401. P = 500,
  402. maxForce = Vector3.new(math.huge, 0, math.huge),
  403. velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05,
  404. }
  405. if knockback > 0 then
  406. vp.Parent = hit.Parent.Torso
  407. end
  408. game:GetService("Debris"):AddItem(vp, .5)
  409. elseif Type == "Up" then
  410. local bodyVelocity = Create("BodyVelocity"){
  411. velocity = Vector3.new(0, 20, 0),
  412. P = 5000,
  413. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  414. Parent = hit,
  415. }
  416. game:GetService("Debris"):AddItem(bodyVelocity, .5)
  417. elseif Type == "DarkUp" then
  418. coroutine.resume(coroutine.create(function()
  419. for i = 0, 1, 0.1 do
  420. swait()
  421. Effects.Block.Create(BrickColor.new("Black"), hit.Parent.Torso.CFrame, 5, 5, 5, 1, 1, 1, .08, 1)
  422. end
  423. end))
  424. local bodyVelocity = Create("BodyVelocity"){
  425. velocity = Vector3.new(0, 20, 0),
  426. P = 5000,
  427. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  428. Parent = hit,
  429. }
  430. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  431. elseif Type == "Snare" then
  432. local bp = Create("BodyPosition"){
  433. P = 2000,
  434. D = 100,
  435. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  436. position = hit.Parent.Torso.Position,
  437. Parent = hit.Parent.Torso,
  438. }
  439. game:GetService("Debris"):AddItem(bp, 1)
  440. elseif Type == "Freeze" then
  441. local BodPos = Create("BodyPosition"){
  442. P = 50000,
  443. D = 1000,
  444. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  445. position = hit.Parent.Torso.Position,
  446. Parent = hit.Parent.Torso,
  447. }
  448. local BodGy = Create("BodyGyro") {
  449. maxTorque = Vector3.new(4e+005, 4e+005, 4e+005) * math.huge ,
  450. P = 20e+003,
  451. Parent = hit.Parent.Torso,
  452. cframe = hit.Parent.Torso.CFrame,
  453. }
  454. hit.Parent.Torso.Anchored = true
  455. coroutine.resume(coroutine.create(function(Part)
  456. swait(1.5)
  457. Part.Anchored = false
  458. end), hit.Parent.Torso)
  459. game:GetService("Debris"):AddItem(BodPos, 3)
  460. game:GetService("Debris"):AddItem(BodGy, 3)
  461. end
  462. local debounce = Create("BoolValue"){
  463. Name = "DebounceHit",
  464. Parent = hit.Parent,
  465. Value = true,
  466. }
  467. game:GetService("Debris"):AddItem(debounce, Delay)
  468. c = Create("ObjectValue"){
  469. Name = "creator",
  470. Value = Player,
  471. Parent = h,
  472. }
  473. game:GetService("Debris"):AddItem(c, .5)
  474. end
  475. end
  476. -------------------------------------------------------
  477. --End Damage Function--
  478. -------------------------------------------------------
  479.  
  480. -------------------------------------------------------
  481. --Start Damage Function Customization--
  482. -------------------------------------------------------
  483. function ShowDamage(Pos, Text, Time, Color)
  484. local Rate = (1 / 30)
  485. local Pos = (Pos or Vector3.new(0, 0, 0))
  486. local Text = (Text or "")
  487. local Time = (Time or 2)
  488. local Color = (Color or Color3.new(1, 0, 1))
  489. local EffectPart = CFuncs.Part.Create(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
  490. EffectPart.Anchored = true
  491. local BillboardGui = Create("BillboardGui"){
  492. Size = UDim2.new(3, 0, 3, 0),
  493. Adornee = EffectPart,
  494. Parent = EffectPart,
  495. }
  496. local TextLabel = Create("TextLabel"){
  497. BackgroundTransparency = 1,
  498. Size = UDim2.new(1, 0, 1, 0),
  499. Text = Text,
  500. Font = "Bodoni",
  501. TextColor3 = Color,
  502. TextScaled = true,
  503. TextStrokeColor3 = Color3.fromRGB(0,0,0),
  504. Parent = BillboardGui,
  505. }
  506. game.Debris:AddItem(EffectPart, (Time))
  507. EffectPart.Parent = game:GetService("Workspace")
  508. delay(0, function()
  509. local Frames = (Time / Rate)
  510. for Frame = 1, Frames do
  511. wait(Rate)
  512. local Percent = (Frame / Frames)
  513. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  514. TextLabel.TextTransparency = Percent
  515. end
  516. if EffectPart and EffectPart.Parent then
  517. EffectPart:Destroy()
  518. end
  519. end)
  520. end
  521. -------------------------------------------------------
  522. --End Damage Function Customization--
  523. -------------------------------------------------------
  524.  
  525. function MagniDamage(Part, magni, mindam, maxdam, knock, Type)
  526. for _, c in pairs(workspace:children()) do
  527. local hum = c:findFirstChild("Humanoid")
  528. if hum ~= nil then
  529. local head = c:findFirstChild("Head")
  530. if head ~= nil then
  531. local targ = head.Position - Part.Position
  532. local mag = targ.magnitude
  533. if magni >= mag and c.Name ~= plr.Name then
  534. Damage(head, head, mindam, maxdam, knock, Type, root, 0.1, "http://www.roblox.com/asset/?id=0", 1.2)
  535. end
  536. end
  537. end
  538. end
  539. end
  540.  
  541.  
  542. CFuncs = {
  543. Part = {
  544. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  545. local Part = Create("Part")({
  546. Parent = Parent,
  547. Reflectance = Reflectance,
  548. Transparency = Transparency,
  549. CanCollide = false,
  550. Locked = true,
  551. BrickColor = BrickColor.new(tostring(BColor)),
  552. Name = Name,
  553. Size = Size,
  554. Material = Material
  555. })
  556. RemoveOutlines(Part)
  557. return Part
  558. end
  559. },
  560. Mesh = {
  561. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  562. local Msh = Create(Mesh)({
  563. Parent = Part,
  564. Offset = OffSet,
  565. Scale = Scale
  566. })
  567. if Mesh == "SpecialMesh" then
  568. Msh.MeshType = MeshType
  569. Msh.MeshId = MeshId
  570. end
  571. return Msh
  572. end
  573. },
  574. Mesh = {
  575. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  576. local Msh = Create(Mesh)({
  577. Parent = Part,
  578. Offset = OffSet,
  579. Scale = Scale
  580. })
  581. if Mesh == "SpecialMesh" then
  582. Msh.MeshType = MeshType
  583. Msh.MeshId = MeshId
  584. end
  585. return Msh
  586. end
  587. },
  588. Weld = {
  589. Create = function(Parent, Part0, Part1, C0, C1)
  590. local Weld = Create("Weld")({
  591. Parent = Parent,
  592. Part0 = Part0,
  593. Part1 = Part1,
  594. C0 = C0,
  595. C1 = C1
  596. })
  597. return Weld
  598. end
  599. },
  600. Sound = {
  601. Create = function(id, par, vol, pit)
  602. coroutine.resume(coroutine.create(function()
  603. local S = Create("Sound")({
  604. Volume = vol,
  605. Pitch = pit or 1,
  606. SoundId = id,
  607. Parent = par or workspace
  608. })
  609. wait()
  610. S:play()
  611. game:GetService("Debris"):AddItem(S, 6)
  612. end))
  613. end
  614. },
  615. ParticleEmitter = {
  616. Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  617. local fp = Create("ParticleEmitter")({
  618. Parent = Parent,
  619. Color = ColorSequence.new(Color1, Color2),
  620. LightEmission = LightEmission,
  621. Size = Size,
  622. Texture = Texture,
  623. Transparency = Transparency,
  624. ZOffset = ZOffset,
  625. Acceleration = Accel,
  626. Drag = Drag,
  627. LockedToPart = LockedToPart,
  628. VelocityInheritance = VelocityInheritance,
  629. EmissionDirection = EmissionDirection,
  630. Enabled = Enabled,
  631. Lifetime = LifeTime,
  632. Rate = Rate,
  633. Rotation = Rotation,
  634. RotSpeed = RotSpeed,
  635. Speed = Speed,
  636. VelocitySpread = VelocitySpread
  637. })
  638. return fp
  639. end
  640. }
  641. }
  642. function RemoveOutlines(part)
  643. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  644. end
  645. function CreatePart(FormFactor, Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  646. local Part = Create("Part")({
  647. formFactor = FormFactor,
  648. Parent = Parent,
  649. Reflectance = Reflectance,
  650. Transparency = Transparency,
  651. CanCollide = false,
  652. Locked = true,
  653. BrickColor = BrickColor.new(tostring(BColor)),
  654. Name = Name,
  655. Size = Size,
  656. Material = Material
  657. })
  658. RemoveOutlines(Part)
  659. return Part
  660. end
  661. function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  662. local Msh = Create(Mesh)({
  663. Parent = Part,
  664. Offset = OffSet,
  665. Scale = Scale
  666. })
  667. if Mesh == "SpecialMesh" then
  668. Msh.MeshType = MeshType
  669. Msh.MeshId = MeshId
  670. end
  671. return Msh
  672. end
  673. function CreateWeld(Parent, Part0, Part1, C0, C1)
  674. local Weld = Create("Weld")({
  675. Parent = Parent,
  676. Part0 = Part0,
  677. Part1 = Part1,
  678. C0 = C0,
  679. C1 = C1
  680. })
  681. return Weld
  682. end
  683.  
  684.  
  685. -------------------------------------------------------
  686. --Start Effect Function--
  687. -------------------------------------------------------
  688. EffectModel = Instance.new("Model", char)
  689. Effects = {
  690. Block = {
  691. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
  692. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  693. prt.Anchored = true
  694. prt.CFrame = cframe
  695. local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  696. game:GetService("Debris"):AddItem(prt, 10)
  697. if Type == 1 or Type == nil then
  698. table.insert(Effects, {
  699. prt,
  700. "Block1",
  701. delay,
  702. x3,
  703. y3,
  704. z3,
  705. msh
  706. })
  707. elseif Type == 2 then
  708. table.insert(Effects, {
  709. prt,
  710. "Block2",
  711. delay,
  712. x3,
  713. y3,
  714. z3,
  715. msh
  716. })
  717. else
  718. table.insert(Effects, {
  719. prt,
  720. "Block3",
  721. delay,
  722. x3,
  723. y3,
  724. z3,
  725. msh
  726. })
  727. end
  728. end
  729. },
  730. Sphere = {
  731. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  732. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  733. prt.Anchored = true
  734. prt.CFrame = cframe
  735. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  736. game:GetService("Debris"):AddItem(prt, 10)
  737. table.insert(Effects, {
  738. prt,
  739. "Cylinder",
  740. delay,
  741. x3,
  742. y3,
  743. z3,
  744. msh
  745. })
  746. end
  747. },
  748. Cylinder = {
  749. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  750. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  751. prt.Anchored = true
  752. prt.CFrame = cframe
  753. local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  754. game:GetService("Debris"):AddItem(prt, 10)
  755. table.insert(Effects, {
  756. prt,
  757. "Cylinder",
  758. delay,
  759. x3,
  760. y3,
  761. z3,
  762. msh
  763. })
  764. end
  765. },
  766. Wave = {
  767. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  768. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  769. prt.Anchored = true
  770. prt.CFrame = cframe
  771. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1 / 60, y1 / 60, z1 / 60))
  772. game:GetService("Debris"):AddItem(prt, 10)
  773. table.insert(Effects, {
  774. prt,
  775. "Cylinder",
  776. delay,
  777. x3 / 60,
  778. y3 / 60,
  779. z3 / 60,
  780. msh
  781. })
  782. end
  783. },
  784. Ring = {
  785. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  786. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  787. prt.Anchored = true
  788. prt.CFrame = cframe
  789. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://3270017", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  790. game:GetService("Debris"):AddItem(prt, 10)
  791. table.insert(Effects, {
  792. prt,
  793. "Cylinder",
  794. delay,
  795. x3,
  796. y3,
  797. z3,
  798. msh
  799. })
  800. end
  801. },
  802. Break = {
  803. Create = function(brickcolor, cframe, x1, y1, z1)
  804. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  805. prt.Anchored = true
  806. prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  807. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  808. local num = math.random(10, 50) / 1000
  809. game:GetService("Debris"):AddItem(prt, 10)
  810. table.insert(Effects, {
  811. prt,
  812. "Shatter",
  813. num,
  814. prt.CFrame,
  815. math.random() - math.random(),
  816. 0,
  817. math.random(50, 100) / 100
  818. })
  819. end
  820. },
  821. Spiral = {
  822. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  823. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  824. prt.Anchored = true
  825. prt.CFrame = cframe
  826. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://1051557", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  827. game:GetService("Debris"):AddItem(prt, 10)
  828. table.insert(Effects, {
  829. prt,
  830. "Cylinder",
  831. delay,
  832. x3,
  833. y3,
  834. z3,
  835. msh
  836. })
  837. end
  838. },
  839. Push = {
  840. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  841. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  842. prt.Anchored = true
  843. prt.CFrame = cframe
  844. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://437347603", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  845. game:GetService("Debris"):AddItem(prt, 10)
  846. table.insert(Effects, {
  847. prt,
  848. "Cylinder",
  849. delay,
  850. x3,
  851. y3,
  852. z3,
  853. msh
  854. })
  855. end
  856. }
  857. }
  858. function part(formfactor ,parent, reflectance, transparency, brickcolor, name, size)
  859. local fp = IT("Part")
  860. fp.formFactor = formfactor
  861. fp.Parent = parent
  862. fp.Reflectance = reflectance
  863. fp.Transparency = transparency
  864. fp.CanCollide = false
  865. fp.Locked = true
  866. fp.BrickColor = brickcolor
  867. fp.Name = name
  868. fp.Size = size
  869. fp.Position = tors.Position
  870. RemoveOutlines(fp)
  871. fp.Material = "SmoothPlastic"
  872. fp:BreakJoints()
  873. return fp
  874. end
  875.  
  876. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  877. local mesh = IT(Mesh)
  878. mesh.Parent = part
  879. if Mesh == "SpecialMesh" then
  880. mesh.MeshType = meshtype
  881. if meshid ~= "nil" then
  882. mesh.MeshId = "http://www.roblox.com/asset/?id="..meshid
  883. end
  884. end
  885. mesh.Offset = offset
  886. mesh.Scale = scale
  887. return mesh
  888. end
  889.  
  890. function Magic(bonuspeed, type, pos, scale, value, color, MType)
  891. local type = type
  892. local rng = Instance.new("Part", char)
  893. rng.Anchored = true
  894. rng.BrickColor = color
  895. rng.CanCollide = false
  896. rng.FormFactor = 3
  897. rng.Name = "Ring"
  898. rng.Material = "Neon"
  899. rng.Size = Vector3.new(1, 1, 1)
  900. rng.Transparency = 0
  901. rng.TopSurface = 0
  902. rng.BottomSurface = 0
  903. rng.CFrame = pos
  904. local rngm = Instance.new("SpecialMesh", rng)
  905. rngm.MeshType = MType
  906. rngm.Scale = scale
  907. local scaler2 = 1
  908. if type == "Add" then
  909. scaler2 = 1 * value
  910. elseif type == "Divide" then
  911. scaler2 = 1 / value
  912. end
  913. coroutine.resume(coroutine.create(function()
  914. for i = 0, 10 / bonuspeed, 0.1 do
  915. swait()
  916. if type == "Add" then
  917. scaler2 = scaler2 - 0.01 * value / bonuspeed
  918. elseif type == "Divide" then
  919. scaler2 = scaler2 - 0.01 / value * bonuspeed
  920. end
  921. rng.Transparency = rng.Transparency + 0.01 * bonuspeed
  922. rngm.Scale = rngm.Scale + Vector3.new(scaler2 * bonuspeed, scaler2 * bonuspeed, scaler2 * bonuspeed)
  923. end
  924. rng:Destroy()
  925. end))
  926. end
  927.  
  928. function Eviscerate(dude)
  929. if dude.Name ~= char then
  930. local bgf = IT("BodyGyro", dude.Head)
  931. bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(Rad(-90), 0, 0)
  932. local val = IT("BoolValue", dude)
  933. val.Name = "IsHit"
  934. local ds = coroutine.wrap(function()
  935. dude:WaitForChild("Head"):BreakJoints()
  936. wait(0.5)
  937. target = nil
  938. coroutine.resume(coroutine.create(function()
  939. for i, v in pairs(dude:GetChildren()) do
  940. if v:IsA("Accessory") then
  941. v:Destroy()
  942. end
  943. if v:IsA("Humanoid") then
  944. v:Destroy()
  945. end
  946. if v:IsA("CharacterMesh") then
  947. v:Destroy()
  948. end
  949. if v:IsA("Model") then
  950. v:Destroy()
  951. end
  952. if v:IsA("Part") or v:IsA("MeshPart") then
  953. for x, o in pairs(v:GetChildren()) do
  954. if o:IsA("Decal") then
  955. o:Destroy()
  956. end
  957. end
  958. coroutine.resume(coroutine.create(function()
  959. v.Material = "Neon"
  960. v.CanCollide = false
  961. local PartEmmit1 = IT("ParticleEmitter", v)
  962. PartEmmit1.LightEmission = 1
  963. PartEmmit1.Texture = "rbxassetid://1523916715"
  964. PartEmmit1.Color = ColorSequence.new(Color3.new(0, 0, 0))
  965. PartEmmit1.Rate = 150
  966. PartEmmit1.Lifetime = NumberRange.new(1)
  967. PartEmmit1.Size = NumberSequence.new({
  968. NumberSequenceKeypoint.new(0, 0.75, 0),
  969. NumberSequenceKeypoint.new(1, 0, 0)
  970. })
  971. PartEmmit1.Transparency = NumberSequence.new({
  972. NumberSequenceKeypoint.new(0, 0, 0),
  973. NumberSequenceKeypoint.new(1, 1, 0)
  974. })
  975. PartEmmit1.Speed = NumberRange.new(0, 0)
  976. PartEmmit1.VelocitySpread = 30000
  977. PartEmmit1.Rotation = NumberRange.new(-500, 500)
  978. PartEmmit1.RotSpeed = NumberRange.new(-500, 500)
  979. local BodPoss = IT("BodyPosition", v)
  980. BodPoss.P = 3000
  981. BodPoss.D = 1000
  982. BodPoss.maxForce = Vector3.new(50000000000, 50000000000, 50000000000)
  983. BodPoss.position = v.Position + Vector3.new(Mrandom(-15, 15), Mrandom(-15, 15), Mrandom(-15, 15))
  984. v.Color = maincolor.Color
  985. coroutine.resume(coroutine.create(function()
  986. for i = 0, 49 do
  987. swait(1)
  988. v.Transparency = v.Transparency + 0.08
  989. end
  990. wait(0.5)
  991. PartEmmit1.Enabled = false
  992. wait(3)
  993. v:Destroy()
  994. dude:Destroy()
  995. end))
  996. end))
  997. end
  998. end
  999. end))
  1000. end)
  1001. ds()
  1002. end
  1003. end
  1004.  
  1005. function FindNearestHead(Position, Distance, SinglePlayer)
  1006. if SinglePlayer then
  1007. return Distance > (SinglePlayer.Torso.CFrame.p - Position).magnitude
  1008. end
  1009. local List = {}
  1010. for i, v in pairs(workspace:GetChildren()) do
  1011. if v:IsA("Model") and v:findFirstChild("Head") and v ~= char and Distance >= (v.Head.Position - Position).magnitude then
  1012. table.insert(List, v)
  1013. end
  1014. end
  1015. return List
  1016. end
  1017.  
  1018. function Aura(bonuspeed, FastSpeed, type, pos, x1, y1, z1, value, color, outerpos, MType)
  1019. local type = type
  1020. local rng = Instance.new("Part", char)
  1021. rng.Anchored = true
  1022. rng.BrickColor = color
  1023. rng.CanCollide = false
  1024. rng.FormFactor = 3
  1025. rng.Name = "Ring"
  1026. rng.Material = "Neon"
  1027. rng.Size = Vector3.new(1, 1, 1)
  1028. rng.Transparency = 0
  1029. rng.TopSurface = 0
  1030. rng.BottomSurface = 0
  1031. rng.CFrame = pos
  1032. rng.CFrame = rng.CFrame + rng.CFrame.lookVector * outerpos
  1033. local rngm = Instance.new("SpecialMesh", rng)
  1034. rngm.MeshType = MType
  1035. rngm.Scale = Vector3.new(x1, y1, z1)
  1036. local scaler2 = 1
  1037. local speeder = FastSpeed
  1038. if type == "Add" then
  1039. scaler2 = 1 * value
  1040. elseif type == "Divide" then
  1041. scaler2 = 1 / value
  1042. end
  1043. coroutine.resume(coroutine.create(function()
  1044. for i = 0, 10 / bonuspeed, 0.1 do
  1045. swait()
  1046. if type == "Add" then
  1047. scaler2 = scaler2 - 0.01 * value / bonuspeed
  1048. elseif type == "Divide" then
  1049. scaler2 = scaler2 - 0.01 / value * bonuspeed
  1050. end
  1051. speeder = speeder - 0.01 * FastSpeed * bonuspeed
  1052. rng.CFrame = rng.CFrame + rng.CFrame.lookVector * speeder * bonuspeed
  1053. rng.Transparency = rng.Transparency + 0.01 * bonuspeed
  1054. rngm.Scale = rngm.Scale + Vector3.new(scaler2 * bonuspeed, scaler2 * bonuspeed, 0)
  1055. end
  1056. rng:Destroy()
  1057. end))
  1058. end
  1059.  
  1060. function SoulSteal(dude)
  1061. if dude.Name ~= char then
  1062. local bgf = IT("BodyGyro", dude.Head)
  1063. bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(Rad(-90), 0, 0)
  1064. local val = IT("BoolValue", dude)
  1065. val.Name = "IsHit"
  1066. local torso = (dude:FindFirstChild'Head' or dude:FindFirstChild'Torso' or dude:FindFirstChild'UpperTorso' or dude:FindFirstChild'LowerTorso' or dude:FindFirstChild'HumanoidRootPart')
  1067. local soulst = coroutine.wrap(function()
  1068. local soul = Instance.new("Part",dude)
  1069. soul.Size = Vector3.new(1,1,1)
  1070. soul.CanCollide = false
  1071. soul.Anchored = false
  1072. soul.Position = torso.Position
  1073. soul.Transparency = 1
  1074. local PartEmmit1 = IT("ParticleEmitter", soul)
  1075. PartEmmit1.LightEmission = 1
  1076. PartEmmit1.Texture = "rbxassetid://569507414"
  1077. PartEmmit1.Color = ColorSequence.new(maincolor.Color)
  1078. PartEmmit1.Rate = 250
  1079. PartEmmit1.Lifetime = NumberRange.new(1.6)
  1080. PartEmmit1.Size = NumberSequence.new({
  1081. NumberSequenceKeypoint.new(0, 1, 0),
  1082. NumberSequenceKeypoint.new(1, 0, 0)
  1083. })
  1084. PartEmmit1.Transparency = NumberSequence.new({
  1085. NumberSequenceKeypoint.new(0, 0, 0),
  1086. NumberSequenceKeypoint.new(1, 1, 0)
  1087. })
  1088. PartEmmit1.Speed = NumberRange.new(0, 0)
  1089. PartEmmit1.VelocitySpread = 30000
  1090. PartEmmit1.Rotation = NumberRange.new(-360, 360)
  1091. PartEmmit1.RotSpeed = NumberRange.new(-360, 360)
  1092. local BodPoss = IT("BodyPosition", soul)
  1093. BodPoss.P = 3000
  1094. BodPoss.D = 1000
  1095. BodPoss.maxForce = Vector3.new(50000000000, 50000000000, 50000000000)
  1096. BodPoss.position = torso.Position + Vector3.new(Mrandom(-15, 15), Mrandom(-15, 15), Mrandom(-15, 15))
  1097. wait(1.6)
  1098. soul.Touched:connect(function(hit)
  1099. if hit.Parent == char then
  1100. soul:Destroy()
  1101. end
  1102. end)
  1103. wait(1.2)
  1104. while soul do
  1105. swait()
  1106. PartEmmit1.Color = ColorSequence.new(maincolor.Color)
  1107. BodPoss.Position = tors.Position
  1108. end
  1109. end)
  1110. soulst()
  1111. end
  1112. end
  1113. function FaceMouse()
  1114. local Cam = workspace.CurrentCamera
  1115. return {
  1116. CFrame.new(char.Torso.Position, Vector3.new(Mouse.Hit.p.x, char.Torso.Position.y, Mouse.Hit.p.z)),
  1117. Vector3.new(Mouse.Hit.p.x, Mouse.Hit.p.y, Mouse.Hit.p.z)
  1118. }
  1119. end
  1120. -------------------------------------------------------
  1121. --End Effect Function--
  1122. -------------------------------------------------------
  1123. function Cso(ID, PARENT, VOLUME, PITCH)
  1124. local NSound = nil
  1125. coroutine.resume(coroutine.create(function()
  1126. NSound = IT("Sound", PARENT)
  1127. NSound.Volume = VOLUME
  1128. NSound.Pitch = PITCH
  1129. NSound.SoundId = "http://www.roblox.com/asset/?id="..ID
  1130. swait()
  1131. NSound:play()
  1132. game:GetService("Debris"):AddItem(NSound, 10)
  1133. end))
  1134. return NSound
  1135. end
  1136. function CameraEnshaking(Length, Intensity)
  1137. coroutine.resume(coroutine.create(function()
  1138. local intensity = 1 * Intensity
  1139. local rotM = 0.01 * Intensity
  1140. for i = 0, Length, 0.1 do
  1141. swait()
  1142. intensity = intensity - 0.05 * Intensity / Length
  1143. rotM = rotM - 5.0E-4 * Intensity / Length
  1144. hum.CameraOffset = Vector3.new(Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity)))
  1145. cam.CFrame = cam.CFrame * CF(Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity))) * Euler(Rad(Mrandom(-intensity, intensity)) * rotM, Rad(Mrandom(-intensity, intensity)) * rotM, Rad(Mrandom(-intensity, intensity)) * rotM)
  1146. end
  1147. hum.CameraOffset = Vector3.new(0, 0, 0)
  1148. end))
  1149. end
  1150.  
  1151. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  1152. local NEWMESH = Instance.new(MESH)
  1153. if MESH == "SpecialMesh" then
  1154. NEWMESH.MeshType = MESHTYPE
  1155. if MESHID ~= "nil" and MESHID ~= "" then
  1156. NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
  1157. end
  1158. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  1159. NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
  1160. end
  1161. end
  1162. NEWMESH.Offset = OFFSET or Vector3.new(0, 0, 0)
  1163. NEWMESH.Scale = SCALE
  1164. NEWMESH.Parent = PARENT
  1165. return NEWMESH
  1166. end
  1167.  
  1168. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  1169. local NEWPART = Instance.new("Part")
  1170. NEWPART.formFactor = FORMFACTOR
  1171. NEWPART.Reflectance = REFLECTANCE
  1172. NEWPART.Transparency = TRANSPARENCY
  1173. NEWPART.CanCollide = false
  1174. NEWPART.Locked = true
  1175. NEWPART.Anchored = true
  1176. if ANCHOR == false then
  1177. NEWPART.Anchored = false
  1178. end
  1179. NEWPART.BrickColor = BrickColor.new(tostring(BRICKCOLOR))
  1180. NEWPART.Name = NAME
  1181. NEWPART.Size = SIZE
  1182. NEWPART.Position = tors.Position
  1183. NEWPART.Material = MATERIAL
  1184. NEWPART:BreakJoints()
  1185. NEWPART.Parent = PARENT
  1186. return NEWPART
  1187. end
  1188.  
  1189. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  1190. local frame = IT("Frame")
  1191. frame.BackgroundTransparency = TRANSPARENCY
  1192. frame.BorderSizePixel = BORDERSIZEPIXEL
  1193. frame.Position = POSITION
  1194. frame.Size = SIZE
  1195. frame.BackgroundColor3 = COLOR
  1196. frame.BorderColor3 = BORDERCOLOR
  1197. frame.Name = NAME
  1198. frame.Parent = PARENT
  1199. return frame
  1200. end
  1201.  
  1202. UD2 = UDim2.new
  1203.  
  1204. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  1205. local label = IT("TextLabel")
  1206. label.BackgroundTransparency = 1
  1207. label.Size = UD2(1, 0, 1, 0)
  1208. label.Position = UD2(0, 0, 0, 0)
  1209. label.TextColor3 = TEXTCOLOR
  1210. label.TextStrokeTransparency = STROKETRANSPARENCY
  1211. label.TextTransparency = TRANSPARENCY
  1212. label.FontSize = TEXTFONTSIZE
  1213. label.Font = TEXTFONT
  1214. label.BorderSizePixel = BORDERSIZEPIXEL
  1215. label.TextScaled = false
  1216. label.Text = TEXT
  1217. label.Name = NAME
  1218. label.Parent = PARENT
  1219. return label
  1220. end
  1221.  
  1222. local Particle = IT("ParticleEmitter",nil)
  1223. Particle.Enabled = false
  1224. Particle.LightEmission = 0.2
  1225. Particle.Rate = 150
  1226. Particle.ZOffset = 1
  1227. Particle.Rotation = NumberRange.new(-180, 180)
  1228.  
  1229. function ParticleEmitter(Table)
  1230. local PRTCL = Particle:Clone()
  1231. local Color1 = Table.Color1 or Color3.new(1,1,1)
  1232. local Color2 = Table.Color2 or Color3.new(1,1,1)
  1233. local Speed = Table.Speed or 5
  1234. local Drag = Table.Drag or 0
  1235. local Size1 = Table.Size1 or 1
  1236. local Size2 = Table.Size2 or 5
  1237. local Lifetime1 = Table.Lifetime1 or 1
  1238. local Lifetime2 = Table.Lifetime2 or 1.5
  1239. local Parent = Table.Parent or tors
  1240. local Emit = Table.Emit or 100
  1241. local Offset = Table.Offset or 360
  1242. local Acel = Table.Acel or Vector3.new(0,0,0)
  1243. local Enabled = Table.Enabled or false
  1244. local Texture = Table.Texture or "281983280"
  1245. local RotS = Table.RotSpeed or NumberRange.new(-15, 15)
  1246. local Trans1 = Table.Transparency1 or 0
  1247. local Trans2 = Table.Transparency2 or 0
  1248. PRTCL.Parent = Parent
  1249. PRTCL.RotSpeed = RotS
  1250. PRTCL.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,Trans1),NumberSequenceKeypoint.new(1,Trans2)})
  1251. PRTCL.Texture = "http://www.roblox.com/asset/?id="..Texture
  1252. PRTCL.Color = ColorSequence.new(Color1,Color2)
  1253. PRTCL.Size = NumberSequence.new(Size1,Size2)
  1254. PRTCL.Lifetime = NumberRange.new(Lifetime1,Lifetime2)
  1255. PRTCL.Speed = NumberRange.new(Speed)
  1256. PRTCL.VelocitySpread = Offset
  1257. PRTCL.Drag = Drag
  1258. PRTCL.Acceleration = Acel
  1259. if Enabled == false then
  1260. PRTCL:Emit(Emit)
  1261. game:GetService("Debris"):AddItem(PRTCL,Lifetime2)
  1262. else
  1263. PRTCL.Enabled = true
  1264. end
  1265. return PRTCL
  1266. end
  1267. -------------------------------------------------------
  1268. --End Important Functions--
  1269. -------------------------------------------------------
  1270.  
  1271.  
  1272. -------------------------------------------------------
  1273. --Start Customization--
  1274. -------------------------------------------------------
  1275. local Player_Size = 1.4
  1276. if Player_Size ~= 1 then
  1277. root.Size = root.Size * Player_Size
  1278. tors.Size = tors.Size * Player_Size
  1279. hed.Size = hed.Size * Player_Size
  1280. ra.Size = ra.Size * Player_Size
  1281. la.Size = la.Size * Player_Size
  1282. rl.Size = rl.Size * Player_Size
  1283. ll.Size = ll.Size * Player_Size
  1284. ----------------------------------------------------------------------------------
  1285. rootj.Parent = root
  1286. neck.Parent = tors
  1287. RW.Parent = tors
  1288. LW.Parent = tors
  1289. RH.Parent = tors
  1290. LH.Parent = tors
  1291. ----------------------------------------------------------------------------------
  1292. rootj.C0 = RootCF * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0))
  1293. rootj.C1 = RootCF * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0))
  1294. neck.C0 = necko * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * angles(Rad(0), Rad(0), Rad(0))
  1295. neck.C1 = CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * angles(Rad(-90), Rad(0), Rad(180))
  1296. RW.C0 = CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0)) --* RIGHTSHOULDERC0
  1297. LW.C0 = CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0)) --* LEFTSHOULDERC0
  1298. ----------------------------------------------------------------------------------
  1299. RH.C0 = CF(1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(90), Rad(0)) * angles(Rad(0), Rad(0), Rad(0))
  1300. LH.C0 = CF(-1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(-90), Rad(0)) * angles(Rad(0), Rad(0), Rad(0))
  1301. RH.C1 = CF(0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(90), Rad(0)) * angles(Rad(0), Rad(0), Rad(0))
  1302. LH.C1 = CF(-0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(-90), Rad(0)) * angles(Rad(0), Rad(0), Rad(0))
  1303. --hat.Parent = Character
  1304. end
  1305. ----------------------------------------------------------------------------------
  1306. local SONG = 1066344174
  1307. local SONG2 = 0
  1308. local Music = Instance.new("Sound",tors)
  1309. Music.Volume = 2.5
  1310. Music.Looped = true
  1311. Music.Pitch = 1 --Pitcher
  1312. ----------------------------------------------------------------------------------
  1313. local equipped = false
  1314. local idle = 0
  1315. local change = 1
  1316. local val = 0
  1317. local toim = 0
  1318. local idleanim = 0.4
  1319. local sine = 0
  1320. local Sit = 1
  1321. local VALUE1 = false
  1322. local VALUE2 = false
  1323. local HOLD = false
  1324. local KEYHOLD = false
  1325. ----------------------------------------------------------------------------------
  1326. hum.WalkSpeed = 18
  1327. hum.JumpPower = 130
  1328. hum.Animator.Parent = nil
  1329. ----------------------------------------------------------------------------------
  1330. local naeeym2 = IT("BillboardGui",char)
  1331. naeeym2.AlwaysOnTop = true
  1332. naeeym2.Size = UDim2.new(5,35,2,15)
  1333. naeeym2.StudsOffset = Vector3.new(0,2,0)
  1334. naeeym2.MaxDistance = 75
  1335. naeeym2.Adornee = hed
  1336. naeeym2.Name = "Name"
  1337. --naeeym2.PlayerToHideFrom = Player
  1338. local tecks2 = IT("TextLabel",naeeym2)
  1339. tecks2.BackgroundTransparency = 1
  1340. tecks2.TextScaled = true
  1341. tecks2.BorderSizePixel = 0
  1342. tecks2.Text = "Blight"
  1343. tecks2.Font = "Fantasy"
  1344. tecks2.TextSize = 30
  1345. tecks2.TextStrokeTransparency = 0
  1346. tecks2.TextColor3 = Color3.fromRGB(0, 0, 0)
  1347. tecks2.TextStrokeColor3 = Color3.fromRGB(0, 0, 0)
  1348. tecks2.Size = UDim2.new(1,0,0.5,0)
  1349. tecks2.Parent = naeeym2
  1350. local top = Instance.new("Shirt")
  1351. top.ShirtTemplate = "rbxassetid://228794266"
  1352. top.Parent = char
  1353. top.Name = "Cloth"
  1354. local bottom = Instance.new("Pants")
  1355. bottom.PantsTemplate = "rbxassetid://228794877"
  1356. bottom.Parent = char
  1357. bottom.Name = "Cloth"
  1358. Reaper = IT("Model")
  1359. Reaper.Parent = char
  1360. Reaper.Name = "Reaper"
  1361. RHe = IT("Part")
  1362. RHe.Parent = Reaper
  1363. RHe.BrickColor = BrickColor.new("Really black")
  1364. RHe.Locked = true
  1365. RHe.CanCollide = false
  1366. RHe.Transparency = 0
  1367. PMesh = IT("SpecialMesh")
  1368. RHe.formFactor = "Symmetric"
  1369. PMesh.MeshType = "FileMesh"
  1370. PMesh.MeshId = "rbxassetid://124631026"
  1371. PMesh.TextureId = "rbxassetid://151576107"
  1372. PMesh.Scale = Vector3.new(3.01, 3.01, 3.01)
  1373. PMesh.Parent = RHe
  1374. local RWeld = IT("Weld")
  1375. RWeld.Parent = RHe
  1376. RWeld.Part0 = RHe
  1377. RWeld.Part1 = hed
  1378. RWeld.C0 = CF(0, 1.5, 0) * angles(0, 0, 0)
  1379. hed.face:Remove()
  1380. ----------------------------------------------------------------------------------
  1381. PlayerGui = plr.PlayerGui
  1382. local WEAPONGUI = IT("ScreenGui", PlayerGui)
  1383. WEAPONGUI.Name = "Weapon GUI"
  1384.  
  1385. local SKILLTEXTCOLOR = Color3.new(0,0,0)
  1386. local SKILLFONT = "Antique"
  1387. local SKILLTEXTSIZE = 6
  1388.  
  1389. local SKILL1FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.8, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), Color3.new(0,0,0), Color3.new(0, 0, 0), "Skill 1 Frame")
  1390. local SKILL2FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.8, 0, 0.86, 0), UD2(0.26, 0, 0.07, 0), Color3.new(0,0,0), Color3.new(0, 0, 0), "Skill 2 Frame")
  1391. local SKILL3FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.8, 0, 0.82, 0), UD2(0.26, 0, 0.07, 0), Color3.new(0,0,0), Color3.new(0, 0, 0), "Skill 3 Frame")
  1392. local SKILL4FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.8, 0, 0.78, 0), UD2(0.26, 0, 0.07, 0), Color3.new(0,0,0), Color3.new(0, 0, 0), "Skill 4 Frame")
  1393. local SKILL5FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.8, 0, 0.74, 0), UD2(0.26, 0, 0.07, 0), Color3.new(0,0,0), Color3.new(0, 0, 0), "Skill 5 Frame")
  1394.  
  1395. local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[Z] Shadow's Victory", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 1, "Text 1")
  1396. local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[B] Eruption", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 1, "Text 2")
  1397. --local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[C] Chaos", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 1, "Text 3")
  1398. --local SKILL4TEXT = CreateLabel(SKILL4FRAME, "[V] Death's Wish", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 1, "Text 4")
  1399. --local SKILL5TEXT = CreateLabel(SKILL5FRAME, "[X] Shadows Whisper", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 1, "Text 5")
  1400. -------------------------------------------------------
  1401. --End Customization--
  1402. -------------------------------------------------------
  1403.  
  1404.  
  1405. -------------------------------------------------------
  1406. --Start Attacks N Stuff--
  1407. -------------------------------------------------------
  1408. function Shadom_Circle()
  1409.  
  1410. end
  1411. function Flame_Burst()
  1412. local target = nil
  1413. local targettorso = nil
  1414. if Mouse.Target.Parent ~= char and Mouse.Target.Parent.Parent ~= char and Mouse.Target.Parent:FindFirstChild("Humanoid") ~= nil then
  1415. if Mouse.Target.Parent.Humanoid.PlatformStand == false then
  1416. target = Mouse.Target.Parent.Humanoid
  1417. target2 = Mouse.Target.Parent
  1418. targettorso = Mouse.Target.Parent:FindFirstChild("Torso") or Mouse.Target.Parent:FindFirstChild("UpperTorso")
  1419. end
  1420. end
  1421. if target ~= nil then
  1422. attack = true
  1423. hum.WalkSpeed = 0
  1424. for i = 0, 3.4, 0.1 do
  1425. swait()
  1426. hum.WalkSpeed = 0
  1427. rootj.C0 = clerp(rootj.C0, RootCF * CF(0 - 0.04 * Sin(sine / 24) * Player_Size, 0 + 0.04 * Sin(sine / 12) * Player_Size, 0 + 0.05 * Player_Size * Cos(sine / 12)) * angles(Rad(0 - 2.5 * Sin(sine / 12)), Rad(0 - 2.5 * Sin(sine / 24)), Rad(45)), 0.1)
  1428. tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(15), Rad(0), Rad(-45)), 0.1)
  1429. RH.C0 = clerp(RH.C0, CF(1 * Player_Size, -1 * Player_Size - 0.06 - 0.05 * Player_Size * Cos(sine / 12), -0.01 * Player_Size) * angles(Rad(0 - 2.5 * Sin(sine / 12)), Rad(79), Rad(0)) * angles(Rad(-6 - 2.5 * Sin(sine / 24)), Rad(0), Rad(0)), 0.1)
  1430. LH.C0 = clerp(LH.C0, CF(-1 * Player_Size, -1 * Player_Size - 0.06 - 0.05 * Player_Size * Cos(sine / 12), -0.01 * Player_Size) * angles(Rad(0 - 2.5 * Sin(sine / 12)), Rad(-79), Rad(0)) * angles(Rad(-6 + 2.5 * Sin(sine / 24)), Rad(0), Rad(0)), 0.1)
  1431. RW.C0 = clerp(RW.C0, CF(1.5 * Player_Size, 0.5 + 0.02 * Sin(sine / 12)* Player_Size, 0* Player_Size) * angles(Rad(90), Rad(-15), Rad(46 + 4.5 * Sin(sine / 12))), 0.1)
  1432. LW.C0 = clerp(LW.C0, CF(-1.5 * Player_Size, 0.5 + 0.02 * Sin(sine / 12)* Player_Size, 0* Player_Size) * angles(Rad(25), Rad(-.6), Rad(-46 - 4.5 * Sin(sine / 12))), 0.1)
  1433. end
  1434. --ParticleEmitter({Transparency1 = 1, Transparency2 = 0, Speed = 5, Acel = Vector3.new(0,12,0), RotSpeed = NumberRange.new(-150, 150), Drag = 0, Size1 = 3, Size2 = 0, Lifetime1 = 0.4, Lifetime2 = 1, Parent = targettorso, Emit = 300, Offset = 360, Enabled = false, Color1 = Color3.new(0,0,0), Color2 = Color3.new(0,0,0), Texture = "1523916715"})
  1435. --targettorso:BreakJoints()
  1436. for i = 0, 3.4, 0.1 do
  1437. swait()
  1438. hum.WalkSpeed = 0
  1439. ParticleEmitter({Transparency1 = 1, Transparency2 = 0, Speed = 5, Acel = Vector3.new(0,12,0), RotSpeed = NumberRange.new(-150, 150), Drag = 0, Size1 = 3, Size2 = 0, Lifetime1 = 0.4, Lifetime2 = 1, Parent = targettorso, Emit = 300, Offset = 360, Enabled = false, Color1 = Color3.new(0,0,0), Color2 = Color3.new(0,0,0), Texture = "1523916715"})
  1440. rootj.C0 = clerp(rootj.C0, RootCF * CF(0 - 0.04 * Sin(sine / 24) * Player_Size, 0 + 0.04 * Sin(sine / 12) * Player_Size, 0 + 0.05 * Player_Size * Cos(sine / 12)) * angles(Rad(0 - 2.5 * Sin(sine / 12)), Rad(0 - 2.5 * Sin(sine / 24)), Rad(45)), 0.1)
  1441. tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(15), Rad(0), Rad(-45)), 0.1)
  1442. RH.C0 = clerp(RH.C0, CF(1 * Player_Size, -1 * Player_Size - 0.06 - 0.05 * Player_Size * Cos(sine / 12), -0.01 * Player_Size) * angles(Rad(0 - 2.5 * Sin(sine / 12)), Rad(79), Rad(0)) * angles(Rad(-6 - 2.5 * Sin(sine / 24)), Rad(0), Rad(0)), 0.1)
  1443. LH.C0 = clerp(LH.C0, CF(-1 * Player_Size, -1 * Player_Size - 0.06 - 0.05 * Player_Size * Cos(sine / 12), -0.01 * Player_Size) * angles(Rad(0 - 2.5 * Sin(sine / 12)), Rad(-79), Rad(0)) * angles(Rad(-6 + 2.5 * Sin(sine / 24)), Rad(0), Rad(0)), 0.1)
  1444. RW.C0 = clerp(RW.C0, CF(1.5 * Player_Size, 0.5 + 0.02 * Sin(sine / 12)* Player_Size, 0* Player_Size) * angles(Rad(135), Rad(-.6), Rad(46 + 4.5 * Sin(sine / 12))), 0.1)
  1445. LW.C0 = clerp(LW.C0, CF(-1.5 * Player_Size, 0.5 + 0.02 * Sin(sine / 12)* Player_Size, 0* Player_Size) * angles(Rad(25), Rad(-.6), Rad(-46 - 4.5 * Sin(sine / 12))), 0.1)
  1446. end
  1447. for i, v in pairs(target2:GetChildren()) do
  1448. if(not char:IsAncestorOf(v))then
  1449. local hum = (v and v.Parent and v.Parent:FindFirstChildOfClass'Humanoid')
  1450. local hedder = (v and v.Parent and v.Parent:FindFirstChild'Head')
  1451. if(hum and hedder and hum.Health > 0)then
  1452. Eviscerate(v.Parent)
  1453. end
  1454. end
  1455. end
  1456. attack = false
  1457. hum.WalkSpeed = 18
  1458. end
  1459. end
  1460. function Ritual()
  1461. attack = true
  1462. hum.WalkSpeed = 0
  1463. VALUE2 = true
  1464. repeat
  1465. ---Pose1
  1466. for i = 0, 2.6, 0.1 do
  1467. swait()
  1468. hum.WalkSpeed = 0
  1469. rootj.C0 = clerp(rootj.C0, RootCF * CF(0 - 0.04 * Sin(sine / 24) * Player_Size, 0 + 0.04 * Sin(sine / 12) * Player_Size, -0.7 + 0.05 * Player_Size * Cos(sine / 12)) * angles(Rad(0 - 2.5 * Sin(sine / 12)), Rad(0 - 2.5 * Sin(sine / 24)), Rad(0)), 0.1)
  1470. tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(45), Rad(0), Rad(0)), 0.1)
  1471. RH.C0 = clerp(RH.C0, CF(1 * Player_Size, -.5 * Player_Size - 0.06 - 0.05 * Player_Size * Cos(sine / 12), -0.2 * Player_Size) * angles(Rad(0 - 2.5 * Sin(sine / 12)), Rad(79), Rad(0)) * angles(Rad(-6 - 2.5 * Sin(sine / 24)), Rad(0), Rad(0)), 0.1)
  1472. LH.C0 = clerp(LH.C0, CF(-1 * Player_Size, -.5 * Player_Size - 0.06 - 0.05 * Player_Size * Cos(sine / 12), -0.2 * Player_Size) * angles(Rad(0 - 2.5 * Sin(sine / 12)), Rad(-79), Rad(0)) * angles(Rad(-6 + 2.5 * Sin(sine / 24)), Rad(0), Rad(0)), 0.1)
  1473. RW.C0 = clerp(RW.C0, CF(1.5 * Player_Size, 0.5 + 0.02 * Sin(sine / 12)* Player_Size, 0* Player_Size) * angles(Rad(-20), Rad(-.6), Rad(25 + 4.5 * Sin(sine / 12))), 0.1)
  1474. LW.C0 = clerp(LW.C0, CF(-1.5 * Player_Size, 0.5 + 0.02 * Sin(sine / 12)* Player_Size, 0* Player_Size) * angles(Rad(-20), Rad(-.6), Rad(-25 - 4.5 * Sin(sine / 12))), 0.1)
  1475. end
  1476. for i = 0, 3.4, 0.1 do
  1477. swait()
  1478. hum.WalkSpeed = 0
  1479. rootj.C0 = clerp(rootj.C0, RootCF * CF(0 - 0.04 * Sin(sine / 24) * Player_Size, 0 + 0.04 * Sin(sine / 12) * Player_Size, 0 + 0.05 * Player_Size * Cos(sine / 12)) * angles(Rad(0 - 2.5 * Sin(sine / 12)), Rad(8 - 2.5 * Sin(sine / 24)), Rad(0)), 0.1)
  1480. tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(-15), Rad(0), Rad(0)), 0.1)
  1481. RH.C0 = clerp(RH.C0, CF(1 * Player_Size, -1.3 * Player_Size - 0.06 - 0.05 * Player_Size * Cos(sine / 12), -0.01 * Player_Size) * angles(Rad(0 - 2.5 * Sin(sine / 12)), Rad(79), Rad(0)) * angles(Rad(-6 - 2.5 * Sin(sine / 24)), Rad(0), Rad(0)), 0.1)
  1482. LH.C0 = clerp(LH.C0, CF(-1 * Player_Size, -1 * Player_Size - 0.06 - 0.05 * Player_Size * Cos(sine / 12), -0.01 * Player_Size) * angles(Rad(0 - 2.5 * Sin(sine / 12)), Rad(-79), Rad(0)) * angles(Rad(-6 + 2.5 * Sin(sine / 24)), Rad(0), Rad(0)), 0.1)
  1483. RW.C0 = clerp(RW.C0, CF(1.5 * Player_Size, 0.5 + 0.02 * Sin(sine / 12)* Player_Size, 0* Player_Size) * angles(Rad(125), Rad(-.6), Rad(46 + 4.5 * Sin(sine / 12))), 0.1)
  1484. LW.C0 = clerp(LW.C0, CF(-1.5 * Player_Size, 0.5 + 0.02 * Sin(sine / 12)* Player_Size, 0* Player_Size) * angles(Rad(125), Rad(-.6), Rad(-46 - 4.5 * Sin(sine / 12))), 0.1)
  1485. end
  1486. ---Pose2
  1487. for i = 0, 2.6, 0.1 do
  1488. swait()
  1489. hum.WalkSpeed = 0
  1490. rootj.C0 = clerp(rootj.C0, RootCF * CF(0 - 0.04 * Sin(sine / 24) * Player_Size, 0 + 0.04 * Sin(sine / 12) * Player_Size, -0.7 + 0.05 * Player_Size * Cos(sine / 12)) * angles(Rad(0 - 2.5 * Sin(sine / 12)), Rad(0 - 2.5 * Sin(sine / 24)), Rad(0)), 0.1)
  1491. tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(45), Rad(0), Rad(0)), 0.1)
  1492. RH.C0 = clerp(RH.C0, CF(1 * Player_Size, -.5 * Player_Size - 0.06 - 0.05 * Player_Size * Cos(sine / 12), -0.2 * Player_Size) * angles(Rad(0 - 2.5 * Sin(sine / 12)), Rad(79), Rad(0)) * angles(Rad(-6 - 2.5 * Sin(sine / 24)), Rad(0), Rad(0)), 0.1)
  1493. LH.C0 = clerp(LH.C0, CF(-1 * Player_Size, -.5 * Player_Size - 0.06 - 0.05 * Player_Size * Cos(sine / 12), -0.2 * Player_Size) * angles(Rad(0 - 2.5 * Sin(sine / 12)), Rad(-79), Rad(0)) * angles(Rad(-6 + 2.5 * Sin(sine / 24)), Rad(0), Rad(0)), 0.1)
  1494. RW.C0 = clerp(RW.C0, CF(1.5 * Player_Size, 0.5 + 0.02 * Sin(sine / 12)* Player_Size, 0* Player_Size) * angles(Rad(-20), Rad(-.6), Rad(25 + 4.5 * Sin(sine / 12))), 0.1)
  1495. LW.C0 = clerp(LW.C0, CF(-1.5 * Player_Size, 0.5 + 0.02 * Sin(sine / 12)* Player_Size, 0* Player_Size) * angles(Rad(-20), Rad(-.6), Rad(-25 - 4.5 * Sin(sine / 12))), 0.1)
  1496. end
  1497. for i = 0, 3.4, 0.1 do
  1498. swait()
  1499. hum.WalkSpeed = 0
  1500. rootj.C0 = clerp(rootj.C0, RootCF * CF(0 - 0.04 * Sin(sine / 24) * Player_Size, 0 + 0.04 * Sin(sine / 12) * Player_Size, 0 + 0.05 * Player_Size * Cos(sine / 12)) * angles(Rad(0 - 2.5 * Sin(sine / 12)), Rad(-8 - 2.5 * Sin(sine / 24)), Rad(0)), 0.1)
  1501. tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(-15), Rad(0), Rad(0)), 0.1)
  1502. RH.C0 = clerp(RH.C0, CF(1 * Player_Size, -1 * Player_Size - 0.06 - 0.05 * Player_Size * Cos(sine / 12), -0.01 * Player_Size) * angles(Rad(0 - 2.5 * Sin(sine / 12)), Rad(79), Rad(0)) * angles(Rad(-6 - 2.5 * Sin(sine / 24)), Rad(0), Rad(0)), 0.1)
  1503. LH.C0 = clerp(LH.C0, CF(-1 * Player_Size, -1.3 * Player_Size - 0.06 - 0.05 * Player_Size * Cos(sine / 12), -0.01 * Player_Size) * angles(Rad(0 - 2.5 * Sin(sine / 12)), Rad(-79), Rad(0)) * angles(Rad(-6 + 2.5 * Sin(sine / 24)), Rad(0), Rad(0)), 0.1)
  1504. RW.C0 = clerp(RW.C0, CF(1.5 * Player_Size, 0.5 + 0.02 * Sin(sine / 12)* Player_Size, 0* Player_Size) * angles(Rad(125), Rad(-.6), Rad(46 + 4.5 * Sin(sine / 12))), 0.1)
  1505. LW.C0 = clerp(LW.C0, CF(-1.5 * Player_Size, 0.5 + 0.02 * Sin(sine / 12)* Player_Size, 0* Player_Size) * angles(Rad(125), Rad(-.6), Rad(-46 - 4.5 * Sin(sine / 12))), 0.1)
  1506. end
  1507. until VALUE2 == false
  1508. attack = false
  1509. hum.WalkSpeed = 18
  1510. end
  1511. -------------------------------------------------------
  1512. --End Attacks N Stuff--
  1513. -------------------------------------------------------
  1514. Mouse.KeyDown:connect(function(key)
  1515. if (VALUE1 == false and attack == false) or VALUE2 == true then
  1516. if key == "q" then
  1517. if VALUE2 == false then
  1518. Ritual()
  1519. elseif VALUE2 == true then
  1520. VALUE2 = false
  1521. end
  1522. end
  1523. end
  1524. if attack == false then
  1525. if key == 't' then
  1526. Cso("907332040", hed, 10, 1.1)
  1527. elseif key == 'z' then
  1528. Shadom_Circle()
  1529. elseif key == 'b' then
  1530. Flame_Burst()
  1531. end
  1532. end
  1533. end)
  1534.  
  1535. Mouse.KeyDown:connect(function(key)
  1536. if string.byte(key) == 48 then
  1537. Swing = 2
  1538. hum.WalkSpeed = 38.82
  1539. end
  1540. end)
  1541. Mouse.KeyUp:connect(function(key)
  1542. if string.byte(key) == 48 then
  1543. Swing = 1
  1544. hum.WalkSpeed = 18
  1545. end
  1546. end)
  1547.  
  1548.  
  1549.  
  1550.  
  1551.  
  1552.  
  1553. -------------------------------------------------------
  1554. --Start Animations--
  1555. -------------------------------------------------------
  1556. while true do
  1557. swait()
  1558. sine = sine + change
  1559. local torvel = (root.Velocity * Vector3.new(1, 0, 1)).magnitude
  1560. local velderp = root.Velocity.y
  1561. hitfloor, posfloor = rayCast(root.Position, CFrame.new(root.Position, root.Position - Vector3.new(0, 1, 0)).lookVector, 4* Player_Size, char)
  1562. if equipped == true or equipped == false then
  1563. if attack == false then
  1564. idle = idle + 1
  1565. else
  1566. idle = 0
  1567. end
  1568. if 1 < root.Velocity.y and hitfloor == nil then
  1569. Anim = "Jump"
  1570. if attack == false then
  1571. rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1 * Cos(sine / 20)* Player_Size) * angles(Rad(-5), Rad(0), Rad(0)), 0.15)
  1572. neck.C0 = clerp(neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(10 - 2.5 * Sin(sine / 30)), Rad(0), Rad(0)), 0.3)
  1573. RH.C0 = clerp(RH.C0, CF(1* Player_Size, -.2 - 0.1 * Cos(sine / 20)* Player_Size, -.3* Player_Size) * RHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15)
  1574. LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -.9 - 0.1 * Cos(sine / 20), -.5* Player_Size) * LHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15)
  1575. RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(25), Rad(-.6), Rad(13 + 4.5 * Sin(sine / 20))), 0.1)
  1576. LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(25), Rad(-.6), Rad(-13 - 4.5 * Sin(sine / 20))), 0.1)
  1577. end
  1578. elseif -1 > root.Velocity.y and hitfloor == nil then
  1579. Anim = "Fall"
  1580. if attack == false then
  1581. rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1 * Cos(sine / 20)* Player_Size) * angles(Rad(-24), Rad(0), Rad(0)), 0.15)
  1582. neck.C0 = clerp(neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(35 - 2.5 * Sin(sine / 30)), Rad(0), Rad(0)), 0.3)
  1583. RH.C0 = clerp(RH.C0, CF(1* Player_Size, -1 - 0.1 * Cos(sine / 20)* Player_Size, -.3* Player_Size) * RHCF * angles(Rad(-3.5), Rad(0), Rad(50)), 0.15)
  1584. LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -.8 - 0.1 * Cos(sine / 20)* Player_Size, -.3* Player_Size) * LHCF * angles(Rad(-3.5), Rad(0), Rad(40)), 0.15)
  1585. RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(65), Rad(-.6), Rad(75 + 4.5 * Sin(sine / 20))), 0.1)
  1586. LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(55), Rad(-.6), Rad(-75 - 4.5 * Sin(sine / 20))), 0.1)
  1587. end
  1588. elseif torvel < 1 and hitfloor ~= nil then
  1589. Anim = "Idle"
  1590. change = 1
  1591. if attack == false then
  1592. rootj.C0 = clerp(rootj.C0, RootCF * CF(0 - 0.04 * Sin(sine / 24) * Player_Size, 0 + 0.04 * Sin(sine / 12) * Player_Size, 0 + 0.05 * Player_Size * Cos(sine / 12)) * angles(Rad(0 - 2.5 * Sin(sine / 12)), Rad(0 - 2.5 * Sin(sine / 24)), Rad(0)), 0.15)
  1593. tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(25 - 12.5 * Sin(sine / 12)), Rad(0), Rad(0)), 0.3)
  1594. RH.C0 = clerp(RH.C0, CF(1 * Player_Size, -1 * Player_Size - 0.06 - 0.05 * Player_Size * Cos(sine / 12), -0.01 * Player_Size) * angles(Rad(0 - 2.5 * Sin(sine / 12)), Rad(79), Rad(0)) * angles(Rad(-6 - 2.5 * Sin(sine / 24)), Rad(0), Rad(0)), 0.15)
  1595. LH.C0 = clerp(LH.C0, CF(-1 * Player_Size, -1 * Player_Size - 0.06 - 0.05 * Player_Size * Cos(sine / 12), -0.01 * Player_Size) * angles(Rad(0 - 2.5 * Sin(sine / 12)), Rad(-79), Rad(0)) * angles(Rad(-6 + 2.5 * Sin(sine / 24)), Rad(0), Rad(0)), 0.15)
  1596. RW.C0 = clerp(RW.C0, CF(1.5 * Player_Size, 0.5 + 0.02 * Sin(sine / 12)* Player_Size, 0* Player_Size) * angles(Rad(20), Rad(-.6), Rad(43 + 4.5 * Sin(sine / 12))), 0.1)
  1597. LW.C0 = clerp(LW.C0, CF(-1.5 * Player_Size, 0.5 + 0.02 * Sin(sine / 12)* Player_Size, 0* Player_Size) * angles(Rad(20), Rad(-.6), Rad(-43 - 4.5 * Sin(sine / 12))), 0.1)
  1598. end
  1599. elseif torvel > 2 and torvel < 25 and hitfloor ~= nil then
  1600. Anim = "Walk"
  1601. change = 1
  1602. if attack == false then
  1603. rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.175 + 0.025 * Cos(sine / 3.5) + -Sin(sine / 3.5) / 7* Player_Size) * angles(Rad(3 - 2.5 * Cos(sine / 3.5)), Rad(0) - root.RotVelocity.Y / 75, Rad(8 * Cos(sine / 7))), 0.15)
  1604. tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(6 - 2.5 * Sin(sine / 7)), Rad(0), Rad(0) - hed.RotVelocity.Y / 15), 0.3)
  1605. RH.C0 = clerp(RH.C0, CF(1 * Player_Size, -0.8 * Player_Size - 0.5 * Player_Size * Cos(sine / 7) / 2 * Player_Size, 0.6 * Player_Size * Cos(sine / 7) / 2 * Player_Size) * angles(Rad(-15 - 35 * Cos(sine / 7)) - rl.RotVelocity.Y / 75 + -Sin(sine / 7) / 2.5, Rad(90 - 3 * Cos(sine / 7)), Rad(0)) * angles(Rad(0 + 2 * Cos(sine / 7)), Rad(0), Rad(0)), 0.3)
  1606. LH.C0 = clerp(LH.C0, CF(-1 * Player_Size, -0.8 * Player_Size + 0.5 * Player_Size * Cos(sine / 7) / 2 * Player_Size, -0.6 * Player_Size * Cos(sine / 7) / 2 * Player_Size) * angles(Rad(-15 + 35 * Cos(sine / 7)) + ll.RotVelocity.Y / 75 + Sin(sine / 7) / 2.5, Rad(-90 - 3 * Cos(sine / 7)), Rad(0)) * angles(Rad(0 - 2 * Cos(sine / 7)), Rad(0), Rad(0)), 0.3)
  1607. RW.C0 = clerp(RW.C0, CF(1.5 * Player_Size, 0.5 + 0.02 * Sin(sine / 12)* Player_Size, 0* Player_Size) * angles(Rad(65) * Cos(sine / 7), Rad(-.6), Rad(15 + 4.5 * Sin(sine / 12))), 0.1)
  1608. LW.C0 = clerp(LW.C0, CF(-1.5 * Player_Size, 0.5 + 0.02 * Sin(sine / 12)* Player_Size, 0* Player_Size) * angles(Rad(-65) * Cos(sine / 7), Rad(-.6), Rad(-15 - 4.5 * Sin(sine / 12))), 0.1)
  1609. end
  1610. elseif torvel >= 25 and hitfloor ~= nil then
  1611. Anim = "Sprint"
  1612. change = 1.35
  1613. if attack == false then
  1614. rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.175 + 0.025 * Cos(sine / 3.5) + -Sin(sine / 3.5) / 7* Player_Size) * angles(Rad(26 - 4.5 * Cos(sine / 3.5)), Rad(0) - root.RotVelocity.Y / 75, Rad(15 * Cos(sine / 7))), 0.15)
  1615. tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(-2.5 * Sin(sine / 20)), Rad(0), Rad(0) - hed.RotVelocity.Y / 15), 0.3)
  1616. RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.925* Player_Size - 0.5 * Cos(sine / 7) / 2* Player_Size, 0.7 * Cos(sine / 7) / 2* Player_Size) * angles(Rad(-15 - 55 * Cos(sine / 7)) - rl.RotVelocity.Y / 75 + -Sin(sine / 7) / 2.5, Rad(90 - 0.1 * Cos(sine / 7)), Rad(0)) * angles(Rad(0 + 0.1 * Cos(sine / 7)), Rad(0), Rad(0)), 0.3)
  1617. LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.925* Player_Size + 0.5 * Cos(sine / 7) / 2* Player_Size, -0.7 * Cos(sine / 7) / 2* Player_Size) * angles(Rad(-15 + 55 * Cos(sine / 7)) + ll.RotVelocity.Y / 75 + Sin(sine / 7) / 2.5, Rad(-90 - 0.1 * Cos(sine / 7)), Rad(0)) * angles(Rad(0 - 0.1 * Cos(sine / 7)), Rad(0), Rad(0)), 0.3)
  1618. RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.05 * Sin(sine / 30)* Player_Size, 0.34 * Cos(sine / 7* Player_Size)) * angles(Rad(110) * Cos(sine / 7) , Rad(0), Rad(13) - ra.RotVelocity.Y / 75), 0.15)
  1619. LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.05 * Sin(sine / 30)* Player_Size, -0.34 * Cos(sine / 7* Player_Size)) * angles(Rad(-110) * Cos(sine / 7) , Rad(0) , Rad(-13) + la.RotVelocity.Y / 75), 0.15)
  1620. end
  1621. end
  1622. end
  1623. for _, c in pairs(char:GetChildren()) do
  1624. if c.ClassName == "Part" and c.Name ~= "Detail" and c.Name ~= "Add-ons" then
  1625. c.Material = "Fabric"
  1626. if c:FindFirstChildOfClass("ParticleEmitter") then
  1627. c:FindFirstChildOfClass("ParticleEmitter"):remove()
  1628. end
  1629. if c ~= hed then
  1630. c.Color = Color3.new(0, 0, 0)
  1631. else
  1632. c.Color = Color3.new(0, 0, 0)
  1633. end
  1634. elseif c.ClassName == "CharacterMesh" or c.ClassName == "Accessory" or c.Name == "Body Colors" then
  1635. c:remove()
  1636. elseif (c.ClassName == "Shirt" or c.ClassName == "Pants") and c.Name ~= "Cloth" then
  1637. c:remove()
  1638. end
  1639. end
  1640. Music.SoundId = "rbxassetid://"..SONG
  1641. Music.Looped = true
  1642. Music.Pitch = 1
  1643. Music.Volume = 5
  1644. Music.Parent = tors
  1645. Music:Resume()
  1646. if 0 < #Effects then
  1647. for e = 1, #Effects do
  1648. if Effects[e] ~= nil then
  1649. local Thing = Effects[e]
  1650. if Thing ~= nil then
  1651. local Part = Thing[1]
  1652. local Mode = Thing[2]
  1653. local Delay = Thing[3]
  1654. local IncX = Thing[4]
  1655. local IncY = Thing[5]
  1656. local IncZ = Thing[6]
  1657. if 1 >= Thing[1].Transparency then
  1658. if Thing[2] == "Block1" then
  1659. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1660. local Mesh = Thing[1].Mesh
  1661. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1662. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1663. elseif Thing[2] == "Block2" then
  1664. Thing[1].CFrame = Thing[1].CFrame + Vector3.new(0, 0, 0)
  1665. local Mesh = Thing[7]
  1666. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1667. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1668. elseif Thing[2] == "Block3" then
  1669. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) + Vector3.new(0, 0.15, 0)
  1670. local Mesh = Thing[7]
  1671. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1672. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1673. elseif Thing[2] == "Cylinder" then
  1674. local Mesh = Thing[1].Mesh
  1675. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1676. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1677. elseif Thing[2] == "Blood" then
  1678. local Mesh = Thing[7]
  1679. Thing[1].CFrame = Thing[1].CFrame * Vector3.new(0, 0.5, 0)
  1680. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1681. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1682. elseif Thing[2] == "Elec" then
  1683. local Mesh = Thing[1].Mesh
  1684. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9])
  1685. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1686. elseif Thing[2] == "Disappear" then
  1687. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1688. elseif Thing[2] == "Shatter" then
  1689. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1690. Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0)
  1691. Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0)
  1692. Thing[6] = Thing[6] + Thing[5]
  1693. end
  1694. else
  1695. Part.Parent = nil
  1696. table.remove(Effects, e)
  1697. end
  1698. end
  1699. end
  1700. end
  1701. end
  1702. end
  1703. -------------------------------------------------------
  1704. --End Animations And Script--
  1705. -------------------------------------------------------
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement