Advertisement
XskillyX

mabye chara FE

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