AnormalPerson

Blight

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