Advertisement
Amokah

CHARA.

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