Advertisement
Tetezaza1542

VOID DOMINUS

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