Advertisement
Guest User

g0pnik

a guest
May 23rd, 2018
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 61.37 KB | None | 0 0
  1. -- Created by Nebula_Zorua --
  2. -- The Distorted --
  3. -- Or 13 V2, if you will. I'm officially calling it The Distorted though --
  4. -- Discord: Nebula the Zorua#6969
  5. -- Youtube: https://www.youtube.com/channel/UCo9oU9dCw8jnuVLuy4_SATA
  6.  
  7. --// Initializing \\--
  8. local S = setmetatable({},{__index = function(s,i) return game:service(i) end})
  9. local Plrs = S.Players
  10. local Plr = Plrs.LocalPlayer
  11. local Char = Plr.Character
  12. Char.Head.face:Destroy()
  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 Debounces = {Debounces={}}
  25. local Mouse = Plr:GetMouse()
  26. local Hit = {}
  27. local Sine = 0
  28. local Change = 1
  29. local WasAir = false
  30. local InAir = false
  31. local LandTick = 0;
  32. local WalkSpeed = 50
  33. local StepTick = 0;
  34. local Muted = false
  35.  
  36. It = Instance.new
  37. Cf = CFrame.new
  38. Vt = Vector3.new
  39. Rad = math.rad
  40. c3 = Color3.new
  41. Ud2 = UDim2.new
  42. BrickC = BrickColor.new
  43. Angles = CFrame.Angles
  44. Euler = CFrame.fromEulerAnglesXYZ
  45. COs = math.cos
  46. ACOs = math.acos
  47. Sin = math.sin
  48. ASin = math.asin
  49. ABs = math.abs
  50. MRANDom = math.random
  51. FLOor = math.floor
  52. Player = game:GetService("Players").LocalPlayer
  53. PlayerGui = Player.PlayerGui
  54. Cam = workspace.CurrentCamera
  55. Backpack = Player.Backpack
  56. Character = Player.Character
  57. Humanoid = Character.Humanoid
  58. Mouse = Player:GetMouse()
  59. RootPart = Character["HumanoidRootPart"]
  60. Torso = Character["Torso"]
  61. Head = Character["Head"]
  62. RightArm = Character["Right Arm"]
  63. LeftArm = Character["Left Arm"]
  64. RightLeg = Character["Right Leg"]
  65. LeftLeg = Character["Left Leg"]
  66. RootJoint = RootPart["RootJoint"]
  67. Neck = Torso["Neck"]
  68. RightShoulder = Torso["Right Shoulder"]
  69. LeftShoulder = Torso["Left Shoulder"]
  70. RightHip = Torso["Right Hip"]
  71. LeftHip = Torso["Left Hip"]
  72.  
  73.  
  74. local Effects = Instance.new("Folder",Char)
  75. Effects.Name = "Effects"
  76. --// Debounce System \\--
  77.  
  78.  
  79. function Debounces:New(name,cooldown)
  80. local aaaaa = {Usable=true,Cooldown=cooldown or 2,CoolingDown=false,LastUse=0}
  81. setmetatable(aaaaa,{__index = Debounces})
  82. Debounces.Debounces[name] = aaaaa
  83. return aaaaa
  84. end
  85.  
  86. function Debounces:Use(overrideUsable)
  87. assert(self.Usable ~= nil and self.LastUse ~= nil and self.CoolingDown ~= nil,"Expected ':' not '.' calling member function Use")
  88. if(self.Usable or overrideUsable)then
  89. self.Usable = false
  90. self.CoolingDown = true
  91. local LastUse = time()
  92. self.LastUse = LastUse
  93. delay(self.Cooldown or 2,function()
  94. if(self.LastUse == LastUse)then
  95. self.CoolingDown = false
  96. self.Usable = true
  97. end
  98. end)
  99. end
  100. end
  101.  
  102. function Debounces:Get(name)
  103. assert(typeof(name) == 'string',("bad argument #1 to 'get' (string expected, got %s)"):format(typeof(name) == nil and "no value" or typeof(name)))
  104. for i,v in next, Debounces.Debounces do
  105. if(i == name)then
  106. return v;
  107. end
  108. end
  109. end
  110.  
  111. function Debounces:GetProgressPercentage()
  112. assert(self.Usable ~= nil and self.LastUse ~= nil and self.CoolingDown ~= nil,"Expected ':' not '.' calling member function Use")
  113. if(self.CoolingDown and not self.Usable)then
  114. return math.max(
  115. math.floor(
  116. (
  117. (time()-self.LastUse)/self.Cooldown or 2
  118. )*100
  119. )
  120. )
  121. else
  122. return 100
  123. end
  124. end
  125.  
  126. --// Shortcut Variables \\--
  127. local Co3 = Color3.new
  128. local CF = {N=CFrame.new,A=CFrame.Angles,fEA=CFrame.fromEulerAnglesXYZ}
  129. local C3 = {N=Color3.new,RGB=Color3.fromRGB,HSV=Color3.fromHSV,tHSV=Color3.toHSV}
  130. local V3 = {N=Vector3.new,FNI=Vector3.FromNormalId,A=Vector3.FromAxis}
  131. 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}
  132. local R3 = {N=Region3.new}
  133. local De = S.Debris
  134. local WS = workspace
  135. local Lght = S.Lighting
  136. local RepS = S.ReplicatedStorage
  137. local IN = Instance.new
  138. --// Instance Creation Functions \\--
  139.  
  140. --
  141.  
  142. function Sound(parent,id,pitch,volume,looped,effect,autoPlay)
  143. local Sound = IN("Sound")
  144. Sound.SoundId = "rbxassetid://".. tostring(id or 0)
  145. Sound.Pitch = pitch or 1
  146. Sound.Volume = volume or 1
  147. Sound.Looped = looped or false
  148. if(autoPlay)then
  149. coroutine.wrap(function()
  150. repeat wait() until Sound.IsLoaded
  151. Sound.Playing = autoPlay or false
  152. end)()
  153. end
  154. if(not looped and effect)then
  155. Sound.Stopped:connect(function()
  156. Sound.Volume = 0
  157. Sound:destroy()
  158. end)
  159. elseif(effect)then
  160. warn("Sound can't be looped and a sound effect!")
  161. end
  162. Sound.Parent =parent or Torso
  163. return Sound
  164. end
  165.  
  166. function SoundPart(id,pitch,volume,looped,effect,autoPlay,cf)
  167. local soundPart = NewInstance("Part",Effects,{Transparency=1,CFrame=cf or Torso.CFrame,Anchored=true,CanCollide=false,Size=V3.N()})
  168. local Sound = IN("Sound")
  169. Sound.SoundId = "rbxassetid://".. tostring(id or 0)
  170. Sound.Pitch = pitch or 1
  171. Sound.Volume = volume or 1
  172. Sound.Looped = looped or false
  173. if(autoPlay)then
  174. coroutine.wrap(function()
  175. repeat wait() until Sound.IsLoaded
  176. Sound.Playing = autoPlay or false
  177. end)()
  178. end
  179. if(not looped and effect)then
  180. Sound.Stopped:connect(function()
  181. Sound.Volume = 0
  182. soundPart:destroy()
  183. end)
  184. elseif(effect)then
  185. warn("Sound can't be looped and a sound effect!")
  186. end
  187. Sound.Parent = soundPart
  188. return Sound
  189. end
  190.  
  191. function Part(parent,color,material,size,cframe,anchored,cancollide)
  192. local part = IN("Part")
  193. part[typeof(color) == 'BrickColor' and 'BrickColor' or 'Color'] = color or C3.N(0,0,0)
  194. part.Material = material or Enum.Material.Neon
  195. part.TopSurface,part.BottomSurface=10,10
  196. part.Size = size or V3.N(1,1,1)
  197. part.CFrame = cframe or CF.N(0,0,0)
  198. part.Anchored = anchored or true
  199. part.CanCollide = cancollide or false
  200. part.Parent = parent or Char
  201. return part
  202. end
  203. function Mesh(parent,meshtype,meshid,textid,scale,offset)
  204. local part = IN("SpecialMesh")
  205. part.MeshId = meshid or ""
  206. part.TextureId = textid or ""
  207. part.Scale = scale or V3.N(1,1,1)
  208. part.Offset = offset or V3.N(0,0,0)
  209. part.MeshType = meshtype or Enum.MeshType.Sphere
  210. part.Parent = parent
  211. return part
  212. end
  213.  
  214. NewInstance = function(instance,parent,properties)
  215. local inst = Instance.new(instance)
  216. inst.Parent = parent
  217. if(properties)then
  218. for i,v in next, properties do
  219. pcall(function() inst[i] = v end)
  220. end
  221. end
  222. return inst;
  223. end
  224.  
  225. function Clone(instance,parent,properties)
  226. local inst = instance:Clone()
  227. inst.Parent = parent
  228. if(properties)then
  229. for i,v in next, properties do
  230. pcall(function() inst[i] = v end)
  231. end
  232. end
  233. return inst;
  234. end
  235.  
  236. -- thanks shack im lazy lol
  237. local Prtcl = IN("ParticleEmitter",nil)
  238. Prtcl.Enabled = false
  239. Prtcl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1),NumberSequenceKeypoint.new(0.3,0.95),NumberSequenceKeypoint.new(1,1)})
  240. Prtcl.LightEmission = 0
  241. Prtcl.Rate = 999
  242. Prtcl.ZOffset = 1
  243. Prtcl.Rotation = NumberRange.new(-180, 180)
  244. Prtcl.RotSpeed = NumberRange.new(-180, 180)
  245. Prtcl.Texture = "rbxassetid://304437537"
  246. Prtcl.Color = ColorSequence.new(Co3(1,1,1),Co3(1,1,0))
  247.  
  248. function Particle(Table) -- thanks shack im STILL lazy
  249. local PRTCL = Prtcl:Clone()
  250. local Speed = Table.Speed or 5
  251. local Drag = Table.Drag or 0
  252. local Size1 = Table.Size1 or 1
  253. local Size2 = Table.Size2 or 5
  254. local Lifetime1 = Table.Lifetime1 or 1
  255. local Lifetime2 = Table.Lifetime2 or 1.5
  256. local Parent = Table.Parent or Torso
  257. local Emit = Table.Emit or 100
  258. local Offset = Table.Offset or 360
  259. local Acel = Table.Acel or V3.N(0,0,0)
  260. local Enabled = Table.Enabled or false
  261. local Texture = Table.Texture or "rbxasset://textures/particles/fire_main.dds"
  262. local Locked = Table.Locked or false
  263. PRTCL.Parent = Parent
  264. PRTCL.LockedToPart = Locked
  265. PRTCL.Size = NumberSequence.new(Size1,Size2)
  266. PRTCL.Lifetime = NumberRange.new(Lifetime1,Lifetime2)
  267. PRTCL.Speed = NumberRange.new(Speed)
  268. PRTCL.VelocitySpread = Offset
  269. PRTCL.Drag = Drag
  270. PRTCL.Acceleration = Acel
  271. PRTCL.Texture = Texture
  272. PRTCL.Rate = Emit
  273. if Enabled == false then
  274. PRTCL:Emit(Emit)
  275. S.Debris:AddItem(PRTCL,Lifetime2)
  276. else
  277. PRTCL.Enabled = true
  278. end
  279. return PRTCL
  280. end
  281.  
  282.  
  283. --// Extended ROBLOX tables \\--
  284. 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})
  285. --// Customization \\--
  286.  
  287. local Frame_Speed = 60 -- The frame speed for swait. 1 is automatically divided by this
  288. local Remove_Hats = false
  289. local Remove_Clothing = false
  290. local PlayerSize = 1
  291. local DamageColor = BrickColor.new'Really black'
  292. local MusicID = 455111661
  293.  
  294. --// Weapon and GUI creation, and Character Customization \\--
  295.  
  296. if(Remove_Hats)then Instance.ClearChildrenOfClass(Char,"Accessory",true) end
  297. if(Remove_Clothing)then Instance.ClearChildrenOfClass(Char,"Clothing",true) Instance.ClearChildrenOfClass(Char,"ShirtGraphic",true) end
  298.  
  299. Hum.DisplayDistanceType = 'None'
  300.  
  301. local naeeym2 = IN("BillboardGui",Char)
  302. naeeym2.AlwaysOnTop = true
  303. naeeym2.Size = UDim2.new(5,35,2,15)
  304. naeeym2.StudsOffset = V3.N(0,2.5,0)
  305. naeeym2.Adornee = Char.Head
  306. naeeym2.Name = "Name"
  307. local tecks2 = IN("TextLabel",naeeym2)
  308. tecks2.BackgroundTransparency = 1
  309. tecks2.TextScaled = true
  310. tecks2.BorderSizePixel = 0
  311. tecks2.Text = "G0pnik"
  312. tecks2.Font = Enum.Font.Bodoni
  313. tecks2.TextSize = 30
  314. tecks2.TextStrokeTransparency = 0
  315. tecks2.TextColor3 = C3.N(.5,.5,.5)
  316. tecks2.TextStrokeColor3 = C3.N(1,1,1)
  317. tecks2.Size = UDim2.new(1,0,0.5,0)
  318. tecks2.Parent = naeeym2
  319.  
  320. New = function(Object, Parent, Name, Data)
  321. local Object = Instance.new(Object)
  322. for Index, Value in pairs(Data or {}) do
  323. Object[Index] = Value
  324. end
  325. Object.Parent = Parent
  326. Object.Name = Name
  327. return Object
  328. end
  329.  
  330. Bone = New("Part",Char,"Bone",{BrickColor = BrickColor.new("Institutional white"),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),})
  331. 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),})
  332. Bone = New("Part",Char,"Bone",{BrickColor = BrickColor.new("Institutional white"),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),})
  333. 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),})
  334. Blood = New("Part",Char,"Blood",{BrickColor = BrickColor.new("Maroon"),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),})
  335. 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),})
  336. Corruption = New("Part",Char,"Corruption",{BrickColor = BrickColor.new("Institutional white"),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),})
  337. 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),})
  338. Blood = New("Part",Char,"Blood",{BrickColor = BrickColor.new("Maroon"),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),})
  339. 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),})
  340. Bone = New("Part",Char,"Bone",{BrickColor = BrickColor.new("Institutional white"),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),})
  341. 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),})
  342.  
  343. Corruption = New("Part",Char,"Corruption",{BrickColor = BrickColor.new("Institutional white"),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),})
  344. 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),})
  345. Corruption = New("Part",Char,"Corruption",{BrickColor = BrickColor.new("Institutional white"),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),})
  346. 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),})
  347.  
  348. Corruption = New("Part",Char,"Corruption",{BrickColor = BrickColor.new("Institutional white"),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),})
  349. 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),})
  350. Corruption = New("Part",Char,"Corruption",{BrickColor = BrickColor.new("Institutional white"),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),})
  351. 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),})
  352. Corruption = New("Part",Char,"Corruption",{BrickColor = BrickColor.new("Institutional white"),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),})
  353. 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),})
  354. Corruption = New("Part",Char,"Corruption",{BrickColor = BrickColor.new("Institutional white"),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),})
  355. 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),})
  356. Corruption = New("Part",Char,"Corruption",{BrickColor = BrickColor.new("Institutional white"),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),})
  357. 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),})
  358. Corruption = New("Part",Char,"Corruption",{BrickColor = BrickColor.new("Institutional white"),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),})
  359. 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),})
  360. Corruption = New("Part",Char,"Corruption",{BrickColor = BrickColor.new("Institutional white"),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),})
  361. 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),})
  362. Corruption = New("Part",Char,"Corruption",{BrickColor = BrickColor.new("Institutional white"),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),})
  363. 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),})
  364.  
  365. Corruption = New("Part",Char,"Corruption",{BrickColor = BrickColor.new("Institutional white"),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),})
  366. 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),})
  367.  
  368. Corruption = New("Part",Char,"Corruption",{BrickColor = BrickColor.new("Institutional white"),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),})
  369. mot = New("Motor",Corruption,"mot",{Part0 = Corruption,Part1 = RArm,C0 = CFrame.new(0, 0, 0),})
  370.  
  371. for _,v in next, Char:children() do
  372. if(v.Name == 'Left Leg' or v.Name == 'Right Leg' or v.Name == 'Torso' or v.Name == 'Left Arm' or v.Name == 'Right Arm')then
  373. Particle{Texture="rbxassetid://243660373",Locked=false,Speed=0.1,Drag=3,Size1=1,Size2=1,Lifetime1=1,Lifetime2=1,Parent=v,Emit=999,Offset=0,Enabled=true}
  374. end
  375. end
  376.  
  377. RArm.Transparency = 1
  378.  
  379. local Music = Sound(Char,MusicID,1,3,true,false,true)
  380. Music.Name = 'Cheeki Breeki Hardbass'
  381.  
  382. --// Stop animations \\--
  383. for _,v in next, Hum:GetPlayingAnimationTracks() do
  384. v:Stop();
  385. end
  386.  
  387. pcall(game.Destroy,Char:FindFirstChild'Animate')
  388. pcall(game.Destroy,Hum:FindFirstChild'Animator')
  389.  
  390. --// Joints \\--
  391.  
  392. 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)})
  393. 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)})
  394. local NK = NewInstance('Motor',Char,{Part0=Torso,Part1=Head,C0 = CF.N(0,1.5 * PlayerSize,0)})
  395. local LH = NewInstance('Motor',Char,{Part0=Torso,Part1=LLeg,C0 = CF.N(-.5 * PlayerSize,-1 * PlayerSize,0),C1 = CF.N(0,1 * PlayerSize,0)})
  396. local RH = NewInstance('Motor',Char,{Part0=Torso,Part1=RLeg,C0 = CF.N(.5 * PlayerSize,-1 * PlayerSize,0),C1 = CF.N(0,1 * PlayerSize,0)})
  397. local RJ = NewInstance('Motor',Char,{Part0=Root,Part1=Torso})
  398.  
  399. local LSC0 = LS.C0
  400. local RSC0 = RS.C0
  401. local NKC0 = NK.C0
  402. local LHC0 = LH.C0
  403. local RHC0 = RH.C0
  404. local RJC0 = RJ.C0
  405.  
  406. --// Artificial HB \\--
  407.  
  408. local ArtificialHB = IN("BindableEvent", script)
  409. ArtificialHB.Name = "Heartbeat"
  410.  
  411. script:WaitForChild("Heartbeat")
  412.  
  413. local tf = 0
  414. local allowframeloss = false
  415. local tossremainder = false
  416. local lastframe = tick()
  417. local frame = 1/Frame_Speed
  418. ArtificialHB:Fire()
  419.  
  420. game:GetService("RunService").Heartbeat:connect(function(s, p)
  421. tf = tf + s
  422. if tf >= frame then
  423. if allowframeloss then
  424. script.Heartbeat:Fire()
  425. lastframe = tick()
  426. else
  427. for i = 1, math.floor(tf / frame) do
  428. ArtificialHB:Fire()
  429. end
  430. lastframe = tick()
  431. end
  432. if tossremainder then
  433. tf = 0
  434. else
  435. tf = tf - frame * math.floor(tf / frame)
  436. end
  437. end
  438. end)
  439.  
  440. function swait(num)
  441. if num == 0 or num == nil then
  442. ArtificialHB.Event:wait()
  443. else
  444. for i = 0, num do
  445. ArtificialHB.Event:wait()
  446. end
  447. end
  448. end
  449.  
  450.  
  451. --// Effect Function(s) \\--
  452.  
  453. function Bezier(startpos, pos2, pos3, endpos, t)
  454. local A = startpos:lerp(pos2, t)
  455. local B = pos2:lerp(pos3, t)
  456. local C = pos3:lerp(endpos, t)
  457. local lerp1 = A:lerp(B, t)
  458. local lerp2 = B:lerp(C, t)
  459. local cubic = lerp1:lerp(lerp2, t)
  460. return cubic
  461. end
  462.  
  463. function Zap(data)
  464. local sCF,eCF = data.StartCFrame,data.EndCFrame
  465. assert(sCF,"You need a start CFrame!")
  466. assert(eCF,"You need an end CFrame!")
  467. local parts = data.PartCount or 15
  468. local zapRot = data.ZapRotation or {-5,5}
  469. local startThick = data.StartSize or 3;
  470. local endThick = data.EndSize or startThick/2;
  471. local color = data.Color or BrickColor.new'Electric blue'
  472. local delay = data.Delay or 35
  473. local delayInc = data.DelayInc or 0
  474. local lastLightning;
  475. local MagZ = (sCF.p - eCF.p).magnitude
  476. local thick = startThick
  477. local inc = (startThick/parts)-(endThick/parts)
  478.  
  479. for i = 1, parts do
  480. local pos = sCF.p
  481. if(lastLightning)then
  482. pos = lastLightning.CFrame*CF.N(0,0,MagZ/parts/2).p
  483. end
  484. delay = delay + delayInc
  485. local zapPart = Part(Effects,color,Enum.Material.Neon,V3.N(thick,thick,MagZ/parts),CF.N(pos),true,false)
  486. local posie = CF.N(pos,eCF.p)*CF.N(0,0,MagZ/parts).p+V3.N(M.RNG(unpack(zapRot)),M.RNG(unpack(zapRot)),M.RNG(unpack(zapRot)))
  487. if(parts == i)then
  488. local MagZ = (pos-eCF.p).magnitude
  489. zapPart.Size = V3.N(endThick,endThick,MagZ)
  490. zapPart.CFrame = CF.N(pos, eCF.p)*CF.N(0,0,-MagZ/2)
  491. Effect{Effect='ResizeAndFade',Size=V3.N(thick,thick,thick),CFrame=eCF*CF.A(M.RRNG(-180,180),M.RRNG(-180,180),M.RRNG(-180,180)),Color=color,Frames=delay*2,FXSettings={EndSize=V3.N(thick*8,thick*8,thick*8)}}
  492. else
  493. zapPart.CFrame = CF.N(pos,posie)*CF.N(0,0,MagZ/parts/2)
  494. end
  495.  
  496. lastLightning = zapPart
  497. Effect{Effect='Fade',Manual=zapPart,Frames=delay}
  498.  
  499. thick=thick-inc
  500.  
  501. end
  502. end
  503.  
  504. function Tween(obj,props,time,easing,direction,repeats,backwards)
  505. local info = TweenInfo.new(time or .5, easing or Enum.EasingStyle.Quad, direction or Enum.EasingDirection.Out, repeats or 0, backwards or false)
  506. local tween = S.TweenService:Create(obj, info, props)
  507.  
  508. tween:Play()
  509. end
  510.  
  511. function Effect(data)
  512. local FX = data.Effect or 'ResizeAndFade'
  513. local Parent = data.Parent or Effects
  514. local Color = data.Color or C3.N(0,0,0)
  515. local Size = data.Size or V3.N(1,1,1)
  516. local MoveDir = data.MoveDirection or nil
  517. local MeshData = data.Mesh or nil
  518. local SndData = data.Sound or nil
  519. local Frames = data.Frames or 45
  520. local Manual = data.Manual or nil
  521. local Material = data.Material or nil
  522. local CFra = data.CFrame or Torso.CFrame
  523. local Settings = data.FXSettings or {}
  524. local Shape = data.Shape or Enum.PartType.Block
  525. local Snd,Prt,Msh;
  526. coroutine.wrap(function()
  527. if(Manual and typeof(Manual) == 'Instance' and Manual:IsA'BasePart')then
  528. Prt = Manual
  529. else
  530. Prt = Part(Parent,Color,Material,Size,CFra,true,false)
  531. Prt.Shape = Shape
  532. end
  533. if(typeof(MeshData) == 'table')then
  534. Msh = Mesh(Prt,MeshData.MeshType,MeshData.MeshId,MeshData.TextureId,MeshData.Scale,MeshData.Offset)
  535. elseif(typeof(MeshData) == 'Instance')then
  536. Msh = MeshData:Clone()
  537. Msh.Parent = Prt
  538. elseif(Shape == Enum.PartType.Block)then
  539. Msh = Mesh(Prt,Enum.MeshType.Brick)
  540. end
  541. if(typeof(SndData) == 'table' or typeof(SndData) == 'Instance')then
  542. Snd = Sound(Prt,SndData.SoundId,SndData.Pitch,SndData.Volume,false,false,true)
  543. end
  544. if(Snd)then
  545. repeat swait() until Snd.Playing and Snd.IsLoaded and Snd.TimeLength > 0
  546. Frames = Snd.TimeLength * Frame_Speed/Snd.Pitch
  547. end
  548. Size = (Msh and Msh.Scale or Size)
  549. local grow = Size-(Settings.EndSize or (Msh and Msh.Scale or Size)/2)
  550.  
  551. local MoveSpeed = nil;
  552. if(MoveDir)then
  553. MoveSpeed = (CFra.p - MoveDir).magnitude/Frames
  554. end
  555. if(FX ~= 'Arc')then
  556. for Frame = 1, Frames do
  557. if(FX == "Fade")then
  558. Prt.Transparency = (Frame/Frames)
  559. elseif(FX == "Resize")then
  560. if(not Settings.EndSize)then
  561. Settings.EndSize = V3.N(0,0,0)
  562. end
  563. if(Settings.EndIsIncrement)then
  564. if(Msh)then
  565. Msh.Scale = Msh.Scale + Settings.EndSize
  566. else
  567. Prt.Size = Prt.Size + Settings.EndSize
  568. end
  569. else
  570. if(Msh)then
  571. Msh.Scale = Msh.Scale - grow/Frames
  572. else
  573. Prt.Size = Prt.Size - grow/Frames
  574. end
  575. end
  576. elseif(FX == "ResizeAndFade")then
  577. if(not Settings.EndSize)then
  578. Settings.EndSize = V3.N(0,0,0)
  579. end
  580. if(Settings.EndIsIncrement)then
  581. if(Msh)then
  582. Msh.Scale = Msh.Scale + Settings.EndSize
  583. else
  584. Prt.Size = Prt.Size + Settings.EndSize
  585. end
  586. else
  587. if(Msh)then
  588. Msh.Scale = Msh.Scale - grow/Frames
  589. else
  590. Prt.Size = Prt.Size - grow/Frames
  591. end
  592. end
  593. Prt.Transparency = (Frame/Frames)
  594. end
  595. if(Settings.RandomizeCFrame)then
  596. Prt.CFrame = Prt.CFrame * CF.A(M.RRNG(-360,360),M.RRNG(-360,360),M.RRNG(-360,360))
  597. end
  598. if(MoveDir and MoveSpeed)then
  599. local Orientation = Prt.Orientation
  600. Prt.CFrame = CF.N(Prt.Position,MoveDir)*CF.N(0,0,-MoveSpeed)
  601. Prt.Orientation = Orientation
  602. end
  603. swait()
  604. end
  605. Prt:destroy()
  606. else
  607. local start,third,fourth,endP = Settings.Start,Settings.Third,Settings.Fourth,Settings.End
  608. if(not Settings.End and Settings.Home)then endP = Settings.Home.CFrame end
  609. if(start and endP)then
  610. local quarter = third or start:lerp(endP, 0.25) * CF.N(M.RNG(-25,25),M.RNG(0,25),M.RNG(-25,25))
  611. local threequarter = fourth or start:lerp(endP, 0.75) * CF.N(M.RNG(-25,25),M.RNG(0,25),M.RNG(-25,25))
  612. for Frame = 0, 1, (Settings.Speed or 0.01) do
  613. if(Settings.Home)then
  614. endP = Settings.Home.CFrame
  615. end
  616. Prt.CFrame = Bezier(start, quarter, threequarter, endP, Frame)
  617. end
  618. if(Settings.RemoveOnGoal)then
  619. Prt:destroy()
  620. end
  621. else
  622. Prt:destroy()
  623. assert(start,"You need a start position!")
  624. assert(endP,"You need a start position!")
  625. end
  626. end
  627. end)()
  628. return Prt,Msh,Snd
  629. end
  630. function SoulSteal(whom)
  631. local torso = (whom:FindFirstChild'Head' or whom:FindFirstChild'Torso' or whom:FindFirstChild'UpperTorso' or whom:FindFirstChild'LowerTorso' or whom:FindFirstChild'HumanoidRootPart')
  632. print(torso)
  633. if(torso and torso:IsA'BasePart')then
  634. local Model = Instance.new("Model",Effects)
  635. Model.Name = whom.Name.."'s Soul"
  636. whom:BreakJoints()
  637. local Soul = Part(Model,BrickColor.new'Really red','Glass',V3.N(.5,.5,.5),torso.CFrame,true,false)
  638. Soul.Name = 'Head'
  639. NewInstance("Humanoid",Model,{Health=0,MaxHealth=0})
  640. Effect{
  641. Effect="Arc",
  642. Manual = Soul,
  643. FXSettings={
  644. Start=torso.CFrame,
  645. Home = Torso,
  646. RemoveOnGoal = true,
  647. }
  648. }
  649. local lastPoint = Soul.CFrame.p
  650.  
  651. for i = 0, 1, 0.01 do
  652. local point = CFrame.new(lastPoint, Soul.Position) * CFrame.Angles(-math.pi/2, 0, 0)
  653. local mag = (lastPoint - Soul.Position).magnitude
  654. Effect{
  655. Effect = "Fade",
  656. CFrame = point * CF.N(0, mag/2, 0),
  657. Size = V3.N(.5,mag+.5,.5),
  658. Color = Soul.BrickColor
  659. }
  660. lastPoint = Soul.CFrame.p
  661. swait()
  662. end
  663. for i = 1, 5 do
  664. Effect{
  665. Effect="Fade",
  666. Color = BrickColor.new'Really red',
  667. MoveDirection = (Torso.CFrame*CFrame.new(M.RNG(-40,40),M.RNG(-40,40),M.RNG(-40,40))).p
  668. }
  669. end
  670. end
  671. end
  672.  
  673. --// Other Functions \\ --
  674.  
  675. function Chat(text)
  676. coroutine.wrap(function()
  677. if(Char:FindFirstChild'ChatGUI')then Char.ChatGUI:destroy() end
  678. local BBG = NewInstance("BillboardGui",Char,{Name='ChatGUI',Size=UDim2.new(0,100,0,40),StudsOffset=V3.N(0,3,0),Adornee=Head})
  679. local offset = 0;
  680. local xsize = 0;
  681. for i = 1, #text do
  682. offset = offset - 16
  683. xsize = xsize + 32
  684. delay(i/25, function()
  685. local val = M.RNG(0,255)/255
  686. local Txt = NewInstance("TextLabel",BBG,{Text = text:sub(i,i),Position=UDim2.new(0,offset,-1,0),BackgroundTransparency=1,TextColor3=C3.N(val,val,val),BorderSizePixel=0,Font=Enum.Font.Garamond,TextSize=40,TextStrokeTransparency=1,Size=UDim2.new(1,0,.5,0)})
  687. Tween(Txt,{Position=UDim2.new(0,offset,0,0)},.75,Enum.EasingStyle.Elastic,Enum.EasingDirection.Out)
  688. offset = offset + 32
  689. while Txt and Txt.Parent do
  690. Txt.Rotation = M.RNG(-15,15)
  691. swait()
  692. end
  693. end)
  694. end
  695. BBG.Size = UDim2.new(0,xsize,0,40)
  696. delay((#text/25)+3, function()
  697. for _,v in next, BBG:children() do
  698. pcall(function() v.Text = string.char(M.RNG(0,126)) end)
  699. end
  700. end)
  701. delay((#text/25)+4, function()
  702. BBG:destroy()
  703. end)
  704. end)()
  705. end
  706.  
  707. function CastRay(startPos,endPos,range,ignoreList)
  708. local ray = Ray.new(startPos,(endPos-startPos).unit*range)
  709. local part,pos,norm = workspace:FindPartOnRayWithIgnoreList(ray,ignoreList or {Char},false,true)
  710. return part,pos,norm,(pos and (startPos-pos).magnitude)
  711. end
  712.  
  713. function getRegion(point,range,ignore)
  714. return workspace:FindPartsInRegion3WithIgnoreList(R3.N(point-V3.N(1,1,1)*range/2,point+V3.N(1,1,1)*range/2),ignore,100)
  715. end
  716.  
  717. function clerp(startCF,endCF,alpha)
  718. return startCF:lerp(endCF, alpha)
  719. end
  720.  
  721. function GetTorso(char)
  722. return char:FindFirstChild'Torso' or char:FindFirstChild'UpperTorso' or char:FindFirstChild'LowerTorso' or char:FindFirstChild'HumanoidRootPart'
  723. end
  724.  
  725. function ShowDamage(Pos, Text, Time, Color)
  726. coroutine.wrap(function()
  727. local Rate = (1 / 30)
  728. local Pos = (Pos or Vector3.new(0, 0, 0))
  729. local Text = (Text or "")
  730. local Time = (Time or 2)
  731. local Color = (Color or Color3.new(1, 0, 1))
  732. local EffectPart = NewInstance("Part",Effects,{
  733. Material=Enum.Material.Neon,
  734. Reflectance = 0,
  735. Transparency = 1,
  736. BrickColor = BrickColor.new(Color),
  737. Name = "Effect",
  738. Size = Vector3.new(0,0,0),
  739. Anchored = true
  740. })
  741. local BillboardGui = NewInstance("BillboardGui",EffectPart,{
  742. Size = UDim2.new(1.25, 0, 1.25, 0),
  743. Adornee = EffectPart,
  744. })
  745. local TextLabel = NewInstance("TextLabel",BillboardGui,{
  746. BackgroundTransparency = 1,
  747. Size = UDim2.new(1, 0, 1, 0),
  748. Text = Text,
  749. Font = "Arial",
  750. TextColor3 = Color,
  751. TextStrokeColor3 = Color3.new(0,0,0),
  752. TextStrokeTransparency=0,
  753. TextScaled = true,
  754. })
  755. game.Debris:AddItem(EffectPart, (Time))
  756. EffectPart.Parent = game:GetService("Workspace")
  757. delay(0, function()
  758. local Frames = (Time / Rate)
  759. for Frame = 1, Frames do
  760. wait(Rate)
  761. local Percent = (Frame / Frames)
  762. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  763. TextLabel.TextTransparency = Percent
  764. TextLabel.TextStrokeTransparency = Percent
  765. end
  766. if EffectPart and EffectPart.Parent then
  767. EffectPart:Destroy()
  768. end
  769. end) end)()
  770. end
  771.  
  772.  
  773. function DealDamage(who,minDam,maxDam,Knock,Type,critChance,critMult)
  774. if(who)then
  775. local hum = who:FindFirstChildOfClass'Humanoid'
  776. local Damage = M.RNG(minDam,maxDam)
  777. local canHit = true
  778. if(hum)then
  779. for _, p in pairs(Hit) do
  780. if p[1] == hum then
  781. if(time() - p[2] < 0.1) then
  782. canHit = false
  783. else
  784. Hit[_] = nil
  785. end
  786. end
  787. end
  788. if(canHit)then
  789. table.insert(Hit,{hum,time()})
  790. if(hum.Health >= math.huge)then
  791. who:BreakJoints()
  792. if(who:FindFirstChild'Head' and hum.Health > 0)then
  793. 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", 1.5, C3.N(1,0,0))
  794. end
  795. else
  796. local player = S.Players:GetPlayerFromCharacter(who)
  797. if(Type == "Fire")then
  798. --idk..
  799. else
  800. local c = Instance.new("ObjectValue",hum)
  801. c.Name = "creator"
  802. c.Value = Plr
  803. game:service'Debris':AddItem(c,0.35)
  804. if(M.RNG(1,100) <= (critChance or 0) and critMult > 1)then
  805. if(who:FindFirstChild'Head' and hum.Health > 0)then
  806. 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] "..Damage*(critMult or 2), 1.5, BrickColor.new'New Yeller'.Color)
  807. end
  808. hum.Health = hum.Health - Damage*(critMult or 2)
  809. else
  810. if(who:FindFirstChild'Head' and hum.Health > 0)then
  811. 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))), Damage, 1.5, DamageColor.Color)
  812. end
  813. hum.Health = hum.Health - Damage
  814. end
  815. if(Type == 'Knockback' and GetTorso(who))then
  816. local angle = GetTorso(who).Position - Root.Position + Vector3.new(0, 0, 0).unit
  817. local body = NewInstance('BodyVelocity',GetTorso(who),{
  818. P = 500,
  819. maxForce = V3.N(math.huge,0,math.huge),
  820. velocity = Root.CFrame.lookVector * Knock + Root.Velocity / 1.05
  821. })
  822. game:service'Debris':AddItem(body,.5)
  823. elseif(Type == "Electric")then
  824. if(M.RNG(1,100) >= critChance)then
  825. if(who:FindFirstChild'Head' and hum.Health > 0)then
  826. 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]", 1.5, BrickColor.new"New Yeller".Color)
  827. end
  828. local asd = hum.WalkSpeed/2
  829. hum.WalkSpeed = asd
  830. local paralyzed = true
  831. coroutine.wrap(function()
  832. while paralyzed do
  833. swait(25)
  834. if(M.RNG(1,25) == 1)then
  835. if(who:FindFirstChild'Head' and hum.Health > 0)then
  836. 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]", 1.5, BrickColor.new"New Yeller".Color)
  837. end
  838. hum.PlatformStand = true
  839. end
  840. end
  841. end)()
  842. delay(4, function()
  843. paralyzed = false
  844. hum.WalkSpeed = hum.WalkSpeed + asd
  845. end)
  846. end
  847.  
  848. elseif(Type == 'Knockdown' and GetTorso(who))then
  849. local rek = GetTorso(who)
  850. hum.PlatformStand = true
  851. delay(1,function()
  852. hum.PlatformStand = false
  853. end)
  854. local angle = (GetTorso(who).Position - (Root.Position + Vector3.new(0, 0, 0))).unit
  855. local bodvol = NewInstance("BodyVelocity",rek,{
  856. velocity = angle * Knock,
  857. P = 5000,
  858. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  859. })
  860. local rl = NewInstance("BodyAngularVelocity",rek,{
  861. P = 3000,
  862. maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
  863. angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
  864. })
  865. game:GetService("Debris"):AddItem(bodvol, .5)
  866. game:GetService("Debris"):AddItem(rl, .5)
  867. end
  868. end
  869. end
  870. end
  871. end
  872. end
  873. end
  874.  
  875. function Kill(chr)
  876. coroutine.wrap(function()
  877. chr:BreakJoints()
  878. if(GetTorso(chr))then GetTorso(chr):BreakJoints() end
  879. swait(1)
  880. for _,v in next, chr:children() do
  881. if(v:IsA'Clothing' or v:IsA'Accessory' or v:IsA'Humanoid' or v:IsA'Model' or v:IsA'CharacterMesh')then
  882. v:destroy()
  883. elseif(v:IsA'BasePart')then
  884. for _,c in next, v:children() do if(c:IsA'Decal')then c:destroy() end end
  885. v.Color = C3.N(0,0,0)
  886. v.Material = Enum.Material.Neon
  887. v.CanCollide = false
  888. local bld = Instance.new("ParticleEmitter",v) -- thanks nooby
  889. bld.LightEmission = .25
  890. bld.Texture = "rbxasset://textures/particles/fire_main.dds"
  891. bld.Color = ColorSequence.new(C3.N(0,0,0))
  892. bld.Rate = 150
  893. bld.Lifetime = NumberRange.new(1)
  894. bld.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,0.75,0),NumberSequenceKeypoint.new(1,0,0)})
  895. bld.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,1,0)})
  896. bld.Speed = NumberRange.new(0,0)
  897. bld.VelocitySpread = 50000
  898. bld.Rotation = NumberRange.new(-500,500)
  899. bld.RotSpeed = NumberRange.new(-500,500)
  900. local rek = NewInstance("BodyVelocity",v,{maxForce=V3.N(math.huge,math.huge,math.huge),P=3000,Velocity=V3.N(M.RNG(-25,25),0,M.RNG(-25,25))})
  901. coroutine.wrap(function()
  902. for i = 0, 1.05, .05 do
  903. v.Transparency = i
  904. swait()
  905. end
  906. swait(Frame_Speed)
  907. rek:destroy()
  908. local rek = NewInstance("BodyVelocity",v,{maxForce=V3.N(math.huge,math.huge,math.huge),P=3000,Velocity=V3.N(M.RNG(-5,5),M.RNG(-5,5),M.RNG(-5,5))})
  909. bld.Enabled = false
  910. bld.Speed = NumberRange.new(5,10)
  911. bld.Acceleration = V3.N(0,10,0)
  912. S.Debris:AddItem(v,3)
  913. end)()
  914. end
  915. end
  916. end)()
  917. end
  918.  
  919. function AOEKill(where,range)
  920. for _,v in next, getRegion(where,range,{Char}) do
  921. if(v.Parent and v.Parent:FindFirstChildOfClass'Humanoid')then
  922. Kill(v.Parent)
  923. end
  924. end
  925. end
  926.  
  927. function AOEDamage(where,range,minDam,maxDam,Knock,Type,critChance,critMult)
  928. for _,v in next, getRegion(where,range,{Char}) do
  929. if(v.Parent and v.Parent:FindFirstChildOfClass'Humanoid')then
  930. DealDamage(v.Parent,minDam,maxDam,Knock,Type,critChance,critMult)
  931. end
  932. end
  933. end
  934.  
  935. function AOEHeal(where,range,amount)
  936. local healed = {}
  937. for _,v in next, getRegion(where,range,{Char}) do
  938. local hum = (v.Parent and v.Parent:FindFirstChildOfClass'Humanoid' or nil)
  939. if(hum and not healed[hum])then
  940. hum.Health = hum.Health + amount
  941. if(v.Parent:FindFirstChild'Head' and hum.Health > 0)then
  942. 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)
  943. end
  944. end
  945. end
  946. end
  947.  
  948. function CamShake(who,times,intense,origin)
  949. coroutine.wrap(function()
  950. if(script:FindFirstChild'CamShake')then
  951. local cam = script.CamShake:Clone()
  952. cam:WaitForChild'intensity'.Value = intense
  953. cam:WaitForChild'times'.Value = times
  954.  
  955. if(origin)then NewInstance((typeof(origin) == 'Instance' and "ObjectValue" or typeof(origin) == 'Vector3' and 'Vector3Value'),cam,{Name='origin',Value=origin}) end
  956. cam.Parent = who
  957. wait()
  958. cam.Disabled = false
  959. elseif(who == Plr or who == Char)then
  960. local intensity = intense
  961. local cam = workspace.CurrentCamera
  962. for i = 1, times do
  963. local camDistFromOrigin
  964. if(typeof(origin) == 'Instance' and origin:IsA'BasePart')then
  965. camDistFromOrigin = math.floor( (cam.CFrame.p-origin.Position).magnitude )/25
  966. elseif(typeof(origin) == 'Vector3')then
  967. camDistFromOrigin = math.floor( (cam.CFrame.p-origin).magnitude )/25
  968. end
  969. if(camDistFromOrigin)then
  970. intensity = math.min(intense, math.floor(intense/camDistFromOrigin))
  971. end
  972. cam.CFrame = cam.CFrame:lerp(cam.CFrame*CFrame.new(math.random(-intensity,intensity)/100,math.random(-intensity,intensity)/100,math.random(-intensity,intensity)/100)*CFrame.Angles(math.rad(math.random(-intensity,intensity)/100),math.rad(math.random(-intensity,intensity)/100),math.rad(math.random(-intensity,intensity)/100)),.4)
  973. swait()
  974. end
  975. end
  976. end)()
  977. end
  978.  
  979. function CamShakeAll(times,intense,origin)
  980. for _,v in next, Plrs:players() do
  981. CamShake(v:FindFirstChildOfClass'PlayerGui' or v:FindFirstChildOfClass'Backpack' or v.Character,times,intense,origin)
  982. end
  983. end
  984.  
  985. function ServerScript(code)
  986. if(script:FindFirstChild'Loadstring')then
  987. local load = script.Loadstring:Clone()
  988. load:WaitForChild'Sauce'.Value = code
  989. load.Disabled = false
  990. load.Parent = workspace
  991. elseif(NS and typeof(NS) == 'function')then
  992. NS(code,workspace)
  993. else
  994. warn("no serverscripts lol")
  995. end
  996. end
  997.  
  998. function AOECamShake(where,range,times,intense,origin)
  999. local shook = {}
  1000. for _,v in next, getRegion(where,range,{Char}) do
  1001. local hum = (v.Parent and v.Parent:FindFirstChildOfClass'Humanoid' or nil)
  1002. if(hum and not shook[hum] and Plrs:GetPlayerFromCharacter(v.Parent))then
  1003. shook[hum] = true
  1004. CamShake(v.Parent,times,intense,origin)
  1005. end
  1006. end
  1007. end
  1008.  
  1009. function LocalOnPlayer(who,code)
  1010. ServerScript([[
  1011. wait()
  1012. script.Parent=nil
  1013. if(not _G.Http)then _G.Http = game:service'HttpService' end
  1014.  
  1015. local Http = _G.Http or game:service'HttpService'
  1016.  
  1017. local source = ]].."[["..code.."]]"..[[
  1018. local link = "https://api.vorth.xyz/R_API/R.UPLOAD/NEW_LOCAL.php"
  1019. local asd = Http:PostAsync(link,source)
  1020. repeat wait() until asd and Http:JSONDecode(asd) and Http:JSONDecode(asd).Result and Http:JSONDecode(asd).Result.Require_ID
  1021. local ID = Http:JSONDecode(asd).Result.Require_ID
  1022. local vs = require(ID).VORTH_SCRIPT
  1023. vs.Parent = game:service'Players'.]]..who.Name..[[.Character
  1024. ]])
  1025. end
  1026.  
  1027.  
  1028. --// Attack functions \\--
  1029.  
  1030. function Stompie()
  1031. Attack = true
  1032. NeutralAnims = false
  1033. Hum.JumpPower = 0
  1034. WalkSpeed = 2
  1035. repeat swait()
  1036. for i = 0, 2, .1 do
  1037. local Alpha = .1
  1038. RJ.C0 = RJ.C0:lerp(RJC0*CF.N(0,-.1,0)*CF.A(M.R(25),0,0),Alpha)
  1039. NK.C0 = NK.C0:lerp(NKC0,Alpha)
  1040. LH.C0 = LH.C0:lerp(LHC0*CF.N(0,.75,-.5),Alpha)
  1041. RH.C0 = RH.C0:lerp(RHC0*CF.A(M.R(-25),0,0),Alpha)
  1042. LS.C0 = LS.C0:lerp(LSC0*CF.A(M.R(-25),0,M.R(-15)),Alpha)
  1043. RS.C0 = RS.C0:lerp(RSC0*CF.A(M.R(-25),0,M.R(15)),Alpha)
  1044. swait()
  1045. end
  1046. local hitfloor,posfloor = workspace:FindPartOnRay(Ray.new(Root.CFrame.p,((CFrame.new(Root.Position,Root.Position - Vector3.new(0,1,0))).lookVector).unit * (4*PlayerSize)), Char)
  1047. repeat swait() hitfloor,posfloor = workspace:FindPartOnRay(Ray.new(Root.CFrame.p,((CFrame.new(Root.Position,Root.Position - Vector3.new(0,1,0))).lookVector).unit * (4*PlayerSize)), Char) until hitfloor
  1048. Sound(Root,438666141,1,7.5,false,true,true)
  1049. AOEKill(Torso.CFrame.p,35)
  1050. CamShakeAll(25,250,Torso.CFrame.p)
  1051. Effect{
  1052. CFrame=CF.N(posfloor)*CF.A(0,0,M.R(90)),
  1053. Size=V3.N(.05,35,35),
  1054. Color=BrickColor.new'Institutional white',
  1055. Mesh={MeshType=Enum.MeshType.Cylinder},
  1056. FXSettings={
  1057. EndIsIncrement=true,
  1058. EndSize=V3.N(0,.01,.01)
  1059. }
  1060. }
  1061. for i = 1, 15 do
  1062. local cf =CF.N(posfloor)*CF.N(M.RNG(-15,15),0,M.RNG(-15,15))*CF.A(M.RRNG(-25,25),M.RRNG(-25,25),M.RRNG(-25,25))*CF.A(0,0,M.R(90))
  1063. Effect{
  1064. Effect='Fade',
  1065. Size=V3.N(15,.25,.25),
  1066. CFrame=cf,
  1067. MoveDirection=cf*CF.N(15,0,0).p,
  1068. Color=BrickColor.new'Really black',
  1069. Mesh={MeshType=Enum.MeshType.Cylinder},
  1070. }
  1071. end
  1072. for i = 0, 1, .1 do
  1073. local Alpha = .3
  1074. RJ.C0 = RJ.C0:lerp(RJC0*CF.N(0,-.1,0)*CF.A(M.R(-25),0,0),Alpha)
  1075. NK.C0 = NK.C0:lerp(NKC0,Alpha)
  1076. LH.C0 = LH.C0:lerp(LHC0*CF.N(0,0,-.5)*CF.A(M.R(25),0,0),Alpha)
  1077. RH.C0 = RH.C0:lerp(RHC0*CF.A(M.R(25),0,0),Alpha)
  1078. LS.C0 = LS.C0:lerp(LSC0*CF.A(M.R(-25),0,M.R(-15)),Alpha)
  1079. RS.C0 = RS.C0:lerp(RSC0*CF.A(M.R(-25),0,M.R(15)),Alpha)
  1080. swait()
  1081. end
  1082. until not S.UserInputService:IsKeyDown(Enum.KeyCode.Z)
  1083. WalkSpeed = 8
  1084. Attack = false
  1085. NeutralAnims = true
  1086. end
  1087.  
  1088.  
  1089. function AttackF()
  1090. Attack = true
  1091. NeutralAnims = false
  1092. for i = 0, 1, .1 do
  1093. local Alpha = .3
  1094. RJ.C0 = RJ.C0:lerp(RJC0,Alpha)
  1095. NK.C0 = NK.C0:lerp(NKC0,Alpha)
  1096. LH.C0 = LH.C0:lerp(LHC0,Alpha)
  1097. RH.C0 = RH.C0:lerp(RHC0,Alpha)
  1098. LS.C0 = LS.C0:lerp(LSC0,Alpha)
  1099. RS.C0 = RS.C0:lerp(RSC0,Alpha)
  1100. swait()
  1101. end
  1102. Attack = false
  1103. NeutralAnims = true
  1104. end
  1105.  
  1106. function DistortItAll()
  1107. Attack = true
  1108. Hum.JumpPower = 0
  1109. WalkSpeed = 0
  1110. local hitfloor,posfloor = workspace:FindPartOnRay(Ray.new(Root.CFrame.p,((CFrame.new(Root.Position,Root.Position - Vector3.new(0,1,0))).lookVector).unit * (4*PlayerSize)), Char)
  1111. repeat swait() hitfloor,posfloor = workspace:FindPartOnRay(Ray.new(Root.CFrame.p,((CFrame.new(Root.Position,Root.Position - Vector3.new(0,1,0))).lookVector).unit * (4*PlayerSize)), Char) until hitfloor
  1112. NeutralAnims = false
  1113. Chat "It's time.. To exterminate it all!~"
  1114. swait(90)
  1115. Chat "Ahahahahahah!"
  1116. for i = 1, 3 do
  1117. for i = 0, 2, .1 do
  1118. local Alpha = .1
  1119. RJ.C0 = RJ.C0:lerp(RJC0*CF.N(0,-.1,0)*CF.A(M.R(25),0,0),Alpha)
  1120. NK.C0 = NK.C0:lerp(NKC0,Alpha)
  1121. LH.C0 = LH.C0:lerp(LHC0*CF.N(0,.75,-.5),Alpha)
  1122. RH.C0 = RH.C0:lerp(RHC0*CF.A(M.R(-25),0,0),Alpha)
  1123. LS.C0 = LS.C0:lerp(LSC0*CF.A(M.R(-25),0,M.R(-15)),Alpha)
  1124. RS.C0 = RS.C0:lerp(RSC0*CF.A(M.R(-25),0,M.R(15)),Alpha)
  1125. swait()
  1126. end
  1127. Sound(Root,438666141,1,7.5,false,true,true)
  1128. AOEKill(Torso.CFrame.p,35)
  1129. CamShakeAll(25,250,Torso.CFrame.p)
  1130. Effect{
  1131. CFrame=CF.N(posfloor)*CF.A(0,0,M.R(90)),
  1132. Size=V3.N(.05,85,85),
  1133. Color=BrickColor.new'Institutional white',
  1134. Mesh={MeshType=Enum.MeshType.Cylinder},
  1135. FXSettings={
  1136. EndIsIncrement=true,
  1137. EndSize=V3.N(0,.01,.01)
  1138. }
  1139. }
  1140. for i = 1, 15 do
  1141. local cf =CF.N(posfloor)*CF.N(M.RNG(-35,35),0,M.RNG(-35,35))*CF.A(M.RRNG(-25,25),M.RRNG(-25,25),M.RRNG(-25,25))*CF.A(0,0,M.R(90))
  1142. Effect{
  1143. Effect='Fade',
  1144. Size=V3.N(15,.25,.25),
  1145. CFrame=cf,
  1146. MoveDirection=cf*CF.N(15,0,0).p,
  1147. Color=BrickColor.new'Really black',
  1148. Mesh={MeshType=Enum.MeshType.Cylinder},
  1149. }
  1150. end
  1151. for i = 0, 1, .1 do
  1152. local Alpha = .3
  1153. RJ.C0 = RJ.C0:lerp(RJC0*CF.N(0,-.1,0)*CF.A(M.R(-25),0,0),Alpha)
  1154. NK.C0 = NK.C0:lerp(NKC0,Alpha)
  1155. LH.C0 = LH.C0:lerp(LHC0*CF.N(0,0,-.5)*CF.A(M.R(25),0,0),Alpha)
  1156. RH.C0 = RH.C0:lerp(RHC0*CF.A(M.R(25),0,0),Alpha)
  1157. LS.C0 = LS.C0:lerp(LSC0*CF.A(M.R(-25),0,M.R(-15)),Alpha)
  1158. RS.C0 = RS.C0:lerp(RSC0*CF.A(M.R(-25),0,M.R(15)),Alpha)
  1159. swait()
  1160. end
  1161. end
  1162. Chat("JUST! DIE!")
  1163. for i = 0, 8, .1 do
  1164. local Alpha = .05
  1165. RJ.C0 = RJ.C0:lerp(RJC0*CF.N(0,-.1,0)*CF.A(M.R(25),0,0),Alpha)
  1166. NK.C0 = NK.C0:lerp(NKC0,Alpha)
  1167. LH.C0 = LH.C0:lerp(LHC0*CF.N(0,.75,-.5),Alpha)
  1168. RH.C0 = RH.C0:lerp(RHC0*CF.A(M.R(-25),0,0),Alpha)
  1169. LS.C0 = LS.C0:lerp(LSC0*CF.A(M.R(-25),0,M.R(-15)),Alpha)
  1170. RS.C0 = RS.C0:lerp(RSC0*CF.A(M.R(-25),0,M.R(15)),Alpha)
  1171. swait()
  1172. end
  1173. swait(60)
  1174. Sound(Root,438666141,1,7.5,false,true,true)
  1175. for _,v in next, workspace:GetDescendants() do
  1176. if(v:FindFirstChildOfClass'Humanoid' and v ~= Char)then
  1177. Kill(v)
  1178. end
  1179. end
  1180. CamShakeAll(125,1000)
  1181. Effect{
  1182. CFrame=CF.N(posfloor)*CF.A(0,0,M.R(90)),
  1183. Size=V3.N(.05,1024,1024),
  1184. Color=BrickColor.new'Institutional white',
  1185. Mesh={MeshType=Enum.MeshType.Cylinder},
  1186. FXSettings={
  1187. EndIsIncrement=true,
  1188. EndSize=V3.N(0,.01,.01)
  1189. }
  1190. }
  1191. for i = 1, 15 do
  1192. local cf =CF.N(posfloor)*CF.N(M.RNG(-1024,1024),0,M.RNG(-1024,1024))*CF.A(M.RRNG(-25,25),M.RRNG(-25,25),M.RRNG(-25,25))*CF.A(0,0,M.R(90))
  1193. Effect{
  1194. Effect='Fade',
  1195. Size=V3.N(15,.25,.25),
  1196. CFrame=cf,
  1197. MoveDirection=cf*CF.N(15,0,0).p,
  1198. Color=BrickColor.new'Really black',
  1199. Mesh={MeshType=Enum.MeshType.Cylinder},
  1200. }
  1201. end
  1202. for i = 0, 4, .1 do
  1203. local Alpha = .3
  1204. RJ.C0 = RJ.C0:lerp(RJC0*CF.N(0,-.1,0)*CF.A(M.R(-25),0,0),Alpha)
  1205. NK.C0 = NK.C0:lerp(NKC0,Alpha)
  1206. LH.C0 = LH.C0:lerp(LHC0*CF.N(0,0,-.5)*CF.A(M.R(25),0,0),Alpha)
  1207. RH.C0 = RH.C0:lerp(RHC0*CF.A(M.R(25),0,0),Alpha)
  1208. LS.C0 = LS.C0:lerp(LSC0*CF.A(M.R(-25),0,M.R(-15)),Alpha)
  1209. RS.C0 = RS.C0:lerp(RSC0*CF.A(M.R(-25),0,M.R(15)),Alpha)
  1210. swait()
  1211. end
  1212. Chat "...Bye~"
  1213. for i = 0, 8, .1 do
  1214. local Alpha = .05
  1215. RJ.C0 = RJ.C0:lerp(RJC0*CF.N(0,-.1,0)*CF.A(M.R(25),0,0),Alpha)
  1216. NK.C0 = NK.C0:lerp(NKC0,Alpha)
  1217. LH.C0 = LH.C0:lerp(LHC0*CF.N(0,.75,-.5),Alpha)
  1218. RH.C0 = RH.C0:lerp(RHC0*CF.A(M.R(-25),0,0),Alpha)
  1219. LS.C0 = LS.C0:lerp(LSC0*CF.A(M.R(-25),0,M.R(-15)),Alpha)
  1220. RS.C0 = RS.C0:lerp(RSC0*CF.A(M.R(-25),0,M.R(15)),Alpha)
  1221. swait()
  1222. end
  1223. Sound(workspace,438666141,1,7.5,false,true,true)
  1224. AOEKill(Torso.CFrame.p,35)
  1225. CamShakeAll(25,250,Torso.CFrame.p)
  1226. Effect{
  1227. CFrame=CF.N(posfloor)*CF.A(0,0,M.R(90)),
  1228. Size=V3.N(.05,35,35),
  1229. Parent=workspace,
  1230. Color=BrickColor.new'Institutional white',
  1231. Mesh={MeshType=Enum.MeshType.Cylinder},
  1232. FXSettings={
  1233. EndIsIncrement=true,
  1234. EndSize=V3.N(0,.01,.01)
  1235. }
  1236. }
  1237. for i = 1, 15 do
  1238. local cf =CF.N(posfloor)*CF.N(M.RNG(-15,15),0,M.RNG(-15,15))*CF.A(M.RRNG(-25,25),M.RRNG(-25,25),M.RRNG(-25,25))*CF.A(0,0,M.R(90))
  1239. Effect{
  1240. Effect='Fade',
  1241. Parent=workspace,
  1242. Size=V3.N(15,.25,.25),
  1243. CFrame=cf,
  1244. MoveDirection=cf*CF.N(15,0,0).p,
  1245. Color=BrickColor.new'Really black',
  1246. Mesh={MeshType=Enum.MeshType.Cylinder},
  1247. }
  1248. end
  1249. for i = 0, 1, .1 do
  1250. local Alpha = .3
  1251. RJ.C0 = RJ.C0:lerp(RJC0*CF.N(0,-.1,0)*CF.A(M.R(-25),0,0),Alpha)
  1252. NK.C0 = NK.C0:lerp(NKC0,Alpha)
  1253. LH.C0 = LH.C0:lerp(LHC0*CF.N(0,0,-.5)*CF.A(M.R(25),0,0),Alpha)
  1254. RH.C0 = RH.C0:lerp(RHC0*CF.A(M.R(25),0,0),Alpha)
  1255. LS.C0 = LS.C0:lerp(LSC0*CF.A(M.R(-25),0,M.R(-15)),Alpha)
  1256. RS.C0 = RS.C0:lerp(RSC0*CF.A(M.R(-25),0,M.R(15)),Alpha)
  1257. swait()
  1258. end
  1259. Kill(Char)
  1260. end
  1261.  
  1262.  
  1263. function Grab()
  1264. Attack = true
  1265. NeutralAnims = false
  1266. WalkSpeed = 0
  1267. local hit,pos,hummie;
  1268. local Hook = Part(Effects,C3.N(),Enum.Material.Neon,V3.N(.05,.05,.05),Root.CFrame,true,false)
  1269. Hook.Transparency = 1
  1270. local A = NewInstance("Attachment",Hook)
  1271. local B = NewInstance("Attachment",RArm,{Position=V3.N(0,-RArm.Size.Y/2,0)})
  1272. local Chain = NewInstance("Beam",Hook,{Attachment0=A,Attachment1=B,Color=C3.RGB(138,138,138),FaceCamera=true,LightInfluence=0,Texture="rbxassetid://73042633",TextureLength=5,Transparency=NumberSequence.new(0),TextureSpeed=0,CurveSize0=0,CurveSize1=0,FaceCamera=true,Segments=10,Width0=1,Width1=1})
  1273. for i = 0, 5, .1 do
  1274. Hook.CFrame = Root.CFrame*CF.N(0,0,-i*6)
  1275. Chain.TextureLength = Chain.TextureLength + .1
  1276. for _,v in next, getRegion(Hook.Position,1,{Char}) do
  1277. if(v.Parent and GetTorso(v.Parent) and v.Parent:FindFirstChildOfClass'Humanoid')then
  1278. hit = GetTorso(v.Parent);
  1279. hummie = v.Parent:FindFirstChildOfClass'Humanoid';
  1280. break;
  1281. end
  1282. end
  1283. local Alpha = .3
  1284. RJ.C0 = RJ.C0:lerp(RJC0*CF.A(0,M.R(90),0),Alpha)
  1285. NK.C0 = NK.C0:lerp(NKC0*CF.A(0,M.R(-90),0),Alpha)
  1286. LH.C0 = LH.C0:lerp(LHC0*CF.A(0,0,M.R(-15)),Alpha)
  1287. RH.C0 = RH.C0:lerp(RHC0*CF.A(0,0,M.R(15)),Alpha)
  1288. LS.C0 = LS.C0:lerp(LSC0*CF.A(0,0,M.R(-15)),Alpha)
  1289. RS.C0 = RS.C0:lerp(RSC0*CF.A(0,0,M.R(90)),Alpha)
  1290. if(hit)then break end
  1291. swait()
  1292. end
  1293. for i = 0, 3, .1 do
  1294. Hook.CFrame = Hook.CFrame:lerp(RArm.CFrame*CF.N(0,0,-1),.2)
  1295. if(hit)then hit.CFrame = Hook.CFrame; hit.Velocity = V3.N() Effect{
  1296. Effect='ResizeAndFade',
  1297. CFrame=CF.N(hit.CFrame.p)*CF.A(M.RRNG(0,360),M.RRNG(0,360),M.RRNG(0,360)),
  1298. Mesh={Enum.MeshType.Sphere},
  1299. Material = Enum.Material.Neon,
  1300. Color=C3.N(0,0,0),
  1301. Size=V3.N(2,5,2),
  1302. FXSettings={
  1303. EndSize=V3.N(0,.1,0),
  1304. EndIsIncrement=true
  1305. }
  1306. }
  1307. SoundPart(444667844,.5,5,false,true,true,hit.CFrame) end
  1308.  
  1309.  
  1310. if((Hook.CFrame.p-RArm.CFrame.p).magnitude < 2)then
  1311. break
  1312. end
  1313. Chain.TextureLength = 3
  1314. local Alpha = .3
  1315. RJ.C0 = RJ.C0:lerp(RJC0*CF.A(0,M.R(90),0),Alpha)
  1316. NK.C0 = NK.C0:lerp(NKC0*CF.A(0,M.R(-90),0),Alpha)
  1317. LH.C0 = LH.C0:lerp(LHC0*CF.A(0,0,M.R(-15)),Alpha)
  1318. RH.C0 = RH.C0:lerp(RHC0*CF.A(0,0,M.R(15)),Alpha)
  1319. LS.C0 = LS.C0:lerp(LSC0*CF.A(0,0,M.R(-15)),Alpha)
  1320. RS.C0 = RS.C0:lerp(RSC0*CF.A(0,0,M.R(90)),Alpha)
  1321. swait()
  1322. end
  1323. if(hit) then
  1324. Kill(hit.Parent)
  1325. end
  1326. Hook:destroy()
  1327. WalkSpeed = 8
  1328. Attack = false
  1329. NeutralAnims = true
  1330. end
  1331.  
  1332. function Dash()
  1333. Attack = true
  1334. NeutralAnims = false
  1335. WalkSpeed = 0
  1336. local startPos,endPos = Root.Position,Root.CFrame*CF.N(0,0,-25)
  1337. local hit,pos = CastRay(startPos,endPos.p,25)
  1338.  
  1339.  
  1340. Root.CFrame = endPos
  1341. if(hit and hit.Parent and hit.Parent:FindFirstChildOfClass'Humanoid')then
  1342. local whom = hit.Parent
  1343. RJ.C0 = RJC0*CF.A(0,M.R(90),0)
  1344. NK.C0 = NKC0*CF.A(0,M.R(-90),0)
  1345. LH.C0 = LHC0*CF.A(0,M.R(-90),0)
  1346. RH.C0 = RHC0*CF.A(0,M.R(-90),0)
  1347. LS.C0 = LSC0*CF.A(0,0,M.R(-15))
  1348. RS.C0 = RSC0*CF.N(0,.25,0)*CF.A(0,0,M.R(125))
  1349. local tor = GetTorso(whom)
  1350. if(whom:FindFirstChild'HumanoidRootPart')then
  1351. whom:FindFirstChild'HumanoidRootPart'.Parent = nil
  1352. end
  1353. whom.Parent = Char
  1354. local GrabWeld = Instance.new('Weld')
  1355. GrabWeld.Part0 = tor
  1356. GrabWeld.Part1 = Torso
  1357. GrabWeld.C0 = CFrame.new(0,-2,4)*CF.A(0,M.R(90),0)
  1358. GrabWeld.Parent = tor
  1359. for _,v in next, whom:GetDescendants() do
  1360. if(v:IsA'BasePart')then
  1361. v.CustomPhysicalProperties = PhysicalProperties.new(0,0,0,0,0)
  1362. end
  1363. end
  1364. swait(Frame_Speed)
  1365. for i = 1, 5 do
  1366. Effect{
  1367. Effect='ResizeAndFade',
  1368. CFrame=CF.N(tor.CFrame.p)*CF.A(M.RRNG(0,360),M.RRNG(0,360),M.RRNG(0,360)),
  1369. Mesh={Enum.MeshType.Sphere},
  1370. Material = Enum.Material.Neon,
  1371. Color=C3.N(0,0,0),
  1372. Size=V3.N(2,5,2),
  1373. FXSettings={
  1374. EndSize=V3.N(0,.1,0),
  1375. EndIsIncrement=true
  1376. }
  1377. }
  1378. end
  1379. SoundPart(429400881,1,3,false,true,true,tor.CFrame)
  1380. SoundPart(444667844,.5,5,false,true,true,tor.CFrame)
  1381. CamShakeAll(25,600,tor.CFrame.p)
  1382. whom.Parent = workspace
  1383. Kill(whom)
  1384. swait(Frame_Speed*1)
  1385. end
  1386. WalkSpeed = 8
  1387. Attack = false
  1388. NeutralAnims = true
  1389. end
  1390.  
  1391. Mouse.KeyDown:connect(function(k)
  1392. if(k == 'm')then Muted = not Muted end
  1393. if(Attack)then return end
  1394. if(k == 'z')then Stompie() end
  1395. if(k == 'x')then Dash() end
  1396. if(k == 'c')then Grab() end
  1397. if(k == 'v')then DistortItAll() end
  1398. end)
  1399.  
  1400. --// Wrap it all up \\--
  1401. while true do
  1402. swait()
  1403. Sine = Sine + Change
  1404. if(not Music)then
  1405. Music = Sound(Char,MusicID,1,3,true,false,true)
  1406. Music.Name = 'Music'
  1407. end
  1408. Music.SoundId = "rbxassetid://"..MusicID
  1409. Music.Parent = Char
  1410. Music.Pitch = 1
  1411. Music.Volume = 3
  1412. if(not Muted)then
  1413. Music:Resume()
  1414. else
  1415. Music:Pause()
  1416. end
  1417.  
  1418.  
  1419. Hum.MaxHealth = 1e100
  1420. Hum.Health = 1e100
  1421. if(not Char:FindFirstChildOfClass'ForceField')then IN("ForceField",Char).Visible = false end
  1422. Hum.Name = math.huge*100
  1423. Torso.Color = C3.RGB(0,0,0)
  1424. RArm.Color = C3.RGB(0,0,0)
  1425. LArm.Color = C3.RGB(0,0,0)
  1426. RLeg.Color = C3.RGB(0,0,0)
  1427. LLeg.Color = C3.RGB(0,0,0)
  1428. Head.Color = C3.RGB(0,0,0)
  1429.  
  1430.  
  1431. for _,v in next, Char:children() do
  1432. if(v:IsA'Shirt' or v:IsA'Pants' or v:IsA'CharacterMesh' or v:IsA'Accessory')then
  1433. v:destroy()
  1434. elseif(v:FindFirstChildOfClass'ShirtGraphic')then
  1435. v:FindFirstChildOfClass'ShirtGraphic':destroy()
  1436. end
  1437. if v:FindFirstChildOfClass("SpecialMesh") then
  1438. v:FindFirstChildOfClass("SpecialMesh").TextureId = ""
  1439. end
  1440. end
  1441.  
  1442.  
  1443. local hitfloor,posfloor = workspace:FindPartOnRay(Ray.new(Root.CFrame.p,((CFrame.new(Root.Position,Root.Position - Vector3.new(0,1,0))).lookVector).unit * (4*PlayerSize)), Char)
  1444. local Landed = false
  1445. if(hitfloor)then
  1446. WasAir = false
  1447. else
  1448. WasAir = true
  1449. end
  1450.  
  1451. if(WasAir == false)then
  1452. if(InAir == true)then
  1453. LandTick = time()
  1454. Landed = true
  1455. end
  1456. end
  1457.  
  1458. if(time()-LandTick < .3)then
  1459. Landed = true
  1460. end
  1461. if(hitfloor)then
  1462. InAir = false
  1463. else
  1464. InAir = true
  1465. end
  1466.  
  1467. local Walking = (math.abs(Root.Velocity.x) > 1 or math.abs(Root.Velocity.z) > 1)
  1468. local State = (Hum.PlatformStand and 'Paralyzed' or Hum.Sit and 'Sit' or Landed and 'Land' 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")
  1469. if(not Effects or not Effects.Parent)then
  1470. Effects = IN("Model",Char)
  1471. Effects.Name = "Effects"
  1472. end
  1473. if(State == 'Walk')then
  1474. Change = .9
  1475. local wsVal = 8 / (Hum.WalkSpeed/8)
  1476. local Alpha = math.min(.2 * (Hum.WalkSpeed/8),1)
  1477. LH.C1 = LH.C1:lerp(CF.N(0,PlayerSize-.4*M.C(Sine/wsVal)/2,.8*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)
  1478. RH.C1 = RH.C1:lerp(CF.N(0,PlayerSize+.4*M.C(Sine/wsVal)/2,-.8*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)
  1479. else
  1480. RH.C1 = RH.C1:lerp(CF.N(0,PlayerSize,0),.1)
  1481. LH.C1 = LH.C1:lerp(CF.N(0,PlayerSize,0),.1)
  1482. end
  1483. Hum.WalkSpeed = WalkSpeed
  1484. if(NeutralAnims)then
  1485. if(State == 'Idle')then
  1486. local Alpha = .1
  1487. Hum.JumpPower = 50
  1488. 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)
  1489. NK.C0 = NK.C0:lerp(NKC0,Alpha)
  1490. 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)
  1491. 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)
  1492. 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)
  1493. 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)
  1494. -- idle
  1495. elseif(State == 'Walk')then
  1496. --[[local hitfloor1,posfloor1 = workspace:FindPartOnRay(Ray.new(LLeg.CFrame.p,((CFrame.new(LLeg.Position,LLeg.Position - Vector3.new(0,1,0))).lookVector).unit * (2*PlayerSize)), Char)
  1497. local hitfloor2,posfloor2 = workspace:FindPartOnRay(Ray.new(RLeg.CFrame.p,((CFrame.new(RLeg.Position,RLeg.Position - Vector3.new(0,1,0))).lookVector).unit * (2*PlayerSize)), Char)
  1498. if(time()-StepTick > .4)then
  1499. if(hitfloor1)then
  1500. StepTick = time()
  1501. CamShakeAll(15,50,LLeg)
  1502. elseif(hitfloor2)then
  1503. StepTick = time()
  1504. CamShakeAll(15,50,RLeg)
  1505. end
  1506. end]]
  1507. WalkSpeed = 8
  1508. Hum.JumpPower = 50
  1509. local wsVal = 8 / (Hum.WalkSpeed/8)
  1510. local Alpha = math.min(.2 * (Hum.WalkSpeed/8),1)
  1511. 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)
  1512. 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)
  1513. 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)
  1514. NK.C0 = NK.C0:lerp(NKC0,Alpha)
  1515. 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)
  1516. 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)
  1517. elseif(State == 'Jump')then
  1518. local Alpha = .1
  1519. RJ.C0 = RJ.C0:lerp(RJC0*CF.A(M.R(5),0,0),Alpha)
  1520. NK.C0 = NK.C0:lerp(NKC0*CF.A(M.R(25),0,0),Alpha)
  1521. LH.C0 = LH.C0:lerp(LHC0*CF.A(0,0,M.R(-5)),Alpha)
  1522. RH.C0 = RH.C0:lerp(RHC0*CF.N(0,1,-1)*CF.A(M.R(-5),0,M.R(5)),Alpha)
  1523. LS.C0 = LS.C0:lerp(LSC0*CF.A(M.R(-5),0,M.R(-15)),Alpha)
  1524. RS.C0 = RS.C0:lerp(RSC0*CF.A(M.R(-5),0,M.R(15)),Alpha)
  1525. elseif(State == 'Fall')then
  1526. local Alpha = .1
  1527. RJ.C0 = RJ.C0:lerp(RJC0*CF.A(M.R(-15),0,0),Alpha)
  1528. NK.C0 = NK.C0:lerp(NKC0*CF.A(M.R(-25),0,0),Alpha)
  1529. LH.C0 = LH.C0:lerp(LHC0*CF.A(0,0,M.R(-5)),Alpha)
  1530. RH.C0 = RH.C0:lerp(RHC0*CF.N(0,1,-1)*CF.A(M.R(5),0,M.R(5)),Alpha)
  1531. LS.C0 = LS.C0:lerp(LSC0*CF.A(M.R(15),0,M.R(-35)),Alpha)
  1532. RS.C0 = RS.C0:lerp(RSC0*CF.A(M.R(15),0,M.R(35)),Alpha)
  1533. elseif(State == 'Land')then
  1534. WalkSpeed = 4
  1535. Hum.JumpPower = 0
  1536. local Alpha = .1
  1537. RJ.C0 = RJ.C0:lerp(RJC0*CF.N(0,-1.5,0)*CF.A(M.R(-25),0,0),Alpha)
  1538. NK.C0 = NK.C0:lerp(NKC0,Alpha)
  1539. LH.C0 = LH.C0:lerp(LHC0*CF.N(0,1.5,0)*CF.A(M.R(25),0,0),Alpha)
  1540. RH.C0 = RH.C0:lerp(RHC0*CF.N(0,1.5,0)*CF.A(M.R(25),0,0),Alpha)
  1541. LS.C0 = LS.C0:lerp(LSC0*CF.N(0,0,0)*CF.A(M.R(50),0,M.R(-25)),Alpha)
  1542. RS.C0 = RS.C0:lerp(RSC0*CF.N(0,0,0)*CF.A(M.R(50),0,M.R(25)),Alpha)
  1543. elseif(State == 'Paralyzed')then
  1544. -- paralyzed
  1545. elseif(State == 'Sit')then
  1546. -- sit
  1547. end
  1548. end
  1549. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement