Advertisement
Jocalol

Untitled

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