Advertisement
Amokah

Chara

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