SHARE
TWEET

Untitled

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