Advertisement
Guest User

Untitled

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