Advertisement
PowerSans124

Chara

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