Advertisement
Christoffer07700Extr

qweqw

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