MASTEROFJOHNDOE

Untitled

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