Advertisement
Christoffer07700Extr

oh my god is The Man Behind The Slaughter

Apr 20th, 2020
164
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 43.11 KB | None | 0 0
  1. -- Created by GuestBilmemKac --
  2.  
  3.  
  4. --// Initializing \\--
  5. local S = setmetatable({},{__index = function(s,i) return game:service(i) end})
  6. local Plrs = S.Players
  7. local Plr = Plrs.LocalPlayer
  8. local Char = Plr.Character
  9. local Hum = Char:FindFirstChildOfClass'Humanoid'
  10. local RArm = Char["Right Arm"]
  11. local LArm = Char["Left Arm"]
  12. local RLeg = Char["Right Leg"]
  13. local LLeg = Char["Left Leg"]
  14. local Root = Char:FindFirstChild'HumanoidRootPart'
  15. local Torso = Char.Torso
  16. local Head = Char.Head
  17. local NeutralAnims = true
  18. local Attack = false
  19. local BloodPuddles = {}
  20. local Effects = {}
  21. local Debounces = {Debounces={}}
  22. local Mouse = Plr:GetMouse()
  23. local Hit = {}
  24. local Sine = 0
  25. local Change = 1
  26. local Souls = 0
  27. --// Debounce System \\--
  28.  
  29.  
  30. function Debounces:New(name,cooldown)
  31. local aaaaa = {Usable=true,Cooldown=cooldown or 2,CoolingDown=false,LastUse=0}
  32. setmetatable(aaaaa,{__index = Debounces})
  33. Debounces.Debounces[name] = aaaaa
  34. return aaaaa
  35. end
  36.  
  37. function Debounces:Use(overrideUsable)
  38. assert(self.Usable ~= nil and self.LastUse ~= nil and self.CoolingDown ~= nil,"Expected ':' not '.' calling member function Use")
  39. if(self.Usable or overrideUsable)then
  40. self.Usable = false
  41. self.CoolingDown = true
  42. local LastUse = time()
  43. self.LastUse = LastUse
  44. delay(self.Cooldown or 2,function()
  45. if(self.LastUse == LastUse)then
  46. self.CoolingDown = false
  47. self.Usable = true
  48. end
  49. end)
  50. end
  51. end
  52.  
  53. function Debounces:Get(name)
  54. assert(typeof(name) == 'string',("bad argument #1 to 'get' (string expected, got %s)"):format(typeof(name) == nil and "no value" or typeof(name)))
  55. for i,v in next, Debounces.Debounces do
  56. if(i == name)then
  57. return v;
  58. end
  59. end
  60. end
  61.  
  62. function Debounces:GetProgressPercentage()
  63. assert(self.Usable ~= nil and self.LastUse ~= nil and self.CoolingDown ~= nil,"Expected ':' not '.' calling member function Use")
  64. if(self.CoolingDown and not self.Usable)then
  65. return math.max(
  66. math.floor(
  67. (
  68. (time()-self.LastUse)/self.Cooldown or 2
  69. )*100
  70. )
  71. )
  72. else
  73. return 100
  74. end
  75. end
  76.  
  77. --// Shortcut Variables \\--
  78. local CF = {N=CFrame.new,A=CFrame.Angles,fEA=CFrame.fromEulerAnglesXYZ}
  79. local C3 = {N=Color3.new,RGB=Color3.fromRGB,HSV=Color3.fromHSV,tHSV=Color3.toHSV}
  80. local V3 = {N=Vector3.new,FNI=Vector3.FromNormalId,A=Vector3.FromAxis}
  81. local M = {C=math.cos,R=math.rad,S=math.sin,P=math.pi,RNG=math.random,MRS=math.randomseed,H=math.huge,RRNG = function(min,max,div) return math.rad(math.random(min,max)/(div or 1)) end}
  82. local R3 = {N=Region3.new}
  83. local De = S.Debris
  84. local WS = workspace
  85. local Lght = S.Lighting
  86. local RepS = S.ReplicatedStorage
  87. local IN = Instance.new
  88. local CSK = ColorSequenceKeypoint.new
  89. local CS = ColorSequence.new
  90. --// Instance Creation Functions \\--
  91.  
  92. function Sound(parent,id,pitch,volume,looped,effect,autoPlay)
  93. local Sound = IN("Sound")
  94. Sound.SoundId = "rbxassetid://".. tostring(id or 0)
  95. Sound.Pitch = pitch or 1
  96. Sound.Volume = volume or 1
  97. Sound.Looped = looped or false
  98. if(autoPlay)then
  99. coroutine.wrap(function()
  100. repeat wait() until Sound.IsLoaded
  101. Sound.Playing = autoPlay or false
  102. end)()
  103. end
  104. if(not looped and effect)then
  105. Sound.Stopped:connect(function()
  106. Sound.Volume = 0
  107. Sound:destroy()
  108. end)
  109. elseif(effect)then
  110. warn("Sound can't be looped and a sound effect!")
  111. end
  112. Sound.Parent =parent or Torso
  113. return Sound
  114. end
  115. function Part(parent,color,material,size,cframe,anchored,cancollide)
  116. local part = IN("Part")
  117. part[typeof(color) == 'BrickColor' and 'BrickColor' or 'Color'] = color or C3.N(0,0,0)
  118. part.Material = (material or Enum.Material.SmoothPlastic)
  119. part.TopSurface,part.BottomSurface=10,10
  120. part.Size = (size or V3.N(1,1,1))
  121. part.CFrame = (cframe or CF.N(0,0,0))
  122. part.Anchored = (anchored or false)
  123. part.CanCollide = (cancollide or false)
  124. part.Parent = (parent or Char)
  125. return part
  126. end
  127. function Mesh(parent,meshtype,meshid,textid,scale,offset)
  128. local part = IN("SpecialMesh")
  129. part.MeshId = meshid or ""
  130. part.TextureId = textid or ""
  131. part.Scale = scale or V3.N(1,1,1)
  132. part.Offset = offset or V3.N(0,0,0)
  133. part.MeshType = meshtype or Enum.MeshType.Sphere
  134. part.Parent = parent
  135. return part
  136. end
  137.  
  138. NewInstance = function(instance,parent,properties)
  139. local inst = Instance.new(instance,parent)
  140. if(properties)then
  141. for i,v in next, properties do
  142. pcall(function() inst[i] = v end)
  143. end
  144. end
  145. return inst;
  146. end
  147.  
  148.  
  149.  
  150. --// Extended ROBLOX tables \\--
  151. local Instance = setmetatable({ClearChildrenOfClass = function(where,class,recursive) local children = (recursive and where:GetDescendants() or where:GetChildren()) for _,v in next, children do if(v:IsA(class))then v:destroy();end;end;end},{__index = Instance})
  152. --// Customization \\--
  153.  
  154. local Frame_Speed = 60 -- The frame speed for swait. 1 is automatically divided by this
  155. local Remove_Hats = false
  156. local Remove_Clothing = true
  157. local PlayerSize = 1
  158. local DamageColor = BrickColor.new'Eggplant'
  159. local MusicID = 4868900475
  160. local WalkSpeed = 60
  161. local MaxSouls = 100000
  162. local MaxHealth = 9999999999999999999999999999999999999999999999999999
  163.  
  164.  
  165. if(_G.RefusedAnimation == nil) then _G.RefusedAnimation = false end
  166.  
  167. --// Weapon and GUI creation, and Character Customization \\--
  168.  
  169. if(Remove_Hats)then Instance.ClearChildrenOfClass(Char,"Accessory",true) end
  170. if(Remove_Clothing)then Instance.ClearChildrenOfClass(Char,"Clothing",true) Instance.ClearChildrenOfClass(Char,"ShirtGraphic",true) end
  171. local Effects = IN("Folder",Char)
  172. Effects.Name = "Effects"
  173.  
  174. Hum.MaxHealth = MaxHealth
  175. Hum.Health = MaxHealth
  176.  
  177. local Knife = NewInstance("Part",Char,{Name='Knife',Size=V3.N(.4,3,.7),Anchored=false,CanCollide=false,Locked=true,Archivable=false,Reflectance=.01,Color=C3.N(0,0,0)})
  178. local KnifeMesh = Mesh(Knife,Enum.MeshType.FileMesh,"rbxassetid://121944778","rbxassetid://2682077345",V3.N(1,1,1),V3.N())
  179.  
  180. local KTrail = NewInstance("Trail",Knife,{
  181. Attachment0=NewInstance("Attachment",Knife,{Position=V3.N(0,-.4,0)}),
  182. Attachment1=NewInstance("Attachment",Knife,{Position=V3.N(0,1.2,0)}),
  183. Color=CS(C3.N(1,0,0)),
  184. Enabled=false,
  185. Transparency=NumberSequence.new(0,1),
  186. Lifetime=1.25,
  187. })
  188.  
  189. local Hair = Part(Char,C3.N(1,1,1),Enum.Material.SmoothPlastic,V3.N(2,2,2),CF.N(),false,false)
  190. local HairMesh = Mesh(Hair,Enum.MeshType.FileMesh,"rbxassetid://116790151","rbxassetid://403737538",V3.N(2,2,2),V3.N())
  191.  
  192. NewInstance("PointLight",Knife,{Color=C3.N(1,0,0),Range=10,Brightness=3})
  193.  
  194.  
  195. Hum.DisplayDistanceType = 'None'
  196.  
  197. local naeeym2 = IN("BillboardGui",Char)
  198. naeeym2.AlwaysOnTop = true
  199. naeeym2.Size = UDim2.new(5,35,2,15)
  200. naeeym2.StudsOffset = V3.N(0,2.5,0)
  201. naeeym2.Adornee = Char.Head
  202. naeeym2.Name = "Name"
  203. naeeym2.PlayerToHideFrom = Nobody
  204. local tecks2 = IN("TextLabel",naeeym2)
  205. tecks2.BackgroundTransparency = 1
  206. tecks2.TextScaled = true
  207. tecks2.BorderSizePixel = 0
  208. tecks2.Text = "The Man Behind The Slaughter"
  209. tecks2.Font = Enum.Font.Bodoni
  210. tecks2.TextSize = 30
  211. tecks2.TextStrokeTransparency = 0
  212. tecks2.TextColor3 = C3.N(123,0,123)
  213. tecks2.TextStrokeColor3 = C3.N(.123,0,123)
  214. tecks2.Size = UDim2.new(1,0,0.5,0)
  215. tecks2.Parent = naeeym2
  216.  
  217.  
  218. IN("Shirt",Char)
  219. IN("Pants",Char)
  220.  
  221. Hum.WalkSpeed = WalkSpeed
  222. if(PlayerSize ~= 1)then
  223. for _,v in next, Char:GetDescendats() do
  224. if(v:IsA'BasePart')then
  225. v.Size = v.Size * PlayerSize
  226. end
  227. end
  228. end
  229.  
  230.  
  231.  
  232. pcall(function()
  233. Char.LeftWing:destroy()
  234. Char.ReaperShadowHead:destroy()
  235. end)
  236.  
  237.  
  238. local Music = Sound(Torso,MusicID,1,3,true,false,true)
  239. Music.Name = 'Music'
  240.  
  241. --// Stop animations \\--
  242. for _,v in next, Hum:GetPlayingAnimationTracks() do
  243. v:Stop();
  244. end
  245.  
  246. pcall(game.Destroy,Char:FindFirstChild'Animate')
  247. pcall(game.Destroy,Hum:FindFirstChild'Animator')
  248.  
  249. --// Joints \\--
  250.  
  251. local LS = NewInstance('Motor',Char,{Part0=Torso,Part1=LArm,C0 = CF.N(-1.5 * PlayerSize,0.5 * PlayerSize,0),C1 = CF.N(0,.5 * PlayerSize,0)})
  252. local RS = NewInstance('Motor',Char,{Part0=Torso,Part1=RArm,C0 = CF.N(1.5 * PlayerSize,0.5 * PlayerSize,0),C1 = CF.N(0,.5 * PlayerSize,0)})
  253. local NK = NewInstance('Motor',Char,{Part0=Torso,Part1=Head,C0 = CF.N(0,1.5 * PlayerSize,0)})
  254. local LH = NewInstance('Motor',Char,{Part0=Torso,Part1=LLeg,C0 = CF.N(-.5 * PlayerSize,-1 * PlayerSize,0),C1 = CF.N(0,1 * PlayerSize,0)})
  255. local RH = NewInstance('Motor',Char,{Part0=Torso,Part1=RLeg,C0 = CF.N(.5 * PlayerSize,-1 * PlayerSize,0),C1 = CF.N(0,1 * PlayerSize,0)})
  256. local RJ = NewInstance('Motor',Char,{Part0=Root,Part1=Torso})
  257. local HW = NewInstance('Motor',Char,{Part0=RArm,Part1=Knife,C0=CF.N(0,-1,-1)*CF.A(M.R(-90),0,0)})
  258. local HW2 = NewInstance('Motor',Char,{Part0=Head,Part1=Hair,C0=CF.N(0,.44,0)})
  259.  
  260. local LSC0 = LS.C0
  261. local RSC0 = RS.C0
  262. local NKC0 = NK.C0
  263. local LHC0 = LH.C0
  264. local RHC0 = RH.C0
  265. local RJC0 = RJ.C0
  266.  
  267. --// Artificial HB \\--
  268.  
  269. local ArtificialHB = IN("BindableEvent", script)
  270. ArtificialHB.Name = "Heartbeat"
  271.  
  272. script:WaitForChild("Heartbeat")
  273.  
  274. local tf = 0
  275. local allowframeloss = false
  276. local tossremainder = false
  277. local lastframe = tick()
  278. local frame = 1/Frame_Speed
  279. ArtificialHB:Fire()
  280.  
  281. game:GetService("RunService").Heartbeat:connect(function(s, p)
  282. tf = tf + s
  283. if tf >= frame then
  284. if allowframeloss then
  285. script.Heartbeat:Fire()
  286. lastframe = tick()
  287. else
  288. for i = 1, math.floor(tf / frame) do
  289. ArtificialHB:Fire()
  290. end
  291. lastframe = tick()
  292. end
  293. if tossremainder then
  294. tf = 0
  295. else
  296. tf = tf - frame * math.floor(tf / frame)
  297. end
  298. end
  299. end)
  300.  
  301. function swait(num)
  302. if num == 0 or num == nil then
  303. ArtificialHB.Event:wait()
  304. else
  305. for i = 0, num do
  306. ArtificialHB.Event:wait()
  307. end
  308. end
  309. end
  310.  
  311.  
  312. --// Effect Function(s) \\--
  313.  
  314. function Bezier(startpos, pos2, pos3, endpos, t)
  315. local A = startpos:lerp(pos2, t)
  316. local B = pos2:lerp(pos3, t)
  317. local C = pos3:lerp(endpos, t)
  318. local lerp1 = A:lerp(B, t)
  319. local lerp2 = B:lerp(C, t)
  320. local cubic = lerp1:lerp(lerp2, t)
  321. return cubic
  322. end
  323.  
  324. function Tween(obj,props,time,easing,direction,repeats,backwards)
  325. local info = TweenInfo.new(time or .5, easing or Enum.EasingStyle.Quad, direction or Enum.EasingDirection.Out, repeats or 0, backwards or false)
  326. local tween = S.TweenService:Create(obj, info, props)
  327.  
  328. tween:Play()
  329. end
  330.  
  331. local FXTable = {}
  332.  
  333. coroutine.resume(coroutine.create(function()
  334. while true do
  335. for i = 1, #FXTable do
  336. local data = FXTable[i]
  337. if(data)then
  338. local Frame = data.Frame
  339. local FX = data.Effect or 'ResizeAndFade'
  340. local Parent = data.Parent or Effects
  341. local Color = data.Color or C3.N(0,0,0)
  342. local Size = data.Size or V3.N(1,1,1)
  343. local MoveDir = data.MoveDirection or nil
  344. local MeshData = data.Mesh or nil
  345. local SndData = data.Sound or nil
  346. local Frames = data.Frames or 45
  347. local CFra = data.CFrame or Torso.CFrame
  348. local Settings = data.FXSettings or {}
  349. local Prt,Msh,Snd = data.Part,data.Mesh,data.Sound
  350. local grow = data.Grow
  351.  
  352. local MoveSpeed = nil;
  353. if(MoveDir)then
  354. MoveSpeed = (CFra.p - MoveDir).magnitude/Frames
  355. end
  356. if(FX ~= 'Arc')then
  357. Frame = Frame + 1
  358. if(FX == "Fade")then
  359. Prt.Transparency = (Frame/Frames)
  360. elseif(FX == "Resize")then
  361. if(not Settings.EndSize)then
  362. Settings.EndSize = V3.N(0,0,0)
  363. end
  364. if(Settings.EndIsIncrement)then
  365. if(Msh)then
  366. Msh.Scale = Msh.Scale + Settings.EndSize
  367. else
  368. Prt.Size = Prt.Size + Settings.EndSize
  369. end
  370. else
  371. if(Msh)then
  372. Msh.Scale = Msh.Scale - grow/Frames
  373. else
  374. Prt.Size = Prt.Size - grow/Frames
  375. end
  376. end
  377. elseif(FX == "ResizeAndFade")then
  378. if(not Settings.EndSize)then
  379. Settings.EndSize = V3.N(0,0,0)
  380. end
  381. if(Settings.EndIsIncrement)then
  382. if(Msh)then
  383. Msh.Scale = Msh.Scale + Settings.EndSize
  384. else
  385. Prt.Size = Prt.Size + Settings.EndSize
  386. end
  387. else
  388. if(Msh)then
  389. Msh.Scale = Msh.Scale - grow/Frames
  390. else
  391. Prt.Size = Prt.Size - grow/Frames
  392. end
  393. end
  394. Prt.Transparency = (Frame/Frames)
  395. end
  396. if(Settings.RandomizeCFrame)then
  397. Prt.CFrame = Prt.CFrame * CF.A(M.RRNG(-360,360),M.RRNG(-360,360),M.RRNG(-360,360))
  398. end
  399. if(MoveDir and MoveSpeed)then
  400. local Orientation = Prt.Orientation
  401. Prt.CFrame = CF.N(Prt.Position,MoveDir)*CF.N(0,0,-MoveSpeed)
  402. Prt.Orientation = Orientation
  403. end
  404. if(Prt.Transparency >= 1 or Frame >= Frames)then
  405. Prt:destroy()
  406. table.remove(FXTable,i)
  407. else
  408. data.Frame = Frame
  409. end
  410. else
  411. local start,third,fourth,endP = Settings.Start,Settings.Third,Settings.Fourth,Settings.End
  412. if(not Settings.End and Settings.Home)then endP = Settings.Home.CFrame end
  413. if(start and endP)then
  414. local quarter = third or start:lerp(endP, 0.25) * CF.N(M.RNG(-25,25),M.RNG(0,25),M.RNG(-25,25))
  415. local threequarter = fourth or start:lerp(endP, 0.75) * CF.N(M.RNG(-25,25),M.RNG(0,25),M.RNG(-25,25))
  416. Frame = Frame + (Settings.Speed or 0.01)
  417. if(Settings.Home)then
  418. endP = Settings.Home.CFrame
  419. end
  420. Prt.CFrame = Bezier(start, quarter, threequarter, endP, Frame)
  421. if(Prt.Transparency >= 1 or Frame >= Frames)then
  422. if(Settings.RemoveOnGoal)then
  423. Prt:destroy()
  424. end
  425. end
  426. else
  427. Prt:destroy()
  428. end
  429. end
  430. end
  431. end
  432. swait()
  433. end
  434. end))
  435.  
  436. function Effect(data)
  437. local FX = data.Effect or 'ResizeAndFade'
  438. local Parent = data.Parent or Effects
  439. local Color = data.Color or C3.N(0,0,0)
  440. local Size = data.Size or V3.N(1,1,1)
  441. local MoveDir = data.MoveDirection or nil
  442. local MeshData = data.Mesh or nil
  443. local SndData = data.Sound or nil
  444. local Frames = data.Frames or 45
  445. local Manual = data.Manual or nil
  446. local Material = data.Material or nil
  447. local CFra = data.CFrame or Torso.CFrame
  448. local Settings = data.FXSettings or {}
  449. local Shape = data.Shape or Enum.PartType.Block
  450. local Snd,Prt,Msh;
  451. coroutine.wrap(function()
  452. if(Manual and typeof(Manual) == 'Instance' and Manual:IsA'BasePart')then
  453. Prt = Manual
  454. else
  455. Prt = Part(Parent,Color,Material,Size,CFra,true,false)
  456. Prt.Shape = Shape
  457. end
  458. if(typeof(MeshData) == 'table')then
  459. Msh = Mesh(Prt,MeshData.MeshType,MeshData.MeshId,MeshData.TextureId,MeshData.Scale,MeshData.Offset)
  460. elseif(typeof(MeshData) == 'Instance')then
  461. Msh = MeshData:Clone()
  462. Msh.Parent = Prt
  463. elseif(Shape == Enum.PartType.Block)then
  464. Msh = Mesh(Prt,Enum.MeshType.Brick)
  465. end
  466. if(typeof(SndData) == 'table' or typeof(SndData) == 'Instance')then
  467. Snd = Sound(Prt,SndData.SoundId,SndData.Pitch,SndData.Volume,false,false,true)
  468. end
  469. if(Snd)then
  470. repeat swait() until Snd.Playing and Snd.IsLoaded and Snd.TimeLength > 0
  471. Frames = Snd.TimeLength * Frame_Speed/Snd.Pitch
  472. end
  473. Size = (Msh and Msh.Scale or Size)
  474. local grow = Size-(Settings.EndSize or (Msh and Msh.Scale or Size)/2)
  475.  
  476. local MoveSpeed = nil;
  477. if(MoveDir)then
  478. MoveSpeed = (CFra.p - MoveDir).magnitude/Frames
  479. end
  480. if(FX ~= 'Arc')then
  481. for Frame = 1, Frames do
  482. if(FX == "Fade")then
  483. Prt.Transparency = (Frame/Frames)
  484. elseif(FX == "Resize")then
  485. if(not Settings.EndSize)then
  486. Settings.EndSize = V3.N(0,0,0)
  487. end
  488. if(Settings.EndIsIncrement)then
  489. if(Msh)then
  490. Msh.Scale = Msh.Scale + Settings.EndSize
  491. else
  492. Prt.Size = Prt.Size + Settings.EndSize
  493. end
  494. else
  495. if(Msh)then
  496. Msh.Scale = Msh.Scale - grow/Frames
  497. else
  498. Prt.Size = Prt.Size - grow/Frames
  499. end
  500. end
  501. elseif(FX == "ResizeAndFade")then
  502. if(not Settings.EndSize)then
  503. Settings.EndSize = V3.N(0,0,0)
  504. end
  505. if(Settings.EndIsIncrement)then
  506. if(Msh)then
  507. Msh.Scale = Msh.Scale + Settings.EndSize
  508. else
  509. Prt.Size = Prt.Size + Settings.EndSize
  510. end
  511. else
  512. if(Msh)then
  513. Msh.Scale = Msh.Scale - grow/Frames
  514. else
  515. Prt.Size = Prt.Size - grow/Frames
  516. end
  517. end
  518. Prt.Transparency = (Frame/Frames)
  519. end
  520. if(Settings.RandomizeCFrame)then
  521. Prt.CFrame = Prt.CFrame * CF.A(M.RRNG(-360,360),M.RRNG(-360,360),M.RRNG(-360,360))
  522. end
  523. if(MoveDir and MoveSpeed)then
  524. local Orientation = Prt.Orientation
  525. Prt.CFrame = CF.N(Prt.Position,MoveDir)*CF.N(0,0,-MoveSpeed)
  526. Prt.Orientation = Orientation
  527. end
  528. swait()
  529. end
  530. Prt:destroy()
  531. else
  532. local start,third,fourth,endP = Settings.Start,Settings.Third,Settings.Fourth,Settings.End
  533. if(not Settings.End and Settings.Home)then endP = Settings.Home.CFrame end
  534. if(start and endP)then
  535. local quarter = third or start:lerp(endP, 0.25) * CF.N(M.RNG(-25,25),M.RNG(0,25),M.RNG(-25,25))
  536. local threequarter = fourth or start:lerp(endP, 0.75) * CF.N(M.RNG(-25,25),M.RNG(0,25),M.RNG(-25,25))
  537. for Frame = 0, 1, (Settings.Speed or 0.01) do
  538. if(Settings.Home)then
  539. endP = Settings.Home.CFrame
  540. end
  541. Prt.CFrame = Bezier(start, quarter, threequarter, endP, Frame)
  542. end
  543. if(Settings.RemoveOnGoal)then
  544. Prt:destroy()
  545. end
  546. else
  547. Prt:destroy()
  548. assert(start,"You need a start position!")
  549. assert(endP,"You need a start position!")
  550. end
  551. end
  552. end)()
  553. return Prt,Msh,Snd
  554. end
  555.  
  556.  
  557.  
  558. function SoulSteal(whom,human)
  559. local torso = (whom:FindFirstChild'Torso' or whom:FindFirstChild'UpperTorso' or whom:FindFirstChild'LowerTorso' or whom:FindFirstChild'HumanoidRootPart' or whom:FindFirstChild'Torso')
  560. local succ, health, alive = pcall(function() return whom:FindFirstChildOfClass'Humanoid'.Health, whom:FindFirstChildOfClass'Humanoid'.Health > 0 end)
  561. if(torso and torso:IsA'BasePart' and alive == true)then
  562. whom:FindFirstChildOfClass'Humanoid'.Health = 0
  563. whom:BreakJoints()
  564. local Model = IN("Model",Effects)
  565. warn('Soul stolen from '..whom.Name)
  566. Model.Name = whom.Name.."'s Soul"
  567. local Soul = Part(Model,(human and BrickColor.new'Really red' or BrickColor.new(C3.N(1,1,1))),'Glass',V3.N(1,1,1),torso.CFrame,true,false)
  568. Soul.CanCollide=false
  569. Mesh(Soul,Enum.MeshType.Sphere)
  570. Soul.Name = 'Head'
  571. if(whom.Name == 'CKbackup')then
  572. Soul.Color = C3.N(1,1,1)
  573. local DripEmitter = NewInstance("ParticleEmitter",Soul,{EmissionDirection='Bottom',Color=CS(Soul.Color),LightEmission=.5,LightInfluence=0,Size=NumberSequence.new(0.3),Texture="rbxassetid://243132757",Transparency=NumberSequence.new(0,1),LockedToPart=false,Lifetime=NumberRange.new(1),Rate=150,Speed=NumberRange.new(5)})
  574. end
  575. local Hoom = NewInstance("Humanoid",Model,{MaxHealth=(health <= 10000 and health/2 or 10000),Health=(health <= 10000 and health/2 or 10000)})
  576. local AT0 = NewInstance("Attachment",Soul,{Position=V3.N(0,.5,0)})
  577. local AT1 = NewInstance("Attachment",Soul,{Position=V3.N(0,-.5,0)})
  578. local Trail = NewInstance("Trail",Soul,{Attachment0=AT0,Attachment1=AT1,Transparency=NumberSequence.new(0),FaceCamera = true,Texture="rbxassetid://945758042",LightEmission=.3,Color=CS(Soul.Color),Lifetime=.5,MinLength=0})
  579. NewInstance("PointLight",Soul,{Color=Soul.Color,Range=10,Brightness=(human and 3 or .5)})
  580.  
  581. local turdso = Soul:Clone()
  582. turdso.Name = "Torso"
  583. turdso.CanCollide = false
  584. turdso.Anchored = true
  585. turdso.CFrame = Soul.CFrame
  586. turdso.Parent = Model
  587. turdso.Size = V3.N()
  588. turdso.Transparency=1
  589. local Distance = math.huge
  590. repeat
  591. Soul.CFrame = CF.N(Soul.Position,Torso.Position)*CF.N(0,0,-1)
  592. turdso.CFrame = Soul.CFrame
  593. Distance = (Soul.CFrame.p-Torso.CFrame.p).magnitude
  594. swait()
  595. until Hoom.Health <= 0 or not Soul.Parent or Distance <= 1.2
  596. if(Soul.Parent and Hoom.Health > 0)then
  597. Model:destroy()
  598. Effect{
  599. Effect="ResizeAndFade",
  600. Mesh={Enum.MeshType.Sphere},
  601. Color = Soul.Color,
  602. CFrame=Torso.CFrame,
  603. Size=V3.N(3,3,3),
  604. Material=Enum.Material.Neon,
  605. Sound={SoundId=444667859,Pitch=1,Volume=2.5},
  606. FXSettings={
  607. EndSize=V3.N(6,6,6),
  608. }
  609. }
  610. Souls = Souls + (human and 1 or .1)
  611. warn("Souls: "..Souls)
  612. MaxHealth = MaxHealth + Hoom.Health
  613. Hum.Health = Hum.Health + Hoom.Health
  614. for i = 1, 5 do
  615. Effect{
  616. Effect="Fade",
  617. Color = Soul.Color,
  618. MoveDirection = (Torso.CFrame*CFrame.new(M.RNG(-40,40),M.RNG(-40,40),M.RNG(-40,40))).p
  619. }
  620. end
  621. else
  622.  
  623. warn("Soul destroyed!")
  624. for i = 1, 5 do
  625. Effect{
  626. Effect="Fade",
  627. Color = Soul.Color,
  628. CFrame=Soul.CFrame,
  629. MoveDirection = (Soul.CFrame*CFrame.new(M.RNG(-40,40),M.RNG(-40,40),M.RNG(-40,40))).p
  630. }
  631. end
  632. Effect{
  633. Effect="ResizeAndFade",
  634. Mesh={Enum.MeshType.Sphere},
  635. Sound={SoundId=444667859,Pitch=1,Volume=5},
  636. Color = Soul.Color,
  637. CFrame=Soul.CFrame,
  638. Size=V3.N(3,3,3),
  639. Material=Enum.Material.Neon,
  640. FXSettings={
  641. EndSize=V3.N(6,6,6),
  642. }
  643. }
  644. Model:destroy()
  645. end
  646. end
  647. end
  648.  
  649. --// Other Functions \\ --
  650.  
  651. function getRegion(point,range,ignore)
  652. return workspace:FindPartsInRegion3WithIgnoreList(R3.N(point-V3.N(1,1,1)*range/2,point+V3.N(1,1,1)*range/2),ignore,100)
  653. end
  654.  
  655. function clerp(startCF,endCF,alpha)
  656. return startCF:lerp(endCF, alpha)
  657. end
  658.  
  659. function GetTorso(char)
  660. return char:FindFirstChild'Torso' or char:FindFirstChild'UpperTorso' or char:FindFirstChild'LowerTorso' or char:FindFirstChild'HumanoidRootPart'
  661. end
  662.  
  663. function ShowDamage(Pos, Text, Time, Color)
  664. coroutine.wrap(function()
  665. local Rate = (1 / Frame_Speed)
  666. local Pos = (Pos or Vector3.new(0, 0, 0))
  667. local Text = (Text or "")
  668. local Time = (Time or 2)
  669. local Color = (Color or Color3.new(1, 0, 1))
  670. local EffectPart = NewInstance("Part",Effects,{
  671. Material=Enum.Material.SmoothPlastic,
  672. Reflectance = 0,
  673. Transparency = 1,
  674. BrickColor = BrickColor.new(Color),
  675. Name = "Effect",
  676. Size = Vector3.new(0,0,0),
  677. Anchored = true,
  678. CFrame = CF.N(Pos)
  679. })
  680. local BillboardGui = NewInstance("BillboardGui",EffectPart,{
  681. Size = UDim2.new(1.25, 0, 1.25, 0),
  682. Adornee = EffectPart,
  683. })
  684. local TextLabel = NewInstance("TextLabel",BillboardGui,{
  685. BackgroundTransparency = 1,
  686. Size = UDim2.new(1, 0, 1, 0),
  687. Text = Text,
  688. Font = "Arcade",
  689. TextColor3 = Color,
  690. TextStrokeColor3 = Color3.new(0,0,0),
  691. TextStrokeTransparency=0,
  692. TextScaled = true,
  693. })
  694. S.Debris:AddItem(EffectPart, (Time))
  695. EffectPart.Parent = workspace
  696. delay(0, function()
  697. Tween(EffectPart,{CFrame=CF.N(Pos)*CF.N(0,3,0)},Time,Enum.EasingStyle.Elastic,Enum.EasingDirection.Out)
  698. local Frames = (Time / Rate)
  699. for Frame = 1, Frames do
  700. swait()
  701. local Percent = (Frame / Frames)
  702. TextLabel.TextTransparency = Percent
  703. TextLabel.TextStrokeTransparency = Percent
  704. end
  705. if EffectPart and EffectPart.Parent then
  706. EffectPart:Destroy()
  707. end
  708. end) end)()
  709. end
  710.  
  711. function Kill(whom)
  712. if(whom.Name ~= 'Nebula_Zorua')then
  713. local isPlr = Plrs:GetPlayerFromCharacter(whom) ~= nil
  714. coroutine.wrap(SoulSteal)(whom,isPlr)
  715. for _,v in next, whom:children() do
  716. if(v:IsA'BasePart')then
  717. v.Parent = Effects
  718. v:ClearAllChildren()
  719. v.Anchored = true
  720. v.CanCollide = false
  721. v.Transparency = 1
  722. local dust = NewInstance("ParticleEmitter",v,{
  723. Color = ColorSequence.new(C3.N(1,1,1)),
  724. LightEmission=0,
  725. LightInfluence=1,
  726. Size=NumberSequence.new{NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(1,0,0)},
  727. Texture="rbxassetid://284205403",
  728. Transparency=NumberSequence.new{NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,1,0)},
  729. Lifetime = NumberRange.new(1),
  730. Rate=150,
  731. Acceleration = V3.N(0,10,0),
  732. Speed = NumberRange.new(5),
  733. Enabled = true
  734. })
  735. delay(1, function()
  736. dust.Enabled = false
  737. S.Debris:AddItem(v,2)
  738. end)
  739. end
  740. end
  741. else
  742. warn"nope. nawt happenin'"
  743. end
  744. end
  745.  
  746. function DealDamage(who,minDam,maxDam,Knock,Type,critChance,critMult)
  747. if(who)then
  748. local hum = who:FindFirstChildOfClass'Humanoid'
  749. local Damage = M.RNG(minDam,maxDam)
  750. local canHit = true
  751. if(hum)then
  752. for _, p in pairs(Hit) do
  753. if p[1] == hum then
  754. if(time() - p[2] < 0.4) then
  755. canHit = false
  756. else
  757. Hit[_] = nil
  758. end
  759. end
  760. end
  761. if(canHit)then
  762. table.insert(Hit,{hum,time()})
  763. if(GetTorso(who))then
  764. Sound(GetTorso(who),1219742600,1,10,false,true,true)
  765. end
  766. if(hum.Health >= math.huge)then
  767. Kill(who)
  768. if(who:FindFirstChild'Head' and hum.Health > 0)then
  769. ShowDamage((who.Head.CFrame * CF.N(0, 0, (who.Head.Size.Z / 2)).p+V3.N(0,1.5,0)+V3.N(M.RNG(-2,2),0,M.RNG(-2,2))), "INSTANT", 3, DamageColor.Color)
  770. end
  771. else
  772. local player = S.Players:GetPlayerFromCharacter(who)
  773. if(Type == "Fire")then
  774. --idk..
  775. else
  776. local c = Instance.new("ObjectValue",hum)
  777. c.Name = "creator"
  778. c.Value = Plr
  779. game:service'Debris':AddItem(c,0.35)
  780. local Crit = false
  781. if(M.RNG(1,100) <= (critChance or 0) and critMult > 1)then
  782. Crit = true
  783. Damage = Damage*(critMult or 2)
  784. end
  785. Damage = Damage*((Souls/5)+1)
  786. if(who:FindFirstChild'Head' and hum.Health > 0)then
  787. ShowDamage((who.Head.CFrame * CF.N(0, 0, (who.Head.Size.Z / 2)).p+V3.N(0,1.5,0)+V3.N(M.RNG(-2,2),0,M.RNG(-2,2))), (Crit and "[CRIT] " or "").. math.floor(Damage), 3, (Crit and BrickColor.new'New Yeller'.Color or DamageColor.Color))
  788. end
  789.  
  790. if(hum.Health - Damage <= 0)then
  791. Kill(who)
  792. else
  793. hum.Health = hum.Health - Damage
  794. if(Type == 'Knockback' and GetTorso(who))then
  795. local angle = GetTorso(who).Position - Root.Position + Vector3.new(0, 0, 0).unit
  796. local body = NewInstance('BodyVelocity',GetTorso(who),{
  797. P = 500,
  798. maxForce = V3.N(math.huge,0,math.huge),
  799. velocity = Root.CFrame.lookVector * Knock + Root.Velocity / 1.05
  800. })
  801. game:service'Debris':AddItem(body,.5)
  802. elseif(Type == "Electric")then
  803. if(M.RNG(1,100) >= critChance)then
  804. if(who:FindFirstChild'Head' and hum.Health > 0)then
  805. ShowDamage((who.Head.CFrame * CF.N(0, 0, (who.Head.Size.Z / 2)).p+V3.N(0,1.5,0)+V3.N(M.RNG(-2,2),0,M.RNG(-2,2))), "[PARALYZED]", 3, BrickColor.new"New Yeller".Color)
  806. end
  807. local asd = hum.WalkSpeed/2
  808. hum.WalkSpeed = asd
  809. local paralyzed = true
  810. coroutine.wrap(function()
  811. while paralyzed do
  812. swait(25)
  813. if(M.RNG(1,25) == 1)then
  814. if(who:FindFirstChild'Head' and hum.Health > 0)then
  815. ShowDamage((who.Head.CFrame * CF.N(0, 0, (who.Head.Size.Z / 2)).p+V3.N(0,1.5,0)+V3.N(M.RNG(-2,2),0,M.RNG(-2,2))), "[STATIC]", 3, BrickColor.new"New Yeller".Color)
  816. end
  817. hum.PlatformStand = true
  818. end
  819. end
  820. end)()
  821. delay(4, function()
  822. paralyzed = false
  823. hum.WalkSpeed = hum.WalkSpeed + asd
  824. end)
  825. end
  826.  
  827. elseif(Type == 'Knockdown' and GetTorso(who))then
  828. local rek = GetTorso(who)
  829. hum.PlatformStand = true
  830. delay(1,function()
  831. hum.PlatformStand = false
  832. end)
  833. local angle = (GetTorso(who).Position - (Root.Position + Vector3.new(0, 0, 0))).unit
  834. local bodvol = NewInstance("BodyVelocity",rek,{
  835. velocity = angle * Knock,
  836. P = 5000,
  837. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  838. })
  839. local rl = NewInstance("BodyAngularVelocity",rek,{
  840. P = 3000,
  841. maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
  842. angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
  843. })
  844. game:GetService("Debris"):AddItem(bodvol, .5)
  845. game:GetService("Debris"):AddItem(rl, .5)
  846. end
  847. end
  848. end
  849. end
  850. end
  851. end
  852. end
  853. end
  854.  
  855.  
  856. function AOEDamage(where,range,minDam,maxDam,Knock,Type,critChance,critMult)
  857. for _,v in next, getRegion(where,range,{Char}) do
  858. if(v.Name ~= 'Nebula_Zorua')then
  859. if(v.Parent and v.Parent:FindFirstChildOfClass'Humanoid')then
  860. DealDamage(v.Parent,minDam,maxDam,Knock,Type,critChance,critMult)
  861. end
  862. end
  863. end
  864. end
  865.  
  866. function AOEKill(where,range)
  867. for _,v in next, getRegion(where,range,{Char,Effects}) do
  868. local succ,alive = pcall(function() return v.Parent:FindFirstChildOfClass'Humanoid'.Health > 0 end)
  869. if(v.Name ~= 'Nebula_Zorua')then
  870. if(v.Parent and alive == true)then
  871. coroutine.wrap(Kill)(v.Parent)
  872. end
  873. end
  874. end
  875. end
  876.  
  877. function AOEHeal(where,range,amount)
  878. local healed = {}
  879. for _,v in next, getRegion(where,range,{Char}) do
  880. local hum = (v.Parent and v.Parent:FindFirstChildOfClass'Humanoid' or nil)
  881. if(hum and not healed[hum])then
  882. hum.Health = hum.Health + amount
  883. if(v.Parent:FindFirstChild'Head' and hum.Health > 0)then
  884. ShowDamage((v.Parent.Head.CFrame * CF.N(0, 0, (v.Parent.Head.Size.Z / 2)).p+V3.N(0,1.5,0)), "+"..amount, 1.5, BrickColor.new'Lime green'.Color)
  885. end
  886. end
  887. end
  888. end
  889.  
  890.  
  891. --// Attack Functions \\--
  892.  
  893.  
  894. function Slash()
  895. Attack = true
  896. NeutralAnims = false
  897. local sound = Sound(Knife,10209640,1,5,false,true,false)
  898. for i = 0, 2, 0.1 do
  899. swait()
  900. local Alpha = .2
  901. RJ.C0 = clerp(RJ.C0,CFrame.new(0.0343287587, 0.00629056804, 0.0572580174, 0.943793893, 0.00207689893, 0.330528289, 1.0000764e-06, 0.99998033, -0.00628630351, -0.330534875, 0.00593330665, 0.943775296),Alpha)
  902. LH.C0 = clerp(LH.C0,CFrame.new(-0.496478021, -0.990818381, 0.021652732, 0.999878168, 0, 0.0156089365, -9.80779296e-05, 0.99998033, 0.00628268253, -0.0156086385, -0.00628344761, 0.999858379),Alpha)
  903. RH.C0 = clerp(RH.C0,CFrame.new(0.498511612, -0.990985274, 0.0154910646, 0.999878168, 0, 0.0156089365, -9.80779296e-05, 0.99998033, 0.00628268253, -0.0156086385, -0.00628344761, 0.999858379),Alpha)
  904. LS.C0 = clerp(LS.C0,CFrame.new(-1.32692134, 0.474511296, -0.0055731535, 0.934981823, 0.354351997, 0.0156129003, -0.354479939, 0.93504262, 0.00628374517, -0.0123721063, -0.0114096552, 0.999858379),Alpha)
  905. RS.C0 = clerp(RS.C0,CFrame.new(1.12629449, 0.369358033, -0.486052871, 0.490151912, 0.65154773, 0.57899636, 0.721657813, 0.0691910982, -0.688783586, -0.488836735, 0.755445719, -0.436280251),Alpha)
  906. NK.C0 = clerp(NK.C0,CFrame.new(-0.0118216109, 1.49854016, -0.0795068145, 0.943793833, 0.0190048125, -0.329988182, 0.00207654224, 0.997985244, 0.0634154305, 0.330528468, -0.0605363287, 0.94185257),Alpha)
  907. HW.C0 = HW.C0:lerp(CF.N(0,-1,-1)*CF.A(M.R(-90),0,0),Alpha)
  908. end
  909. KTrail.Enabled = true
  910. sound:Play()
  911. for i = 0, 2.5, 0.1 do
  912. swait()
  913. AOEDamage(Knife.CFrame.p,1,15,30,0,"Normal",0,1)
  914. local Alpha = .25
  915. RJ.C0 = clerp(RJ.C0,CFrame.new(-0.0352100767, 0.00629066909, -0.0097481478, 0.817972422, -0.00361463916, -0.575246274, -1.74103582e-06, 0.99998033, -0.00628598873, 0.575257719, 0.00514276745, 0.817956269),Alpha)
  916. LH.C0 = clerp(LH.C0,CFrame.new(-0.496478021, -0.990818381, 0.0216572341, 0.999878287, 0, 0.015610218, -9.80866607e-05, 0.99998033, 0.00628274865, -0.0156098902, -0.00628351374, 0.999858499),Alpha)
  917. RH.C0 = clerp(RH.C0,CFrame.new(0.498511702, -0.990985274, 0.0154905058, 0.999878287, 0, 0.015610218, -9.80866607e-05, 0.99998033, 0.00628274865, -0.0156098902, -0.00628351374, 0.999858499),Alpha)
  918. LS.C0 = clerp(LS.C0,CFrame.new(-1.32694602, 0.474510223, -0.00555660389, 0.934981823, 0.354351729, 0.0156157613, -0.354479671, 0.935042739, 0.00628153514, -0.012375474, -0.0114085823, 0.999858379),Alpha)
  919. RS.C0 = clerp(RS.C0,CFrame.new(1.23906493, 0.406229913, 0.00231830776, 0.49015066, -0.849889755, 0.193494052, 0.721655607, 0.520183682, 0.456752002, -0.488841236, -0.0842411816, 0.868295968),Alpha)
  920. NK.C0 = clerp(NK.C0,CFrame.new(0.0315471888, 1.49887729, -0.0257819965, 0.817972481, -0.0330747738, 0.574305832, -0.00361499586, 0.998030663, 0.0626262054, -0.575246155, -0.0533026271, 0.81624186),Alpha)
  921. HW.C0 = HW.C0:lerp(CF.N(0,-1,-1)*CF.A(M.R(-90),0,0),Alpha)
  922. end
  923. KTrail.Enabled = false
  924. Attack = false
  925. NeutralAnims = true
  926. end
  927.  
  928. Mouse.Button1Down:connect(function()
  929. if(Attack)then return end
  930. Slash()
  931. end)
  932.  
  933. Mouse.KeyDown:connect(function(k)
  934. if(Attack)then return end
  935. if(k == 'z')then AOEKill(Root.CFrame.p,25) end -- TODO: Animation and effects
  936. if(k == 'q')then WalkSpeed = (WalkSpeed == 8 and 32 or 8) end
  937. end)
  938.  
  939.  
  940. function Refuse()
  941. Attack = true
  942. warn("xd.")
  943. local oMH = MaxHealth
  944. MaxHealth = "inf"
  945. Hum.MaxHealth = "inf"
  946. Hum.Health = "inf"
  947. Char.Parent = nil
  948. Hum:destroy()
  949. if(not _G.RefusedAnimation)then
  950. _G.RefusedAnimation = true
  951.  
  952.  
  953. local Soul;
  954. function Soul(where,decalId)
  955. local destroy = false
  956. local soul = NewInstance("Part",workspace)
  957. soul.Name = "Soul"
  958. soul.Transparency=1
  959. soul.Size = V3.N(2,2,.05)
  960. soul.Anchored=true
  961. soul.CanCollide=false
  962. soul.CFrame = where
  963. local heartF = NewInstance("Decal",soul,{Face=Enum.NormalId.Front,Texture="rbxassetid://"..decalId})
  964. local heartB = NewInstance("Decal",soul,{Face=Enum.NormalId.Back,Texture="rbxassetid://"..decalId})
  965. return soul,heartF,heartB
  966. end
  967. local owo = Root.CFrame
  968. local s,f,b = Soul(owo,1569347904)
  969. swait(60)
  970. local snd = Sound(s,862552636,1,5,false,false,false)
  971. snd:Play()
  972. f.Texture = "rbxassetid://1569348344"
  973. b.Texture = "rbxassetid://1569348344"
  974. swait(15)
  975. snd:Stop()
  976. swait(60)
  977. print'lol'
  978. for i = 0, 6, .1 do
  979. swait()
  980. s.CFrame = owo * CF.N(M.RNG(-50,50)/100,M.RNG(-50,50)/100,M.RNG(-50,50)/100)
  981. end
  982. local snd = Sound(s,862552636,1,5,false,false,false)
  983. snd:Play()
  984. s.CFrame = owo
  985. f.Texture = "rbxassetid://1569347904"
  986. b.Texture = "rbxassetid://1569347904"
  987. swait(15)
  988. snd:Stop()
  989. swait(60)
  990.  
  991. s:destroy()
  992. end
  993.  
  994. RJ.Parent = Char
  995. LS.Parent = Char
  996. RS.Parent = Char
  997. LH.Parent = Char
  998. RH.Parent = Char
  999. NK.Parent = Char
  1000.  
  1001. LArm.Parent = Char
  1002. RArm.Parent = Char
  1003. LLeg.Parent = Char
  1004. LArm.Parent = Char
  1005. Root.Parent = Char
  1006. Torso.Parent = Char
  1007. Head.Parent = Char
  1008.  
  1009. Knife.Parent = Char
  1010. Hair.Parent = Char
  1011.  
  1012. HW.Parent = Char
  1013. HW2.Parent = Char
  1014.  
  1015.  
  1016. REye:destroy()
  1017. LEye:destroy()
  1018.  
  1019. for _,v in next, Char:children() do
  1020. if(v.Name == 'ShadowFace')then v:destroy() end
  1021. end
  1022. LEye = Part(Char,C3.N(1,0,0),Enum.Material.Neon,V3.N(.15,.25,.2),CF.N(),false,false)
  1023. LEyeM = Mesh(LEye,Enum.MeshType.Sphere,"","",V3.N(1,1,1),V3.N())
  1024. LEyeW = NewInstance("Weld",LEye,{Part0=Head,Part1=LEye,C0=CF.N(-.2,.2,-.49)})
  1025.  
  1026. REye = Part(Char,C3.N(1,0,0),Enum.Material.Neon,V3.N(.15,.25,.2),CF.N(),false,false)
  1027. REyeM = Mesh(REye,Enum.MeshType.Sphere,"","",V3.N(1,1,1),V3.N())
  1028. REyeW = NewInstance("Weld",REye,{Part0=Head,Part1=REye,C0=CF.N(.2,.2,-.49)})
  1029. for i = 1, 35 do
  1030. local FACE = Part(Char,C3.N(0,0,0),Enum.Material.Neon,V3.N(1.01,.5,1.01),CF.N(),false,false)
  1031. FACE.Transparency = 0+(i-1)/35.2
  1032. FACE.Name = 'ShadowFace'
  1033. Head:FindFirstChildOfClass("SpecialMesh"):Clone().Parent = FACE
  1034. NewInstance("Weld",Head,{Part0=Head,Part1=FACE,C0=CF.N(0,.35-(i-1)/75,0)})
  1035. --CreateWeldOrSnapOrMotor("Weld", Head, Head, FACE, CF(0,0.35-(i-1)/75,0), CF(0, 0, 0))
  1036. end
  1037. Hum = NewInstance("Humanoid",Char,{DisplayDistanceType='None'})
  1038. ConnectHum()
  1039. MaxHealth = oMH
  1040. Hum.MaxHealth = MaxHealth
  1041. Hum.Health = MaxHealth
  1042. swait(5)
  1043. Char.Parent = workspace
  1044.  
  1045. Attack = false
  1046. end
  1047.  
  1048. function ConnectHum()
  1049. Hum.Died:connect(Refuse)
  1050. end
  1051. ConnectHum()
  1052.  
  1053.  
  1054. --// Wrap it all up \\--
  1055. while true do
  1056. swait()
  1057. Sine = Sine + Change
  1058. if(not Music)then
  1059. Music = Sound(Torso,MusicID,1,3,true,false,true)
  1060. Music.Name = 'Music'
  1061. end
  1062. Music.Pitch = 1
  1063. Music.Volume = 5
  1064. Music.SoundId = "rbxassetid://"..MusicID
  1065. Music.Parent = Torso
  1066. Music:Resume()
  1067. local hitfloor,posfloor = workspace:FindPartOnRay(Ray.new(Root.CFrame.p,((CFrame.new(Root.Position,Root.Position - Vector3.new(0,1,0))).lookVector).unit * 4), Char)
  1068. local Walking = (math.abs(Root.Velocity.x) > 1 or math.abs(Root.Velocity.z) > 1)
  1069. local State = (Hum.PlatformStand and 'Paralyzed' or Hum.Sit and 'Sit' or not hitfloor and Root.Velocity.y < -1 and "Fall" or not hitfloor and Root.Velocity.y > 1 and "Jump" or hitfloor and Walking and "Walk" or hitfloor and "Idle")
  1070. if(not Effects or not Effects.Parent)then
  1071. Effects = IN("Model",Char)
  1072. Effects.Name = "Effects"
  1073. end
  1074. Hum.WalkSpeed = WalkSpeed
  1075. if(State == 'Walk')then
  1076. if(Hum.WalkSpeed >= 24)then
  1077. local wsVal = 22 / (Hum.WalkSpeed/16)
  1078. local Alpha = math.min(.1 * (Hum.WalkSpeed/16),1)
  1079. Change = 2
  1080. RH.C1 = RH.C1:lerp(CF.N(0,1,0)*CF.N(0,0-.2*M.C(Sine/wsVal),0+.4*M.C(Sine/wsVal))*CF.A(M.R(25+45*M.C(Sine/wsVal))+-M.S(Sine/wsVal),0,0),Alpha)
  1081. LH.C1 = LH.C1:lerp(CF.N(0,1,0)*CF.N(0,0+.2*M.C(Sine/wsVal),0-.4*M.C(Sine/wsVal))*CF.A(M.R(25-45*M.C(Sine/wsVal))+M.S(Sine/wsVal),0,0),Alpha)
  1082. else
  1083. Change = .9
  1084. local wsVal = 8 / (Hum.WalkSpeed/8)
  1085. local Alpha = math.min(.2 * (Hum.WalkSpeed/8),1)
  1086. LH.C1 = LH.C1:lerp(CF.N(0,1-.2*M.C(Sine/wsVal)/2,.4*M.C(Sine/wsVal)/2)*CF.A(M.R(15-2*M.C(Sine/wsVal))-M.S(Sine/wsVal)/2.5,0,0)*CF.A(M.R(0-3*M.C(Sine/wsVal)),0,0),Alpha)
  1087. RH.C1 = RH.C1:lerp(CF.N(0,1+.2*M.C(Sine/wsVal)/2,-.4*M.C(Sine/wsVal)/2)*CF.A(M.R(15+2*M.C(Sine/wsVal))+M.S(Sine/wsVal)/2.5,0,0)*CF.A(M.R(0+3*M.C(Sine/wsVal)),0,0),Alpha)
  1088. end
  1089. else
  1090. RH.C1 = RH.C1:lerp(CF.N(0,1,0),.1)
  1091. LH.C1 = LH.C1:lerp(CF.N(0,1,0),.1)
  1092. end
  1093. for _,v in next, Char:children() do
  1094. if(v:IsA'Accessory')then
  1095. v:destroy()
  1096. elseif(v:IsA'Shirt')then
  1097. v.ShirtTemplate = "rbxassetid://271073761"
  1098. elseif(v:IsA'Pants')then
  1099. v.PantsTemplate = "rbxassetid://271073827"
  1100. elseif(v:IsA'CharacterMesh')then
  1101. v:destroy()
  1102. elseif(v:FindFirstChildOfClass'ShirtGraphic')then
  1103. v:FindFirstChildOfClass'ShirtGraphic':destroy()
  1104. end
  1105. end
  1106. local face = Head:FindFirstChild'face'
  1107. if(not face)then
  1108. NewInstance("Decal",Head,{Name='face',Face=Enum.NormalId.Front,Texture="rbxassetid://404306534"})
  1109. else
  1110. face.Texture = "rbxassetid://4873539769"
  1111. end
  1112. RArm.BrickColor = BrickColor.new'Eggplant'
  1113. LArm.BrickColor = BrickColor.new'Eggplant'
  1114. RLeg.BrickColor = BrickColor.new'Eggplant'
  1115. LLeg.BrickColor = BrickColor.new'Eggplant'
  1116. Torso.BrickColor = BrickColor.new'Eggplant'
  1117. Head.BrickColor = BrickColor.new'Eggplant'
  1118. Hum.Name = 'Chara'
  1119. if(Hum.MaxHealth ~= MaxHealth)then
  1120. Hum.MaxHealth = MaxHealth
  1121. end
  1122. Hum.DisplayDistanceType='None'
  1123. if(NeutralAnims)then
  1124. if(State == 'Idle')then
  1125. Change = 1
  1126. local Alpha = .1
  1127. RJ.C0 = RJ.C0:lerp(CF.N(0,0-.1*M.C(Sine/(wsVal/2)),0)*CF.A(M.R(-15+2.5*M.C(Sine/(wsVal/2))),M.R(8*M.C(Sine/wsVal)),0),Alpha)
  1128. LH.C0 = clerp(LH.C0,CFrame.new(-0.536091685, -0.991042495-.05*M.C(Sine/16), -0.0134909991, 0.849195242, 0, 0.528063774, -0.00331997755, 0.99998033, 0.00533895614, -0.528053343, -0.00628707698, 0.849178433),Alpha)
  1129. RH.C0 = clerp(RH.C0,CFrame.new(0.529067397, -0.991597891-.05*M.C(Sine/16), -0.0818087086, 0.849195242, 0, 0.528063774, -0.00331997755, 0.99998033R, 0.00533895614, -0.528053343, -0.00628707698, 0.849178433),Alpha)
  1130. LS.C0 = clerp(LS.C0,CFrame.new(-1.32175505, 0.156236127+.15*M.C(Sine/16), 0.233877867, 0.877554953, -0.456876248, 0.145469457, 0.259513229, 0.707695842, 0.657129884, -0.403175086, -0.538916171, 0.739607573),Alpha)
  1131. RS.C0 = clerp(RS.C0,CFrame.new(1.2516855, 0.604915917+.15*M.C(Sine/16), -0.0189059302, 0.915104508, -0.287113011, -0.283108115, 0.301054537, 0.953587949, 0.00603589695, 0.268235415, -0.0907544345, 0.959069014),Alpha)
  1132. NK.C0 = NK.C0:lerp(NKC0,Alpha)
  1133. HW.C0 = HW.C0:lerp(CF.N(0,-1,-1)*CF.A(M.R(-90),0,0),Alpha)
  1134. -- idle
  1135. elseif(State == 'Walk')then
  1136. if(Hum.WalkSpeed >= 24)then
  1137. local wsVal = 22 / (Hum.WalkSpeed/16)
  1138. local Alpha = math.min(.2 * (Hum.WalkSpeed/16),1)
  1139. RJ.C0 = RJ.C0:lerp(CF.N(0,0-.15*M.C(Sine/(wsVal/2)),0)*CF.A(M.R(-15),M.R(0-15*M.S(Sine/wsVal)/2),0),Alpha)
  1140. LS.C0 = LS.C0:lerp(LSC0*CF.N(0,0,0-.3*M.S(Sine/wsVal))*CF.A(M.R(0+45*M.S(Sine/wsVal)),0,M.R(-5+15*M.S(Sine/wsVal))),Alpha)
  1141. RS.C0 = RS.C0:lerp(RSC0*CF.N(0,0,0+.3*M.S(Sine/wsVal))*CF.A(M.R(0-45*M.S(Sine/wsVal)),0,M.R(5+15*M.S(Sine/wsVal))),Alpha)
  1142. NK.C0 = NK.C0:lerp(NKC0*CF.A(M.R(15),0,0),Alpha)
  1143. LH.C0 = LH.C0:lerp(LHC0*CF.N(0,0+.15*M.C(Sine/(wsVal/2)),0)*CF.A(M.R(15),0,0),Alpha)
  1144. RH.C0 = RH.C0:lerp(RHC0*CF.N(0,0+.15*M.C(Sine/(wsVal/2)),0)*CF.A(M.R(15),0,0),Alpha)
  1145. HW.C0 = HW.C0:lerp(CF.N(0,-1,-1)*CF.A(M.R(-90),0,0),Alpha)
  1146. else
  1147. local wsVal = 8 / (Hum.WalkSpeed/8)
  1148. local Alpha = math.min(.2 * (Hum.WalkSpeed/8),1)
  1149. RJ.C0 = RJ.C0:lerp(CF.N(0,0-.05*M.C(Sine/(wsVal/2)),0)*CF.A(0,M.R(0-5*M.S(Sine/wsVal)/2),0),Alpha)
  1150. LS.C0 = LS.C0:lerp(LSC0*CF.N(0,0,0+.3*M.S(Sine/wsVal))*CF.A(M.R(0-25*M.S(Sine/wsVal)),0,M.R(5-5*M.S(Sine/wsVal))),Alpha)
  1151. RS.C0 = RS.C0:lerp(RSC0*CF.N(0,0,0-.3*M.S(Sine/wsVal))*CF.A(M.R(0+25*M.S(Sine/wsVal)),0,M.R(-5-5*M.S(Sine/wsVal))),Alpha)
  1152. NK.C0 = NK.C0:lerp(NKC0,Alpha)
  1153. LH.C0 = LH.C0:lerp(LHC0*CF.N(0,0+.05*M.C(Sine/(wsVal/2)),0),Alpha)
  1154. RH.C0 = RH.C0:lerp(RHC0*CF.N(0,0+.05*M.C(Sine/(wsVal/2)),0),Alpha)
  1155. HW.C0 = HW.C0:lerp(CF.N(0,-1,-1)*CF.A(M.R(-90),0,0),Alpha)
  1156. end
  1157. elseif(State == 'Jump' or State == 'Fall')then
  1158. if(Walking)then
  1159. local Alpha = .2
  1160. RJ.C0 = RJ.C0:lerp(CF.N(0,0-.1*M.C(Sine/(wsVal/2)),0)*CF.A(M.R(-15+2.5*M.C(Sine/(wsVal/2))),M.R(8*M.C(Sine/wsVal)),0),Alpha)
  1161. LH.C0 = clerp(LH.C0,CFrame.new(-0.497912645, -1.0987643, -0.0683324337, 0.999878228, 0.00860835519, 0.0130246133, -0.00010142161, 0.837816596, -0.545952022, -0.015611981, 0.545884132, 0.837715328),Alpha)
  1162. RH.C0 = clerp(RH.C0,CFrame.new(0.499978393, -1.16382337, 0.109293163, 0.999878228, -0.0120433727, 0.00993486121, -0.00010142161, 0.631323814, 0.775519371, -0.015611981, -0.775425911, 0.631245613),Alpha)
  1163. LS.C0 = clerp(LS.C0,CFrame.new(-1.55211556, 0.576563478, -0.00269976072, 0.976067662, 0.216906726, 0.0156116467, -0.217024669, 0.976145923, 0.00628317893, -0.0138763804, -0.00952091813, 0.999858499),Alpha)
  1164. RS.C0 = clerp(RS.C0,CFrame.new(1.50182188, 0.636661649, 0.00632623257, 0.977592707, -0.209926367, 0.0156121543, 0.209851891, 0.977713108, 0.00628198683, -0.016582964, -0.00286500831, 0.999858439),Alpha)
  1165. NK.C0 = NK.C0:lerp(NKC0,Alpha)
  1166. HW.C0 = HW.C0:lerp(CF.N(0,-1,-1)*CF.A(M.R(-90),0,0),Alpha)
  1167. else
  1168. local Alpha = .2
  1169. RJ.C0 = clerp(RJ.C0,RJC0*CF.A(math.min(math.max(Root.Velocity.Y/100,-M.R(65)),M.R(65)),0,0),Alpha)
  1170. LH.C0 = clerp(LH.C0,CFrame.new(-0.504374504, -0.291219354, -0.487436086, 0.999878228, -0.00438931212, 0.0149825988, -0.00010142161, 0.957819223, 0.287371844, -0.015611981, -0.287338346, 0.957701981),Alpha)
  1171. RH.C0 = clerp(RH.C0,CFrame.new(0.453094482, -0.871358454, 0.0898642987, 0.985589385, -0.168456957, 0.0153662469, 0.162863791, 0.969548643, 0.182895929, -0.0457084104, -0.177757636, 0.983012319),Alpha)
  1172. LS.C0 = clerp(LS.C0,CFrame.new(-1.55211556, 0.576563478, -0.00269976072, 0.976067662, 0.216906726, 0.0156116467, -0.217024669, 0.976145923, 0.00628317893, -0.0138763804, -0.00952091813, 0.999858499),Alpha)
  1173. RS.C0 = clerp(RS.C0,CFrame.new(1.50182188, 0.636661649, 0.00632623257, 0.977592707, -0.209926367, 0.0156121543, 0.209851891, 0.977713108, 0.00628198683, -0.016582964, -0.00286500831, 0.999858439),Alpha)
  1174. NK.C0 = clerp(NK.C0,CFrame.new(1.14440072e-05, 1.49924362, -0.0143961608, 1.00000024, -5.82076609e-11, 0, 1.23691279e-10, 0.997964919, 0.0637660474, 0, -0.0637660623, 0.997965038),Alpha)
  1175. HW.C0 = HW.C0:lerp(CF.N(0,-1,-1)*CF.A(M.R(-90),0,0),Alpha)
  1176. end
  1177. elseif(State == 'Paralyzed')then
  1178. -- paralyzed
  1179. elseif(State == 'Sit')then
  1180. -- sit
  1181. end
  1182. end
  1183. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement