Advertisement
Guest User

Switching Chara

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