Advertisement
Zebula_The_Scripter

Dominus Of The Void

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