Advertisement
zXzGamePROzXz

Untitled

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