ericdesouza

Untitled

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