Advertisement
Robert666121

Untitled

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