Advertisement
Zebula_The_Scripter

VIRABOT

Sep 11th, 2018
365
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 64.43 KB | None | 0 0
  1. -- Created by Nebula_Zorua --
  2. -- Your VIRABOT --
  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 red'
  163. local MusicID = 935501955
  164. local WalkSpeed = 8
  165. local MaxSouls = 1000
  166. local MaxHealth = 850
  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.  
  182.  
  183.  
  184. New = function(Object, Parent, Name, Data)
  185. local Object = Instance.new(Object)
  186. for Index, Value in pairs(Data or {}) do
  187. Object[Index] = Value
  188. end
  189. Object.Parent = Parent
  190. Object.Name = Name
  191. return Object
  192. end
  193.  
  194. Bone = New("Part",Char,"Bone",{BrickColor = BrickColor.new("Really red"),Material = Enum.Material.Neon,FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(0.099999994, 0.440000236, 0.0799999982),CFrame = CFrame.new(-67.9992447, 1.09667599, 92.827446, 0.618669689, -0.778135777, -0.108409032, 0.328475863, 0.381534815, -0.864022493, 0.713688612, 0.498934716, 0.491642892),Color = Color3.new(0.972549, 0.972549, 0.972549),})
  195. mot = New("Motor",Bone,"mot",{Part0 = Bone,Part1 = LLeg,C0 = CFrame.new(0, 0, 0, 0.618669689, 0.328475863, 0.713688612, -0.778135777, 0.381534815, 0.498934716, -0.108409032, -0.864022493, 0.491642892),C1 = CFrame.new(-0.142066956, 0.0965499878, 0.817428589, 0, 0, 1, 0, 1, 0, -1, 0, 0),})
  196. Bone = New("Part",Char,"Bone",{BrickColor = BrickColor.new("Really red"),Material = Enum.Material.Neon,FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(0.099999994, 0.220000222, 0.0799999982),CFrame = CFrame.new(-67.7482147, 0.980813861, 92.6753845, 0.654389918, -0.668738604, 0.352934062, 0.754363894, 0.545237362, -0.365583509, 0.0520469919, 0.505474925, 0.86127007),Color = Color3.new(0.972549, 0.972549, 0.972549),})
  197. mot = New("Motor",Bone,"mot",{Part0 = Bone,Part1 = LLeg,C0 = CFrame.new(0, 0, 0, 0.654389918, 0.754363894, 0.0520469919, -0.668738604, 0.545237362, 0.505474925, 0.352934062, -0.365583509, 0.86127007),C1 = CFrame.new(-0.294128418, -0.0193121433, 0.566398621, 0, 0, 1, 0, 1, 0, -1, 0, 0),})
  198. Blood = New("Part",Char,"Blood",{BrickColor = BrickColor.new("Really red"),Material = Enum.Material.Neon,FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(0.282499969, 0.0766666532, 0.189999968),CFrame = CFrame.new(-67.6550522, 0.932102025, 92.6624374, -0.00266400119, -0.996861994, -0.079115279, 0.999996483, -0.00267234421, -4.24469931e-07, -0.000211000108, -0.0791150033, 0.996865511),Color = Color3.new(0.458824, 0, 0),})
  199. mot = New("Motor",Blood,"mot",{Part0 = Blood,Part1 = LLeg,C0 = CFrame.new(0, 0, 0, -0.00266400119, 0.999996483, -0.000211000108, -0.996861994, -0.00267234421, -0.0791150033, -0.079115279, -4.24469931e-07, 0.996865511),C1 = CFrame.new(-0.3070755, -0.0680239797, 0.473236084, 0, 0, 1, 0, 1, 0, -1, 0, 0),})
  200. Corruption = New("Part",Char,"Corruption",{BrickColor = BrickColor.new("Really red"),Material = Enum.Material.Neon,FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(0.56000042, 0.660000384, 0.0500000007),CFrame = CFrame.new(-67.6787415, 1.05639434, 93.0375519, 0, 0, -1, 0, 1, 0, 1, 0, 0),Color = Color3.new(0, 1, 0),})
  201. mot = New("Motor",Corruption,"mot",{Part0 = Corruption,Part1 = LLeg,C0 = CFrame.new(0, 0, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0),C1 = CFrame.new(0.0680389404, 0.0562683344, 0.496925354, 0, 0, 1, 0, 1, 0, -1, 0, 0),})
  202. Blood = New("Part",Char,"Blood",{BrickColor = BrickColor.new("Really red"),Material = Enum.Material.Neon,FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(0.282499969, 0.0766666532, 0.280000001),CFrame = CFrame.new(-67.3698196, 0.932102203, 92.4828796, 0, 0, -1, 0.999996424, -0.00266899844, 0, -0.00266899844, -0.999996424, 0),Color = Color3.new(0.458824, 0, 0),})
  203. mot = New("Motor",Blood,"mot",{Part0 = Blood,Part1 = LLeg,C0 = CFrame.new(0, 0, 0, 0, 0.999996424, -0.00266899844, 0, -0.00266899844, -0.999996424, -1, 0, 0),C1 = CFrame.new(-0.486633301, -0.0680238008, 0.18800354, 0, 0, 1, 0, 1, 0, -1, 0, 0),})
  204. Bone = New("Part",Char,"Bone",{BrickColor = BrickColor.new("Really red"),Material = Enum.Material.Neon,FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(0.150000006, 0.660000384, 0.11999999),CFrame = CFrame.new(-67.3659668, 1.09374464, 92.2612991, 0, 0, -1, 0.747014165, 0.664808154, 0, 0.664808154, -0.747014165, 0),Color = Color3.new(0.972549, 0.972549, 0.972549),})
  205. mot = New("Motor",Bone,"mot",{Part0 = Bone,Part1 = LLeg,C0 = CFrame.new(0, 0, 0, 0, 0.747014165, 0.664808154, 0, 0.664808154, -0.747014165, -1, 0, 0),C1 = CFrame.new(-0.708213806, 0.0936186314, 0.184150696, 0, 0, 1, 0, 1, 0, -1, 0, 0),})
  206.  
  207. Corruption = New("Part",Char,"Corruption",{BrickColor = BrickColor.new("Really red"),Material = Enum.Material.Neon,FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(0.330000252, 0.660000384, 0.0500000007),CFrame = CFrame.new(-67.6787415, 1.33912802, 93.9772263, 0, 0, -1, 0, 1, 0, 1, 0, 0),Color = Color3.new(0, 1, 0),})
  208. mot = New("Motor",Corruption,"mot",{Part0 = Corruption,Part1 = RLeg,C0 = CFrame.new(0, 0, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0),C1 = CFrame.new(0.0127105713, 0.339127064, 0.487541199, 0, 0, 1, 0, 1, 0, -1, 0, 0),})
  209. Corruption = New("Part",Char,"Corruption",{BrickColor = BrickColor.new("Really red"),Material = Enum.Material.Neon,FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(0.330000252, 0.660000384, 0.0500000007),CFrame = CFrame.new(-66.6787415, 1.33912802, 93.9772263, 0, 0, -1, 0, 1, 0, 1, 0, 0),Color = Color3.new(0, 1, 0),})
  210. mot = New("Motor",Corruption,"mot",{Part0 = Corruption,Part1 = RLeg,C0 = CFrame.new(0, 0, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0),C1 = CFrame.new(0.0127105713, 0.339127064, -0.512458801, 0, 0, 1, 0, 1, 0, -1, 0, 0),})
  211.  
  212. Corruption = New("Part",Char,"Corruption",{BrickColor = BrickColor.new("Really red"),Material = Enum.Material.Neon,FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(0.740000069, 0.140000015, 0.0500000007),CFrame = CFrame.new(-67.6787415, 3.12643075, 92.6921463, -9.31322575e-10, -1.86264515e-09, -0.999999285, 0.777135551, 0.629333496, 9.31322575e-10, 0.6293329, -0.777134895, 0),Color = Color3.new(0, 1, 0),})
  213. mot = New("Motor",Corruption,"mot",{Part0 = Corruption,Part1 = Torso,C0 = CFrame.new(0, 0, 0, 0, 0.777135491, 0.629333377, 0, 0.629333377, -0.777135491, -1, 0, 0),C1 = CFrame.new(-0.766067505, 0.138611317, 0.515716553, -0.0156119959, -4.38656264e-11, 0.999877751, -0.0062854127, 0.999980271, -9.81397825e-05, -0.999858022, -0.00628618058, -0.0156116877),})
  214. Corruption = New("Part",Char,"Corruption",{BrickColor = BrickColor.new("Really red"),Material = Enum.Material.Neon,FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(1.12999988, 1.12000012, 0.0500000007),CFrame = CFrame.new(-67.6951752, 3.43133378, 93.991272, 0, -9.31322575e-10, -0.999999285, 0, 1, 9.31322575e-10, 0.999999225, 0, 0),Color = Color3.new(0, 1, 0),})
  215. mot = New("Motor",Corruption,"mot",{Part0 = Corruption,Part1 = Torso,C0 = CFrame.new(0, 0, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0),C1 = CFrame.new(0.533157349, 0.443484068, 0.50994873, -0.0156119959, -4.38656264e-11, 0.999877751, -0.0062854127, 0.999980271, -9.81397825e-05, -0.999858022, -0.00628618058, -0.0156116877),})
  216. Corruption = New("Part",Char,"Corruption",{BrickColor = BrickColor.new("Really red"),Material = Enum.Material.Neon,FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(0.450000018, 0.590000272, 0.0500000007),CFrame = CFrame.new(-67.6951752, 2.60608268, 94.3512573, 0, -9.31322575e-10, -0.999999285, 0, 1, 9.31322575e-10, 0.999999225, 0, 0),Color = Color3.new(0, 1, 0),})
  217. mot = New("Motor",Corruption,"mot",{Part0 = Corruption,Part1 = Torso,C0 = CFrame.new(0, 0, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0),C1 = CFrame.new(0.893096924, -0.381786108, 0.509513855, -0.0156119959, -4.38656264e-11, 0.999877751, -0.0062854127, 0.999980271, -9.81397825e-05, -0.999858022, -0.00628618058, -0.0156116877),})
  218. Corruption = New("Part",Char,"Corruption",{BrickColor = BrickColor.new("Really red"),Material = Enum.Material.Neon,FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(0.330000013, 0.590000272, 0.0500000007),CFrame = CFrame.new(-66.6951752, 2.60608268, 94.2912598, 0, -9.31322575e-10, -0.999999285, 0, 1, 9.31322575e-10, 0.999999225, 0, 0),Color = Color3.new(0, 1, 0),})
  219. mot = New("Motor",Corruption,"mot",{Part0 = Corruption,Part1 = Torso,C0 = CFrame.new(0, 0, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0),C1 = CFrame.new(0.817497253, -0.388065577, -0.489402771, -0.0156119959, -4.38656264e-11, 0.999877751, -0.0062854127, 0.999980271, -9.81397825e-05, -0.999858022, -0.00628618058, -0.0156116877),})
  220. Corruption = New("Part",Char,"Corruption",{BrickColor = BrickColor.new("Really red"),Material = Enum.Material.Neon,FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(0.220000237, 0.660000384, 0.0500000007),CFrame = CFrame.new(-66.6787338, 2.57395577, 93.9222183, 0, -9.31322575e-10, -0.999999285, 0, 1, 9.31322575e-10, 0.999999225, 0, 0),Color = Color3.new(0, 1, 0),})
  221. mot = New("Motor",Corruption,"mot",{Part0 = Corruption,Part1 = Torso,C0 = CFrame.new(0, 0, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0),C1 = CFrame.new(0.448242188, -0.420258999, -0.49987793, -0.0156119959, -4.38656264e-11, 0.999877751, -0.0062854127, 0.999980271, -9.81397825e-05, -0.999858022, -0.00628618058, -0.0156116877),})
  222. Corruption = New("Part",Char,"Corruption",{BrickColor = BrickColor.new("Really red"),Material = Enum.Material.Neon,FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(1.07999992, 1.12000012, 0.0500000007),CFrame = CFrame.new(-66.6951752, 3.43133354, 93.9662704, 0, -9.31322575e-10, -0.999999285, 0, 1, 9.31322575e-10, 0.999999225, 0, 0),Color = Color3.new(0, 1, 0),})
  223. mot = New("Motor",Corruption,"mot",{Part0 = Corruption,Part1 = Torso,C0 = CFrame.new(0, 0, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0),C1 = CFrame.new(0.492546082, 0.437201023, -0.489517212, -0.0156119959, -4.38656264e-11, 0.999877751, -0.0062854127, 0.999980271, -9.81397825e-05, -0.999858022, -0.00628618058, -0.0156116877),})
  224. Corruption = New("Part",Char,"Corruption",{BrickColor = BrickColor.new("Really red"),Material = Enum.Material.Neon,FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(0.740000069, 0.340000302, 0.0500000007),CFrame = CFrame.new(-66.6787415, 3.2281816, 93.1287689, 0, -9.31322575e-10, -0.999999285, 0, 1, 9.31322575e-10, 0.999999225, 0, 0),Color = Color3.new(0, 1, 0),})
  225. mot = New("Motor",Corruption,"mot",{Part0 = Corruption,Part1 = Torso,C0 = CFrame.new(0, 0, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0),C1 = CFrame.new(-0.345108032, 0.234031916, -0.491600037, -0.0156119959, -4.38656264e-11, 0.999877751, -0.0062854127, 0.999980271, -9.81397825e-05, -0.999858022, -0.00628618058, -0.0156116877),})
  226. Corruption = New("Part",Char,"Corruption",{BrickColor = BrickColor.new("Really red"),Material = Enum.Material.Neon,FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(1.0999999, 0.0500000007, 1.00999975),CFrame = CFrame.new(-67.1759109, 3.99574399, 93.9762726, 0, -0.0260759834, -0.999659359, 0, 0.999660075, -0.0260760002, 0.999999225, -2.91038305e-11, -9.31322575e-10),Color = Color3.new(0, 1, 0),})
  227. mot = New("Motor",Corruption,"mot",{Part0 = Corruption,Part1 = Torso,C0 = CFrame.new(0, 0, 0, 0, 0, 1, -0.0260760002, 0.999660015, 0, -0.999660015, -0.0260760002, 0),C1 = CFrame.new(0.510047913, 1.00462079, -0.0125579834, -0.0156119959, -4.38656264e-11, 0.999877751, -0.0062854127, 0.999980271, -9.81397825e-05, -0.999858022, -0.00628618058, -0.0156116877),})
  228.  
  229. Corruption = New("Part",Char,"Corruption",{BrickColor = BrickColor.new("Really red"),Material = Enum.Material.Neon,FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(0.740000069, 0.419999987, 0.870000064),CFrame = CFrame.new(-67.0815201, 2.81366396, 91.9528885, 0, 0, -1, 0.777135491, 0.629333377, 0, 0.629333377, -0.777135491, 0),Color = Color3.new(0, 1, 0),})
  230. mot = New("Motor",Corruption,"mot",{Part0 = Corruption,Part1 = LArm,C0 = CFrame.new(0, 0, 0, 0, 0.777135491, 0.629333377, 0, 0.629333377, -0.777135491, -1, 0, 0),C1 = CFrame.new(-0.00936126709, -0.184385061, -0.0693511963, 0, 0, 1, 0, 1, 0, -1, 0, 0),})
  231.  
  232. Corruption = New("Part",Char,"Corruption",{BrickColor = BrickColor.new("Really red"),Material = Enum.Material.Neon,FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(1,2,1),CFrame = CFrame.new(-67.0815201, 2.81366396, 91.9528885, 0, 0, -1, 0.777135491, 0.629333377, 0, 0.629333377, -0.777135491, 0),Color = Color3.new(0, 1, 0),})
  233. mot = New("Motor",Corruption,"mot",{Part0 = Corruption,Part1 = RArm,C0 = CFrame.new(0, 0, 0),})
  234.  
  235. 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)})
  236. local KnifeMesh = Mesh(Knife,Enum.MeshType.FileMesh,"rbxassetid://117500241","rbxassetid://54499871",V3.N(1,1,1),V3.N())
  237. 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)})
  238. 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)})
  239.  
  240. local KTrail = NewInstance("Trail",Knife,{
  241. Attachment0=NewInstance("Attachment",Knife,{Position=V3.N(0,-.4,0)}),
  242. Attachment1=NewInstance("Attachment",Knife,{Position=V3.N(0,1.2,0)}),
  243. Color=CS(C3.N(1,0,0)),
  244. Enabled=false,
  245. Transparency=NumberSequence.new(0,1),
  246. Lifetime=1.25,
  247. })
  248.  
  249. NewInstance("PointLight",Knife,{Color=C3.N(1,0,0),Range=10,Brightness=3})
  250.  
  251.  
  252. Hum.DisplayDistanceType = 'None'
  253.  
  254. local naeeym2 = IN("BillboardGui",Char)
  255. naeeym2.AlwaysOnTop = true
  256. naeeym2.Size = UDim2.new(5,35,2,15)
  257. naeeym2.StudsOffset = V3.N(0,2.5,0)
  258. naeeym2.Adornee = Char.Head
  259. naeeym2.Name = "Name"
  260. naeeym2.PlayerToHideFrom = Plr
  261. local tecks2 = IN("TextLabel",naeeym2)
  262. tecks2.BackgroundTransparency = 1
  263. tecks2.TextScaled = true
  264. tecks2.BorderSizePixel = 0
  265. tecks2.Text = "Chara"
  266. tecks2.Font = Enum.Font.Bodoni
  267. tecks2.TextSize = 30
  268. tecks2.TextStrokeTransparency = 0
  269. tecks2.TextColor3 = C3.N(0,0,0)
  270. tecks2.TextStrokeColor3 = C3.N(.7,0,0)
  271. tecks2.Size = UDim2.new(1,0,0.5,0)
  272. tecks2.Parent = naeeym2
  273.  
  274.  
  275. IN("Shirt",Char)
  276. IN("Pants",Char)
  277.  
  278. Hum.WalkSpeed = WalkSpeed
  279. if(PlayerSize ~= 1)then
  280. for _,v in next, Char:GetDescendats() do
  281. if(v:IsA'BasePart')then
  282. v.Size = v.Size * PlayerSize
  283. end
  284. end
  285. end
  286.  
  287.  
  288. for i = 1, 35 do
  289. local FACE = Part(Char,C3.N(0,0,0),Enum.Material.Neon,V3.N(1.01,.5,1.01),CF.N(),false,false)
  290. FACE.Transparency = 0+(i-1)/35.2
  291. FACE.Name = 'ShadowFace'
  292. Head:FindFirstChildOfClass("SpecialMesh"):Clone().Parent = FACE
  293. NewInstance("Weld",Head,{Part0=Head,Part1=FACE,C0=CF.N(0,.35-(i-1)/75,0)})
  294. --CreateWeldOrSnapOrMotor("Weld", Head, Head, FACE, CF(0,0.35-(i-1)/75,0), CF(0, 0, 0))
  295. end
  296.  
  297. local LEye = Part(Char,C3.N(1,0,0),Enum.Material.Neon,V3.N(.15,.25,.2),CF.N(),false,false)
  298. local LEyeM = Mesh(LEye,Enum.MeshType.Sphere,"","",V3.N(1,1,1),V3.N())
  299. local LEyeW = NewInstance("Weld",LEye,{Part0=Head,Part1=LEye,C0=CF.N(-.2,.2,-.49)})
  300.  
  301. local REye = Part(Char,C3.N(1,0,0),Enum.Material.Neon,V3.N(.15,.25,.2),CF.N(),false,false)
  302. local REyeM = Mesh(REye,Enum.MeshType.Sphere,"","",V3.N(1,1,1),V3.N())
  303. local REyeW = NewInstance("Weld",REye,{Part0=Head,Part1=REye,C0=CF.N(.2,.2,-.49)})
  304.  
  305.  
  306. pcall(function()
  307. Char.LeftWing:destroy()
  308. Char.ReaperShadowHead:destroy()
  309. end)
  310.  
  311.  
  312. local Music = Sound(Torso,MusicID,1,3,true,false,true)
  313. Music.Name = 'Music'
  314.  
  315. --// Stop animations \\--
  316. for _,v in next, Hum:GetPlayingAnimationTracks() do
  317. v:Stop();
  318. end
  319.  
  320. pcall(game.Destroy,Char:FindFirstChild'Animate')
  321. pcall(game.Destroy,Hum:FindFirstChild'Animator')
  322.  
  323. --// Joints \\--
  324.  
  325. 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)})
  326. 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)})
  327. local NK = NewInstance('Motor',Char,{Part0=Torso,Part1=Head,C0 = CF.N(0,1.5 * PlayerSize,0)})
  328. local LH = NewInstance('Motor',Char,{Part0=Torso,Part1=LLeg,C0 = CF.N(-.5 * PlayerSize,-1 * PlayerSize,0),C1 = CF.N(0,1 * PlayerSize,0)})
  329. local RH = NewInstance('Motor',Char,{Part0=Torso,Part1=RLeg,C0 = CF.N(.5 * PlayerSize,-1 * PlayerSize,0),C1 = CF.N(0,1 * PlayerSize,0)})
  330. local RJ = NewInstance('Motor',Char,{Part0=Root,Part1=Torso})
  331. local HW = NewInstance('Motor',Char,{Part0=RArm,Part1=Knife,C0=CF.N(0,-1,-1)*CF.A(M.R(-90),0,0)})
  332.  
  333. local LSC0 = LS.C0
  334. local RSC0 = RS.C0
  335. local NKC0 = NK.C0
  336. local LHC0 = LH.C0
  337. local RHC0 = RH.C0
  338. local RJC0 = RJ.C0
  339.  
  340. --// Artificial HB \\--
  341.  
  342. local ArtificialHB = IN("BindableEvent", script)
  343. ArtificialHB.Name = "Heartbeat"
  344.  
  345. script:WaitForChild("Heartbeat")
  346.  
  347. local tf = 0
  348. local allowframeloss = false
  349. local tossremainder = false
  350. local lastframe = tick()
  351. local frame = 1/Frame_Speed
  352. ArtificialHB:Fire()
  353.  
  354. game:GetService("RunService").Heartbeat:connect(function(s, p)
  355. tf = tf + s
  356. if tf >= frame then
  357. if allowframeloss then
  358. script.Heartbeat:Fire()
  359. lastframe = tick()
  360. else
  361. for i = 1, math.floor(tf / frame) do
  362. ArtificialHB:Fire()
  363. end
  364. lastframe = tick()
  365. end
  366. if tossremainder then
  367. tf = 0
  368. else
  369. tf = tf - frame * math.floor(tf / frame)
  370. end
  371. end
  372. end)
  373.  
  374. function swait(num)
  375. if num == 0 or num == nil then
  376. ArtificialHB.Event:wait()
  377. else
  378. for i = 0, num do
  379. ArtificialHB.Event:wait()
  380. end
  381. end
  382. end
  383.  
  384.  
  385. --// Effect Function(s) \\--
  386.  
  387. function Bezier(startpos, pos2, pos3, endpos, t)
  388. local A = startpos:lerp(pos2, t)
  389. local B = pos2:lerp(pos3, t)
  390. local C = pos3:lerp(endpos, t)
  391. local lerp1 = A:lerp(B, t)
  392. local lerp2 = B:lerp(C, t)
  393. local cubic = lerp1:lerp(lerp2, t)
  394. return cubic
  395. end
  396.  
  397. function Tween(obj,props,time,easing,direction,repeats,backwards)
  398. local info = TweenInfo.new(time or .5, easing or Enum.EasingStyle.Quad, direction or Enum.EasingDirection.Out, repeats or 0, backwards or false)
  399. local tween = S.TweenService:Create(obj, info, props)
  400.  
  401. tween:Play()
  402. end
  403.  
  404. local FXTable = {}
  405.  
  406. coroutine.resume(coroutine.create(function()
  407. while true do
  408. for i = 1, #FXTable do
  409. local data = FXTable[i]
  410. if(data)then
  411. local Frame = data.Frame
  412. local FX = data.Effect or 'ResizeAndFade'
  413. local Parent = data.Parent or Effects
  414. local Color = data.Color or C3.N(0,0,0)
  415. local Size = data.Size or V3.N(1,1,1)
  416. local MoveDir = data.MoveDirection or nil
  417. local MeshData = data.Mesh or nil
  418. local SndData = data.Sound or nil
  419. local Frames = data.Frames or 45
  420. local CFra = data.CFrame or Torso.CFrame
  421. local Settings = data.FXSettings or {}
  422. local Prt,Msh,Snd = data.Part,data.Mesh,data.Sound
  423. local grow = data.Grow
  424.  
  425. local MoveSpeed = nil;
  426. if(MoveDir)then
  427. MoveSpeed = (CFra.p - MoveDir).magnitude/Frames
  428. end
  429. if(FX ~= 'Arc')then
  430. Frame = Frame + 1
  431. if(FX == "Fade")then
  432. Prt.Transparency = (Frame/Frames)
  433. elseif(FX == "Resize")then
  434. if(not Settings.EndSize)then
  435. Settings.EndSize = V3.N(0,0,0)
  436. end
  437. if(Settings.EndIsIncrement)then
  438. if(Msh)then
  439. Msh.Scale = Msh.Scale + Settings.EndSize
  440. else
  441. Prt.Size = Prt.Size + Settings.EndSize
  442. end
  443. else
  444. if(Msh)then
  445. Msh.Scale = Msh.Scale - grow/Frames
  446. else
  447. Prt.Size = Prt.Size - grow/Frames
  448. end
  449. end
  450. elseif(FX == "ResizeAndFade")then
  451. if(not Settings.EndSize)then
  452. Settings.EndSize = V3.N(0,0,0)
  453. end
  454. if(Settings.EndIsIncrement)then
  455. if(Msh)then
  456. Msh.Scale = Msh.Scale + Settings.EndSize
  457. else
  458. Prt.Size = Prt.Size + Settings.EndSize
  459. end
  460. else
  461. if(Msh)then
  462. Msh.Scale = Msh.Scale - grow/Frames
  463. else
  464. Prt.Size = Prt.Size - grow/Frames
  465. end
  466. end
  467. Prt.Transparency = (Frame/Frames)
  468. end
  469. if(Settings.RandomizeCFrame)then
  470. Prt.CFrame = Prt.CFrame * CF.A(M.RRNG(-360,360),M.RRNG(-360,360),M.RRNG(-360,360))
  471. end
  472. if(MoveDir and MoveSpeed)then
  473. local Orientation = Prt.Orientation
  474. Prt.CFrame = CF.N(Prt.Position,MoveDir)*CF.N(0,0,-MoveSpeed)
  475. Prt.Orientation = Orientation
  476. end
  477. if(Prt.Transparency >= 1 or Frame >= Frames)then
  478. Prt:destroy()
  479. table.remove(FXTable,i)
  480. else
  481. data.Frame = Frame
  482. end
  483. else
  484. local start,third,fourth,endP = Settings.Start,Settings.Third,Settings.Fourth,Settings.End
  485. if(not Settings.End and Settings.Home)then endP = Settings.Home.CFrame end
  486. if(start and endP)then
  487. local quarter = third or start:lerp(endP, 0.25) * CF.N(M.RNG(-25,25),M.RNG(0,25),M.RNG(-25,25))
  488. local threequarter = fourth or start:lerp(endP, 0.75) * CF.N(M.RNG(-25,25),M.RNG(0,25),M.RNG(-25,25))
  489. Frame = Frame + (Settings.Speed or 0.01)
  490. if(Settings.Home)then
  491. endP = Settings.Home.CFrame
  492. end
  493. Prt.CFrame = Bezier(start, quarter, threequarter, endP, Frame)
  494. if(Prt.Transparency >= 1 or Frame >= Frames)then
  495. if(Settings.RemoveOnGoal)then
  496. Prt:destroy()
  497. end
  498. end
  499. else
  500. Prt:destroy()
  501. end
  502. end
  503. end
  504. end
  505. swait()
  506. end
  507. end))
  508.  
  509. function Effect(data)
  510. local FX = data.Effect or 'ResizeAndFade'
  511. local Parent = data.Parent or Effects
  512. local Color = data.Color or C3.N(0,0,0)
  513. local Size = data.Size or V3.N(1,1,1)
  514. local MoveDir = data.MoveDirection or nil
  515. local MeshData = data.Mesh or nil
  516. local SndData = data.Sound or nil
  517. local Frames = data.Frames or 45
  518. local Manual = data.Manual or nil
  519. local Material = data.Material or nil
  520. local CFra = data.CFrame or Torso.CFrame
  521. local Settings = data.FXSettings or {}
  522. local Shape = data.Shape or Enum.PartType.Block
  523. local Snd,Prt,Msh;
  524. coroutine.wrap(function()
  525. if(Manual and typeof(Manual) == 'Instance' and Manual:IsA'BasePart')then
  526. Prt = Manual
  527. else
  528. Prt = Part(Parent,Color,Material,Size,CFra,true,false)
  529. Prt.Shape = Shape
  530. end
  531. if(typeof(MeshData) == 'table')then
  532. Msh = Mesh(Prt,MeshData.MeshType,MeshData.MeshId,MeshData.TextureId,MeshData.Scale,MeshData.Offset)
  533. elseif(typeof(MeshData) == 'Instance')then
  534. Msh = MeshData:Clone()
  535. Msh.Parent = Prt
  536. elseif(Shape == Enum.PartType.Block)then
  537. Msh = Mesh(Prt,Enum.MeshType.Brick)
  538. end
  539. if(typeof(SndData) == 'table' or typeof(SndData) == 'Instance')then
  540. Snd = Sound(Prt,SndData.SoundId,SndData.Pitch,SndData.Volume,false,false,true)
  541. end
  542. if(Snd)then
  543. repeat swait() until Snd.Playing and Snd.IsLoaded and Snd.TimeLength > 0
  544. Frames = Snd.TimeLength * Frame_Speed/Snd.Pitch
  545. end
  546. Size = (Msh and Msh.Scale or Size)
  547. local grow = Size-(Settings.EndSize or (Msh and Msh.Scale or Size)/2)
  548.  
  549. local MoveSpeed = nil;
  550. if(MoveDir)then
  551. MoveSpeed = (CFra.p - MoveDir).magnitude/Frames
  552. end
  553. if(FX ~= 'Arc')then
  554. for Frame = 1, Frames do
  555. if(FX == "Fade")then
  556. Prt.Transparency = (Frame/Frames)
  557. elseif(FX == "Resize")then
  558. if(not Settings.EndSize)then
  559. Settings.EndSize = V3.N(0,0,0)
  560. end
  561. if(Settings.EndIsIncrement)then
  562. if(Msh)then
  563. Msh.Scale = Msh.Scale + Settings.EndSize
  564. else
  565. Prt.Size = Prt.Size + Settings.EndSize
  566. end
  567. else
  568. if(Msh)then
  569. Msh.Scale = Msh.Scale - grow/Frames
  570. else
  571. Prt.Size = Prt.Size - grow/Frames
  572. end
  573. end
  574. elseif(FX == "ResizeAndFade")then
  575. if(not Settings.EndSize)then
  576. Settings.EndSize = V3.N(0,0,0)
  577. end
  578. if(Settings.EndIsIncrement)then
  579. if(Msh)then
  580. Msh.Scale = Msh.Scale + Settings.EndSize
  581. else
  582. Prt.Size = Prt.Size + Settings.EndSize
  583. end
  584. else
  585. if(Msh)then
  586. Msh.Scale = Msh.Scale - grow/Frames
  587. else
  588. Prt.Size = Prt.Size - grow/Frames
  589. end
  590. end
  591. Prt.Transparency = (Frame/Frames)
  592. end
  593. if(Settings.RandomizeCFrame)then
  594. Prt.CFrame = Prt.CFrame * CF.A(M.RRNG(-360,360),M.RRNG(-360,360),M.RRNG(-360,360))
  595. end
  596. if(MoveDir and MoveSpeed)then
  597. local Orientation = Prt.Orientation
  598. Prt.CFrame = CF.N(Prt.Position,MoveDir)*CF.N(0,0,-MoveSpeed)
  599. Prt.Orientation = Orientation
  600. end
  601. swait()
  602. end
  603. Prt:destroy()
  604. else
  605. local start,third,fourth,endP = Settings.Start,Settings.Third,Settings.Fourth,Settings.End
  606. if(not Settings.End and Settings.Home)then endP = Settings.Home.CFrame end
  607. if(start and endP)then
  608. local quarter = third or start:lerp(endP, 0.25) * CF.N(M.RNG(-25,25),M.RNG(0,25),M.RNG(-25,25))
  609. local threequarter = fourth or start:lerp(endP, 0.75) * CF.N(M.RNG(-25,25),M.RNG(0,25),M.RNG(-25,25))
  610. for Frame = 0, 1, (Settings.Speed or 0.01) do
  611. if(Settings.Home)then
  612. endP = Settings.Home.CFrame
  613. end
  614. Prt.CFrame = Bezier(start, quarter, threequarter, endP, Frame)
  615. end
  616. if(Settings.RemoveOnGoal)then
  617. Prt:destroy()
  618. end
  619. else
  620. Prt:destroy()
  621. assert(start,"You need a start position!")
  622. assert(endP,"You need a start position!")
  623. end
  624. end
  625. end)()
  626. return Prt,Msh,Snd
  627. end
  628.  
  629.  
  630.  
  631. function SoulSteal(whom,human)
  632. local torso = (whom:FindFirstChild'Torso' or whom:FindFirstChild'UpperTorso' or whom:FindFirstChild'LowerTorso' or whom:FindFirstChild'HumanoidRootPart' or whom:FindFirstChild'Torso')
  633. local succ, health, alive = pcall(function() return whom:FindFirstChildOfClass'Humanoid'.Health, whom:FindFirstChildOfClass'Humanoid'.Health > 0 end)
  634. if(torso and torso:IsA'BasePart' and alive == true)then
  635. whom:FindFirstChildOfClass'Humanoid'.Health = 0
  636. whom:BreakJoints()
  637. local Model = IN("Model",Effects)
  638. warn('Soul stolen from '..whom.Name)
  639. Model.Name = whom.Name.."'s Soul"
  640. 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)
  641. Soul.CanCollide=false
  642. Mesh(Soul,Enum.MeshType.Sphere)
  643. Soul.Name = 'Head'
  644. if(whom.Name == 'CKbackup')then
  645. Soul.Color = C3.N(1,1,1)
  646. 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)})
  647. end
  648. local Hoom = NewInstance("Humanoid",Model,{MaxHealth=(health <= 10000 and health/2 or 10000),Health=(health <= 10000 and health/2 or 10000)})
  649. local AT0 = NewInstance("Attachment",Soul,{Position=V3.N(0,.5,0)})
  650. local AT1 = NewInstance("Attachment",Soul,{Position=V3.N(0,-.5,0)})
  651. 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})
  652. NewInstance("PointLight",Soul,{Color=Soul.Color,Range=10,Brightness=(human and 3 or .5)})
  653.  
  654. local turdso = Soul:Clone()
  655. turdso.Name = "Torso"
  656. turdso.CanCollide = false
  657. turdso.Anchored = true
  658. turdso.CFrame = Soul.CFrame
  659. turdso.Parent = Model
  660. turdso.Size = V3.N()
  661. turdso.Transparency=1
  662. local Distance = math.huge
  663. repeat
  664. Soul.CFrame = CF.N(Soul.Position,Torso.Position)*CF.N(0,0,-1)
  665. turdso.CFrame = Soul.CFrame
  666. Distance = (Soul.CFrame.p-Torso.CFrame.p).magnitude
  667. swait()
  668. until Hoom.Health <= 0 or not Soul.Parent or Distance <= 1.2
  669. if(Soul.Parent and Hoom.Health > 0)then
  670. Model:destroy()
  671. Effect{
  672. Effect="ResizeAndFade",
  673. Mesh={Enum.MeshType.Sphere},
  674. Color = Soul.Color,
  675. CFrame=Torso.CFrame,
  676. Size=V3.N(3,3,3),
  677. Material=Enum.Material.Neon,
  678. Sound={SoundId=444667859,Pitch=1,Volume=2.5},
  679. FXSettings={
  680. EndSize=V3.N(6,6,6),
  681. }
  682. }
  683. Souls = Souls + (human and 1 or .1)
  684. warn("Souls: "..Souls)
  685. MaxHealth = MaxHealth + Hoom.Health
  686. Hum.Health = Hum.Health + Hoom.Health
  687. for i = 1, 5 do
  688. Effect{
  689. Effect="Fade",
  690. Color = Soul.Color,
  691. MoveDirection = (Torso.CFrame*CFrame.new(M.RNG(-40,40),M.RNG(-40,40),M.RNG(-40,40))).p
  692. }
  693. end
  694. else
  695.  
  696. warn("Soul destroyed!")
  697. for i = 1, 5 do
  698. Effect{
  699. Effect="Fade",
  700. Color = Soul.Color,
  701. CFrame=Soul.CFrame,
  702. MoveDirection = (Soul.CFrame*CFrame.new(M.RNG(-40,40),M.RNG(-40,40),M.RNG(-40,40))).p
  703. }
  704. end
  705. Effect{
  706. Effect="ResizeAndFade",
  707. Mesh={Enum.MeshType.Sphere},
  708. Sound={SoundId=444667859,Pitch=1,Volume=5},
  709. Color = Soul.Color,
  710. CFrame=Soul.CFrame,
  711. Size=V3.N(3,3,3),
  712. Material=Enum.Material.Neon,
  713. FXSettings={
  714. EndSize=V3.N(6,6,6),
  715. }
  716. }
  717. Model:destroy()
  718. end
  719. end
  720. end
  721.  
  722. --// Other Functions \\ --
  723.  
  724. function getRegion(point,range,ignore)
  725. return workspace:FindPartsInRegion3WithIgnoreList(R3.N(point-V3.N(1,1,1)*range/2,point+V3.N(1,1,1)*range/2),ignore,100)
  726. end
  727.  
  728. function clerp(startCF,endCF,alpha)
  729. return startCF:lerp(endCF, alpha)
  730. end
  731.  
  732. function GetTorso(char)
  733. return char:FindFirstChild'Torso' or char:FindFirstChild'UpperTorso' or char:FindFirstChild'LowerTorso' or char:FindFirstChild'HumanoidRootPart'
  734. end
  735.  
  736. function ShowDamage(Pos, Text, Time, Color)
  737. coroutine.wrap(function()
  738. local Rate = (1 / Frame_Speed)
  739. local Pos = (Pos or Vector3.new(0, 0, 0))
  740. local Text = (Text or "")
  741. local Time = (Time or 2)
  742. local Color = (Color or Color3.new(1, 0, 1))
  743. local EffectPart = NewInstance("Part",Effects,{
  744. Material=Enum.Material.SmoothPlastic,
  745. Reflectance = 0,
  746. Transparency = 1,
  747. BrickColor = BrickColor.new(Color),
  748. Name = "Effect",
  749. Size = Vector3.new(0,0,0),
  750. Anchored = true,
  751. CFrame = CF.N(Pos)
  752. })
  753. local BillboardGui = NewInstance("BillboardGui",EffectPart,{
  754. Size = UDim2.new(1.25, 0, 1.25, 0),
  755. Adornee = EffectPart,
  756. })
  757. local TextLabel = NewInstance("TextLabel",BillboardGui,{
  758. BackgroundTransparency = 1,
  759. Size = UDim2.new(1, 0, 1, 0),
  760. Text = Text,
  761. Font = "Arcade",
  762. TextColor3 = Color,
  763. TextStrokeColor3 = Color3.new(0,0,0),
  764. TextStrokeTransparency=0,
  765. TextScaled = true,
  766. })
  767. S.Debris:AddItem(EffectPart, (Time))
  768. EffectPart.Parent = workspace
  769. delay(0, function()
  770. Tween(EffectPart,{CFrame=CF.N(Pos)*CF.N(0,3,0)},Time,Enum.EasingStyle.Elastic,Enum.EasingDirection.Out)
  771. local Frames = (Time / Rate)
  772. for Frame = 1, Frames do
  773. swait()
  774. local Percent = (Frame / Frames)
  775. TextLabel.TextTransparency = Percent
  776. TextLabel.TextStrokeTransparency = Percent
  777. end
  778. if EffectPart and EffectPart.Parent then
  779. EffectPart:Destroy()
  780. end
  781. end) end)()
  782. end
  783.  
  784. function Kill(whom)
  785. if(whom.Name ~= 'Nebula_Zorua')then
  786. local isPlr = Plrs:GetPlayerFromCharacter(whom) ~= nil
  787. coroutine.wrap(SoulSteal)(whom,isPlr)
  788. for _,v in next, whom:children() do
  789. if(v:IsA'BasePart')then
  790. v.Parent = Effects
  791. v:ClearAllChildren()
  792. v.Anchored = true
  793. v.CanCollide = false
  794. v.Transparency = 1
  795. local dust = NewInstance("ParticleEmitter",v,{
  796. Color = ColorSequence.new(C3.N(1,1,1)),
  797. LightEmission=0,
  798. LightInfluence=1,
  799. Size=NumberSequence.new{NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(1,0,0)},
  800. Texture="rbxassetid://284205403",
  801. Transparency=NumberSequence.new{NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,1,0)},
  802. Lifetime = NumberRange.new(1),
  803. Rate=150,
  804. Acceleration = V3.N(0,10,0),
  805. Speed = NumberRange.new(5),
  806. Enabled = true
  807. })
  808. delay(1, function()
  809. dust.Enabled = false
  810. S.Debris:AddItem(v,2)
  811. end)
  812. end
  813. end
  814. else
  815. warn"nope. nawt happenin'"
  816. end
  817. end
  818.  
  819. function DealDamage(who,minDam,maxDam,Knock,Type,critChance,critMult)
  820. if(who)then
  821. local hum = who:FindFirstChildOfClass'Humanoid'
  822. local Damage = M.RNG(minDam,maxDam)
  823. local canHit = true
  824. if(hum)then
  825. for _, p in pairs(Hit) do
  826. if p[1] == hum then
  827. if(time() - p[2] < 0.4) then
  828. canHit = false
  829. else
  830. Hit[_] = nil
  831. end
  832. end
  833. end
  834. if(canHit)then
  835. table.insert(Hit,{hum,time()})
  836. if(GetTorso(who))then
  837. Sound(GetTorso(who),406913243,1,10,false,true,true)
  838. end
  839. if(hum.Health >= math.huge)then
  840. Kill(who)
  841. if(who:FindFirstChild'Head' and hum.Health > 0)then
  842. 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)
  843. end
  844. else
  845. local player = S.Players:GetPlayerFromCharacter(who)
  846. if(Type == "Fire")then
  847. --idk..
  848. else
  849. local c = Instance.new("ObjectValue",hum)
  850. c.Name = "creator"
  851. c.Value = Plr
  852. game:service'Debris':AddItem(c,0.35)
  853. local Crit = false
  854. if(M.RNG(1,100) <= (critChance or 0) and critMult > 1)then
  855. Crit = true
  856. Damage = Damage*(critMult or 2)
  857. end
  858. Damage = Damage*((Souls/5)+1)
  859. if(who:FindFirstChild'Head' and hum.Health > 0)then
  860. 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))
  861. end
  862.  
  863. if(hum.Health - Damage <= 0)then
  864. Kill(who)
  865. else
  866. hum.Health = hum.Health - Damage
  867. if(Type == 'Knockback' and GetTorso(who))then
  868. local angle = GetTorso(who).Position - Root.Position + Vector3.new(0, 0, 0).unit
  869. local body = NewInstance('BodyVelocity',GetTorso(who),{
  870. P = 500,
  871. maxForce = V3.N(math.huge,0,math.huge),
  872. velocity = Root.CFrame.lookVector * Knock + Root.Velocity / 1.05
  873. })
  874. game:service'Debris':AddItem(body,.5)
  875. elseif(Type == "Electric")then
  876. if(M.RNG(1,100) >= critChance)then
  877. if(who:FindFirstChild'Head' and hum.Health > 0)then
  878. 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)
  879. end
  880. local asd = hum.WalkSpeed/2
  881. hum.WalkSpeed = asd
  882. local paralyzed = true
  883. coroutine.wrap(function()
  884. while paralyzed do
  885. swait(25)
  886. if(M.RNG(1,25) == 1)then
  887. if(who:FindFirstChild'Head' and hum.Health > 0)then
  888. 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)
  889. end
  890. hum.PlatformStand = true
  891. end
  892. end
  893. end)()
  894. delay(4, function()
  895. paralyzed = false
  896. hum.WalkSpeed = hum.WalkSpeed + asd
  897. end)
  898. end
  899.  
  900. elseif(Type == 'Knockdown' and GetTorso(who))then
  901. local rek = GetTorso(who)
  902. hum.PlatformStand = true
  903. delay(1,function()
  904. hum.PlatformStand = false
  905. end)
  906. local angle = (GetTorso(who).Position - (Root.Position + Vector3.new(0, 0, 0))).unit
  907. local bodvol = NewInstance("BodyVelocity",rek,{
  908. velocity = angle * Knock,
  909. P = 5000,
  910. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  911. })
  912. local rl = NewInstance("BodyAngularVelocity",rek,{
  913. P = 3000,
  914. maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
  915. angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
  916. })
  917. game:GetService("Debris"):AddItem(bodvol, .5)
  918. game:GetService("Debris"):AddItem(rl, .5)
  919. end
  920. end
  921. end
  922. end
  923. end
  924. end
  925. end
  926. end
  927.  
  928.  
  929. function AOEDamage(where,range,minDam,maxDam,Knock,Type,critChance,critMult)
  930. for _,v in next, getRegion(where,range,{Char}) do
  931. if(v.Name ~= 'Nebula_Zorua')then
  932. if(v.Parent and v.Parent:FindFirstChildOfClass'Humanoid')then
  933. DealDamage(v.Parent,minDam,maxDam,Knock,Type,critChance,critMult)
  934. end
  935. end
  936. end
  937. end
  938.  
  939. function AOEKill(where,range)
  940. for _,v in next, getRegion(where,range,{Char,Effects}) do
  941. local succ,alive = pcall(function() return v.Parent:FindFirstChildOfClass'Humanoid'.Health > 0 end)
  942. if(v.Name ~= 'Nebula_Zorua')then
  943. if(v.Parent and alive == true)then
  944. coroutine.wrap(Kill)(v.Parent)
  945. end
  946. end
  947. end
  948. end
  949.  
  950. function AOEHeal(where,range,amount)
  951. local healed = {}
  952. for _,v in next, getRegion(where,range,{Char}) do
  953. local hum = (v.Parent and v.Parent:FindFirstChildOfClass'Humanoid' or nil)
  954. if(hum and not healed[hum])then
  955. hum.Health = hum.Health + amount
  956. if(v.Parent:FindFirstChild'Head' and hum.Health > 0)then
  957. 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)
  958. end
  959. end
  960. end
  961. end
  962.  
  963.  
  964. --// Attack Functions \\--
  965.  
  966.  
  967. function Slash()
  968. Attack = true
  969. NeutralAnims = false
  970. local sound = Sound(Knife,437475935,1,5,false,true,false)
  971. for i = 0, 2, 0.1 do
  972. swait()
  973. local Alpha = .2
  974. 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)
  975. 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)
  976. 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)
  977. 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)
  978. 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)
  979. 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)
  980. HW.C0 = HW.C0:lerp(CF.N(0,-1,-1)*CF.A(M.R(-90),0,0),Alpha)
  981. end
  982. KTrail.Enabled = true
  983. sound:Play()
  984. for i = 0, 2.5, 0.1 do
  985. swait()
  986. AOEDamage(Knife.CFrame.p,1,15,30,0,"Normal",0,1)
  987. local Alpha = .25
  988. 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)
  989. 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)
  990. 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)
  991. 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)
  992. 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)
  993. 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)
  994. HW.C0 = HW.C0:lerp(CF.N(0,-1,-1)*CF.A(M.R(-90),0,0),Alpha)
  995. end
  996. KTrail.Enabled = false
  997. Attack = false
  998. NeutralAnims = true
  999. end
  1000.  
  1001. Mouse.Button1Down:connect(function()
  1002. if(Attack)then return end
  1003. Slash()
  1004. end)
  1005.  
  1006. Mouse.KeyDown:connect(function(k)
  1007. if(Attack)then return end
  1008. if(k == 'z')then AOEKill(Root.CFrame.p,25) end -- TODO: Animation and effects
  1009. if(k == 'q')then WalkSpeed = (WalkSpeed == 8 and 32 or 8) end
  1010. end)
  1011.  
  1012.  
  1013. function Refuse()
  1014. Attack = true
  1015. warn("B u t i t r e f u s e d.")
  1016. local oMH = MaxHealth
  1017. MaxHealth = "inf"
  1018. Hum.MaxHealth = "inf"
  1019. Hum.Health = "inf"
  1020. Char.Parent = nil
  1021. Hum:destroy()
  1022. if(not _G.RefusedAnimation)then
  1023. _G.RefusedAnimation = true
  1024.  
  1025.  
  1026. local Soul;
  1027. function Soul(where,decalId)
  1028. local destroy = false
  1029. local soul = NewInstance("Part",workspace)
  1030. soul.Name = "Soul"
  1031. soul.Transparency=1
  1032. soul.Size = V3.N(2,2,.05)
  1033. soul.Anchored=true
  1034. soul.CanCollide=false
  1035. soul.CFrame = where
  1036. local heartF = NewInstance("Decal",soul,{Face=Enum.NormalId.Front,Texture="rbxassetid://"..decalId})
  1037. local heartB = NewInstance("Decal",soul,{Face=Enum.NormalId.Back,Texture="rbxassetid://"..decalId})
  1038. return soul,heartF,heartB
  1039. end
  1040. local owo = Root.CFrame
  1041. local s,f,b = Soul(owo,1569347904)
  1042. swait(60)
  1043. local snd = Sound(s,862552636,1,5,false,false,false)
  1044. snd:Play()
  1045. f.Texture = "rbxassetid://1569348344"
  1046. b.Texture = "rbxassetid://1569348344"
  1047. swait(15)
  1048. snd:Stop()
  1049. swait(60)
  1050. print'lol'
  1051. for i = 0, 6, .1 do
  1052. swait()
  1053. s.CFrame = owo * CF.N(M.RNG(-50,50)/100,M.RNG(-50,50)/100,M.RNG(-50,50)/100)
  1054. end
  1055. local snd = Sound(s,862552636,1,5,false,false,false)
  1056. snd:Play()
  1057. s.CFrame = owo
  1058. f.Texture = "rbxassetid://1569347904"
  1059. b.Texture = "rbxassetid://1569347904"
  1060. swait(15)
  1061. snd:Stop()
  1062. swait(60)
  1063.  
  1064. s:destroy()
  1065. end
  1066.  
  1067. RJ.Parent = Char
  1068. LS.Parent = Char
  1069. RS.Parent = Char
  1070. LH.Parent = Char
  1071. RH.Parent = Char
  1072. NK.Parent = Char
  1073.  
  1074. LArm.Parent = Char
  1075. RArm.Parent = Char
  1076. LLeg.Parent = Char
  1077. LArm.Parent = Char
  1078. Root.Parent = Char
  1079. Torso.Parent = Char
  1080. Head.Parent = Char
  1081.  
  1082. Knife.Parent = Char
  1083.  
  1084. HW.Parent = Char
  1085.  
  1086.  
  1087. REye:destroy()
  1088. LEye:destroy()
  1089.  
  1090. for _,v in next, Char:children() do
  1091. if(v.Name == 'ShadowFace')then v:destroy() end
  1092. end
  1093. LEye = Part(Char,C3.N(1,0,0),Enum.Material.Neon,V3.N(.15,.25,.2),CF.N(),false,false)
  1094. LEyeM = Mesh(LEye,Enum.MeshType.Sphere,"","",V3.N(1,1,1),V3.N())
  1095. LEyeW = NewInstance("Weld",LEye,{Part0=Head,Part1=LEye,C0=CF.N(-.2,.2,-.49)})
  1096.  
  1097. REye = Part(Char,C3.N(1,0,0),Enum.Material.Neon,V3.N(.15,.25,.2),CF.N(),false,false)
  1098. REyeM = Mesh(REye,Enum.MeshType.Sphere,"","",V3.N(1,1,1),V3.N())
  1099. REyeW = NewInstance("Weld",REye,{Part0=Head,Part1=REye,C0=CF.N(.2,.2,-.49)})
  1100. for i = 1, 35 do
  1101. local FACE = Part(Char,C3.N(0,0,0),Enum.Material.Neon,V3.N(1.01,.5,1.01),CF.N(),false,false)
  1102. FACE.Transparency = 0+(i-1)/35.2
  1103. FACE.Name = 'ShadowFace'
  1104. Head:FindFirstChildOfClass("SpecialMesh"):Clone().Parent = FACE
  1105. NewInstance("Weld",Head,{Part0=Head,Part1=FACE,C0=CF.N(0,.35-(i-1)/75,0)})
  1106. --CreateWeldOrSnapOrMotor("Weld", Head, Head, FACE, CF(0,0.35-(i-1)/75,0), CF(0, 0, 0))
  1107. end
  1108. Hum = NewInstance("Humanoid",Char,{DisplayDistanceType='None'})
  1109. ConnectHum()
  1110. MaxHealth = oMH
  1111. Hum.MaxHealth = MaxHealth
  1112. Hum.Health = MaxHealth
  1113. swait(5)
  1114. Char.Parent = workspace
  1115.  
  1116. Attack = false
  1117. end
  1118.  
  1119. function ConnectHum()
  1120. Hum.Died:connect(Refuse)
  1121. end
  1122. ConnectHum()
  1123.  
  1124.  
  1125. --// Wrap it all up \\--
  1126. while true do
  1127. swait()
  1128. Sine = Sine + Change
  1129. if(not Music)then
  1130. Music = Sound(Torso,MusicID,1,3,true,false,true)
  1131. Music.Name = 'Music'
  1132. end
  1133. Music.Pitch = 1
  1134. Music.Volume = 5
  1135. Music.SoundId = "rbxassetid://"..MusicID
  1136. Music.Parent = Torso
  1137. Music:Resume()
  1138. 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)
  1139. local Walking = (math.abs(Root.Velocity.x) > 1 or math.abs(Root.Velocity.z) > 1)
  1140. 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")
  1141. if(not Effects or not Effects.Parent)then
  1142. Effects = IN("Model",Char)
  1143. Effects.Name = "Effects"
  1144. end
  1145. Hum.WalkSpeed = WalkSpeed
  1146. if(State == 'Walk')then
  1147. if(Hum.WalkSpeed >= 24)then
  1148. local wsVal = 22 / (Hum.WalkSpeed/16)
  1149. local Alpha = math.min(.1 * (Hum.WalkSpeed/16),1)
  1150. Change = 2
  1151. 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)
  1152. 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)
  1153. else
  1154. Change = .9
  1155. local wsVal = 8 / (Hum.WalkSpeed/8)
  1156. local Alpha = math.min(.2 * (Hum.WalkSpeed/8),1)
  1157. 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)
  1158. 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)
  1159. end
  1160. else
  1161. RH.C1 = RH.C1:lerp(CF.N(0,1,0),.1)
  1162. LH.C1 = LH.C1:lerp(CF.N(0,1,0),.1)
  1163. end
  1164. for _,v in next, Char:children() do
  1165. if(v:IsA'Accessory')then
  1166. v:destroy()
  1167. elseif(v:IsA'Shirt')then
  1168. v.ShirtTemplate = "rbxassetid://771119925"
  1169. elseif(v:IsA'Pants')then
  1170. v.PantsTemplate = "rbxassetid://344084364"
  1171. elseif(v:IsA'CharacterMesh')then
  1172. v:destroy()
  1173. elseif(v:FindFirstChildOfClass'ShirtGraphic')then
  1174. v:FindFirstChildOfClass'ShirtGraphic':destroy()
  1175. end
  1176. end
  1177. local face = Head:FindFirstChild'face'
  1178. if(not face)then
  1179. NewInstance("Decal",Head,{Name='face',Face=Enum.NormalId.Front,Texture="rbxassetid://404306534"})
  1180. else
  1181. face.Texture = "rbxassetid://404306534"
  1182. end
  1183. RArm.BrickColor = BrickColor.new'Really black'
  1184. LArm.BrickColor = BrickColor.new'Really black'
  1185. RLeg.BrickColor = BrickColor.new'Really black'
  1186. LLeg.BrickColor = BrickColor.new'Really black'
  1187. Torso.BrickColor = BrickColor.new'Really black'
  1188. Head.BrickColor = BrickColor.new'Really black'
  1189. Hum.Name = 'VIRABOT'
  1190. if(Hum.MaxHealth ~= MaxHealth)then
  1191. Hum.MaxHealth = MaxHealth
  1192. end
  1193. Hum.DisplayDistanceType='None'
  1194. if(NeutralAnims)then
  1195. if(State == 'Idle')then
  1196. Change = 1
  1197. local Alpha = .1
  1198. Hum.JumpPower = 50
  1199. RJ.C0 = RJ.C0:lerp(RJC0*CF.N(0,-.1*M.C(Sine/16),0)*CF.A(M.R(0-10*M.C(Sine/16)),0,0),Alpha)
  1200. NK.C0 = NK.C0:lerp(NKC0,Alpha)
  1201. LH.C0 = LH.C0:lerp(LHC0*CF.N(0,.1*M.C(Sine/16),0)*CF.A(M.R(0+10*M.C(Sine/16)),0,0),Alpha)
  1202. RH.C0 = RH.C0:lerp(RHC0*CF.N(0,.1*M.C(Sine/16),0)*CF.A(M.R(0+10*M.C(Sine/16)),0,0),Alpha)
  1203. LS.C0 = LS.C0:lerp(LSC0*CF.A(M.R(0-5*M.C(Sine/16)),0,M.R(0-15*M.C(Sine/16))),Alpha)
  1204. RS.C0 = RS.C0:lerp(RSC0*CF.A(M.R(0-5*M.C(Sine/16)),0,M.R(0+15*M.C(Sine/16))),Alpha)
  1205. -- idle
  1206. elseif(State == 'Walk')then
  1207. if(Hum.WalkSpeed >= 24)then
  1208. local wsVal = 22 / (Hum.WalkSpeed/16)
  1209. local Alpha = math.min(.2 * (Hum.WalkSpeed/16),1)
  1210. RJ.C0 = RJ.C0:lerp(CF.N(0,0-.1*M.C(Sine/(wsVal/2)),0)*CF.A(M.R(0-10*M.C(Sine/wsVal)),M.R(0-5*M.S(Sine/wsVal)/2),0),Alpha)
  1211. 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(-10)),Alpha)
  1212. 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(10)),Alpha)
  1213. NK.C0 = NK.C0:lerp(NKC0,Alpha)
  1214. LH.C0 = LH.C0:lerp(LHC0*CF.N(0,0+.1*M.C(Sine/(wsVal/2)),0)*CF.A(M.R(0+10*M.C(Sine/wsVal)),0,0),Alpha)
  1215. RH.C0 = RH.C0:lerp(RHC0*CF.N(0,0+.1*M.C(Sine/(wsVal/2)),0)*CF.A(M.R(0+10*M.C(Sine/wsVal)),0,0),Alpha)
  1216. else
  1217. local wsVal = 8 / (Hum.WalkSpeed/8)
  1218. local Alpha = math.min(.2 * (Hum.WalkSpeed/8),1)
  1219. 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)
  1220. 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)
  1221. 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)
  1222. NK.C0 = NK.C0:lerp(NKC0,Alpha)
  1223. LH.C0 = LH.C0:lerp(LHC0*CF.N(0,0+.05*M.C(Sine/(wsVal/2)),0),Alpha)
  1224. RH.C0 = RH.C0:lerp(RHC0*CF.N(0,0+.05*M.C(Sine/(wsVal/2)),0),Alpha)
  1225. HW.C0 = HW.C0:lerp(CF.N(0,-1,-1)*CF.A(M.R(-90),0,0),Alpha)
  1226. end
  1227. elseif(State == 'Jump' or State == 'Fall')then
  1228. if(Walking)then
  1229. local Alpha = .2
  1230. 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)
  1231. 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)
  1232. 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)
  1233. 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)
  1234. 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)
  1235. 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)
  1236. HW.C0 = HW.C0:lerp(CF.N(0,-1,-1)*CF.A(M.R(-90),0,0),Alpha)
  1237. else
  1238. local Alpha = .2
  1239. 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)
  1240. 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)
  1241. 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)
  1242. 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)
  1243. 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)
  1244. 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)
  1245. HW.C0 = HW.C0:lerp(CF.N(0,-1,-1)*CF.A(M.R(-90),0,0),Alpha)
  1246. end
  1247. elseif(State == 'Paralyzed')then
  1248. -- paralyzed
  1249. elseif(State == 'Sit')then
  1250. -- sit
  1251. end
  1252. end
  1253. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement