StarzoZero

Untitled

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