Advertisement
Hermaxs

Untitled

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