Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Created by Nebula_Zorua --
- -- The Distorted --
- -- Or 13 V2, if you will. I'm officially calling it The Distorted though --
- -- Discord: Nebula the Zorua#6969
- -- Youtube: https://www.youtube.com/channel/UCo9oU9dCw8jnuVLuy4_SATA
- -- I'm not a mod anymore, so what's the point of holding this unnerfed version back?
- --// Initializing \\--
- local S = setmetatable({},{__index = function(s,i) return game:service(i) end})
- local Plrs = S.Players
- local Plr = Plrs.LocalPlayer
- local Char = Plr.Character
- local Hum = Char:FindFirstChildOfClass'Humanoid'
- local RArm = Char["Right Arm"]
- local LArm = Char["Left Arm"]
- local RLeg = Char["Right Leg"]
- local LLeg = Char["Left Leg"]
- local Root = Char:FindFirstChild'HumanoidRootPart'
- local Torso = Char.Torso
- local Head = Char.Head
- local NeutralAnims = true
- local Attack = false
- local BloodPuddles = {}
- local Debounces = {Debounces={}}
- local Mouse = Plr:GetMouse()
- local Hit = {}
- local Sine = 0
- local Change = 1
- local WasAir = false
- local InAir = false
- local LandTick = 0;
- local WalkSpeed = 8
- local StepTick = 0;
- local Muted = false
- local Effects = Instance.new("Folder",Char)
- Effects.Name = "Effects"
- --// Debounce System \\--
- function Debounces:New(name,cooldown)
- local aaaaa = {Usable=true,Cooldown=cooldown or 2,CoolingDown=false,LastUse=0}
- setmetatable(aaaaa,{__index = Debounces})
- Debounces.Debounces[name] = aaaaa
- return aaaaa
- end
- function Debounces:Use(overrideUsable)
- assert(self.Usable ~= nil and self.LastUse ~= nil and self.CoolingDown ~= nil,"Expected ':' not '.' calling member function Use")
- if(self.Usable or overrideUsable)then
- self.Usable = false
- self.CoolingDown = true
- local LastUse = time()
- self.LastUse = LastUse
- delay(self.Cooldown or 2,function()
- if(self.LastUse == LastUse)then
- self.CoolingDown = false
- self.Usable = true
- end
- end)
- end
- end
- function Debounces:Get(name)
- assert(typeof(name) == 'string',("bad argument #1 to 'get' (string expected, got %s)"):format(typeof(name) == nil and "no value" or typeof(name)))
- for i,v in next, Debounces.Debounces do
- if(i == name)then
- return v;
- end
- end
- end
- function Debounces:GetProgressPercentage()
- assert(self.Usable ~= nil and self.LastUse ~= nil and self.CoolingDown ~= nil,"Expected ':' not '.' calling member function Use")
- if(self.CoolingDown and not self.Usable)then
- return math.max(
- math.floor(
- (
- (time()-self.LastUse)/self.Cooldown or 2
- )*100
- )
- )
- else
- return 100
- end
- end
- --// Shortcut Variables \\--
- local CF = {N=CFrame.new,A=CFrame.Angles,fEA=CFrame.fromEulerAnglesXYZ}
- local C3 = {N=Color3.new,RGB=Color3.fromRGB,HSV=Color3.fromHSV,tHSV=Color3.toHSV}
- local V3 = {N=Vector3.new,FNI=Vector3.FromNormalId,A=Vector3.FromAxis}
- 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}
- local R3 = {N=Region3.new}
- local De = S.Debris
- local WS = workspace
- local Lght = S.Lighting
- local RepS = S.ReplicatedStorage
- local IN = Instance.new
- --// Instance Creation Functions \\--
- --
- function Sound(parent,id,pitch,volume,looped,effect,autoPlay)
- local Sound = IN("Sound")
- Sound.SoundId = "rbxassetid://".. tostring(id or 0)
- Sound.Pitch = pitch or 1
- Sound.Volume = volume or 1
- Sound.Looped = looped or false
- if(autoPlay)then
- coroutine.wrap(function()
- repeat wait() until Sound.IsLoaded
- Sound.Playing = autoPlay or false
- end)()
- end
- if(not looped and effect)then
- Sound.Stopped:connect(function()
- Sound.Volume = 0
- Sound:destroy()
- end)
- elseif(effect)then
- warn("Sound can't be looped and a sound effect!")
- end
- Sound.Parent =parent or Torso
- return Sound
- end
- function SoundPart(id,pitch,volume,looped,effect,autoPlay,cf)
- local soundPart = NewInstance("Part",Effects,{Transparency=1,CFrame=cf or Torso.CFrame,Anchored=true,CanCollide=false,Size=V3.N()})
- local Sound = IN("Sound")
- Sound.SoundId = "rbxassetid://".. tostring(id or 0)
- Sound.Pitch = pitch or 1
- Sound.Volume = volume or 1
- Sound.Looped = looped or false
- if(autoPlay)then
- coroutine.wrap(function()
- repeat wait() until Sound.IsLoaded
- Sound.Playing = autoPlay or false
- end)()
- end
- if(not looped and effect)then
- Sound.Stopped:connect(function()
- Sound.Volume = 0
- soundPart:destroy()
- end)
- elseif(effect)then
- warn("Sound can't be looped and a sound effect!")
- end
- Sound.Parent = soundPart
- return Sound
- end
- function Part(parent,color,material,size,cframe,anchored,cancollide)
- local part = IN("Part")
- part[typeof(color) == 'BrickColor' and 'BrickColor' or 'Color'] = color or C3.N(0,0,0)
- part.Material = material or Enum.Material.SmoothPlastic
- part.TopSurface,part.BottomSurface=10,10
- part.Size = size or V3.N(1,1,1)
- part.CFrame = cframe or CF.N(0,0,0)
- part.Anchored = anchored or true
- part.CanCollide = cancollide or false
- part.Parent = parent or Char
- return part
- end
- function Mesh(parent,meshtype,meshid,textid,scale,offset)
- local part = IN("SpecialMesh")
- part.MeshId = meshid or ""
- part.TextureId = textid or ""
- part.Scale = scale or V3.N(1,1,1)
- part.Offset = offset or V3.N(0,0,0)
- part.MeshType = meshtype or Enum.MeshType.Sphere
- part.Parent = parent
- return part
- end
- NewInstance = function(instance,parent,properties)
- local inst = Instance.new(instance)
- inst.Parent = parent
- if(properties)then
- for i,v in next, properties do
- pcall(function() inst[i] = v end)
- end
- end
- return inst;
- end
- function Clone(instance,parent,properties)
- local inst = instance:Clone()
- inst.Parent = parent
- if(properties)then
- for i,v in next, properties do
- pcall(function() inst[i] = v end)
- end
- end
- return inst;
- end
- -- thanks shack im lazy lol
- local Prtcl = IN("ParticleEmitter",nil)
- Prtcl.Enabled = false
- Prtcl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1),NumberSequenceKeypoint.new(0.3,0.95),NumberSequenceKeypoint.new(1,1)})
- Prtcl.LightEmission = 0.5
- Prtcl.Rate = 350
- Prtcl.ZOffset = 1
- Prtcl.Rotation = NumberRange.new(-180, 180)
- Prtcl.RotSpeed = NumberRange.new(-180, 180)
- Prtcl.Texture = "rbxassetid://304437537"
- Prtcl.Color = ColorSequence.new(C3.RGB(64,64,64),C3.N(1,1,1))
- function Particle(Table) -- thanks shack im STILL lazy
- local PRTCL = Prtcl:Clone()
- local Speed = Table.Speed or 5
- local Drag = Table.Drag or 0
- local Size1 = Table.Size1 or 1
- local Size2 = Table.Size2 or 5
- local Lifetime1 = Table.Lifetime1 or 1
- local Lifetime2 = Table.Lifetime2 or 1.5
- local Parent = Table.Parent or Torso
- local Emit = Table.Emit or 100
- local Offset = Table.Offset or 360
- local Acel = Table.Acel or V3.N(0,0,0)
- local Enabled = Table.Enabled or false
- local Texture = Table.Texture or "rbxasset://textures/particles/fire_main.dds"
- local Locked = Table.Locked or false
- PRTCL.Parent = Parent
- PRTCL.LockedToPart = Locked
- PRTCL.Size = NumberSequence.new(Size1,Size2)
- PRTCL.Lifetime = NumberRange.new(Lifetime1,Lifetime2)
- PRTCL.Speed = NumberRange.new(Speed)
- PRTCL.VelocitySpread = Offset
- PRTCL.Drag = Drag
- PRTCL.Acceleration = Acel
- PRTCL.Texture = Texture
- PRTCL.Rate = Emit
- if Enabled == false then
- PRTCL:Emit(Emit)
- S.Debris:AddItem(PRTCL,Lifetime2)
- else
- PRTCL.Enabled = true
- end
- return PRTCL
- end
- --// Extended ROBLOX tables \\--
- 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})
- --// Customization \\--
- local Frame_Speed = 60 -- The frame speed for swait. 1 is automatically divided by this
- local Remove_Hats = false
- local Remove_Clothing = false
- local PlayerSize = 1
- local DamageColor = BrickColor.new'Really black'
- local MusicID = 501589547
- --// Weapon and GUI creation, and Character Customization \\--
- if(Remove_Hats)then Instance.ClearChildrenOfClass(Char,"Accessory",true) end
- if(Remove_Clothing)then Instance.ClearChildrenOfClass(Char,"Clothing",true) Instance.ClearChildrenOfClass(Char,"ShirtGraphic",true) end
- Hum.DisplayDistanceType = 'None'
- local naeeym2 = IN("BillboardGui",Char)
- naeeym2.AlwaysOnTop = true
- naeeym2.Size = UDim2.new(5,35,2,15)
- naeeym2.StudsOffset = V3.N(0,2.5,0)
- naeeym2.Adornee = Char.Head
- naeeym2.Name = "Name"
- naeeym2.PlayerToHideFrom = Plr
- local tecks2 = IN("TextLabel",naeeym2)
- tecks2.BackgroundTransparency = 1
- tecks2.TextScaled = true
- tecks2.BorderSizePixel = 0
- tecks2.Text = "The Blackened"
- tecks2.Font = Enum.Font.Bodoni
- tecks2.TextSize = 30
- tecks2.TextStrokeTransparency = 0
- tecks2.TextColor3 = C3.N(.5,.5,.5)
- tecks2.TextStrokeColor3 = C3.N(1,1,1)
- tecks2.Size = UDim2.new(1,0,0.5,0)
- tecks2.Parent = naeeym2
- New = function(Object, Parent, Name, Data)
- local Object = Instance.new(Object)
- for Index, Value in pairs(Data or {}) do
- Object[Index] = Value
- end
- Object.Parent = Parent
- Object.Name = Name
- return Object
- end
- Bone = New("Part",Char,"Bone",{BrickColor = BrickColor.new("Maroon"),Material = Enum.Material.SmoothPlastic,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),})
- 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),})
- Bone = New("Part",Char,"Bone",{BrickColor = BrickColor.new("Maroon"),Material = Enum.Material.SmoothPlastic,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),})
- 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),})
- Blood = New("Part",Char,"Blood",{BrickColor = BrickColor.new("White"),Material = Enum.Material.SmoothPlastic,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),})
- 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),})
- Corruption = New("Part",Char,"Corruption",{BrickColor = BrickColor.new("Really black"),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.0666667, 0.0666667, 0.0666667),})
- 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),})
- Blood = New("Part",Char,"Blood",{BrickColor = BrickColor.new("White"),Material = Enum.Material.SmoothPlastic,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),})
- 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),})
- Bone = New("Part",Char,"Bone",{BrickColor = BrickColor.new("Maroon"),Material = Enum.Material.SmoothPlastic,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),})
- 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),})
- Corruption = New("Part",Char,"Corruption",{BrickColor = BrickColor.new("Gun metallic"),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.0666667, 0.0666667, 0.0666667),})
- 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),})
- Corruption = New("Part",Char,"Corruption",{BrickColor = BrickColor.new("Gun metallic"),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.0666667, 0.0666667, 0.0666667),})
- 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),})
- Corruption = New("Part",Char,"Corruption",{BrickColor = BrickColor.new("Gun metallic"),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.0666667, 0.0666667, 0.0666667),})
- 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),})
- Corruption = New("Part",Char,"Corruption",{BrickColor = BrickColor.new("Gun metallic"),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.0666667, 0.0666667, 0.0666667),})
- 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),})
- Corruption = New("Part",Char,"Corruption",{BrickColor = BrickColor.new("Gun metallic"),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.0666667, 0.0666667, 0.0666667),})
- 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),})
- Corruption = New("Part",Char,"Corruption",{BrickColor = BrickColor.new("Gun metallic"),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.0666667, 0.0666667, 0.0666667),})
- 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),})
- Corruption = New("Part",Char,"Corruption",{BrickColor = BrickColor.new("Gun metallic"),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.0666667, 0.0666667, 0.0666667),})
- 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),})
- Corruption = New("Part",Char,"Corruption",{BrickColor = BrickColor.new("Gun metallic"),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.0666667, 0.0666667, 0.0666667),})
- 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),})
- Corruption = New("Part",Char,"Corruption",{BrickColor = BrickColor.new("Gun metallic"),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.0666667, 0.0666667, 0.0666667),})
- 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),})
- Corruption = New("Part",Char,"Corruption",{BrickColor = BrickColor.new("Gun metallic"),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.0666667, 0.0666667, 0.0666667),})
- 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),})
- Corruption = New("Part",Char,"Corruption",{BrickColor = BrickColor.new("Gun metallic"),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.0666667, 0.0666667, 0.0666667),})
- 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),})
- Corruption = New("Part",Char,"Corruption",{BrickColor = BrickColor.new("Gun metallic"),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.0666667, 0.0666667, 0.0666667),})
- mot = New("Motor",Corruption,"mot",{Part0 = Corruption,Part1 = RArm,C0 = CFrame.new(0, 0, 0),})
- for _,v in next, Char:children() do
- if(v.Name == 'Corruption')then
- Particle{Texture="rbxassetid://304437537",Locked=false,Speed=0.1,Drag=3,Size1=.1,Size2=.3,Lifetime1=.2,Lifetime2=.5,Parent=v,Emit=350,Offset=360,Enabled=true}
- end
- end
- RArm.Transparency = 1
- local Music = Sound(Char,MusicID,1,3,true,false,true)
- Music.Name = 'Music'
- --// Stop animations \\--
- for _,v in next, Hum:GetPlayingAnimationTracks() do
- v:Stop();
- end
- pcall(game.Destroy,Char:FindFirstChild'Animate')
- pcall(game.Destroy,Hum:FindFirstChild'Animator')
- --// Joints \\--
- 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)})
- 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)})
- local NK = NewInstance('Motor',Char,{Part0=Torso,Part1=Head,C0 = CF.N(0,1.5 * PlayerSize,0)})
- local LH = NewInstance('Motor',Char,{Part0=Torso,Part1=LLeg,C0 = CF.N(-.5 * PlayerSize,-1 * PlayerSize,0),C1 = CF.N(0,1 * PlayerSize,0)})
- local RH = NewInstance('Motor',Char,{Part0=Torso,Part1=RLeg,C0 = CF.N(.5 * PlayerSize,-1 * PlayerSize,0),C1 = CF.N(0,1 * PlayerSize,0)})
- local RJ = NewInstance('Motor',Char,{Part0=Root,Part1=Torso})
- local LSC0 = LS.C0
- local RSC0 = RS.C0
- local NKC0 = NK.C0
- local LHC0 = LH.C0
- local RHC0 = RH.C0
- local RJC0 = RJ.C0
- --// Artificial HB \\--
- local ArtificialHB = IN("BindableEvent", script)
- ArtificialHB.Name = "Heartbeat"
- script:WaitForChild("Heartbeat")
- local tf = 0
- local allowframeloss = false
- local tossremainder = false
- local lastframe = tick()
- local frame = 1/Frame_Speed
- ArtificialHB:Fire()
- game:GetService("RunService").Heartbeat:connect(function(s, p)
- tf = tf + s
- if tf >= frame then
- if allowframeloss then
- script.Heartbeat:Fire()
- lastframe = tick()
- else
- for i = 1, math.floor(tf / frame) do
- ArtificialHB:Fire()
- end
- lastframe = tick()
- end
- if tossremainder then
- tf = 0
- else
- tf = tf - frame * math.floor(tf / frame)
- end
- end
- end)
- function swait(num)
- if num == 0 or num == nil then
- ArtificialHB.Event:wait()
- else
- for i = 0, num do
- ArtificialHB.Event:wait()
- end
- end
- end
- --// Effect Function(s) \\--
- function Bezier(startpos, pos2, pos3, endpos, t)
- local A = startpos:lerp(pos2, t)
- local B = pos2:lerp(pos3, t)
- local C = pos3:lerp(endpos, t)
- local lerp1 = A:lerp(B, t)
- local lerp2 = B:lerp(C, t)
- local cubic = lerp1:lerp(lerp2, t)
- return cubic
- end
- function Zap(data)
- local sCF,eCF = data.StartCFrame,data.EndCFrame
- assert(sCF,"You need a start CFrame!")
- assert(eCF,"You need an end CFrame!")
- local parts = data.PartCount or 15
- local zapRot = data.ZapRotation or {-5,5}
- local startThick = data.StartSize or 3;
- local endThick = data.EndSize or startThick/2;
- local color = data.Color or BrickColor.new'Electric blue'
- local delay = data.Delay or 35
- local delayInc = data.DelayInc or 0
- local lastLightning;
- local MagZ = (sCF.p - eCF.p).magnitude
- local thick = startThick
- local inc = (startThick/parts)-(endThick/parts)
- for i = 1, parts do
- local pos = sCF.p
- if(lastLightning)then
- pos = lastLightning.CFrame*CF.N(0,0,MagZ/parts/2).p
- end
- delay = delay + delayInc
- local zapPart = Part(Effects,color,Enum.Material.Neon,V3.N(thick,thick,MagZ/parts),CF.N(pos),true,false)
- 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)))
- if(parts == i)then
- local MagZ = (pos-eCF.p).magnitude
- zapPart.Size = V3.N(endThick,endThick,MagZ)
- zapPart.CFrame = CF.N(pos, eCF.p)*CF.N(0,0,-MagZ/2)
- 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)}}
- else
- zapPart.CFrame = CF.N(pos,posie)*CF.N(0,0,MagZ/parts/2)
- end
- lastLightning = zapPart
- Effect{Effect='Fade',Manual=zapPart,Frames=delay}
- thick=thick-inc
- end
- end
- function Tween(obj,props,time,easing,direction,repeats,backwards)
- local info = TweenInfo.new(time or .5, easing or Enum.EasingStyle.Quad, direction or Enum.EasingDirection.Out, repeats or 0, backwards or false)
- local tween = S.TweenService:Create(obj, info, props)
- tween:Play()
- end
- function Effect(data)
- local FX = data.Effect or 'ResizeAndFade'
- local Parent = data.Parent or Effects
- local Color = data.Color or C3.N(0,0,0)
- local Size = data.Size or V3.N(1,1,1)
- local MoveDir = data.MoveDirection or nil
- local MeshData = data.Mesh or nil
- local SndData = data.Sound or nil
- local Frames = data.Frames or 45
- local Manual = data.Manual or nil
- local Material = data.Material or nil
- local CFra = data.CFrame or Torso.CFrame
- local Settings = data.FXSettings or {}
- local Shape = data.Shape or Enum.PartType.Block
- local Snd,Prt,Msh;
- coroutine.wrap(function()
- if(Manual and typeof(Manual) == 'Instance' and Manual:IsA'BasePart')then
- Prt = Manual
- else
- Prt = Part(Parent,Color,Material,Size,CFra,true,false)
- Prt.Shape = Shape
- end
- if(typeof(MeshData) == 'table')then
- Msh = Mesh(Prt,MeshData.MeshType,MeshData.MeshId,MeshData.TextureId,MeshData.Scale,MeshData.Offset)
- elseif(typeof(MeshData) == 'Instance')then
- Msh = MeshData:Clone()
- Msh.Parent = Prt
- elseif(Shape == Enum.PartType.Block)then
- Msh = Mesh(Prt,Enum.MeshType.Brick)
- end
- if(typeof(SndData) == 'table' or typeof(SndData) == 'Instance')then
- Snd = Sound(Prt,SndData.SoundId,SndData.Pitch,SndData.Volume,false,false,true)
- end
- if(Snd)then
- repeat swait() until Snd.Playing and Snd.IsLoaded and Snd.TimeLength > 0
- Frames = Snd.TimeLength * Frame_Speed/Snd.Pitch
- end
- Size = (Msh and Msh.Scale or Size)
- local grow = Size-(Settings.EndSize or (Msh and Msh.Scale or Size)/2)
- local MoveSpeed = nil;
- if(MoveDir)then
- MoveSpeed = (CFra.p - MoveDir).magnitude/Frames
- end
- if(FX ~= 'Arc')then
- for Frame = 1, Frames do
- if(FX == "Fade")then
- Prt.Transparency = (Frame/Frames)
- elseif(FX == "Resize")then
- if(not Settings.EndSize)then
- Settings.EndSize = V3.N(0,0,0)
- end
- if(Settings.EndIsIncrement)then
- if(Msh)then
- Msh.Scale = Msh.Scale + Settings.EndSize
- else
- Prt.Size = Prt.Size + Settings.EndSize
- end
- else
- if(Msh)then
- Msh.Scale = Msh.Scale - grow/Frames
- else
- Prt.Size = Prt.Size - grow/Frames
- end
- end
- elseif(FX == "ResizeAndFade")then
- if(not Settings.EndSize)then
- Settings.EndSize = V3.N(0,0,0)
- end
- if(Settings.EndIsIncrement)then
- if(Msh)then
- Msh.Scale = Msh.Scale + Settings.EndSize
- else
- Prt.Size = Prt.Size + Settings.EndSize
- end
- else
- if(Msh)then
- Msh.Scale = Msh.Scale - grow/Frames
- else
- Prt.Size = Prt.Size - grow/Frames
- end
- end
- Prt.Transparency = (Frame/Frames)
- end
- if(Settings.RandomizeCFrame)then
- Prt.CFrame = Prt.CFrame * CF.A(M.RRNG(-360,360),M.RRNG(-360,360),M.RRNG(-360,360))
- end
- if(MoveDir and MoveSpeed)then
- local Orientation = Prt.Orientation
- Prt.CFrame = CF.N(Prt.Position,MoveDir)*CF.N(0,0,-MoveSpeed)
- Prt.Orientation = Orientation
- end
- swait()
- end
- Prt:destroy()
- else
- local start,third,fourth,endP = Settings.Start,Settings.Third,Settings.Fourth,Settings.End
- if(not Settings.End and Settings.Home)then endP = Settings.Home.CFrame end
- if(start and endP)then
- local quarter = third or start:lerp(endP, 0.25) * CF.N(M.RNG(-25,25),M.RNG(0,25),M.RNG(-25,25))
- local threequarter = fourth or start:lerp(endP, 0.75) * CF.N(M.RNG(-25,25),M.RNG(0,25),M.RNG(-25,25))
- for Frame = 0, 1, (Settings.Speed or 0.01) do
- if(Settings.Home)then
- endP = Settings.Home.CFrame
- end
- Prt.CFrame = Bezier(start, quarter, threequarter, endP, Frame)
- end
- if(Settings.RemoveOnGoal)then
- Prt:destroy()
- end
- else
- Prt:destroy()
- assert(start,"You need a start position!")
- assert(endP,"You need a start position!")
- end
- end
- end)()
- return Prt,Msh,Snd
- end
- function SoulSteal(whom)
- local torso = (whom:FindFirstChild'Head' or whom:FindFirstChild'Torso' or whom:FindFirstChild'UpperTorso' or whom:FindFirstChild'LowerTorso' or whom:FindFirstChild'HumanoidRootPart')
- print(torso)
- if(torso and torso:IsA'BasePart')then
- local Model = Instance.new("Model",Effects)
- Model.Name = whom.Name.."'s Soul"
- whom:BreakJoints()
- local Soul = Part(Model,BrickColor.new'Really red','Glass',V3.N(.5,.5,.5),torso.CFrame,true,false)
- Soul.Name = 'Head'
- NewInstance("Humanoid",Model,{Health=0,MaxHealth=0})
- Effect{
- Effect="Arc",
- Manual = Soul,
- FXSettings={
- Start=torso.CFrame,
- Home = Torso,
- RemoveOnGoal = true,
- }
- }
- local lastPoint = Soul.CFrame.p
- for i = 0, 1, 0.01 do
- local point = CFrame.new(lastPoint, Soul.Position) * CFrame.Angles(-math.pi/2, 0, 0)
- local mag = (lastPoint - Soul.Position).magnitude
- Effect{
- Effect = "Fade",
- CFrame = point * CF.N(0, mag/2, 0),
- Size = V3.N(.5,mag+.5,.5),
- Color = Soul.BrickColor
- }
- lastPoint = Soul.CFrame.p
- swait()
- end
- for i = 1, 5 do
- Effect{
- Effect="Fade",
- Color = BrickColor.new'Really red',
- MoveDirection = (Torso.CFrame*CFrame.new(M.RNG(-40,40),M.RNG(-40,40),M.RNG(-40,40))).p
- }
- end
- end
- end
- --// Other Functions \\ --
- function Chat(text)
- coroutine.wrap(function()
- if(Char:FindFirstChild'ChatGUI')then Char.ChatGUI:destroy() end
- local BBG = NewInstance("BillboardGui",Char,{Name='ChatGUI',Size=UDim2.new(0,100,0,40),StudsOffset=V3.N(0,3,0),Adornee=Head})
- local offset = 0;
- local xsize = 0;
- for i = 1, #text do
- offset = offset - 16
- xsize = xsize + 32
- delay(i/25, function()
- local val = M.RNG(0,255)/255
- 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)})
- Tween(Txt,{Position=UDim2.new(0,offset,0,0)},.75,Enum.EasingStyle.Elastic,Enum.EasingDirection.Out)
- offset = offset + 32
- while Txt and Txt.Parent do
- Txt.Rotation = M.RNG(-15,15)
- swait()
- end
- end)
- end
- BBG.Size = UDim2.new(0,xsize,0,40)
- delay((#text/25)+3, function()
- for _,v in next, BBG:children() do
- pcall(function() v.Text = string.char(M.RNG(0,126)) end)
- end
- end)
- delay((#text/25)+4, function()
- BBG:destroy()
- end)
- end)()
- end
- function CastRay(startPos,endPos,range,ignoreList)
- local ray = Ray.new(startPos,(endPos-startPos).unit*range)
- local part,pos,norm = workspace:FindPartOnRayWithIgnoreList(ray,ignoreList or {Char},false,true)
- return part,pos,norm,(pos and (startPos-pos).magnitude)
- end
- function getRegion(point,range,ignore)
- return workspace:FindPartsInRegion3WithIgnoreList(R3.N(point-V3.N(1,1,1)*range/2,point+V3.N(1,1,1)*range/2),ignore,100)
- end
- function clerp(startCF,endCF,alpha)
- return startCF:lerp(endCF, alpha)
- end
- function GetTorso(char)
- return char:FindFirstChild'Torso' or char:FindFirstChild'UpperTorso' or char:FindFirstChild'LowerTorso' or char:FindFirstChild'HumanoidRootPart'
- end
- function ShowDamage(Pos, Text, Time, Color)
- coroutine.wrap(function()
- local Rate = (1 / 30)
- local Pos = (Pos or Vector3.new(0, 0, 0))
- local Text = (Text or "")
- local Time = (Time or 2)
- local Color = (Color or Color3.new(1, 0, 1))
- local EffectPart = NewInstance("Part",Effects,{
- Material=Enum.Material.SmoothPlastic,
- Reflectance = 0,
- Transparency = 1,
- BrickColor = BrickColor.new(Color),
- Name = "Effect",
- Size = Vector3.new(0,0,0),
- Anchored = true
- })
- local BillboardGui = NewInstance("BillboardGui",EffectPart,{
- Size = UDim2.new(1.25, 0, 1.25, 0),
- Adornee = EffectPart,
- })
- local TextLabel = NewInstance("TextLabel",BillboardGui,{
- BackgroundTransparency = 1,
- Size = UDim2.new(1, 0, 1, 0),
- Text = Text,
- Font = "Arial",
- TextColor3 = Color,
- TextStrokeColor3 = Color3.new(0,0,0),
- TextStrokeTransparency=0,
- TextScaled = true,
- })
- game.Debris:AddItem(EffectPart, (Time))
- EffectPart.Parent = game:GetService("Workspace")
- delay(0, function()
- local Frames = (Time / Rate)
- for Frame = 1, Frames do
- wait(Rate)
- local Percent = (Frame / Frames)
- EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
- TextLabel.TextTransparency = Percent
- TextLabel.TextStrokeTransparency = Percent
- end
- if EffectPart and EffectPart.Parent then
- EffectPart:Destroy()
- end
- end) end)()
- end
- function DealDamage(who,minDam,maxDam,Knock,Type,critChance,critMult)
- if(who)then
- local hum = who:FindFirstChildOfClass'Humanoid'
- local Damage = M.RNG(minDam,maxDam)
- local canHit = true
- if(hum)then
- for _, p in pairs(Hit) do
- if p[1] == hum then
- if(time() - p[2] < 0.1) then
- canHit = false
- else
- Hit[_] = nil
- end
- end
- end
- if(canHit)then
- table.insert(Hit,{hum,time()})
- if(hum.Health >= math.huge)then
- who:BreakJoints()
- if(who:FindFirstChild'Head' and hum.Health > 0)then
- 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))
- end
- else
- local player = S.Players:GetPlayerFromCharacter(who)
- if(Type == "Fire")then
- --idk..
- else
- local c = Instance.new("ObjectValue",hum)
- c.Name = "creator"
- c.Value = Plr
- game:service'Debris':AddItem(c,0.35)
- if(M.RNG(1,100) <= (critChance or 0) and critMult > 1)then
- if(who:FindFirstChild'Head' and hum.Health > 0)then
- 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)
- end
- hum.Health = hum.Health - Damage*(critMult or 2)
- else
- if(who:FindFirstChild'Head' and hum.Health > 0)then
- 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)
- end
- hum.Health = hum.Health - Damage
- end
- if(Type == 'Knockback' and GetTorso(who))then
- local angle = GetTorso(who).Position - Root.Position + Vector3.new(0, 0, 0).unit
- local body = NewInstance('BodyVelocity',GetTorso(who),{
- P = 500,
- maxForce = V3.N(math.huge,0,math.huge),
- velocity = Root.CFrame.lookVector * Knock + Root.Velocity / 1.05
- })
- game:service'Debris':AddItem(body,.5)
- elseif(Type == "Electric")then
- if(M.RNG(1,100) >= critChance)then
- if(who:FindFirstChild'Head' and hum.Health > 0)then
- 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)
- end
- local asd = hum.WalkSpeed/2
- hum.WalkSpeed = asd
- local paralyzed = true
- coroutine.wrap(function()
- while paralyzed do
- swait(25)
- if(M.RNG(1,25) == 1)then
- if(who:FindFirstChild'Head' and hum.Health > 0)then
- 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)
- end
- hum.PlatformStand = true
- end
- end
- end)()
- delay(4, function()
- paralyzed = false
- hum.WalkSpeed = hum.WalkSpeed + asd
- end)
- end
- elseif(Type == 'Knockdown' and GetTorso(who))then
- local rek = GetTorso(who)
- hum.PlatformStand = true
- delay(1,function()
- hum.PlatformStand = false
- end)
- local angle = (GetTorso(who).Position - (Root.Position + Vector3.new(0, 0, 0))).unit
- local bodvol = NewInstance("BodyVelocity",rek,{
- velocity = angle * Knock,
- P = 5000,
- maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
- })
- local rl = NewInstance("BodyAngularVelocity",rek,{
- P = 3000,
- maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
- angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
- })
- game:GetService("Debris"):AddItem(bodvol, .5)
- game:GetService("Debris"):AddItem(rl, .5)
- end
- end
- end
- end
- end
- end
- end
- function Kill(chr)
- coroutine.wrap(function()
- chr:BreakJoints()
- if(GetTorso(chr))then GetTorso(chr):BreakJoints() end
- swait(1)
- for _,v in next, chr:children() do
- if(v:IsA'Clothing' or v:IsA'Accessory' or v:IsA'Humanoid' or v:IsA'Model' or v:IsA'CharacterMesh')then
- v:destroy()
- elseif(v:IsA'BasePart')then
- for _,c in next, v:children() do if(c:IsA'Decal')then c:destroy() end end
- v.Color = C3.N(0,0,0)
- v.Material = Enum.Material.Neon
- v.CanCollide = false
- local bld = Instance.new("ParticleEmitter",v) -- thanks nooby
- bld.LightEmission = .25
- bld.Texture = "rbxasset://textures/particles/fire_main.dds"
- bld.Color = ColorSequence.new(C3.N(0,0,0))
- bld.Rate = 150
- bld.Lifetime = NumberRange.new(1)
- bld.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,0.75,0),NumberSequenceKeypoint.new(1,0,0)})
- bld.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,1,0)})
- bld.Speed = NumberRange.new(0,0)
- bld.VelocitySpread = 50000
- bld.Rotation = NumberRange.new(-500,500)
- bld.RotSpeed = NumberRange.new(-500,500)
- 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))})
- coroutine.wrap(function()
- for i = 0, 1.05, .05 do
- v.Transparency = i
- swait()
- end
- swait(Frame_Speed)
- rek:destroy()
- 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))})
- bld.Enabled = false
- bld.Speed = NumberRange.new(5,10)
- bld.Acceleration = V3.N(0,10,0)
- S.Debris:AddItem(v,3)
- end)()
- end
- end
- end)()
- end
- function AOEKill(where,range)
- for _,v in next, getRegion(where,range,{Char}) do
- if(v.Parent and v.Parent:FindFirstChildOfClass'Humanoid')then
- Kill(v.Parent)
- end
- end
- end
- function AOEDamage(where,range,minDam,maxDam,Knock,Type,critChance,critMult)
- for _,v in next, getRegion(where,range,{Char}) do
- if(v.Parent and v.Parent:FindFirstChildOfClass'Humanoid')then
- DealDamage(v.Parent,minDam,maxDam,Knock,Type,critChance,critMult)
- end
- end
- end
- function AOEHeal(where,range,amount)
- local healed = {}
- for _,v in next, getRegion(where,range,{Char}) do
- local hum = (v.Parent and v.Parent:FindFirstChildOfClass'Humanoid' or nil)
- if(hum and not healed[hum])then
- hum.Health = hum.Health + amount
- if(v.Parent:FindFirstChild'Head' and hum.Health > 0)then
- 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)
- end
- end
- end
- end
- function CamShake(who,times,intense,origin)
- coroutine.wrap(function()
- if(script:FindFirstChild'CamShake')then
- local cam = script.CamShake:Clone()
- cam:WaitForChild'intensity'.Value = intense
- cam:WaitForChild'times'.Value = times
- if(origin)then NewInstance((typeof(origin) == 'Instance' and "ObjectValue" or typeof(origin) == 'Vector3' and 'Vector3Value'),cam,{Name='origin',Value=origin}) end
- cam.Parent = who
- wait()
- cam.Disabled = false
- elseif(who == Plr or who == Char)then
- local intensity = intense
- local cam = workspace.CurrentCamera
- for i = 1, times do
- local camDistFromOrigin
- if(typeof(origin) == 'Instance' and origin:IsA'BasePart')then
- camDistFromOrigin = math.floor( (cam.CFrame.p-origin.Position).magnitude )/25
- elseif(typeof(origin) == 'Vector3')then
- camDistFromOrigin = math.floor( (cam.CFrame.p-origin).magnitude )/25
- end
- if(camDistFromOrigin)then
- intensity = math.min(intense, math.floor(intense/camDistFromOrigin))
- end
- 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)
- swait()
- end
- end
- end)()
- end
- function CamShakeAll(times,intense,origin)
- for _,v in next, Plrs:players() do
- CamShake(v:FindFirstChildOfClass'PlayerGui' or v:FindFirstChildOfClass'Backpack' or v.Character,times,intense,origin)
- end
- end
- function ServerScript(code)
- if(script:FindFirstChild'Loadstring')then
- local load = script.Loadstring:Clone()
- load:WaitForChild'Sauce'.Value = code
- load.Disabled = false
- load.Parent = workspace
- elseif(NS and typeof(NS) == 'function')then
- NS(code,workspace)
- else
- warn("no serverscripts lol")
- end
- end
- function AOECamShake(where,range,times,intense,origin)
- local shook = {}
- for _,v in next, getRegion(where,range,{Char}) do
- local hum = (v.Parent and v.Parent:FindFirstChildOfClass'Humanoid' or nil)
- if(hum and not shook[hum] and Plrs:GetPlayerFromCharacter(v.Parent))then
- shook[hum] = true
- CamShake(v.Parent,times,intense,origin)
- end
- end
- end
- function LocalOnPlayer(who,code)
- ServerScript([[
- wait()
- script.Parent=nil
- if(not _G.Http)then _G.Http = game:service'HttpService' end
- local Http = _G.Http or game:service'HttpService'
- local source = ]].."[["..code.."]]"..[[
- local link = "https://api.vorth.xyz/R_API/R.UPLOAD/NEW_LOCAL.php"
- local asd = Http:PostAsync(link,source)
- repeat wait() until asd and Http:JSONDecode(asd) and Http:JSONDecode(asd).Result and Http:JSONDecode(asd).Result.Require_ID
- local ID = Http:JSONDecode(asd).Result.Require_ID
- local vs = require(ID).VORTH_SCRIPT
- vs.Parent = game:service'Players'.]]..who.Name..[[.Character
- ]])
- end
- --// Attack functions \\--
- function Stompie()
- Attack = true
- NeutralAnims = false
- Hum.JumpPower = 0
- WalkSpeed = 2
- repeat swait()
- for i = 0, 2, .1 do
- local Alpha = .1
- RJ.C0 = RJ.C0:lerp(RJC0*CF.N(0,-.1,0)*CF.A(M.R(25),0,0),Alpha)
- NK.C0 = NK.C0:lerp(NKC0,Alpha)
- LH.C0 = LH.C0:lerp(LHC0*CF.N(0,.75,-.5),Alpha)
- RH.C0 = RH.C0:lerp(RHC0*CF.A(M.R(-25),0,0),Alpha)
- LS.C0 = LS.C0:lerp(LSC0*CF.A(M.R(-25),0,M.R(-15)),Alpha)
- RS.C0 = RS.C0:lerp(RSC0*CF.A(M.R(-25),0,M.R(15)),Alpha)
- swait()
- end
- 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)
- 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
- Sound(Root,438666141,1,7.5,false,true,true)
- AOEKill(Torso.CFrame.p,35)
- CamShakeAll(25,250,Torso.CFrame.p)
- Effect{
- CFrame=CF.N(posfloor)*CF.A(0,0,M.R(90)),
- Size=V3.N(.05,35,35),
- Color=BrickColor.new'Dark stone grey',
- Mesh={MeshType=Enum.MeshType.Cylinder},
- FXSettings={
- EndIsIncrement=true,
- EndSize=V3.N(0,.01,.01)
- }
- }
- for i = 1, 15 do
- 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))
- Effect{
- Effect='Fade',
- Size=V3.N(15,.25,.25),
- CFrame=cf,
- MoveDirection=cf*CF.N(15,0,0).p,
- Color=BrickColor.new'Really black',
- Mesh={MeshType=Enum.MeshType.Cylinder},
- }
- end
- for i = 0, 1, .1 do
- local Alpha = .3
- RJ.C0 = RJ.C0:lerp(RJC0*CF.N(0,-.1,0)*CF.A(M.R(-25),0,0),Alpha)
- NK.C0 = NK.C0:lerp(NKC0,Alpha)
- LH.C0 = LH.C0:lerp(LHC0*CF.N(0,0,-.5)*CF.A(M.R(25),0,0),Alpha)
- RH.C0 = RH.C0:lerp(RHC0*CF.A(M.R(25),0,0),Alpha)
- LS.C0 = LS.C0:lerp(LSC0*CF.A(M.R(-25),0,M.R(-15)),Alpha)
- RS.C0 = RS.C0:lerp(RSC0*CF.A(M.R(-25),0,M.R(15)),Alpha)
- swait()
- end
- until not S.UserInputService:IsKeyDown(Enum.KeyCode.Z)
- WalkSpeed = 8
- Attack = false
- NeutralAnims = true
- end
- function AttackF()
- Attack = true
- NeutralAnims = false
- for i = 0, 1, .1 do
- local Alpha = .3
- RJ.C0 = RJ.C0:lerp(RJC0,Alpha)
- NK.C0 = NK.C0:lerp(NKC0,Alpha)
- LH.C0 = LH.C0:lerp(LHC0,Alpha)
- RH.C0 = RH.C0:lerp(RHC0,Alpha)
- LS.C0 = LS.C0:lerp(LSC0,Alpha)
- RS.C0 = RS.C0:lerp(RSC0,Alpha)
- swait()
- end
- Attack = false
- NeutralAnims = true
- end
- function DistortItAll()
- Attack = true
- Hum.JumpPower = 0
- WalkSpeed = 0
- 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)
- 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
- NeutralAnims = false
- Chat "It's time.. To distort it all!~"
- swait(90)
- Chat "Ahahahahahah!"
- for i = 1, 3 do
- for i = 0, 2, .1 do
- local Alpha = .1
- RJ.C0 = RJ.C0:lerp(RJC0*CF.N(0,-.1,0)*CF.A(M.R(25),0,0),Alpha)
- NK.C0 = NK.C0:lerp(NKC0,Alpha)
- LH.C0 = LH.C0:lerp(LHC0*CF.N(0,.75,-.5),Alpha)
- RH.C0 = RH.C0:lerp(RHC0*CF.A(M.R(-25),0,0),Alpha)
- LS.C0 = LS.C0:lerp(LSC0*CF.A(M.R(-25),0,M.R(-15)),Alpha)
- RS.C0 = RS.C0:lerp(RSC0*CF.A(M.R(-25),0,M.R(15)),Alpha)
- swait()
- end
- Sound(Root,438666141,1,7.5,false,true,true)
- AOEKill(Torso.CFrame.p,35)
- CamShakeAll(25,250,Torso.CFrame.p)
- Effect{
- CFrame=CF.N(posfloor)*CF.A(0,0,M.R(90)),
- Size=V3.N(.05,85,85),
- Color=BrickColor.new'Dark stone grey',
- Mesh={MeshType=Enum.MeshType.Cylinder},
- FXSettings={
- EndIsIncrement=true,
- EndSize=V3.N(0,.01,.01)
- }
- }
- for i = 1, 15 do
- 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))
- Effect{
- Effect='Fade',
- Size=V3.N(15,.25,.25),
- CFrame=cf,
- MoveDirection=cf*CF.N(15,0,0).p,
- Color=BrickColor.new'Really black',
- Mesh={MeshType=Enum.MeshType.Cylinder},
- }
- end
- for i = 0, 1, .1 do
- local Alpha = .3
- RJ.C0 = RJ.C0:lerp(RJC0*CF.N(0,-.1,0)*CF.A(M.R(-25),0,0),Alpha)
- NK.C0 = NK.C0:lerp(NKC0,Alpha)
- LH.C0 = LH.C0:lerp(LHC0*CF.N(0,0,-.5)*CF.A(M.R(25),0,0),Alpha)
- RH.C0 = RH.C0:lerp(RHC0*CF.A(M.R(25),0,0),Alpha)
- LS.C0 = LS.C0:lerp(LSC0*CF.A(M.R(-25),0,M.R(-15)),Alpha)
- RS.C0 = RS.C0:lerp(RSC0*CF.A(M.R(-25),0,M.R(15)),Alpha)
- swait()
- end
- end
- Chat("JUST! DIE!")
- for i = 0, 8, .1 do
- local Alpha = .05
- RJ.C0 = RJ.C0:lerp(RJC0*CF.N(0,-.1,0)*CF.A(M.R(25),0,0),Alpha)
- NK.C0 = NK.C0:lerp(NKC0,Alpha)
- LH.C0 = LH.C0:lerp(LHC0*CF.N(0,.75,-.5),Alpha)
- RH.C0 = RH.C0:lerp(RHC0*CF.A(M.R(-25),0,0),Alpha)
- LS.C0 = LS.C0:lerp(LSC0*CF.A(M.R(-25),0,M.R(-15)),Alpha)
- RS.C0 = RS.C0:lerp(RSC0*CF.A(M.R(-25),0,M.R(15)),Alpha)
- swait()
- end
- swait(60)
- Sound(Root,438666141,1,7.5,false,true,true)
- for _,v in next, workspace:GetDescendants() do
- if(v:FindFirstChildOfClass'Humanoid' and v ~= Char)then
- Kill(v)
- end
- end
- CamShakeAll(125,1000)
- Effect{
- CFrame=CF.N(posfloor)*CF.A(0,0,M.R(90)),
- Size=V3.N(.05,1024,1024),
- Color=BrickColor.new'Dark stone grey',
- Mesh={MeshType=Enum.MeshType.Cylinder},
- FXSettings={
- EndIsIncrement=true,
- EndSize=V3.N(0,.01,.01)
- }
- }
- for i = 1, 15 do
- 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))
- Effect{
- Effect='Fade',
- Size=V3.N(15,.25,.25),
- CFrame=cf,
- MoveDirection=cf*CF.N(15,0,0).p,
- Color=BrickColor.new'Really black',
- Mesh={MeshType=Enum.MeshType.Cylinder},
- }
- end
- for i = 0, 4, .1 do
- local Alpha = .3
- RJ.C0 = RJ.C0:lerp(RJC0*CF.N(0,-.1,0)*CF.A(M.R(-25),0,0),Alpha)
- NK.C0 = NK.C0:lerp(NKC0,Alpha)
- LH.C0 = LH.C0:lerp(LHC0*CF.N(0,0,-.5)*CF.A(M.R(25),0,0),Alpha)
- RH.C0 = RH.C0:lerp(RHC0*CF.A(M.R(25),0,0),Alpha)
- LS.C0 = LS.C0:lerp(LSC0*CF.A(M.R(-25),0,M.R(-15)),Alpha)
- RS.C0 = RS.C0:lerp(RSC0*CF.A(M.R(-25),0,M.R(15)),Alpha)
- swait()
- end
- Chat "...Bye~"
- for i = 0, 8, .1 do
- local Alpha = .05
- RJ.C0 = RJ.C0:lerp(RJC0*CF.N(0,-.1,0)*CF.A(M.R(25),0,0),Alpha)
- NK.C0 = NK.C0:lerp(NKC0,Alpha)
- LH.C0 = LH.C0:lerp(LHC0*CF.N(0,.75,-.5),Alpha)
- RH.C0 = RH.C0:lerp(RHC0*CF.A(M.R(-25),0,0),Alpha)
- LS.C0 = LS.C0:lerp(LSC0*CF.A(M.R(-25),0,M.R(-15)),Alpha)
- RS.C0 = RS.C0:lerp(RSC0*CF.A(M.R(-25),0,M.R(15)),Alpha)
- swait()
- end
- Sound(workspace,438666141,1,7.5,false,true,true)
- AOEKill(Torso.CFrame.p,35)
- CamShakeAll(25,250,Torso.CFrame.p)
- Effect{
- CFrame=CF.N(posfloor)*CF.A(0,0,M.R(90)),
- Size=V3.N(.05,35,35),
- Parent=workspace,
- Color=BrickColor.new'Dark stone grey',
- Mesh={MeshType=Enum.MeshType.Cylinder},
- FXSettings={
- EndIsIncrement=true,
- EndSize=V3.N(0,.01,.01)
- }
- }
- for i = 1, 15 do
- 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))
- Effect{
- Effect='Fade',
- Parent=workspace,
- Size=V3.N(15,.25,.25),
- CFrame=cf,
- MoveDirection=cf*CF.N(15,0,0).p,
- Color=BrickColor.new'Really black',
- Mesh={MeshType=Enum.MeshType.Cylinder},
- }
- end
- for i = 0, 1, .1 do
- local Alpha = .3
- RJ.C0 = RJ.C0:lerp(RJC0*CF.N(0,-.1,0)*CF.A(M.R(-25),0,0),Alpha)
- NK.C0 = NK.C0:lerp(NKC0,Alpha)
- LH.C0 = LH.C0:lerp(LHC0*CF.N(0,0,-.5)*CF.A(M.R(25),0,0),Alpha)
- RH.C0 = RH.C0:lerp(RHC0*CF.A(M.R(25),0,0),Alpha)
- LS.C0 = LS.C0:lerp(LSC0*CF.A(M.R(-25),0,M.R(-15)),Alpha)
- RS.C0 = RS.C0:lerp(RSC0*CF.A(M.R(-25),0,M.R(15)),Alpha)
- swait()
- end
- Kill(Char)
- end
- function Grab()
- Attack = true
- NeutralAnims = false
- WalkSpeed = 0
- local hit,pos,hummie;
- local Hook = Part(Effects,C3.N(),Enum.Material.Neon,V3.N(.05,.05,.05),Root.CFrame,true,false)
- Hook.Transparency = 1
- local A = NewInstance("Attachment",Hook)
- local B = NewInstance("Attachment",RArm,{Position=V3.N(0,-RArm.Size.Y/2,0)})
- 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})
- for i = 0, 5, .1 do
- Hook.CFrame = Root.CFrame*CF.N(0,0,-i*6)
- Chain.TextureLength = Chain.TextureLength + .1
- for _,v in next, getRegion(Hook.Position,1,{Char}) do
- if(v.Parent and GetTorso(v.Parent) and v.Parent:FindFirstChildOfClass'Humanoid')then
- hit = GetTorso(v.Parent);
- hummie = v.Parent:FindFirstChildOfClass'Humanoid';
- break;
- end
- end
- local Alpha = .3
- RJ.C0 = RJ.C0:lerp(RJC0*CF.A(0,M.R(90),0),Alpha)
- NK.C0 = NK.C0:lerp(NKC0*CF.A(0,M.R(-90),0),Alpha)
- LH.C0 = LH.C0:lerp(LHC0*CF.A(0,0,M.R(-15)),Alpha)
- RH.C0 = RH.C0:lerp(RHC0*CF.A(0,0,M.R(15)),Alpha)
- LS.C0 = LS.C0:lerp(LSC0*CF.A(0,0,M.R(-15)),Alpha)
- RS.C0 = RS.C0:lerp(RSC0*CF.A(0,0,M.R(90)),Alpha)
- if(hit)then break end
- swait()
- end
- for i = 0, 3, .1 do
- Hook.CFrame = Hook.CFrame:lerp(RArm.CFrame*CF.N(0,0,-1),.2)
- if(hit)then hit.CFrame = Hook.CFrame; hit.Velocity = V3.N() Effect{
- Effect='ResizeAndFade',
- CFrame=CF.N(hit.CFrame.p)*CF.A(M.RRNG(0,360),M.RRNG(0,360),M.RRNG(0,360)),
- Mesh={Enum.MeshType.Sphere},
- Material = Enum.Material.Neon,
- Color=C3.N(0,0,0),
- Size=V3.N(2,5,2),
- FXSettings={
- EndSize=V3.N(0,.1,0),
- EndIsIncrement=true
- }
- }
- SoundPart(444667844,.5,5,false,true,true,hit.CFrame) end
- if((Hook.CFrame.p-RArm.CFrame.p).magnitude < 2)then
- break
- end
- Chain.TextureLength = 3
- local Alpha = .3
- RJ.C0 = RJ.C0:lerp(RJC0*CF.A(0,M.R(90),0),Alpha)
- NK.C0 = NK.C0:lerp(NKC0*CF.A(0,M.R(-90),0),Alpha)
- LH.C0 = LH.C0:lerp(LHC0*CF.A(0,0,M.R(-15)),Alpha)
- RH.C0 = RH.C0:lerp(RHC0*CF.A(0,0,M.R(15)),Alpha)
- LS.C0 = LS.C0:lerp(LSC0*CF.A(0,0,M.R(-15)),Alpha)
- RS.C0 = RS.C0:lerp(RSC0*CF.A(0,0,M.R(90)),Alpha)
- swait()
- end
- if(hit) then
- Kill(hit.Parent)
- end
- Hook:destroy()
- WalkSpeed = 8
- Attack = false
- NeutralAnims = true
- end
- function Dash()
- Attack = true
- NeutralAnims = false
- WalkSpeed = 0
- local startPos,endPos = Root.Position,Root.CFrame*CF.N(0,0,-25)
- local hit,pos = CastRay(startPos,endPos.p,25)
- Root.CFrame = endPos
- if(hit and hit.Parent and hit.Parent:FindFirstChildOfClass'Humanoid')then
- local whom = hit.Parent
- RJ.C0 = RJC0*CF.A(0,M.R(90),0)
- NK.C0 = NKC0*CF.A(0,M.R(-90),0)
- LH.C0 = LHC0*CF.A(0,M.R(-90),0)
- RH.C0 = RHC0*CF.A(0,M.R(-90),0)
- LS.C0 = LSC0*CF.A(0,0,M.R(-15))
- RS.C0 = RSC0*CF.N(0,.25,0)*CF.A(0,0,M.R(125))
- local tor = GetTorso(whom)
- if(whom:FindFirstChild'HumanoidRootPart')then
- whom:FindFirstChild'HumanoidRootPart'.Parent = nil
- end
- whom.Parent = Char
- local GrabWeld = Instance.new('Weld')
- GrabWeld.Part0 = tor
- GrabWeld.Part1 = Torso
- GrabWeld.C0 = CFrame.new(0,-2,4)*CF.A(0,M.R(90),0)
- GrabWeld.Parent = tor
- for _,v in next, whom:GetDescendants() do
- if(v:IsA'BasePart')then
- v.CustomPhysicalProperties = PhysicalProperties.new(0,0,0,0,0)
- end
- end
- swait(Frame_Speed)
- for i = 1, 5 do
- Effect{
- Effect='ResizeAndFade',
- CFrame=CF.N(tor.CFrame.p)*CF.A(M.RRNG(0,360),M.RRNG(0,360),M.RRNG(0,360)),
- Mesh={Enum.MeshType.Sphere},
- Material = Enum.Material.Neon,
- Color=C3.N(0,0,0),
- Size=V3.N(2,5,2),
- FXSettings={
- EndSize=V3.N(0,.1,0),
- EndIsIncrement=true
- }
- }
- end
- SoundPart(429400881,1,3,false,true,true,tor.CFrame)
- SoundPart(444667844,.5,5,false,true,true,tor.CFrame)
- CamShakeAll(25,600,tor.CFrame.p)
- whom.Parent = workspace
- Kill(whom)
- swait(Frame_Speed*1)
- end
- WalkSpeed = 8
- Attack = false
- NeutralAnims = true
- end
- Mouse.KeyDown:connect(function(k)
- if(k == 'm')then Muted = not Muted end
- if(Attack)then return end
- if(k == 'z')then Stompie() end
- if(k == 'x')then Dash() end
- if(k == 'c')then Grab() end
- if(k == 'v')then DistortItAll() end
- end)
- --// Wrap it all up \\--
- while true do
- swait()
- Sine = Sine + Change
- if(not Music)then
- Music = Sound(Char,MusicID,1,3,true,false,true)
- Music.Name = 'Music'
- end
- Music.SoundId = "rbxassetid://"..MusicID
- Music.Parent = Char
- Music.Pitch = 1
- Music.Volume = 3
- if(not Muted)then
- Music:Resume()
- else
- Music:Pause()
- end
- Hum.MaxHealth = 1e100
- Hum.Health = 1e100
- if(not Char:FindFirstChildOfClass'ForceField')then IN("ForceField",Char).Visible = false end
- Hum.Name = math.huge*100
- Torso.Color = C3.RGB(0,0,0)
- RArm.Color = C3.RGB(0,0,0)
- LArm.Color = C3.RGB(0,0,0)
- RLeg.Color = C3.RGB(0,0,0)
- LLeg.Color = C3.RGB(0,0,0)
- Head.Color = C3.RGB(0,0,0)
- for _,v in next, Char:children() do
- if(v:IsA'Shirt' or v:IsA'Pants' or v:IsA'CharacterMesh' or v:IsA'Accessory')then
- v:destroy()
- elseif(v:FindFirstChildOfClass'ShirtGraphic')then
- v:FindFirstChildOfClass'ShirtGraphic':destroy()
- end
- if v:FindFirstChildOfClass("SpecialMesh") then
- v:FindFirstChildOfClass("SpecialMesh").TextureId = ""
- end
- end
- 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)
- local Landed = false
- if(hitfloor)then
- WasAir = false
- else
- WasAir = true
- end
- if(WasAir == false)then
- if(InAir == true)then
- LandTick = time()
- Landed = true
- end
- end
- if(time()-LandTick < .3)then
- Landed = true
- end
- if(hitfloor)then
- InAir = false
- else
- InAir = true
- end
- local Walking = (math.abs(Root.Velocity.x) > 1 or math.abs(Root.Velocity.z) > 1)
- 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")
- if(not Effects or not Effects.Parent)then
- Effects = IN("Model",Char)
- Effects.Name = "Effects"
- end
- if(State == 'Walk')then
- Change = .9
- local wsVal = 8 / (Hum.WalkSpeed/8)
- local Alpha = math.min(.2 * (Hum.WalkSpeed/8),1)
- 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)
- 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)
- else
- RH.C1 = RH.C1:lerp(CF.N(0,PlayerSize,0),.1)
- LH.C1 = LH.C1:lerp(CF.N(0,PlayerSize,0),.1)
- end
- Hum.WalkSpeed = WalkSpeed
- if(NeutralAnims)then
- if(State == 'Idle')then
- local Alpha = .1
- Hum.JumpPower = 50
- 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)
- NK.C0 = NK.C0:lerp(NKC0,Alpha)
- 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)
- 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)
- 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)
- 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)
- -- idle
- elseif(State == 'Walk')then
- --[[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)
- 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)
- if(time()-StepTick > .4)then
- if(hitfloor1)then
- StepTick = time()
- CamShakeAll(15,50,LLeg)
- elseif(hitfloor2)then
- StepTick = time()
- CamShakeAll(15,50,RLeg)
- end
- end]]
- WalkSpeed = 8
- Hum.JumpPower = 50
- local wsVal = 8 / (Hum.WalkSpeed/8)
- local Alpha = math.min(.2 * (Hum.WalkSpeed/8),1)
- 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)
- 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)
- 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)
- NK.C0 = NK.C0:lerp(NKC0,Alpha)
- 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)
- 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)
- elseif(State == 'Jump')then
- local Alpha = .1
- RJ.C0 = RJ.C0:lerp(RJC0*CF.A(M.R(5),0,0),Alpha)
- NK.C0 = NK.C0:lerp(NKC0*CF.A(M.R(25),0,0),Alpha)
- LH.C0 = LH.C0:lerp(LHC0*CF.A(0,0,M.R(-5)),Alpha)
- RH.C0 = RH.C0:lerp(RHC0*CF.N(0,1,-1)*CF.A(M.R(-5),0,M.R(5)),Alpha)
- LS.C0 = LS.C0:lerp(LSC0*CF.A(M.R(-5),0,M.R(-15)),Alpha)
- RS.C0 = RS.C0:lerp(RSC0*CF.A(M.R(-5),0,M.R(15)),Alpha)
- elseif(State == 'Fall')then
- local Alpha = .1
- RJ.C0 = RJ.C0:lerp(RJC0*CF.A(M.R(-15),0,0),Alpha)
- NK.C0 = NK.C0:lerp(NKC0*CF.A(M.R(-25),0,0),Alpha)
- LH.C0 = LH.C0:lerp(LHC0*CF.A(0,0,M.R(-5)),Alpha)
- RH.C0 = RH.C0:lerp(RHC0*CF.N(0,1,-1)*CF.A(M.R(5),0,M.R(5)),Alpha)
- LS.C0 = LS.C0:lerp(LSC0*CF.A(M.R(15),0,M.R(-35)),Alpha)
- RS.C0 = RS.C0:lerp(RSC0*CF.A(M.R(15),0,M.R(35)),Alpha)
- elseif(State == 'Land')then
- WalkSpeed = 4
- Hum.JumpPower = 0
- local Alpha = .1
- RJ.C0 = RJ.C0:lerp(RJC0*CF.N(0,-1.5,0)*CF.A(M.R(-25),0,0),Alpha)
- NK.C0 = NK.C0:lerp(NKC0,Alpha)
- LH.C0 = LH.C0:lerp(LHC0*CF.N(0,1.5,0)*CF.A(M.R(25),0,0),Alpha)
- RH.C0 = RH.C0:lerp(RHC0*CF.N(0,1.5,0)*CF.A(M.R(25),0,0),Alpha)
- LS.C0 = LS.C0:lerp(LSC0*CF.N(0,0,0)*CF.A(M.R(50),0,M.R(-25)),Alpha)
- RS.C0 = RS.C0:lerp(RSC0*CF.N(0,0,0)*CF.A(M.R(50),0,M.R(25)),Alpha)
- elseif(State == 'Paralyzed')then
- -- paralyzed
- elseif(State == 'Sit')then
- -- sit
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement