Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Made by KillerDarkness0105/Codex#6685 will prob be finished in a few days from the 3rd of july.
- Player=game:GetService("Players").LocalPlayer
- Character=Player.Character
- PlayerGui=Player.PlayerGui
- Backpack=Player.Backpack
- Torso=Character.Torso
- mr=math.rad
- Head=Character.Head
- Humanoid=Character.Humanoid
- --m=Instance.new('Model',Character)
- LeftArm=Character["Left Arm"]
- LeftLeg=Character["Left Leg"]
- RightArm=Character["Right Arm"]
- RightLeg=Character["Right Leg"]
- LS=Torso["Left Shoulder"]
- LH=Torso["Left Hip"]
- RS=Torso["Right Shoulder"]
- RH=Torso["Right Hip"]
- Face = Head.face
- Neck=Torso.Neck
- it=Instance.new
- attacktype=1
- vt=Vector3.new
- cf=CFrame.new
- V3=Vector3
- CF=CFrame
- char=Character
- euler=CFrame.fromEulerAnglesXYZ
- angles=CFrame.Angles
- necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
- necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
- LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
- LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
- RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
- RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
- RootPart=Character.HumanoidRootPart
- RootJoint=RootPart.RootJoint
- RootCF=euler(-1.57,0,3.14)
- attack = false
- attackdebounce = false
- equipped=true
- trispeed=.2
- attackmode='none'
- local idle=0
- local Anim="Idle"
- local footsteps = false
- local boost = false
- local targetted = nil
- local Super = false
- Humanoid.Animator.Parent = nil
- Character.Animate.Parent = nil
- Character.Humanoid.Health = 10000
- Character.Humanoid.MaxHealth = 10000
- function clerp(a,b,t)
- local qa = {QuaternionFromCFrame(a)}
- local qb = {QuaternionFromCFrame(b)}
- local ax, ay, az = a.x, a.y, a.z
- local bx, by, bz = b.x, b.y, b.z
- local _t = 1-t
- return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
- end
- function QuaternionFromCFrame(cf)
- local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
- local trace = m00 + m11 + m22
- if trace > 0 then
- local s = math.sqrt(1 + trace)
- local recip = 0.5/s
- return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
- else
- local i = 0
- if m11 > m00 then
- i = 1
- end
- if m22 > (i == 0 and m00 or m11) then
- i = 2
- end
- if i == 0 then
- local s = math.sqrt(m00-m11-m22+1)
- local recip = 0.5/s
- return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
- elseif i == 1 then
- local s = math.sqrt(m11-m22-m00+1)
- local recip = 0.5/s
- return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
- elseif i == 2 then
- local s = math.sqrt(m22-m00-m11+1)
- local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
- end
- end
- end
- function QuaternionToCFrame(px, py, pz, x, y, z, w)
- local xs, ys, zs = x + x, y + y, z + z
- local wx, wy, wz = w*xs, w*ys, w*zs
- local xx = x*xs
- local xy = x*ys
- local xz = x*zs
- local yy = y*ys
- local yz = y*zs
- local zz = z*zs
- return CFrame.new(px, py, pz,1-(yy+zz), xy - wz, xz + wy,xy + wz, 1-(xx+zz), yz - wx, xz - wy, yz + wx, 1-(xx+yy))
- end
- function QuaternionSlerp(a, b, t)
- local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
- local startInterp, finishInterp;
- if cosTheta >= 0.0001 then
- if (1 - cosTheta) > 0.0001 then
- local theta = math.acos(cosTheta)
- local invSinTheta = 1/math.sin(theta)
- startInterp = math.sin((1-t)*theta)*invSinTheta
- finishInterp = math.sin(t*theta)*invSinTheta
- else
- startInterp = 1-t
- finishInterp = t
- end
- else
- if (1+cosTheta) > 0.0001 then
- local theta = math.acos(-cosTheta)
- local invSinTheta = 1/math.sin(theta)
- startInterp = math.sin((t-1)*theta)*invSinTheta
- finishInterp = math.sin(t*theta)*invSinTheta
- else
- startInterp = t-1
- finishInterp = t
- end
- end
- return a[1]*startInterp + b[1]*finishInterp, a[2]*startInterp + b[2]*finishInterp, a[3]*startInterp + b[3]*finishInterp, a[4]*startInterp + b[4]*finishInterp
- end
- --Example: Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
- function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
- return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
- end
- Damagefunc=function(hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,decreaseblock)
- if hit.Parent==nil then
- return
- end
- h=hit.Parent:FindFirstChild("Humanoid")
- for _,v in pairs(hit.Parent:children()) do
- if v:IsA("Humanoid") then
- h=v
- end
- end
- if hit.Parent.Parent:FindFirstChild("Torso")~=nil then
- h=hit.Parent.Parent:FindFirstChild("Humanoid")
- end
- if hit.Parent.className=="Hat" then
- hit=hit.Parent.Parent:findFirstChild("Head")
- end
- if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
- if hit.Parent:findFirstChild("DebounceHit")~=nil then if hit.Parent.DebounceHit.Value==true then return end end
- --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
- return
- end]]
- -- hs(hit,1.2)
- c=Instance.new("ObjectValue")
- c.Name="creator"
- c.Value=game:service("Players").LocalPlayer
- c.Parent=h
- game:GetService("Debris"):AddItem(c,.5)
- Damage=math.random(minim,maxim)
- -- h:TakeDamage(Damage)
- blocked=false
- block=hit.Parent:findFirstChild("Block")
- if block~=nil then
- print(block.className)
- if block.className=="NumberValue" then
- if block.Value>0 then
- blocked=true
- if decreaseblock==nil then
- block.Value=block.Value-1
- end
- end
- end
- if block.className=="IntValue" then
- if block.Value>0 then
- blocked=true
- if decreaseblock~=nil then
- block.Value=block.Value-1
- end
- end
- end
- end
- if blocked==false then
- -- h:TakeDamage(Damage)
- h.Health=h.Health-Damage
- h.Health=h.Health-Damage
- end
- if Type=="Knockdown" then
- hum=hit.Parent.Humanoid
- hum.PlatformStand=true
- coroutine.resume(coroutine.create(function(HHumanoid)
- swait(5)
- HHumanoid.PlatformStand=false
- end),hum)
- local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit
- --hit.CFrame=CFrame.new(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
- local bodvol=Instance.new("BodyVelocity")
- bodvol.velocity=angle*knockback
- bodvol.P=5000
- bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
- bodvol.Parent=hit
- rl=Instance.new("BodyAngularVelocity")
- rl.P=30000
- rl.maxTorque=Vector3.new(0,10,10)*5000
- rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(2,4),math.random(-10,10))
- rl.Parent=hit
- game:GetService("Debris"):AddItem(bodvol,.5)
- game:GetService("Debris"):AddItem(rl,.5)
- elseif Type=="Normal" then
- vp=Instance.new("BodyVelocity")
- vp.P=500
- vp.maxForce=Vector3.new(math.huge,0,math.huge)
- -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback
- if KnockbackType==1 then
- vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/1.05
- elseif KnockbackType==2 then
- vp.velocity=Property.CFrame.lookVector*knockback
- end
- if knockback>0 then
- vp.Parent=hit.Parent.Torso
- end
- game:GetService("Debris"):AddItem(vp,.5)
- elseif Type=="Up" then
- local bodyVelocity=Instance.new("BodyVelocity")
- bodyVelocity.velocity=vt(0,40,0)
- bodyVelocity.P=1000
- bodyVelocity.maxForce=Vector3.new(1e+009, 1e+009, 1e+009)
- bodyVelocity.Parent=hit
- game:GetService("Debris"):AddItem(bodyVelocity,1)
- rl=Instance.new("BodyAngularVelocity")
- rl.P=3000
- rl.maxTorque=Vector3.new(5000,5000,5000)*5000
- rl.angularvelocity=Vector3.new(math.random(-20,20),math.random(-20,20),math.random(-20,20))
- rl.Parent=hit
- game:GetService("Debris"):AddItem(rl,.5)
- elseif Type=="Snare" then
- bp=Instance.new("BodyPosition")
- bp.P=2000
- bp.D=100
- bp.maxForce=Vector3.new(math.huge,math.huge,math.huge)
- bp.position=hit.Parent.Torso.Position
- bp.Parent=hit.Parent.Torso
- game:GetService("Debris"):AddItem(bp,1)
- elseif Type=="Target" then
- if Targetting==false then
- ZTarget=hit.Parent.Torso
- coroutine.resume(coroutine.create(function(Part)
- so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
- swait(5)
- so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
- end),ZTarget)
- TargHum=ZTarget.Parent:findFirstChild("Humanoid")
- targetgui=Instance.new("BillboardGui")
- targetgui.Parent=ZTarget
- targetgui.Size=UDim2.new(10,100,10,100)
- targ=Instance.new("ImageLabel")
- targ.Parent=targetgui
- targ.BackgroundTransparency=1
- targ.Image="rbxassetid://4834067"
- targ.Size=UDim2.new(1,0,1,0)
- cam.CameraType="Scriptable"
- cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
- dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
- workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
- Targetting=true
- RocketTarget=ZTarget
- for i=1,Property do
- --while Targetting==true and Humanoid.Health>0 and Character.Parent~=nil do
- if Humanoid.Health>0 and Character.Parent~=nil and TargHum.Health>0 and TargHum.Parent~=nil and Targetting==true then
- swait()
- end
- --workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,Head.CFrame.p+rmdir*100)
- cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
- dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
- cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)*cf(0,5,10)*euler(-0.3,0,0)
- end
- Targetting=false
- RocketTarget=nil
- targetgui.Parent=nil
- cam.CameraType="Custom"
- end
- end
- debounce=Instance.new("BoolValue")
- debounce.Name="DebounceHit"
- debounce.Parent=hit.Parent
- debounce.Value=true
- game:GetService("Debris"):AddItem(debounce,Delay)
- c=Instance.new("ObjectValue")
- c.Name="creator"
- c.Value=Player
- c.Parent=h
- game:GetService("Debris"):AddItem(c,.5)
- CRIT=false
- hitDeb=true
- AttackPos=6
- end
- end
- showDamage=function(Char,Dealt,du,Color)
- m=Instance.new("Model")
- m.Name=tostring(Dealt)
- h=Instance.new("Humanoid")
- h.Health=0
- h.MaxHealth=0
- h.Parent=m
- c=Instance.new("Part")
- c.Transparency=0
- c.BrickColor=Color
- c.Name="Head"
- c.TopSurface=0
- c.BottomSurface=0
- c.formFactor="Plate"
- c.Size=Vector3.new(1,.4,1)
- ms=Instance.new("CylinderMesh")
- ms.Scale=Vector3.new(.8,.8,.8)
- if CRIT==true then
- ms.Scale=Vector3.new(1,1.25,1)
- end
- ms.Parent=c
- c.Reflectance=0
- Instance.new("BodyGyro").Parent=c
- c.Parent=m
- if Char:findFirstChild("Head")~=nil then
- c.CFrame=CFrame.new(Char["Head"].CFrame.p+Vector3.new(0,1.5,0))
- elseif Char.Parent:findFirstChild("Head")~=nil then
- c.CFrame=CFrame.new(Char.Parent["Head"].CFrame.p+Vector3.new(0,1.5,0))
- end
- f=Instance.new("BodyPosition")
- f.P=2000
- f.D=100
- f.maxForce=Vector3.new(math.huge,math.huge,math.huge)
- f.position=c.Position+Vector3.new(0,3,0)
- f.Parent=c
- game:GetService("Debris"):AddItem(m,.5+du)
- c.CanCollide=false
- m.Parent=workspace
- c.CanCollide=false
- end
- --save shoulders
- RSH, LSH=nil, nil
- --welds
- RW, LW=Instance.new("Weld"), Instance.new("Weld")
- RW.Name="Right Shoulder" LW.Name="Left Shoulder"
- LH=Torso["Left Hip"]
- RH=Torso["Right Hip"]
- TorsoColor=Torso.BrickColor
- function NoOutline(Part)
- Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
- end
- player=Player
- ch=Character
- RSH=ch.Torso["Right Shoulder"]
- LSH=ch.Torso["Left Shoulder"]
- --
- RSH.Parent=nil
- LSH.Parent=nil
- --
- RW.Name="Right Shoulder"
- RW.Part0=ch.Torso
- RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
- RW.C1=cf(0, 0.5, 0)
- RW.Part1=ch["Right Arm"]
- RW.Parent=ch.Torso
- --
- LW.Name="Left Shoulder"
- LW.Part0=ch.Torso
- LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
- LW.C1=cf(0, 0.5, 0)
- LW.Part1=ch["Left Arm"]
- LW.Parent=ch.Torso
- Player=game:GetService('Players').LocalPlayer
- Character=Player.Character
- mouse=Player:GetMouse()
- m=Instance.new('Model',Character)
- local function weldBetween(a, b)
- local weldd = Instance.new("ManualWeld")
- weldd.Part0 = a
- weldd.Part1 = b
- weldd.C0 = CFrame.new()
- weldd.C1 = b.CFrame:inverse() * a.CFrame
- weldd.Parent = a
- return weldd
- end
- ArtificialHB = Instance.new("BindableEvent", script)
- ArtificialHB.Name = "Heartbeat"
- script:WaitForChild("Heartbeat")
- frame = 1 / 60
- tf = 0
- allowframeloss = false
- tossremainder = false
- lastframe = tick()
- script.Heartbeat: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
- script.Heartbeat: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
- function FindNearestTorso(Position, Distance, SinglePlayer)
- if SinglePlayer then
- return (SinglePlayer.Torso.CFrame.p - Position).magnitude < Distance
- end
- local List = {}
- for i, v in pairs(workspace:GetChildren()) do
- if v:IsA("Model") then
- if v:findFirstChild("Torso") then
- if v ~= Character then
- if (v.Torso.Position - Position).magnitude <= Distance then
- table.insert(List, v)
- end
- end
- end
- end
- end
- return List
- end
- local ChargeKame = false
- local KamePower = 10
- local KameCool = false
- local beamgo = 16
- function FireKame()
- Base:Destroy()
- for i = 1,50 do
- RS.RenderStepped:wait()
- PlayAnimationFromTable({
- CFrame.new(0,0,0) * CFrame.new(0, 0, 0) * CFrame.Angles(mr(0), mr(0), mr(0)), -- Torso,
- CFrame.new(0,1.5,0) * CFrame.new(0, 0, 0) * CFrame.Angles(mr(0), mr(0), 0), ----- Head
- CFrame.new(1,0.4,-1.2) * CFrame.new(0, 0, 0.2) * CFrame.Angles(mr(90), mr(0), mr(-20)), --- RightArm
- CFrame.new(-1,0.4,-1.2) * CFrame.new(0, 0, 0.2) * CFrame.Angles(mr(90), mr(0), mr(20)),--LeftArm
- CFrame.new(0.6,-2,0.2) * CFrame.new(0, 0, 0) * CFrame.Angles(mr(-5), mr(-5), mr(5)), --RightLeg
- CFrame.new(-0.6,-2,0.2) * CFrame.new(0, 0, 0) * CFrame.Angles(mr(-5), mr(5), mr(-5)), --LeftLeg
- }, .3, false)
- end
- local Base1 = Instance.new("Part", char)
- Base1.Anchored = true
- Base1.Material = "Neon"
- Base1.Size = vt(KamePower + 1, KamePower + 1, KamePower + 1)
- Base1.Shape = "Block"
- Base1.Color = Color3.fromRGB(0,255,255)
- Base1.CFrame = char.HumanoidRootPart.CFrame * CF.new(0, 0.5, -1.8)
- Base1.CanCollide = false
- local Mesh = Instance.new("SpecialMesh", Base1)
- Mesh.MeshType = "Sphere"
- local Beam = Instance.new("Part", char)
- Beam.Anchored = true
- Beam.Material = "Neon"
- Beam.Size = V3.new(0, KamePower- 0.8, KamePower- 0.8)
- Beam.Shape = "Block"
- Beam.Color = Color3.fromRGB(0,255,255)
- Beam.CFrame = Base1.CFrame * CFrame.Angles(0,mr(180),0)
- Beam.CanCollide = false
- local Mesh = Instance.new("SpecialMesh", Beam)
- Mesh.MeshType = "Cylinder"
- coroutine.resume(coroutine.create(function()
- for i = 1,100 do
- wait()
- beamgo = beamgo + 10
- Beam.CFrame = Base1.CFrame * CFrame.Angles(0,mr(90),0) * CFrame.new(beamgo,0,0)
- Beam.Size = V3.new(beamgo * 2, KamePower + 0.5, KamePower + 0.5)
- end
- end))
- Beam.Touched:Connect(function(hit)
- if hit.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
- -- Player
- if hit.Parent.Name == p.Name then return end
- hit.Parent:BreakJoints()
- end
- end)
- wait(5)
- for i = 1,200 do
- RS.RenderStepped:wait()
- beamgo = beamgo - 1
- Beam.Size = Beam.Size - V3.new(0,0.01,0.01)
- Base1.Size = Base1.Size - V3.new(0.01,0.01,0.01)
- Beam.Transparency = Beam.Transparency + 0.01
- Base1.Transparency = Base1.Transparency + 0.01
- if Base1.Transparency >= 1 then
- Base1:Destroy()
- Beam:Destroy()
- end
- end
- KamePower = 0
- beamgo = 6
- Pause = false
- end
- function Kamehameha()
- if not KameCool then
- KameCool = true
- for i = 1,50 do
- RS.RenderStepped:wait()
- PlayAnimationFromTable({
- CFrame.new(0,0,0) * CFrame.new(0, 0, 0) * CFrame.Angles(mr(-5), mr(-60), mr(-5)), -- Torso,
- CFrame.new(0,1.5,0) * CFrame.new(0, 0, 0) * CFrame.Angles(mr(5), mr(60), 0), ----- Head
- CFrame.new(1.5,0,-0.3) * CFrame.new(0, 0, 0.2) * CFrame.Angles(mr(60), mr(15), mr(40)), --- RightArm
- CFrame.new(-0.5,0.1,-1.2) * CFrame.new(0, 0, 0.2) * CFrame.Angles(mr(140), mr(-35), mr(90)),--LeftArm
- CFrame.new(0.6,-2,0) * CFrame.new(0, 0, 0) * CFrame.Angles(mr(5), mr(-5), mr(5)), --RightLeg
- CFrame.new(-0.6,-2,0) * CFrame.new(0, 0, 0) * CFrame.Angles(mr(5), mr(60), mr(-5)), --LeftLeg
- }, .3, false)
- end
- Base = Instance.new("Part", char)
- Base.CanCollide = false
- Base.Anchored = true
- Base.Material = "Neon"
- Base.Size = V3.new(0, 0, 0)
- Base.Shape = "Ball"
- Base.Color = Color3.fromRGB(0,255,255)
- Base.CFrame = char.HumanoidRootPart.CFrame * CF.new(2.3, -0.1, 0)
- coroutine.resume(coroutine.create(function()
- while wait() and ChargeKame == true do
- if KamePower >= 1.180 then
- FireKame()
- ChargeKame = false
- else
- KamePower = KamePower + 0.002
- Base.Size = V3.new(KamePower, KamePower, KamePower)
- end
- end
- end))
- wait(2)
- KameCool = false
- end
- end
- local Emerald = Instance.new("Part")
- Emerald.Parent = Character
- Emerald.Size = Vector3.new(0.2,0.2,0.2)
- Emerald.Archivable = true
- Emerald.Transparency = 0
- Emerald.CanCollide = false
- Emerald.BrickColor = BrickColor.new("Toothpaste")
- Emerald.Material = "Neon"
- local Emeraldmesh = Instance.new("SpecialMesh",Emerald)
- Emeraldmesh.MeshId = "http://www.roblox.com/asset?id=160003363"
- Emeraldmesh.Scale = Vector3.new(3.5,3.5,3.5)
- local Emeraldweld = Instance.new("Weld")
- Emeraldweld.Parent = Emerald
- Emeraldweld.Part0 = Torso
- Emeraldweld.Part1 = Emerald
- Emeraldweld.C1 = CFrame.new(3.5, 0, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0))
- Emeraldweld.Part0 = Torso
- --[[
- ]]--
- local x = Instance.new("Sound", Torso)
- x.SoundId = "http://www.roblox.com/asset/?id=979251686"
- x.Looped = true
- x.Volume = 0.01
- x.Pitch = 1
- local x2 = Instance.new("Sound", Torso)
- x2.SoundId = "http://www.roblox.com/asset/?id=979251686"
- x2.Looped = true
- x2.Volume = 0.3
- x2.Pitch = 1
- local x3 = Instance.new("Sound", Torso)
- x3.SoundId = "http://www.roblox.com/asset/?id=588189046"
- x3.Looped = true
- x3.Volume = 0.3
- x3.Pitch = 1
- x3:Play()
- local x4 = Instance.new("Sound", Torso)
- x4.SoundId = "http://www.roblox.com/asset/?id=273734478"
- x4.Looped = false
- x4.Volume = 1
- x4.Pitch = 1
- local x5 = Instance.new("Sound", Torso)
- x5.SoundId = "http://www.roblox.com/asset/?id=162460823"
- x5.Looped = false
- x5.Volume = 1
- x5.Pitch = 1
- local x6 = Instance.new("Sound", Torso)
- x6.SoundId = "http://www.roblox.com/asset/?id=800121776"
- x6.Looped = false
- x6.Volume = 1
- x6.Pitch = 1
- local x7 = Instance.new("Sound", Torso)
- x7.SoundId = "http://www.roblox.com/asset/?id=804889329"
- x7.Looped = false
- x7.Volume = 1
- x7.Pitch = 1
- local x8 = Instance.new("Sound", Torso)
- x8.SoundId = "http://www.roblox.com/asset/?id=804907617"
- x8.Looped = false
- x8.Volume = 5
- x8.Pitch = 1
- local x9 = Instance.new("Sound", Character)
- x9.SoundId = "http://www.roblox.com/asset/?id=392140397"
- x9.Looped = false
- x9.Volume = 1
- x9.Pitch = 1
- local x10 = Instance.new("Sound", Character)
- x10.SoundId = "http://www.roblox.com/asset/?id=526149541"
- x10.Looped = true
- x10.Volume = 0.40
- x10.Pitch = 1
- local x11 = Instance.new("Sound", Torso)
- x11.SoundId = "http://www.roblox.com/asset/?id=515143864"
- x11.Looped = false
- x11.Volume = 1.5
- x11.Pitch = 1
- --537371462
- Character.Humanoid.WalkSpeed = 72
- target = Instance.new("BillboardGui",Character)
- target.Size = UDim2.new(10,0,10,0)
- target.Enabled = false
- imgl = Instance.new("ImageLabel",target)
- imgl.Position = UDim2.new(0,0,0,0)
- imgl.Size = UDim2.new(1,0,1,0)
- imgl.Image = "rbxassetid://711463989"
- imgl.BackgroundTransparency = 1
- imgl.ImageColor3 = Color3.new(255,255,255)
- img2 = Instance.new("ImageLabel",target)
- img2.Position = UDim2.new(0,0,0,0)
- img2.Size = UDim2.new(1,0,1,0)
- img2.Image = "rbxassetid://711463989"
- img2.BackgroundTransparency = 1
- img2.ImageColor3 = Color3.new(0,0,0)
- function TargetSelect(person)
- local dd=coroutine.wrap(function()
- if targetted ~= person then
- targetted = person
- img2.Size = UDim2.new(1,0,1,0)
- img2.ImageTransparency = 0
- imgl.Position = UDim2.new(0,0,0,0)
- for i = 0, 2, 0.1 do
- swait()
- img2.Size = UDim2.new(1.01,0,1.01,0)
- end
- end
- end)
- dd()
- end
- function LockOn()
- if mouse.Target.Parent ~= Character and mouse.Target.Parent.Parent ~= Character and mouse.Target.Parent:FindFirstChild("Humanoid") ~= nil then
- TargetSelect(mouse.Target.Parent)
- end
- end
- function HomingAttack()
- attack = true
- Humanoid.Jump=true
- x6:Play()
- x11:Play()
- --local GGyro = Instance.new("BodyPosition")
- --for i, v in pairs(FindNearestTorso(Torso.CFrame.p, 100)) do
- --if v:FindFirstChild('Head') then
- --end
- --end
- if targetted == nil then
- attack = false
- end
- RootPart.CFrame = game.Players.LocalPlayer.Character.Head.CFrame * CFrame.new(0,0,0)
- x5:Play()
- local con6=Humanoid.Touched:connect(function(hit) Damagefunc(hit,5,10,math.random(20,40),"Up",RootPart,.2,1) end)
- for i = 0,1,0.13 do
- change = 1
- swait()
- RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,1.5)* angles(math.rad(180*i),math.rad(0),math.rad(0)),.3)
- Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(0)),.3)
- RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(30), math.rad(0), math.rad(10)), 0.3)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-30)), 0.3)
- RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(-20)),.3)
- LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.3)
- RootPart.Velocity = RootPart.CFrame.lookVector * 0.2
- end
- for i = 0,4,0.12 do
- swait()
- RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(180*i),math.rad(0),math.rad(0)),.3)
- Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(60),math.rad(0),math.rad(0)),.3)
- RW.C0 = clerp(RW.C0, CFrame.new(1, -0.2, -0.5) * angles(math.rad(90), math.rad(10), math.rad(-70)), 0.3)
- LW.C0 = clerp(LW.C0, CFrame.new(-1, -0.2, -0.5) * angles(math.rad(90), math.rad(-10), math.rad(70)), 0.3)
- RH.C0=clerp(RH.C0,cf(1,-.4,-0.3)*angles(math.rad(10),math.rad(90),math.rad(0)),.3)
- LH.C0=clerp(LH.C0,cf(-1,-.4,-0.3)*angles(math.rad(10),math.rad(-90),math.rad(0)),.3)
- RootPart.Velocity = RootPart.CFrame.lookVector * 0.2
- end
- attack = false
- for i = 0,6,0.12 do
- swait()
- RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(20*i)),.3)
- Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(60),math.rad(0),math.rad(0)),.3)
- RW.C0 = clerp(RW.C0, CFrame.new(1, -0.2, -0.5) * angles(math.rad(90), math.rad(10), math.rad(-70)), 0.3)
- LW.C0 = clerp(LW.C0, CFrame.new(-1, -0.2, -0.5) * angles(math.rad(90), math.rad(-10), math.rad(70)), 0.3)
- RH.C0=clerp(RH.C0,cf(1,-.4,-0.3)*angles(math.rad(10),math.rad(90),math.rad(0)),.3)
- LH.C0=clerp(LH.C0,cf(-1,-.4,-0.3)*angles(math.rad(10),math.rad(-90),math.rad(0)),.3)
- RootPart.Velocity = RootPart.CFrame.lookVector * 0.2
- end
- Humanoid.Jump=false
- wait(2)
- con6:disconnect()
- end
- -------------
- mouse.KeyDown:connect(function(key)
- if string.byte(key) == 48 and Super == false then
- boost = true
- Character.Humanoid.WalkSpeed = 240
- RootPart.Velocity = RootPart.CFrame.lookVector * 320
- local particleemitter2 = Instance.new("ParticleEmitter", Torso)
- particleemitter2.VelocitySpread = 180
- particleemitter2.Lifetime = NumberRange.new(1)
- particleemitter2.Texture = "http://roblox.com/asset/?id=284205403"
- particleemitter2.Speed = NumberRange.new(0.5)
- particleemitter2.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 10), NumberSequenceKeypoint.new(1, 0)})
- particleemitter2.RotSpeed = NumberRange.new(-45, 45)
- particleemitter2.Rate = 999
- particleemitter2.Rotation = NumberRange.new(-45, 45)
- particleemitter2.Acceleration = Vector3.new(0,1.5,0)
- particleemitter2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0), NumberSequenceKeypoint.new(0.701, 0), NumberSequenceKeypoint.new(1, 1)})
- particleemitter2.LightEmission = 1
- particleemitter2.Color = ColorSequence.new(Color3.new(0, 255, 255), Color3.new(0,255,255))
- particleemitter2.Enabled = true
- local particleemitter3 = Instance.new("ParticleEmitter", Torso)
- particleemitter3.VelocitySpread = 180
- particleemitter3.Lifetime = NumberRange.new(1)
- particleemitter3.Texture = "http://roblox.com/asset/?id=284205403"
- particleemitter3.Speed = NumberRange.new(0.5)
- particleemitter3.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 10), NumberSequenceKeypoint.new(1, 0)})
- particleemitter3.RotSpeed = NumberRange.new(-45, 45)
- particleemitter3.Rate = 128
- particleemitter3.Rotation = NumberRange.new(-45, 45)
- particleemitter3.Acceleration = Vector3.new(0,0,0)
- particleemitter3.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0), NumberSequenceKeypoint.new(0.701, 0), NumberSequenceKeypoint.new(1, 1)})
- particleemitter3.LightEmission = 1
- particleemitter3.Color = ColorSequence.new(Color3.new(0, 255, 255), Color3.new(0,255,255))
- particleemitter3.Enabled = true
- x4:Play()
- local con5=Humanoid.Touched:connect(function(hit) Damagefunc(hit,50,70,math.random(500,500),"Knockdown",RootPart,.2,1) end)
- repeat
- wait()
- until boost==false
- particleemitter2.Enabled = false
- con5:disconnect()
- particleemitter3.Enabled = false
- end
- end)
- mouse.KeyDown:connect(function(key)
- if string.byte(key) == 48 and Super == true then
- boost = true
- Character.Humanoid.WalkSpeed = 420
- x4:Play()
- RootPart.Velocity = RootPart.CFrame.lookVector * 500
- local particleemitter2 = Instance.new("ParticleEmitter", Torso)
- particleemitter2.VelocitySpread = 180
- particleemitter2.Lifetime = NumberRange.new(2)
- particleemitter2.Texture = "http://roblox.com/asset/?id=284205403"
- particleemitter2.Speed = NumberRange.new(0.5)
- particleemitter2.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 10), NumberSequenceKeypoint.new(1, 0)})
- particleemitter2.RotSpeed = NumberRange.new(-45, 45)
- particleemitter2.Rate = 999
- particleemitter2.Rotation = NumberRange.new(-45, 45)
- particleemitter2.Acceleration = Vector3.new(0,1,0)
- particleemitter2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0), NumberSequenceKeypoint.new(0.701, 0), NumberSequenceKeypoint.new(1, 1)})
- particleemitter2.LightEmission = 1
- particleemitter2.Color = ColorSequence.new(Color3.new(255, 0, 0), Color3.new(255,0,0))
- particleemitter2.Enabled = true
- local particleemitter3 = Instance.new("ParticleEmitter", Torso)
- particleemitter3.VelocitySpread = 180
- particleemitter3.Lifetime = NumberRange.new(2)
- particleemitter3.Texture = "http://roblox.com/asset/?id=284205403"
- particleemitter3.Speed = NumberRange.new(0.5)
- particleemitter3.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 10), NumberSequenceKeypoint.new(1, 0)})
- particleemitter3.RotSpeed = NumberRange.new(-45, 45)
- particleemitter3.Rate = 999
- particleemitter3.Rotation = NumberRange.new(-45, 45)
- particleemitter3.Acceleration = Vector3.new(0,0,0)
- particleemitter3.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0), NumberSequenceKeypoint.new(0.701, 0), NumberSequenceKeypoint.new(1, 1)})
- particleemitter3.LightEmission = 1
- particleemitter3.Color = ColorSequence.new(Color3.new(255, 0, 0), Color3.new(255,129,0))
- particleemitter3.Enabled = true
- local con5=Humanoid.Touched:connect(function(hit) Damagefunc(hit,50,70,math.random(500,500),"Knockdown",RootPart,.2,1) end)
- repeat
- wait()
- until boost==false
- particleemitter2.Enabled = false
- particleemitter3.Enabled = false
- con5:disconnect()
- end
- end)
- function SUPERSONIC()
- x9:Play()
- x10:Play()
- x3:Stop()
- Super = true
- --550111102
- Character.Humanoid.Health = math.huge
- Character.Humanoid.MaxHealth = math.huge
- end
- function nomoreSUPERSONIC()
- x10:Stop()
- x3:Play()
- Super = false
- Character.Humanoid.Health = 10000
- Character.Humanoid.MaxHealth = 10000
- Character.Humanoid.WalkSpeed = 72
- end
- mouse.KeyUp:connect(function(key)
- if string.byte(key) == 48 and Super == false then
- boost = false
- Character.Humanoid.WalkSpeed = 150
- x4:Stop()
- end
- end)
- mouse.KeyUp:connect(function(key)
- if string.byte(key) == 48 and Super == true then
- boost = false
- Character.Humanoid.WalkSpeed = 200
- x4:Stop()
- end
- end)
- function Chaos_Blast()
- if Super == true then
- game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 0
- local char = game.Players.LocalPlayer.Character
- local tors = game.Players.LocalPlayer.Character.Torso
- local vt = Vector3.new
- local bc = BrickColor.new
- attack = true
- local ff = Instance.new("ForceField",char)
- local shur = Instance.new("Part",char)
- local gahd = Instance.new("Sound",char)
- gahd.SoundId = "rbxassetid://136007472"
- gahd.Volume = 1
- gahd.Pitch = 0.7
- gahd:Play()
- shur.Transparency = 0
- shur.Material = "Neon"
- shur.BrickColor = bc("Toothpaste")
- shur.Anchored = true
- shur.CFrame = tors.CFrame + vt(0,-2.5,0)
- shur.Size = vt(1,0.2,1)
- shur.CanCollide = false
- local Meshshur = Instance.new("CylinderMesh",shur)
- Meshshur.Scale = vt(0,1,0)
- local value1 = 1*5
- game:service'RunService'.RenderStepped:connect(function()
- shur.CFrame = shur.CFrame*CFrame.Angles(0,0.05,0)
- end)
- for i = 0, 50 do
- Meshshur.Scale = Meshshur.Scale + vt(value1,0,value1)
- value1 = value1 - 0.015*5
- wait()
- end
- local ex = Instance.new("Sound",char)
- ex.SoundId = "rbxassetid://197161452"
- ex.Volume = 1
- ex.Pitch = 1
- ex:Play()
- local ex2 = Instance.new("Sound",char)
- ex2.SoundId = "rbxassetid://197161452"
- ex2.Volume = 0.75
- ex2.Pitch = 0.85
- ex2:Play()
- local ex3 = Instance.new("Sound",char)
- ex3.SoundId = "rbxassetid://197161452"
- ex3.Volume = 0.5
- ex3.Pitch = 0.65
- ex3:Play()
- local ex4 = Instance.new("Sound",char)
- ex4.SoundId = "rbxassetid://446876721"
- ex4.Volume = 1
- ex4.Pitch = 0.5
- ex4:Play()
- local ex5 = Instance.new("Sound",char)
- ex5.SoundId = "rbxassetid://446876721"
- ex5.Volume = 1.5
- ex5.Pitch = 0.5
- ex5:Play()
- local seen = Instance.new("Sound",char)
- seen.SoundId = "rbxassetid://445796828"
- seen.Pitch = 0.75
- seen.Volume = 1.75
- seen.Looped = true
- seen:Play()
- local las = Instance.new("Part")
- local expld = Instance.new("Explosion", las)
- expld.BlastPressure = 1
- las.Parent = char
- las.Material = "Neon"
- las.BrickColor = BrickColor.new("Toothpaste")
- las.CanCollide = false
- las.Shape = "Ball"
- las.Transparency = 0
- las.Size = vt(60,60,60)
- las.CFrame = shur.CFrame
- las.Anchored = true
- expld.BlastRadius = 9999999999
- expld.Position = las.Position
- local thing = Instance.new("SpecialMesh",las)
- thing.MeshType = "Sphere"
- thing.Scale = vt(1,0.1,1)
- local bo = Instance.new("Part")
- bo.Parent = las
- bo.Material = "Neon"
- bo.BrickColor = BrickColor.new("Toothpaste")
- bo.CanCollide = false
- bo.Shape = "Ball"
- bo.Transparency = 0
- bo.Size = vt(1,1,1)
- bo.CFrame = shur.CFrame
- bo.Anchored = true
- local thingbo = Instance.new("SpecialMesh",bo)
- thingbo.MeshType = "Sphere"
- thingbo.Scale = vt(90,90,90)
- local boim = Instance.new("Part")
- boim.Parent = las
- boim.Material = "Neon"
- boim.BrickColor = BrickColor.new("Toothpaste")
- boim.CanCollide = false
- boim.Shape = "Ball"
- boim.Transparency = 1
- boim.Size = vt(150,150,150)
- boim.CFrame = shur.CFrame
- boim.Anchored = true
- local boim2 = Instance.new("Part")
- boim2.Parent = las
- boim2.Material = "Neon"
- boim2.BrickColor = BrickColor.new("Toothpaste")
- boim2.CanCollide = false
- boim2.Shape = "Ball"
- boim2.Transparency = 0.65
- boim2.Size = vt(1,1,1)
- boim2.CFrame = shur.CFrame
- boim2.Anchored = true
- local boimmsh = Instance.new("SpecialMesh",boim2)
- boimmsh.MeshType = "FileMesh"
- boimmsh.Scale = vt(165,165,165)
- local shock = Instance.new("Part")
- shock.Parent = las
- shock.Material = "Neon"
- shock.BrickColor = BrickColor.new("Toothpaste")
- shock.CanCollide = false
- shock.Shape = "Ball"
- shock.Transparency = 0.25
- shock.CFrame = shur.CFrame
- shock.Anchored = true
- shock.Size = vt(0.2,0.2,0.2)
- local thingshock = Instance.new("SpecialMesh",shock)
- thingshock.MeshType = "FileMesh"
- thingshock.Scale = vt(50,25,50)
- thingshock.MeshId = "http://www.roblox.com/asset/?id=20329976"
- local shock2 = Instance.new("Part")
- shock2.Parent = las
- shock2.Material = "Neon"
- shock2.BrickColor = BrickColor.new("Toothpaste")
- shock2.CanCollide = false
- shock2.Shape = "Ball"
- shock2.Transparency = 0.5
- shock2.CFrame = shur.CFrame
- shock2.Anchored = true
- shock2.Size = vt(0.2,0.2,0.2)
- local thingshock2 = Instance.new("SpecialMesh",shock2)
- thingshock2.MeshType = "FileMesh"
- thingshock2.Scale = vt(85,20,85)
- thingshock2.MeshId = "http://www.roblox.com/asset/?id=20329976"
- local shock3 = Instance.new("Part")
- shock3.Parent = las
- shock3.Material = "Neon"
- shock3.BrickColor = BrickColor.new("Toothpaste")
- shock3.CanCollide = false
- shock3.Shape = "Ball"
- shock3.Transparency = 0.75
- shock3.CFrame = shur.CFrame
- shock3.Anchored = true
- shock3.Size = vt(0.2,0.2,0.2)
- local thingshock3 = Instance.new("SpecialMesh",shock3)
- thingshock3.MeshType = "FileMesh"
- thingshock3.Scale = vt(100,15,100)
- thingshock3.MeshId = "http://www.roblox.com/asset/?id=20329976"
- local scaleval = 5
- game:service'RunService'.RenderStepped:connect(function()
- scaleval = scaleval - 0.035
- boim.CFrame = shur.CFrame
- bo.Transparency = bo.Transparency + 0.0055
- boimmsh.Scale = boimmsh.Scale + vt(1,1,1)
- boim2.Transparency = boim2.Transparency + 0.00125
- thingbo.Scale = thingbo.Scale + vt(scaleval,scaleval,scaleval)
- shock.CFrame = shock.CFrame*CFrame.Angles(0,0.1,0)
- shock2.CFrame = shock2.CFrame*CFrame.Angles(0,-0.1,0)
- shock3.CFrame = shock3.CFrame*CFrame.Angles(0,0.1,0)
- las.CFrame = shur.CFrame + vt(math.random(-1,1),0,math.random(-1,1))
- thing.Scale = thing.Scale + vt(0,5,0)
- end)
- for i = 0, 15 do
- local sa = Instance.new("Sound",char)
- sa.SoundId = "rbxassetid://233091205"
- sa.Volume = 0.85
- sa.Pitch = 0.85
- sa:Play()
- local lb = Instance.new("Part")
- lb.Parent = las
- lb.Material = "Neon"
- lb.BrickColor = BrickColor.new("Toothpaste")
- lb.CanCollide = false
- lb.Shape = "Ball"
- lb.CFrame = shur.CFrame
- lb.Anchored = true
- lb.Size = vt(0.2,0.2,0.2)
- local thing = Instance.new("SpecialMesh",lb)
- thing.MeshType = "FileMesh"
- thing.Scale = vt(50,25,50)
- thing.MeshId = "http://www.roblox.com/asset/?id=20329976"
- local lb3 = Instance.new("Part")
- lb3.Parent = las
- lb3.Material = "Neon"
- lb3.BrickColor = BrickColor.new("Toothpaste")
- lb3.CanCollide = false
- lb3.Shape = "Ball"
- lb3.CFrame = shur.CFrame
- lb3.Anchored = true
- lb3.Size = vt(0.2,0.2,0.2)
- local thing3 = Instance.new("SpecialMesh",lb3)
- thing3.MeshType = "FileMesh"
- thing3.Scale = vt(50,30,50)
- thing3.MeshId = "http://www.roblox.com/asset/?id=20329976"
- local lb2 = Instance.new("Part")
- lb2.Parent = las
- lb2.Material = "Neon"
- lb2.BrickColor = BrickColor.new("Toothpaste")
- lb2.CanCollide = false
- lb2.Shape = "Ball"
- lb2.CFrame = shur.CFrame
- lb2.Anchored = true
- lb2.Size = vt(0.2,0.2,0.2)
- local thing2 = Instance.new("SpecialMesh",lb2)
- thing2.MeshType = "FileMesh"
- thing2.Scale = vt(50,40,50)
- thing2.MeshId = "http://www.roblox.com/asset/?id=20329976"
- local ring = Instance.new("Part")
- ring.Parent = las
- ring.Material = "Neon"
- ring.BrickColor = BrickColor.new("Toothpaste")
- ring.CanCollide = false
- ring.Shape = "Ball"
- ring.CFrame = shur.CFrame
- ring.CFrame = ring.CFrame*CFrame.Angles(math.random(-50,50),math.random(-50,50),math.random(-50,50))
- ring.Anchored = true
- ring.Size = vt(0.2,0.2,0.2)
- local thingring = Instance.new("SpecialMesh",ring)
- thingring.MeshType = "FileMesh"
- thingring.Scale = vt(150,150,50)
- thingring.MeshId = "http://www.roblox.com/asset/?id=3270017"
- local ring2 = Instance.new("Part")
- ring2.Parent = las
- ring2.Material = "Neon"
- ring2.BrickColor = BrickColor.new("Really red")
- ring2.CanCollide = false
- ring2.Shape = "Ball"
- ring2.CFrame = shur.CFrame
- ring2.CFrame = ring2.CFrame*CFrame.Angles(math.random(-50,50),math.random(-50,50),math.random(-50,50))
- ring2.Anchored = true
- ring2.Size = vt(0.2,0.2,0.2)
- local thingring2 = Instance.new("SpecialMesh",ring2)
- thingring2.MeshType = "FileMesh"
- thingring2.Scale = vt(150,150,50)
- thingring2.MeshId = "http://www.roblox.com/asset/?id=3270017"
- local circle = Instance.new("Part")
- circle.Parent = las
- circle.Material = "Neon"
- circle.BrickColor = BrickColor.new("Toothpaste")
- circle.CanCollide = false
- circle.Shape = "Ball"
- circle.Transparency = 0
- circle.Size = vt(125,125,125)
- circle.CFrame = shur.CFrame
- circle.Anchored = true
- local smooth = game:service'RunService'.RenderStepped:connect(function()
- sa.Volume = sa.Volume - 0.025
- thingring.Scale = thingring.Scale + vt(1,1,0)
- ring.Transparency = ring.Transparency + 0.025
- thingring2.Scale = thingring2.Scale + vt(1,1,0)
- ring2.Transparency = ring2.Transparency + 0.025
- circle.Size = circle.Size + vt(1,1,1)
- circle.Transparency = circle.Transparency + 0.025
- circle.CFrame = shur.CFrame
- lb.CFrame = lb.CFrame*CFrame.Angles(0,-0.05,0)
- thing.Scale = thing.Scale + vt(5,0,5)
- lb.Transparency = lb.Transparency + 0.025
- lb2.CFrame = lb2.CFrame*CFrame.Angles(0,0.05,0)
- thing2.Scale = thing2.Scale + vt(3.5,0,3.5)
- lb2.Transparency = lb2.Transparency + 0.025
- lb3.CFrame = lb3.CFrame*CFrame.Angles(0,-0.05,0)
- thing3.Scale = thing3.Scale + vt(2.5,0,2.5)
- lb3.Transparency = lb3.Transparency + 0.025
- end)
- wait(1)
- lb:Destroy()
- lb2:Destroy()
- lb3:Destroy()
- circle:Destroy()
- ring:Destroy()
- ring2:Destroy()
- sa:Destroy()
- smooth:disconnect()
- end
- attack = false
- hum.WalkSpeed = 16
- ex:Destroy()
- ex2:Destroy()
- ex3:Destroy()
- ex4:Destroy()
- ex5:Destroy()
- for i = 0, 100 do
- seen.Volume = seen.Volume - 0.05
- thing.Scale = thing.Scale - vt(0.01,0,0.01)
- thingshock.Scale = thingshock.Scale - vt(1,0,1)
- thingshock2.Scale = thingshock2.Scale - vt(1,0,1)
- thingshock3.Scale = thingshock3.Scale - vt(1,0,1)
- las.Transparency = las.Transparency + 0.025
- shock.Transparency = shock.Transparency + 0.025
- shock2.Transparency = shock2.Transparency + 0.025
- shock3.Transparency = shock3.Transparency + 0.025
- Meshshur.Scale = Meshshur.Scale + vt(value1,0,value1)
- value1 = value1 - 0.015*5
- wait(0)
- end
- shur:Destroy()
- gahd:Destroy()
- ff:Destroy()
- las:Destroy()
- end
- end
- mouse.KeyDown:connect(function(key)
- if key == 'x' and attack == false then
- HomingAttack()
- end
- end)
- mouse.KeyDown:connect(function(key)
- if key == 'l' and attack == false then
- LockOn()
- end
- end)
- mouse.KeyDown:connect(function(key)
- if key == 'e' and attack == false then
- SUPERSONIC()
- end
- end)
- mouse.KeyDown:connect(function(key)
- if key == 'r' and attack == false then
- nomoreSUPERSONIC()
- end
- end)
- mouse.KeyDown:connect(function(key)
- if key == 'b' and attack == false then
- Chaos_Blast()
- end
- end)
- mouse.KeyDown:connect(function(key)
- if key == 'k' and attack == false then
- Kamehameha()
- end
- end)
- Character.Humanoid.JumpPower = 140
- -------------
- local sine = 0
- local change = 1
- local val = 0
- while true do
- swait()
- sine = sine + change
- local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
- local velderp=RootPart.Velocity.y
- hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
- if equipped==true or equipped==false then
- if attack==false then
- idle=idle+1
- else
- idle=0
- end
- if idle>=500 then
- if attack==false then
- --Sheath()
- end
- end
- if RootPart.Velocity.y > 1 and hitfloor==nil then
- Anim="Jump"
- change = 1
- for i = 0,4,0.12 do
- swait()
- if attack==false then
- RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(180*i),math.rad(0),math.rad(0)),.3)
- Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(60),math.rad(0),math.rad(0)),.3)
- RW.C0 = clerp(RW.C0, CFrame.new(1, -0.2, -0.5) * angles(math.rad(90), math.rad(10), math.rad(-70)), 0.3)
- LW.C0 = clerp(LW.C0, CFrame.new(-1, -0.2, -0.5) * angles(math.rad(90), math.rad(-10), math.rad(70)), 0.3)
- RH.C0=clerp(RH.C0,cf(1,-.4,-0.3)*angles(math.rad(10),math.rad(90),math.rad(0)),.3)
- LH.C0=clerp(LH.C0,cf(-1,-.4,-0.3)*angles(math.rad(10),math.rad(-90),math.rad(0)),.3)
- end
- end
- elseif RootPart.Velocity.y < -1 and hitfloor==nil then
- Anim="Fall"
- change = 1
- if attack==false and Super == false then
- RH.C0=clerp(RH.C0,cf(1,-1,-0.25)*angles(math.rad(40+4*math.cos(sine/2)),math.rad(90),math.rad(0+4*math.cos(sine/2)))*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
- LH.C0=clerp(LH.C0,cf(-1,-0.70,-0.25)*angles(math.rad(-20-4*math.cos(sine/2)),math.rad(-90),math.rad(0+4*math.cos(sine/2)))*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
- RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),.3)
- Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(40+5*math.cos(sine/2)),math.rad(0),math.rad(0)),.3)
- RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.65, 0) * angles(math.rad(-10+4*math.cos(sine/3)), math.rad(0), math.rad(90+4*math.cos(sine/2))), 0.3)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.65, 0) * angles(math.rad(-10+4*math.cos(sine/3)), math.rad(0), math.rad(-90+4*math.cos(sine/2))), 0.3)
- else
- if attack==false and Super == true then
- RH.C0=clerp(RH.C0,cf(1,-1,-0.25)*angles(math.rad(40+4*math.cos(sine/2)),math.rad(90),math.rad(0+4*math.cos(sine/2)))*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
- LH.C0=clerp(LH.C0,cf(-1,-0.70,-0.25)*angles(math.rad(-20-4*math.cos(sine/2)),math.rad(-90),math.rad(0+4*math.cos(sine/2)))*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
- RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),.3)
- Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(40+5*math.cos(sine/2)),math.rad(0),math.rad(0)),.3)
- RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.65, 0) * angles(math.rad(-10+4*math.cos(sine/3)), math.rad(0), math.rad(90+4*math.cos(sine/2))), 0.3)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.65, 0) * angles(math.rad(-10+4*math.cos(sine/3)), math.rad(0), math.rad(-90+4*math.cos(sine/2))), 0.3)
- end
- end
- elseif torvel<1 and hitfloor~=nil then
- Anim="Idle"
- if attack==false and Super == false then
- RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,-0.20+0.02*math.cos(sine/10))* angles(math.rad(20),math.rad(0),math.rad(0)),.2)
- Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10-5*math.cos(sine/10)),math.rad(0),math.rad(0)),.2)
- RW.C0 = clerp(RW.C0, CFrame.new(0.9, 0.5, -0.7) * angles(math.rad(-0), math.rad(0), math.rad(-90+5*math.cos(sine/10))),.2)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)),.2)
- RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(-22),math.rad(90),math.rad(0)),.2)
- LH.C0=clerp(LH.C0,cf(-1,-1,-0.2)*angles(math.rad(8),math.rad(-90),math.rad(0)),.2)
- else
- if attack==false and Super == true then
- RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,1.7+0.52*math.cos(sine/64))* angles(math.rad(0),math.rad(0),math.rad(0)),.2)
- Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(20.20-6.52*math.cos(sine/64)),math.rad(0),math.rad(0)),.2)
- RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(15-6.52*math.cos(sine/64)), math.rad(0), math.rad(45+6.52*math.cos(sine/64))),.2)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-10+6.52*math.cos(sine/64)), math.rad(0), math.rad(-45-6.52*math.cos(sine/64))),.2)
- RH.C0=clerp(RH.C0,cf(1,-1+0.12*math.cos(sine/54),-0.2)*angles(math.rad(-12-6.52*math.cos(sine/64)),math.rad(90),math.rad(12-16.52*math.cos(sine/64))),.2)
- LH.C0=clerp(LH.C0,cf(-1,-0.8+0.22*math.cos(sine/44),-0.4)*angles(math.rad(14+6.52*math.cos(sine/64)),math.rad(-90),math.rad(20-6.52*math.cos(sine/64))),.2)
- end
- end
- elseif torvel>2 and torvel<140 and hitfloor~=nil then
- Anim="Walk"
- if attack==false and Super == false then
- RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(10),math.rad(0),math.rad(5*math.cos(sine/5))),.2)
- Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(0)),.2)
- RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(80*math.cos(sine/5)), math.rad(0), math.rad(0)),.2)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-80*math.cos(sine/5)), math.rad(0), math.rad(0)),.2)
- RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(35),math.rad(90),math.rad(-40 - 70 *math.cos (sine / -5))),.2)
- LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(35),math.rad(-90),math.rad(40 - 70 *math.cos (sine / 5))),.2)
- else
- if attack==false and Super == true then
- RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,-0.2+0.4*math.cos(sine/20.2))* angles(math.rad(40),math.rad(0),math.rad(0)),.2)
- Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
- RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.65, 0) * angles(math.rad(-10+4*math.cos(sine/3)), math.rad(0), math.rad(10+4*math.cos(sine/2))), 0.3)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.65, 0) * angles(math.rad(-10+4*math.cos(sine/3)), math.rad(0), math.rad(-10+4*math.cos(sine/2))), 0.3)
- RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0+4*math.cos(sine/3)),math.rad(90),math.rad(0+4*math.cos(sine/3))),.2)
- LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0-4*math.cos(sine/3)),math.rad(-90),math.rad(0+4*math.cos(sine/3))),.2)
- end
- end
- elseif torvel>=141 and torvel<700 and hitfloor~=nil then
- Anim="Run"
- if attack==false and Super == false then
- RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,-0.2)* angles(math.rad(30),math.rad(0),math.rad(0)),.2)
- Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-12),math.rad(0),math.rad(0)),.2)
- RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-35),math.rad(-35),math.rad(45)),.2)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-35),math.rad(35),math.rad(-45)),.2)
- RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(35),math.rad(90),math.rad(-40 - 100 *math.cos (sine / -2.2))),.2)
- LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(35),math.rad(-90),math.rad(40 - 100 *math.cos (sine / 2.2))),.2)
- else
- if attack==false and Super == true then
- RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,-1.2+0.2*math.cos(sine/1.2))* angles(math.rad(90),math.rad(0),math.rad(0)),.2)
- Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-60),math.rad(0),math.rad(0)),.2)
- RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.65, 0) * angles(math.rad(-10+4*math.cos(sine/3)), math.rad(0), math.rad(10+4*math.cos(sine/2))), 0.3)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.65, 0) * angles(math.rad(-10+4*math.cos(sine/3)), math.rad(0), math.rad(-10+4*math.cos(sine/2))), 0.3)
- RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(-1-4*math.cos(sine/3)),math.rad(90),math.rad(0)),.2)
- LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(1+4*math.cos(sine/3)),math.rad(-90),math.rad(0)),.2)
- end
- end
- elseif torvel>=-141 and torvel<-700 and hitfloor~=nil then
- Anim="Run2"
- if attack==false and Super == false then
- RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,-0.2)* angles(math.rad(-30),math.rad(0),math.rad(0)),.2)
- Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-12),math.rad(0),math.rad(0)),.2)
- RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-35),math.rad(-35),math.rad(45)),.2)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-35),math.rad(35),math.rad(-45)),.2)
- RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(35),math.rad(90),math.rad(40 - 100 *math.cos (sine / -2.2))),.2)
- LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(35),math.rad(-90),math.rad(-40 - 100 *math.cos (sine / 2.2))),.2)
- end
- end
- end
- if Anim == "Walk" then
- if footsteps == false then
- x2:Play()
- footsteps = true
- end
- x.Pitch = 1.2
- elseif Anim == "Idle" then
- x:Stop()
- x2:Stop()
- footsteps = false
- elseif Anim == "Fall" then
- x:Stop()
- x2:Stop()
- footsteps = false
- elseif Anim == "Jump" then
- x:Stop()
- x2:Stop()
- footsteps = false
- elseif Anim == "Run" then
- x.Pitch = 1.8
- if footsteps == false then
- x:Play()
- footsteps = true
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement