Advertisement
PowerSans124

CHARA GLITCHTALE

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