Advertisement
Guest User

Untitled

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