Advertisement
Mediakiller7Cool

Nani

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