Advertisement
WagnerJunio07

Blight

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