Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[KillerDarkness0105's/Codex#6685 Sonic Yo-yo script i hope you enjoy :D]]--
- -- Yes if you want this to be Yoyo's yoyo or some people just call it hyuns yoyo then feel free to call it that.
- -- also added a function just go to this (local Yoyo = false) and put true (local Yoyo = true) and then change this to your name
- local Yourname = "0"
- -- Thanks to the Character Yoyo made by Hyun for giving me this idea :)
- --Yoyo Model by Fenrier and also thanks for the welds.
- --[[side note. This yoyo isn't animated by the string. Its fully animated on its own. To see it just go to the idle animation and look for this
- --wld1.C0=euler(0,0,1.57*math.cos(sine/60))*cf(0,2.1-1.7*math.sin(sine/30),-1.6*i)
- wld1.C0=euler(0,0,1.57)*cf(0,2.1,0)
- this is unanimated.
- wld1.C0=euler(0,0,1.57*math.cos(sine/60))*cf(0,2.1-1.7*math.sin(sine/30),-1.6*i)
- --wld1.C0=euler(0,0,1.57)*cf(0,2.1,0)
- this is animated.
- ]]--
- --[[ The Yo-yo's Bio.
- The Air grab.
- ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
- This yo-yo isn't just an ordinary yo-yo. This yo-yo is a very special and deadly yo-yo. It can grapple the air using the wind to keep it in the air long enough to evade.
- It pulls you toward it getting you away from danger and most times might even save your life.
- ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
- Why the yo-yo glows.
- ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
- The yo-yo also uses a "Micro Energy Generator" which allows the yo-yo to spin so fast it does MAJOR damage to your opponent.
- Thats why also the reason the yo-yo and string have blue tints and glow blue.
- ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
- The yoyo's name.
- ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
- The Sonic Yo-Yo.
- ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
- Attacks and combos
- ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
- The yo-yo is a very light very deadly weapon meaning you can combo and damage your opponents from far away and still do lots of damage.
- But you must remember. Speed is key here. You must rely on your speed to evade and dodge attacks.
- You are very skilled in hand to hand combat but it doesn't do as much damage as the yo-yo will.
- The yo-yo's speed can reach up to 7000mph and can cut through very tough objects. Sometimes even killing or slicing an opponent in one hit.
- The yo-yo also has very lethal attacks. It can explode using the "Exploder Chip" inside the yo-yo. Dealing almost Tons to One shot attacks. Though this takes time for you to do so you may want to look for an opening first. This attack also leaves you vulnerable while in the air.
- Since your so strong and skilled at fighting you also get a 600 hp boost so 100+600 = 700hp.
- ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
- Yo-yo stick figure.
- ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
- http://stickpage.wikia.com/wiki/Yoyo
- ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
- Hyun's youtube
- ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
- https://www.youtube.com/channel/UCpuj2Op5x9NuKbw3HaOEfjA
- ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
- Attack keys.
- ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
- C = Air Grapple
- E = Throw
- R = YoyoEvade -2 sec cooldown
- T = Explosion attack -7 sec cooldown
- F = Dash -3 sec cooldown
- Shift = Run
- ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
- ]]--
- 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
- Player=game:GetService("Players").LocalPlayer
- Character=Player.Character
- PlayerGui=Player.PlayerGui
- Backpack=Player.Backpack
- Torso=Character.Torso
- 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
- bc = BrickColor.new
- br = BrickColor.random
- it = Instance.new
- euler=CFrame.fromEulerAnglesXYZ
- angles=CFrame.Angles
- cloaked=false
- 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=false
- trispeed=.2
- attackmode='none'
- local idle=0
- local Anim="Idle"
- local Effects={}
- local origcolor = BrickColor.new("Toothpaste",White)
- local evade = false
- local attackcooldown = false
- local evadecooldown = false
- local Yoyo = false
- local Grabbed = false
- music = Instance.new("Sound",Torso) -- change to Character for global music --Change to Torso for non-global music
- music.Volume = .55
- music.SoundId = "rbxassetid://611389938"--576413172 --music2 = 1117522463 --music3 = 903651242 --music4 = 611389938
- music.Looped = true
- music:Play()
- Humanoid.Animator.Parent = nil
- Character.Animate.Parent = nil
- if Character:findFirstChild("Yoyo",true) ~= nil then
- Character:findFirstChild("Yoyo",true).Parent = nil
- end
- function RemoveOutlines(part)
- part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
- end
- function lerp(a, b, t) -- Linear interpolation
- return a + (b - a)*t
- end
- function slerp(a, b, t) --Spherical interpolation
- dot = a:Dot(b)
- if dot > 0.99999 or dot < -0.99999 then
- return t <= 0.5 and a or b
- else
- r = math.acos(dot)
- return (a*math.sin((1 - t)*r) + b*math.sin(t*r)) / math.sin(r)
- end
- end
- function matrixInterpolate(a, b, t)
- local ax, ay, az, a00, a01, a02, a10, a11, a12, a20, a21, a22 = a:components()
- local bx, by, bz, b00, b01, b02, b10, b11, b12, b20, b21, b22 = b:components()
- local v0 = lerp(Vector3.new(ax, ay, az), Vector3.new(bx , by , bz), t) -- Position
- local v1 = slerp(Vector3.new(a00, a01, a02), Vector3.new(b00, b01, b02), t) -- Vector right
- local v2 = slerp(Vector3.new(a10, a11, a12), Vector3.new(b10, b11, b12), t) -- Vector up
- local v3 = slerp(Vector3.new(a20, a21, a22), Vector3.new(b20, b21, b22), t) -- Vector back
- local t = v1:Dot(v2)
- if not (t < 0 or t == 0 or t > 0) then -- Failsafe
- return CFrame.new()
- end
- return CFrame.new(
- v0.x, v0.y, v0.z,
- v1.x, v1.y, v1.z,
- v2.x, v2.y, v2.z,
- v3.x, v3.y, v3.z)
- end
- function genWeld(a,b)
- local w = Instance.new("Weld",a)
- w.Part0 = a
- w.Part1 = b
- return w
- end
- function weld(a, b)
- local weld = Instance.new("Weld")
- weld.Name = "W"
- weld.Part0 = a
- weld.Part1 = b
- weld.C0 = a.CFrame:inverse() * b.CFrame
- weld.Parent = a
- return weld;
- end
- function Lerp(c1,c2,al)
- local com1 = {c1.X,c1.Y,c1.Z,c1:toEulerAnglesXYZ()}
- local com2 = {c2.X,c2.Y,c2.Z,c2:toEulerAnglesXYZ()}
- for i,v in pairs(com1) do
- com1[i] = v+(com2[i]-v)*al
- end
- return CFrame.new(com1[1],com1[2],com1[3]) * CFrame.Angles(select(4,unpack(com1)))
- end
- 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
- function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
- local fp = it("Part")
- fp.formFactor = formfactor
- fp.Parent = parent
- fp.Reflectance = reflectance
- fp.Transparency = transparency
- fp.CanCollide = false
- fp.Locked=true
- fp.BrickColor = brickcolor
- fp.Name = name
- fp.Size = size
- fp.Position = Torso.Position
- fp.BottomSurface="Smooth"
- fp.TopSurface="Smooth"
- fp:BreakJoints()
- return fp
- end
- function mesh(Mesh,part,meshtype,meshid,offset,scale)
- local mesh = it(Mesh)
- mesh.Parent = part
- if Mesh=="SpecialMesh" then
- mesh.MeshType = meshtype
- mesh.MeshId = meshid
- end
- mesh.Offset=offset
- mesh.Scale=scale
- return mesh
- end
- function weld(parent,part0,part1,c0)
- local weld = it("Weld")
- weld.Parent = parent
- weld.Part0 = part0
- weld.Part1 = part1
- weld.C0 = c0
- return weld
- 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
- newWeld = function(wp0, wp1, wc0x, wc0y, wc0z)
- local wld = Instance.new("Weld", wp1)
- wld.Part0 = wp0
- wld.Part1 = wp1
- wld.C0 = CFrame.new(wc0x, wc0y, wc0z)
- end
- newWeld(RootPart, Torso, 0, -1, 0)
- Torso.Weld.C1 = CFrame.new(0, -1, 0)
- newWeld(Torso, LeftLeg, -0.5, -1, 0)
- LeftLeg.Weld.C1 = CFrame.new(0, 1, 0)
- newWeld(Torso, RightLeg, 0.5, -1, 0)
- RightLeg.Weld.C1 = CFrame.new(0, 1, 0)
- 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
- local bg = it("BodyGyro")
- bg.maxTorque = Vector3.new(4e+005,4e+005,4e+005)*math.huge
- bg.P = 20e+003
- bg.Parent = nil
- local modelzorz = Instance.new("Model")
- modelzorz.Parent = Character
- modelzorz.Name = "Yoyo"
- local prt1=part(3,modelzorz,0,0,BrickColor.new("White"),"Part1",vt(1,1,1))
- prt1.CanCollide=true
- prt1.Material = "Neon"
- local msh1=mesh("CylinderMesh",prt1,"","",vt(0,0,0),vt(0.4,0.3,0.4))
- local wld1=weld(prt1,prt1,Torso,euler(1.57,0,0)*cf(-1,1,-0.6))
- numb=-0.15
- for i=1,2 do
- local prt2=part(3,modelzorz,0,0,BrickColor.new("Really black"),"Part2",vt(1,1,1))
- local msh2=mesh("CylinderMesh",prt2,"","",vt(0,0,0),vt(0.6,0.1,0.6))
- local wld2=weld(prt2,prt2,prt1,euler(0,0,0)*cf(0,numb,0))
- numb2=0
- for i=1,16 do
- local prt3=part(3,modelzorz,0.5,0,BrickColor.new("Toothpaste"),"Part3",vt(1,1,1))
- local msh3=mesh("SpecialMesh",prt3,"Wedge","",vt(0,0,0),vt(0.05,0.1,0.1))
- local wld3=weld(prt3,prt3,prt2,euler(-3.14+0.785,0,1.57)*cf(0,0,0.3))
- prt3.Material = "Neon"
- wld3.C1=euler(0,numb2,0)
- --numb2=numb2+0.785
- numb2=numb2+0.3925
- end
- numb=numb+0.3
- end
- local string1=part(3,modelzorz,0,0,BrickColor.new("Toothpaste"),"String1",vt(1,1,1))
- local stringmsh1=mesh("CylinderMesh",string1,"","",vt(0,0,0),vt(0.1,1,0.1))
- local stringwld1=weld(string1,string1,prt13,euler(0,0,0)*cf(0,0,0))
- local string2=part(3,modelzorz,0,0,BrickColor.new("White"),"String2",vt(1,1,1))
- local stringmsh2=mesh("CylinderMesh",string2,"","",vt(0,0,0),vt(0.1,1,0.1))
- local stringwld2=weld(string2,string2,prt13,euler(0,0,0)*cf(0,0,0))
- string1.Material = "Neon"
- string2.Material = "Neon"
- local strmdl = "Arrow"
- coroutine.resume(coroutine.create(function()
- repeat
- wait(-10)
- local top = RightArm.CFrame*cf(0,-1,0)
- local bottom = prt1.CFrame
- local oristrpos
- if strmdl == "Bow" then
- oristrpos = CFrame.new((top.p+bottom.p)/2)
- elseif strmdl == "Arrow" then
- oristrpos = prt1.CFrame
- end
- local mg1 = (top.p - oristrpos.p).magnitude
- local mg2 = (bottom.p - oristrpos.p).magnitude
- string1.Size = Vector3.new(.7,mg1,.7)
- string1.Anchored=true
- string1.CFrame = CFrame.new((top.p+oristrpos.p)/2,oristrpos.p) * CFrame.Angles(math.rad(90),0,0)
- string1.Transparency = 0.65
- string2.Size = Vector3.new(.5,mg1,.5)
- string2.Anchored=true
- string2.CFrame = CFrame.new((top.p+oristrpos.p)/2,oristrpos.p) * CFrame.Angles(math.rad(90),0,0)
- --[[
- --stringmsh1.Scale=vt(0.1,1,0.1)
- stringmsh1.Scale=vt(0.1,mg1,0.1)
- --cff=CFrame.new(prt1.CFrame.p,RightArm.Position)*angles(math.rad(90),0,0)*cf(0,-mg1/2,0)
- cff=cf(RightArm.CFrame*cf(0,-1,0).p,prt1.Position)*angles(math.rad(90),0,0)*cf(0,-mg1/2,0)
- hit2=string1
- hit=prt1
- stringwld1.Parent=string1
- stringwld1.Part0=hit2
- stringwld1.Part1=hit
- HitPos=cff.p
- local CJ = CFrame.new(HitPos)
- local C0=cff:inverse() *CJ
- local C1=hit.CFrame:inverse() * CJ
- stringwld1.C0=C0
- stringwld1.C1=C1
- ]]
- until false
- end))
- if (script.Parent.className ~= "HopperBin") then
- Tool = Instance.new("HopperBin")
- Tool.Parent = Backpack
- Tool.Name = "The Sonic Yo-yo."
- script.Parent = Tool
- end
- Bin = script.Parent
- so = function(id,par,vol,pit)
- coroutine.resume(coroutine.create(function()
- local sou = Instance.new("Sound",par or workspace)
- sou.Volume=vol
- sou.Pitch=pit or 1
- sou.SoundId=id
- wait()
- sou:play()
- wait(6)
- sou:Remove()
- end))
- end
- function unequipweld()
- wld1.Part1=Torso
- wld1.C0=euler(1.57,0,0)*cf(-1,1,-0.6)
- end
- function equipweld()
- wld1.Part1=RightArm
- wld1.C0=euler(0,0,1.57)*cf(0,1.1,0)
- end
- function hideanim()
- equipped=false
- attacktype=1
- swait()
- bg.Parent=nil
- so("http://www.roblox.com/asset/?id=270239880", prt1, 1, 1)
- unequipweld()
- end
- function equipanim()
- equipped=true
- swait()
- equipweld()
- attacktype=1
- --[[
- RW.C0=cf(1.5, 0.5, 0) * euler(0,0,0)
- RW.C1=cf(0, 0.5, 0) * euler(0,0.2,-0.2)
- LW.C0=cf(-1.5, 0.5, 0) * euler(0,0,-0.2)
- LW.C1=cf(0, 0.5, 0) * euler(0,0,0)
- ]]--
- end
- function s(mouse)
- unsheathed = true
- player = Player
- ch = Character
- RSH = ch.Torso["Right Shoulder"]
- LSH = ch.Torso["Left Shoulder"]
- --
- RSH.Parent = nil
- LSH.Parent = nil
- --
- RW.Part0 = ch.Torso
- RW.C0 = CFrame.new(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.1)
- RW.C1 = CFrame.new(0, 0.5, 0)
- RW.Part1 = ch["Right Arm"]
- RW.Parent = ch.Torso
- --_G.R = RW
- --
- LW.Part0 = ch.Torso
- LW.C0 = CFrame.new(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.1)
- LW.C1 = CFrame.new(0, 0.5, 0)
- LW.Part1 = ch["Left Arm"]
- LW.Parent = ch.Torso
- --_G.L = LW
- --
- equipanim()
- swait()
- so("http://www.roblox.com/asset/?id=573105336", prt1, 1, 1)
- end
- function ds(mouse)
- hideanim()
- swait()
- RW.Parent = nil
- LW.Parent = nil
- RSH.Parent = player.Character.Torso
- LSH.Parent = player.Character.Torso
- end
- Bin.Selected:connect(s)
- Bin.Deselected:connect(ds)
- local particleemitter2 = Instance.new("ParticleEmitter", prt1)
- particleemitter2.VelocitySpread = 180
- particleemitter2.Lifetime = NumberRange.new(1)
- particleemitter2.Texture = "http://roblox.com/asset/?id=284205403"
- particleemitter2.Speed = NumberRange.new(1.5)
- particleemitter2.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 0), NumberSequenceKeypoint.new(0.2, 0), NumberSequenceKeypoint.new(1, 1)})
- particleemitter2.RotSpeed = NumberRange.new(-45, 45)
- particleemitter2.Rate = 0 -- change this is your pc is too trash xd
- particleemitter2.Rotation = NumberRange.new(-45, 45)
- --particleemitter2.Acceleration = Vector3.new(0,3,0)
- particleemitter2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0), NumberSequenceKeypoint.new(0.701, 0), NumberSequenceKeypoint.new(1, 1)})
- particleemitter2.LightEmission = 0.8
- particleemitter2.Color = ColorSequence.new(Color3.new(0, 255, 255), Color3.new(0,255,255))
- local light = Instance.new("PointLight",prt1)
- particleemitter2.Enabled = true
- if Yoyo == true then
- m = game.Players.LocalPlayer
- char = m.Character
- local txt = Instance.new("BillboardGui", char)
- txt.Adornee = char .Head
- txt.Name = "_status"
- txt.Size = UDim2.new(2, 0, 1.2, 0)
- txt.StudsOffset = Vector3.new(-9, 8, 0)
- local text = Instance.new("TextLabel", txt)
- text.Size = UDim2.new(10, 0, 7, 0)
- text.FontSize = "Size24"
- text.TextScaled = true
- text.TextTransparency = 0
- text.BackgroundTransparency = 1
- text.TextTransparency = 0
- text.TextStrokeTransparency = 0
- text.Font = "Bodoni"
- text.TextStrokeColor3 = Color3.new(0,0,0)
- v=Instance.new("Part")
- v.Name = "ColorBrick"
- v.Parent=m.Character
- v.FormFactor="Symmetric"
- v.Anchored=true
- v.CanCollide=false
- v.BottomSurface="Smooth"
- v.TopSurface="Smooth"
- v.Size=Vector3.new(10,5,3)
- v.Transparency=1
- v.CFrame=char.Torso.CFrame
- v.BrickColor=BrickColor.new("Really black")
- v.Transparency=1
- text.TextColor3 = Color3.new(0,0,255)
- v.Shape="Block"
- text.Text = "Yoyo"
- for _,v in pairs(m:children()) do
- if v:IsA("Part") then
- v.CanCollide = false
- end
- end
- end
- if Character.Name == Yourname then
- for _,v in pairs(Character:children()) do
- if v:IsA("Accessory") then
- v:Remove()
- end
- end
- Head.face.Texture = "rbxassetid://0"
- Character["Body Colors"].HeadColor = BrickColor.new("Navy blue")
- Character["Body Colors"].TorsoColor = BrickColor.new("Navy blue")
- Character["Body Colors"].LeftArmColor = BrickColor.new("Navy blue")
- Character["Body Colors"].RightArmColor = BrickColor.new("Navy blue")
- Character["Body Colors"].LeftLegColor = BrickColor.new("Navy blue")
- Character["Body Colors"].RightLegColor = BrickColor.new("Navy blue")
- ----------------------------------------------------
- ypcall(function()
- shirt = Instance.new("Shirt", char)
- shirt.Name = "Shirt"
- pants = Instance.new("Pants", char)
- pants.Name = "Pants"
- char.Shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=0"
- char.Pants.PantsTemplate = "http://www.roblox.com/asset/?id=0"
- end)
- 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
- else
- h.Health=h.Health-(Damage/2)
- end
- h.Health=h.Health-Damage
- 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(0, 1e+009, 0)--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)*50000
- 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=="Slam" then
- local bodyVelocity2=Instance.new("BodyVelocity")
- bodyVelocity2.velocity=vt(0,-4,0)
- bodyVelocity2.P=1000
- bodyVelocity2.maxForce=Vector3.new(0,-1e+009,0)
- bodyVelocity2.Parent=hit
- game:GetService("Debris"):AddItem(bodyVelocity2,1)
- rl2=Instance.new("BodyAngularVelocity")
- rl2.P=3000
- rl2.maxTorque=Vector3.new(5000,5000,5000)*50000
- rl2.angularvelocity=Vector3.new(math.random(-20,20),math.random(-20,20),math.random(-20,20))
- rl2.Parent=hit
- game:GetService("Debris"):AddItem(rl2,.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
- function Dash()
- evadecooldown = true
- attack = true
- so("http://www.roblox.com/asset/?id=558640653", Torso, 1, 1)
- for i = 0,1,0.06 do
- swait()
- RootPart.Velocity = RootPart.CFrame.lookVector * 240
- Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(-40), math.rad(0), math.rad(0)), 0.4)
- 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(.9, 0.5, -.5) * angles(math.rad(80), math.rad(0), math.rad(-50)),.2)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-30)),.2)
- LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1, -0.4) * CFrame.Angles(math.rad(-40), math.rad(0), math.rad(0)), 0.8)
- RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -0.7, -0.7) * CFrame.Angles(math.rad(-60), math.rad(0), math.rad(0)), 0.8)
- wld1.C0=euler(0,0,1.57)*cf(0,1.1,0)
- end
- attack = false
- wait(3)
- evadecooldown = false
- end
- function Dash2()
- attack = true
- evadecooldown = true
- so("http://www.roblox.com/asset/?id=558640653", Torso, 1, 1)
- for i = 0,1,0.06 do
- swait()
- RootPart.Velocity = RootPart.CFrame.lookVector * 240
- Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(-40), math.rad(0), math.rad(0)), 0.4)
- 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.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(30)),.2)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-30)),.2)
- LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1, -0.4) * CFrame.Angles(math.rad(-40), math.rad(0), math.rad(0)), 0.8)
- RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -0.7, -0.7) * CFrame.Angles(math.rad(-60), math.rad(0), math.rad(0)), 0.8)
- end
- attack = false
- wait(3)
- evadecooldown = false
- end
- function attackone()
- attack = true
- local con5=Humanoid.Touched:connect(function(hit) Damagefunc(hit,13,17,math.random(2,5),"Normal",RootPart,.2,1) end)
- so("http://www.roblox.com/asset/?id=821400988", LeftArm, 1, 1)
- for i = 0,1,0.10 do
- swait()
- Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-90), math.rad(0)), 0.4)
- Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(60)),.2)
- RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(30)),.2)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, -.3) * angles(math.rad(20), math.rad(-40), math.rad(-90)),.2)
- LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(40), math.rad(-4)), 0.8)
- RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-3), math.rad(0)), 0.8)
- end
- con5:disconnect()
- attack = false
- end
- function throw()
- attack = true
- local con5=prt1.Touched:connect(function(hit) Damagefunc(hit,23,37,math.random(5,15),"Normal",RootPart,.2,1) end)
- so("http://www.roblox.com/asset/?id=268009172", Head, 1, 0.88)
- for i = 0,1,0.12 do
- swait()
- Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-90), math.rad(0)), 0.4)
- Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(60)),.2)
- RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(40), math.rad(90)),.2)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-30)),.2)
- LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(40), math.rad(-4)), 0.8)
- RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-3), math.rad(0)), 0.8)
- wld1.C0=euler(0,0,1.57)*cf(0,1.1,0)
- --wld1.C0=clerp(wld1.C0,cf(0,-10,-2)*angles(5+30*i,0,10),.2)
- end
- so("http://roblox.com/asset/?id=10209640",RightArm,1,0.78)
- for i = 0,4,0.06 do
- swait()
- so("http://www.roblox.com/asset/?id=346009296", prt1, 1, 1)
- Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(50), math.rad(0)), 0.4)
- Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-30)),.2)
- RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(40), math.rad(90)),.2)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-30)),.2)
- LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(40), math.rad(-4)), 0.8)
- RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-3), math.rad(0)), 0.8)
- wld1.C0=euler(0,0,1.57)*cf(0,1.1+15*i,0)
- end
- for i = 0,1,0.12 do
- swait()
- Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(50), math.rad(0)), 0.4)
- Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-30)),.2)
- RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(40), math.rad(90)),.2)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-30)),.2)
- LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(40), math.rad(-4)), 0.8)
- RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-3), math.rad(0)), 0.8)
- wld1.C0=euler(0,0,1.57)*cf(0,15.1-14*i,0)
- end
- con5:disconnect()
- attack = false
- end
- function attackoney()
- local con5=prt1.Touched:connect(function(hit) Damagefunc(hit,17,24,math.random(1,1),"Normal",RootPart,.2,1) end)
- so("http://www.roblox.com/asset/?id=268009172", Head, 1, 0.88)
- for i = 0,1,0.12 do
- swait()
- Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-90), math.rad(0)), 0.4)
- Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(60)),.2)
- RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(40), math.rad(90)),.2)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-30)),.2)
- LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(40), math.rad(-4)), 0.8)
- RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-3), math.rad(0)), 0.8)
- wld1.C0=euler(0,0,1.57)*cf(0,1.1,0)
- --wld1.C0=clerp(wld1.C0,cf(0,-10,-2)*angles(5+30*i,0,10),.2)
- end
- so("http://roblox.com/asset/?id=10209640",RightArm,1,0.78)
- for i = 0,1.5,0.36 do
- swait()
- so("http://www.roblox.com/asset/?id=346009296", prt1, 1, 1)
- Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(50), math.rad(0)), 0.4)
- Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-30)),.2)
- RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(40), math.rad(90)),.2)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-30)),.2)
- LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(40), math.rad(-4)), 0.8)
- RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-3), math.rad(0)), 0.8)
- wld1.C0=euler(0,0,1.57)*cf(0,1.1+1*i,0)
- end
- for i = 0,1,0.16 do
- swait()
- Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(50), math.rad(0)), 0.4)
- Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-30)),.2)
- RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(40), math.rad(90)),.2)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-30)),.2)
- LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(40), math.rad(-4)), 0.8)
- RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-3), math.rad(0)), 0.8)
- wld1.C0=euler(0,0,1.57)*cf(0,2.1-1*i,0)
- end
- attack = false
- con5:disconnect()
- end
- function attacktwoy()
- attack = true
- local con5=Humanoid.Touched:connect(function(hit) Damagefunc(hit,10,14,math.random(1,1),"Normal",RootPart,.2,1) end)
- for i = 0,1,0.10 do
- swait()
- Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(40), math.rad(0)), 0.4)
- Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-60)),.2)
- RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(30)),.2)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0.7) * angles(math.rad(0), math.rad(-40), math.rad(-90)),.2)
- LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(40), math.rad(-4)), 0.8)
- RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-3), math.rad(0)), 0.8)
- wld1.C0=euler(0,0,1.57)*cf(0,1.1,0)
- end
- for i = 0,1,0.10 do
- swait()
- Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-90), math.rad(0)), 0.4)
- Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(60)),.2)
- RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(30)),.2)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, -.3) * angles(math.rad(20), math.rad(-40), math.rad(-90)),.2)
- LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(40), math.rad(-4)), 0.8)
- RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-3), math.rad(0)), 0.8)
- wld1.C0=euler(0,0,1.57)*cf(0,1.1,0)
- end
- con5:disconnect()
- attack = false
- end
- function attackthreey()
- attack = true
- so("http://www.roblox.com/asset/?id=158475221", RightLeg, 1, 1.3)
- so("http://www.roblox.com/asset/?id=158475221", LeftLeg, 1, 1.3)
- local con5=Humanoid.Touched:connect(function(hit) Damagefunc(hit,17,22,math.random(1,5),"Normal",RootPart,.2,1) end)
- for i = 0,4.6,0.16 do
- swait()
- Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(30), math.rad(90*i), math.rad(0)), 0.4)
- Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(30),math.rad(0),math.rad(-60)),.2)
- RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(30)),.2)
- LW.C0 = clerp(LW.C0, CFrame.new(-.7, 0.5, -0.7) * angles(math.rad(50), math.rad(0), math.rad(90)),.2)
- LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -0.76, 0) * CFrame.Angles(math.rad(0), math.rad(-3), math.rad(-30)), 0.8)
- RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(100), math.rad(-40), math.rad(90)), 0.8)
- wld1.C0=euler(0,0,1.57)*cf(0,1.1,0)
- end
- con5:disconnect()
- attack = false
- end
- function YoyoEvade()
- evade = true
- Character.Humanoid.Jump = true
- wait(0.6)
- attack = true
- local con5=Humanoid.Touched:connect(function(hit) Damagefunc(hit,57,82,math.random(1,5),"Knockdown",RootPart,.2,1) end)
- for i = 0,3.5,0.06 do
- --RootPart.Velocity = RootPart.CFrame.lookVector * 0
- swait()
- so("http://www.roblox.com/asset/?id=346009296", prt1, 1, 1)
- Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(-90), math.rad(50), math.rad(0)), 0.4)
- Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-30)),.2)
- RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(40), math.rad(90)),.2)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-30)),.2)
- RightLeg.Weld.C0=clerp(RightLeg.Weld.C0,cf(0.5,0.20,-0.25)*angles(math.rad(0),math.rad(0),math.rad(0)), 0.8)
- LeftLeg.Weld.C0=clerp(LeftLeg.Weld.C0,cf(-0.5,-0.70,-0.25)*angles(math.rad(0),math.rad(0),math.rad(0)), 0.8)
- wld1.C0=euler(0,0,1.57)*cf(0,1.1+10*i,0)
- end
- wait(3)
- for i = 0,4.6,0.16 do
- swait()
- so("http://www.roblox.com/asset/?id=158475221", RightLeg, 0.5, 1.3)
- so("http://www.roblox.com/asset/?id=158475221", LeftLeg, 0.5, 1.3)
- Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(30), math.rad(90*i), math.rad(0)), 0.4)
- Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(30),math.rad(0),math.rad(-60)),.2)
- RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(30)),.2)
- LW.C0 = clerp(LW.C0, CFrame.new(-.7, 0.5, -0.7) * angles(math.rad(50), math.rad(0), math.rad(90)),.2)
- LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -0.76, 0) * CFrame.Angles(math.rad(0), math.rad(-3), math.rad(-30)), 0.8)
- RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(100), math.rad(-40), math.rad(90)), 0.8)
- wld1.C0=euler(0,0,1.57)*cf(0,1.1,0)
- end
- attack = false
- Character.Humanoid.Jump = false
- con5:disconnect()
- wait(2)
- evade = false
- end
- function fy()
- attack = true
- local con5=prt1.Touched:connect(function(hit) Damagefunc(hit,34,42,math.random(1,5),"Up",RootPart,.2,1) end)
- for i = 0,1.5,0.07 do
- swait()
- Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1.8, 0) * CFrame.Angles(math.rad(-30), math.rad(0), math.rad(0)), 0.4)
- Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(40),math.rad(0),math.rad(0)),.2)
- RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0.7) * angles(math.rad(50), math.rad(-80), math.rad(-10)),.2)
- LW.C0 = clerp(LW.C0, CFrame.new(-.7, 0.3, -0.7) * angles(math.rad(50), math.rad(0), math.rad(90)),.2)
- LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -0.2, -0.5) * CFrame.Angles(math.rad(20), math.rad(-3), math.rad(0)), 0.8)
- RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1, 0.3) * CFrame.Angles(math.rad(-32), math.rad(0), math.rad(4)), 0.8)
- wld1.C0=euler(0,0,1.57)*cf(0,1.1,0)
- end
- for i = 0,1.7,0.13 do
- so("http://www.roblox.com/asset/?id=346009296", prt1, 1, 1)
- swait()
- Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -0.7, 0.2) * CFrame.Angles(math.rad(4), math.rad(5), math.rad(0)), 0.4)
- Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-40*i),math.rad(0),math.rad(0)),.2)
- RW.C0 = clerp(RW.C0, CFrame.new(.9, 0.5, -0.5) * angles(math.rad(90*i), math.rad(-80*i), math.rad(-40*i)),.2)
- LW.C0 = clerp(LW.C0, CFrame.new(-.7, 0.5, -0.7) * angles(math.rad(50), math.rad(0), math.rad(90)),.2)
- LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-32), math.rad(0), math.rad(0)), 0.8)
- RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -0.47, -0.5) * CFrame.Angles(math.rad(-35), math.rad(0), math.rad(0)), 0.8)
- wld1.C0=euler(0,0,1.57)*cf(0,4.1*i,0)
- end
- for i = 0,1.7,0.13 do
- swait()
- Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -0.7, 0.2) * CFrame.Angles(math.rad(4), math.rad(5), math.rad(0)), 0.4)
- Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-40),math.rad(0),math.rad(0)),.2)
- RW.C0 = clerp(RW.C0, CFrame.new(.9, 0.5, -0.5) * angles(math.rad(90), math.rad(-80), math.rad(-40)),.2)
- LW.C0 = clerp(LW.C0, CFrame.new(-.7, 0.5, -0.7) * angles(math.rad(50), math.rad(0), math.rad(90)),.2)
- LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-32), math.rad(0), math.rad(0)), 0.8)
- RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -0.47, -0.5) * CFrame.Angles(math.rad(-35), math.rad(0), math.rad(0)), 0.8)
- wld1.C0=euler(0,0,1.57)*cf(0,4.1-3*i,0)
- end
- attack = false
- con5:disconnect()
- end
- function grabattack()
- attack = true
- --local GGyro = Instance.new("BodyPosition")
- local grab = nil
- for i, v in pairs(FindNearestTorso(Torso.CFrame.p, 200)) do
- if v:FindFirstChild('Torso') then
- Grabbed = true
- grab = v
- end
- end
- so("http://roblox.com/asset/?id=10209640",RightArm,1,0.78)
- for i = 0,4,0.06 do
- swait()
- so("http://www.roblox.com/asset/?id=346009296", prt1, 1, 1)
- Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(50), math.rad(0)), 0.4)
- Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-30)),.2)
- RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(40), math.rad(90)),.2)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-30)),.2)
- LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(40), math.rad(-4)), 0.8)
- RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-3), math.rad(0)), 0.8)
- wld1.C0=euler(0,0,1.57)*cf(0,1.1+15*i,0)
- end
- for i = 0, 1, 0.13 do
- swait()
- if Grabbed == true then
- wld1.C0=euler(0,0,1.57)*cf(0,26.1-25*i,0)
- grab.Humanoid.PlatformStand = true
- --GGyro.position = Partss.Position
- --GGyro.Parent = grab.Head
- grab.Torso.CFrame = prt1.CFrame * CFrame.Angles(0,math.rad(-90),0)
- end
- end
- Grabbed = true
- attack = false
- end
- function attacktwo()
- attack = true
- local con5=Humanoid.Touched:connect(function(hit) Damagefunc(hit,13,17,math.random(2,5),"Normal",RootPart,.2,1) end)
- so("http://www.roblox.com/asset/?id=821400988", RightArm, 1, 1)
- for i = 0,1,0.10 do
- swait()
- Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)), 0.4)
- Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-50)),.2)
- RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -.3) * angles(math.rad(0), math.rad(40), math.rad(90)),.2)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-30)),.2)
- LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-3), math.rad(0)), 0.8)
- RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-40), math.rad(4)), 0.8)
- end
- con5:disconnect()
- attack = false
- end
- function attackthree()
- attack = true
- local con5=Humanoid.Touched:connect(function(hit) Damagefunc(hit,13,17,math.random(0,0),"Knockdown",RootPart,.2,1) end)
- so("http://www.roblox.com/asset/?id=821400988", LeftLeg, 1, 1)
- for i = 0,1,0.10 do
- swait()
- Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(30), math.rad(-90), math.rad(0)), 0.4)
- Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(30),math.rad(0),math.rad(60)),.2)
- RW.C0 = clerp(RW.C0, CFrame.new(.7, 0.5, -0.7) * angles(math.rad(50), math.rad(0), math.rad(-90)),.2)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-30)),.2)
- LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(100), math.rad(40), math.rad(-90)), 0.8)
- RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -0.76, 0) * CFrame.Angles(math.rad(0), math.rad(-3), math.rad(30)), 0.8)
- end
- attack = false
- con5:disconnect()
- end
- function attackfour()
- attack = true
- local con5=Humanoid.Touched:connect(function(hit) Damagefunc(hit,13,17,math.random(0,0),"Normal",RootPart,.2,1) end)
- so("http://www.roblox.com/asset/?id=821400988", RightArm, 1, 1)
- for i = 0,1,0.10 do
- swait()
- Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -0.7, 0.2) * CFrame.Angles(math.rad(4), math.rad(5), math.rad(0)), 0.4)
- Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-40),math.rad(0),math.rad(0)),.2)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-30)),.2)
- RW.C0 = clerp(RW.C0, CFrame.new(.9, 0.5, -1.5) * angles(math.rad(90), math.rad(-80), math.rad(-60)),.2)
- LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-32), math.rad(0), math.rad(0)), 0.8)
- RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -0.47, -0.5) * CFrame.Angles(math.rad(-35), math.rad(-0), math.rad(0)), 0.8)
- end
- con5:disconnect()
- attack = false
- end
- function attackfive()
- attack = true
- local con5=Humanoid.Touched:connect(function(hit) Damagefunc(hit,13,17,math.random(0,0),"Normal",RootPart,.2,1) end)
- so("http://www.roblox.com/asset/?id=821400988", RightLeg, 1, 1)
- for i = 0,1,0.10 do
- swait()
- Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(30), math.rad(90), math.rad(0)), 0.4)
- Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(30),math.rad(0),math.rad(-60)),.2)
- RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(30)),.2)
- LW.C0 = clerp(LW.C0, CFrame.new(-.7, 0.5, -0.7) * angles(math.rad(50), math.rad(0), math.rad(90)),.2)
- LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -0.76, 0) * CFrame.Angles(math.rad(0), math.rad(-3), math.rad(-30)), 0.8)
- RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(100), math.rad(-40), math.rad(90)), 0.8)
- end
- con5:disconnect()
- attack = false
- end
- function YoyoExplode()
- attackcooldown = true
- Character.Humanoid.Jump = true
- wait(0.6)
- attack = true
- so("http://www.roblox.com/asset/?id=449247880", prt1, 1, 1)
- for i = 0,4,0.12 do
- swait()
- RootPart.Velocity = RootPart.CFrame.lookVector * 0
- RootPart.Velocity = RootPart.CFrame.lookVector * 0
- Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(20), 0, 0), 0.8)
- Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(40),math.rad(0),math.rad(0)),.2)
- RightLeg.Weld.C0=clerp(RightLeg.Weld.C0,cf(0.5,-.6,-0.3)*angles(math.rad(10),math.rad(0),math.rad(0)),.3)
- LeftLeg.Weld.C0=clerp(LeftLeg.Weld.C0,cf(-0.5,-.4,-0.3)*angles(math.rad(20),math.rad(0),math.rad(0)),.3)
- RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-90),math.rad(0),math.rad(0)),.2)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90),math.rad(0),math.rad(0)),.2)
- wld1.C0=clerp(wld1.C0,cf(0,-1.5,-2)*angles(math.rad(5+90*i),1.1,math.rad(0)),.2)
- end
- so("http://www.roblox.com/asset/?id=465940184", prt1, 1, 1)
- for i = 0,4,0.12 do
- swait()
- RootPart.Velocity = RootPart.CFrame.lookVector * 0
- RootPart.Velocity = RootPart.CFrame.lookVector * 0
- Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(-40), 0, 0), 0.8)
- Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(0)),.2)
- RightLeg.Weld.C0=clerp(RightLeg.Weld.C0,cf(0.5,-.6,-0.3)*angles(math.rad(10),math.rad(0),math.rad(0)),.3)
- LeftLeg.Weld.C0=clerp(LeftLeg.Weld.C0,cf(-0.5,-.4,-0.3)*angles(math.rad(20),math.rad(0),math.rad(0)),.3)
- RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90),math.rad(0),math.rad(0)),.2)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-90),math.rad(0),math.rad(0)),.2)
- wld1.C0=euler(0,0,1.57)*cf(0,1.1+15*i,0)
- end
- for i = 0,1.5,0.12 do
- swait()
- RootPart.Velocity = RootPart.CFrame.lookVector * 0
- RootPart.Velocity = RootPart.CFrame.lookVector * 0
- Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(-40), 0, 0), 0.8)
- Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(0)),.2)
- RightLeg.Weld.C0=clerp(RightLeg.Weld.C0,cf(0.5,-.6,-0.3)*angles(math.rad(10),math.rad(0),math.rad(0)),.3)
- LeftLeg.Weld.C0=clerp(LeftLeg.Weld.C0,cf(-0.5,-.4,-0.3)*angles(math.rad(20),math.rad(0),math.rad(0)),.3)
- RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90),math.rad(0),math.rad(0)),.2)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-90),math.rad(0),math.rad(0)),.2)
- wld1.C0=euler(0,0,1.57)*cf(0,56.1,0)
- end
- for i = 1, 1 do
- swait()
- RootPart.Velocity = RootPart.CFrame.lookVector * 0
- RootPart.Velocity = RootPart.CFrame.lookVector * 0
- Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(-40), 0, 0), 0.8)
- Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(0)),.2)
- RightLeg.Weld.C0=clerp(RightLeg.Weld.C0,cf(0.5,-.6,-0.3)*angles(math.rad(10),math.rad(0),math.rad(0)),.3)
- LeftLeg.Weld.C0=clerp(LeftLeg.Weld.C0,cf(-0.5,-.4,-0.3)*angles(math.rad(20),math.rad(0),math.rad(0)),.3)
- RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90),math.rad(0),math.rad(0)),.2)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-90),math.rad(0),math.rad(0)),.2)
- wld1.C0=euler(0,0,1.57)*cf(0,56.1,0)
- so("http://www.roblox.com/asset/?id=895716446", prt1, 1, 1)
- local S = Instance.new("Explosion",workspace)
- S.Position = prt1.Position
- S.BlastPressure = 5
- S.BlastRadius = 15
- S.ExplosionType = 2
- end
- numb=-0.15
- for i=1,2 do
- local prt1=part(3,modelzorz,0,0,BrickColor.new("White"),"Part1",vt(1,1,1))
- wld1.C0=euler(0,0,1.57)*cf(0,1.1,0)
- prt1.CanCollide=true
- prt1.Material = "Neon"
- local msh1=mesh("CylinderMesh",prt1,"","",vt(0,0,0),vt(0.4,0.3,0.4))
- local prt2=part(3,modelzorz,0,0,BrickColor.new("Really black"),"Part2",vt(1,1,1))
- local msh2=mesh("CylinderMesh",prt2,"","",vt(0,0,0),vt(0.6,0.1,0.6))
- local wld2=weld(prt2,prt2,prt1,euler(0,0,0)*cf(0,numb,0))
- numb2=0
- for i=1,16 do
- local prt3=part(3,modelzorz,0.5,0,BrickColor.new("Toothpaste"),"Part3",vt(1,1,1))
- local msh3=mesh("SpecialMesh",prt3,"Wedge","",vt(0,0,0),vt(0.05,0.1,0.1))
- local wld3=weld(prt3,prt3,prt2,euler(-3.14+0.785,0,1.57)*cf(0,0,0.3))
- prt3.Material = "Neon"
- wld3.C1=euler(0,numb2,0)
- --numb2=numb2+0.785
- numb2=numb2+0.3925
- end
- numb=numb+0.3
- end
- for i = 0,4,0.12 do
- swait()
- RootPart.Velocity = RootPart.CFrame.lookVector * -140
- Humanoid.CameraOffset = Vector3.new(0,0,0)
- Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(180*i), math.rad(0)), 0.4)
- 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(-20), math.rad(-10), math.rad(50)), 0.3)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(-10), math.rad(-50)), 0.3)
- LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -.47, -0.7) * CFrame.Angles(math.rad(-12), math.rad(0), math.rad(0)), 0.8)
- RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-25), math.rad(-3), math.rad(0)), 0.8)
- wld1.C0=euler(0,0,1.57)*cf(0,1.1,0)
- end
- attack = false
- wait(7)
- attackcooldown = false
- end
- mouse.Button1Down:connect(function()
- if attack==false and equipped == false then
- if attacktype==1 then
- attack=true
- attacktype=2
- attackone()
- elseif attacktype==2 then
- attack=true
- attacktype=3
- attacktwo()
- elseif attacktype==3 then
- attack=true
- attacktype=4
- attackthree()
- elseif attacktype==4 then
- attack=true
- attacktype=5
- attackfour()
- elseif attacktype==5 then
- attack=true
- attacktype=1
- attackfive()
- end
- end
- end)
- mouse.Button1Down:connect(function()
- if attack==false and equipped == true then
- if attacktype==1 then
- attack=true
- attacktype=2
- attackoney()
- elseif attacktype==2 then
- attack=true
- attacktype=3
- attacktwoy()
- elseif attacktype==3 then
- attack=true
- attacktype=4
- attackthreey()
- elseif attacktype==4 then
- attack=true
- attacktype=1
- fy()
- elseif attacktype==5 then
- attack=true
- attacktype=1
- attackfivey()
- end
- end
- end)
- function Grapple()
- attack=true
- wld1.C0=euler(0,0,1.57)*cf(0,1.1,0)
- for i = 0,1,0.03 do
- swait()
- Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)), 0.4)
- Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(60)),.2)
- RW.C0 = clerp(RW.C0, CFrame.new(.9, 0.5, -.5) * angles(math.rad(90), math.rad(130), math.rad(90)),.2)
- LW.C0 = clerp(LW.C0, CFrame.new(-.8, 0.3, -.5) * angles(math.rad(60), math.rad(11), math.rad(70)),.2)
- LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(40), math.rad(-4)), 0.8)
- RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-3), math.rad(0)), 0.8)
- end
- for i=0,1,0.1 do
- swait()
- Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(50), math.rad(0)), 0.4)
- Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-20)),.2)
- RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(40), math.rad(90)),.2)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-30)),.2)
- offset=(Torso.Position.y-mouse.Hit.p.y)/60
- mag=(Torso.Position-mouse.Hit.p).magnitude/80
- offset=offset/mag
- end
- wait(0.2)
- so("http://roblox.com/asset/?id=10209640",LeftArm,1,0.78)
- prt1.Velocity=vt(0,0,0)
- wld1.Parent=nil
- local baseprt=part(3,workspace,0,1,BrickColor.new("Black"),"BasePart",vt(1,1,1))
- --[[local hit,pos = rayCast(prt1.Position,mouse.Hit.p,100,game)
- local hit,pos = game.Workspace:FindPartOnRay(Ray.new(prt1.Position, mouse.Hit.p.unit * (100)), workspace)
- print(pos)
- print(hit)
- baseprt.CFrame=CFrame.new(pos)]]
- baseprt.CFrame=RightArm.CFrame*cf(0,-200,0)
- fd=Instance.new("BodyPosition")
- fd.P=200
- fd.D=60
- fd.maxForce=Vector3.new(math.huge,math.huge,math.huge)
- fd.position=baseprt.Position
- fd.Parent=prt1
- coroutine.resume(coroutine.create(function(BodyPos)
- while fd.Parent~=nil do
- wait()
- end
- end),fd)
- coroutine.resume(coroutine.create(function()
- wait(0.1)
- con1=prt1.Touched:connect(function(hit)
- so("http://roblox.com/asset/?id=214876666",prt1,1.4,1)
- if hit.Name~="String1" then
- fd.Parent=nil
- prt1.Anchored=true
- fddd=Instance.new("BodyPosition")
- fddd.P=2000
- fddd.D=600
- fddd.maxForce=Vector3.new(math.huge,math.huge,math.huge)
- fddd.position=prt1.Position
- fddd.Parent=RightArm
- coroutine.resume(coroutine.create(function(BodyPos)
- wait(1)
- prt1.Anchored=false
- wld1.Parent=RightArm
- wld1.C0=euler(0,0,1.57)*cf(0,1.1,0)
- BodyPos.Parent=nil
- end),fddd)
- end
- end)
- end))
- cond=prt1.Touched:connect(function(hit) Damagefunc(hit,10,20) end)
- wait(2)
- con1:disconnect()
- coroutine.resume(coroutine.create(function(BodyPos)
- for i=1,20 do
- wait(0)
- BodyPos.position=RightArm.Position
- end
- end),fd)
- wait(1)
- cond:disconnect()
- fd.Parent=nil
- wld1.Parent=RightArm
- wld1.C0=euler(0,0,1.57)*cf(0,1.1,0)
- baseprt.Parent=nil
- attack=false
- end
- mouse.KeyDown:connect(function(key)
- if key == 'c' and attack == false and equipped == true then
- Grapple()
- end
- end)
- mouse.KeyDown:connect(function(key)
- if key == 'e' and attack == false and equipped == true then
- throw()
- end
- end)
- mouse.KeyDown:connect(function(key)
- if key == 'r' and attack == false and equipped == true and evade == false then
- YoyoEvade()
- end
- end)
- mouse.KeyDown:connect(function(key)
- if key == 't' and attackcooldown == false and equipped == true and attack == false then
- YoyoExplode()
- end
- end)
- mouse.KeyDown:connect(function(key)
- if key == 'f' and attack == false and equipped == true and evadecooldown == false then
- Dash()
- end
- end)
- mouse.KeyDown:connect(function(key)
- if key == 'f' and attack == false and equipped == false and evadecooldown == false then
- Dash2()
- end
- end)
- mouse.KeyDown:connect(function(key)
- if key == 'g' and attack == false and equipped == true then
- grabattack()
- end
- end)
- Character.Humanoid.MaxHealth = 700
- Character.Humanoid.Health = 700
- Character.Humanoid.WalkSpeed = 8
- Character.Humanoid.JumpPower = 100
- ------------------------------------
- mouse.KeyDown:connect(function(key)
- if string.byte(key) == 48 then
- Swing = 2
- Character.Humanoid.WalkSpeed = 90
- end
- end)
- mouse.KeyUp:connect(function(key)
- if string.byte(key) == 48 then
- Swing = 1
- Character.Humanoid.WalkSpeed = 8
- end
- end)
- ------------------------------------
- print("The Sonic Yo-yo")
- print("Made by KillerDarkness0105")
- print("Hope you enjoy :D")
- print("Controls")
- print("C = Air Grapple")
- print("E = Throw")
- print("R = YoyoEvade -2 sec cooldown")
- print("T = Explosion attack -7 sec cooldown")
- print("F = Dash -3 sec cooldown")
- print("Shift = Run")
- 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
- end
- end
- --The animations are made here, feel free to edit these to how you ya like :). I hope you know how to edit animations tho ;).
- if RootPart.Velocity.y > 1 and hitfloor==nil then
- Anim="Jump"
- if attack==false and equipped == false then
- change = 1
- for i = 0,4,0.12 do
- swait()
- Humanoid.CameraOffset = Vector3.new(0,0,0)
- Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(180*i), math.rad(0)), 0.4)
- Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10+2.05*math.cos(sine/5)),math.rad(0),math.rad(0)),.3)
- RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-20+2.05*math.cos(sine/5)), math.rad(-10), math.rad(50-2.05*math.cos(sine/5))), 0.3)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20+2.05*math.cos(sine/5)), math.rad(-10), math.rad(-50+2.05*math.cos(sine/5))), 0.3)
- LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -.47, -0.7) * CFrame.Angles(math.rad(-12+3.05*math.cos(sine/5)), math.rad(0), math.rad(0)), 0.1)
- RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-25+3.05*math.cos(sine/5)), math.rad(-3), math.rad(0)), 0.1)
- wld1.C0=euler(1.57,0,0)*cf(-1,1,-0.6)
- end
- else
- if attack==false and equipped == true then
- for i = 0,4,0.12 do
- swait()
- Humanoid.CameraOffset = Vector3.new(0,0,0)
- Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(180*i), math.rad(0)), 0.4)
- Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10+2.05*math.cos(sine/5)),math.rad(0),math.rad(0)),.3)
- RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-20+2.05*math.cos(sine/5)), math.rad(-10), math.rad(50-2.05*math.cos(sine/5))), 0.3)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20+2.05*math.cos(sine/5)), math.rad(-10), math.rad(-50+2.05*math.cos(sine/5))), 0.3)
- LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -.47, -0.7) * CFrame.Angles(math.rad(-12+3.05*math.cos(sine/5)), math.rad(0), math.rad(0)), 0.1)
- RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-25+3.05*math.cos(sine/5)), math.rad(-3), math.rad(0)), 0.1)
- wld1.C0=euler(0,0,1.57)*cf(0,1.1,0)
- end
- end
- end
- elseif RootPart.Velocity.y < -1 and hitfloor==nil then
- Anim="Fall"
- change = 1
- if attack==false and equipped == false then
- Humanoid.CameraOffset = Vector3.new(0,0,0)
- Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(0), math.rad(0)), 0.1)
- RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(5), math.rad(10), math.rad(20)), 0.3)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-5), math.rad(-10), math.rad(-20)), 0.3)
- RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-10),math.rad(0),math.rad(0)),.3)
- Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(40),math.rad(0),math.rad(0)),.3)
- LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1, -0.4) * CFrame.Angles(math.rad(25), math.rad(0), math.rad(0)), 0.1)
- RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-3), math.rad(0)), 0.1)
- wld1.C0=euler(1.57,0,0)*cf(-1,1,-0.6)
- else
- if attack==false and equipped == true then
- Humanoid.CameraOffset = Vector3.new(0,0,0)
- Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(0), math.rad(0)), 0.1)
- RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(5), math.rad(10), math.rad(20)), 0.3)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-5), math.rad(-10), math.rad(-20)), 0.3)
- RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-10),math.rad(0),math.rad(0)),.3)
- Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(40),math.rad(0),math.rad(0)),.3)
- LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1, -0.4) * CFrame.Angles(math.rad(25), math.rad(0), math.rad(0)), 0.1)
- RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-3), math.rad(0)), 0.1)
- wld1.C0=euler(0,0,1.57)*cf(0,1.1,0)
- end
- end
- elseif torvel<1 and hitfloor~=nil then
- Anim="Idle"
- if attack==false and equipped == false then
- particleemitter2.Rate = 0
- light.Color = Color3.new(0, 0, 0)
- light.Brightness = 0
- light.Range = 0
- Humanoid.CameraOffset = Vector3.new(0,0,0)
- Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1-0.15*math.cos(sine/60), 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.1)
- Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0+4*math.cos(sine/60)),math.rad(0+4*math.sin(sine/60)),math.rad(0)),.2)
- RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5+0.07*math.sin(sine/60), 0) * angles(math.rad(-3), math.rad(0+15*math.cos(sine/60)), math.rad(10)),.2)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5+0.07*math.sin(sine/60), 0) * angles(math.rad(-3), math.rad(0-15*math.cos(sine/60)), math.rad(-10)),.2)
- LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1+0.15*math.cos(sine/60), 0) * CFrame.Angles(math.rad(0), math.rad(3), math.rad(-4)), 0.1)
- RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1+0.15*math.cos(sine/60), 0) * CFrame.Angles(math.rad(0), math.rad(-3), math.rad(4)), 0.1)
- wld1.C0=euler(1.57,0,0)*cf(-1,1,-0.6)
- else
- for i = 0,1,0.13 do
- if attack==false and equipped == true then
- particleemitter2.Rate = 120
- light.Color = Color3.new(0, 255, 255)
- light.Brightness = 4.50
- light.Range = 14
- Humanoid.CameraOffset = Vector3.new(0,0,0)
- Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1-0.15*math.cos(sine/60), 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.1)
- Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(30+4*math.cos(sine/60)),math.rad(0+4*math.sin(sine/60)),math.rad(-15)),.2)
- RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5+0.07*math.sin(sine/60), 0) * angles(math.rad(90+10*math.cos(sine/60)), math.rad(0-25*math.cos(sine/60)), math.rad(0)),.2)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5+0.07*math.sin(sine/60), 0) * angles(math.rad(-3), math.rad(0+15*math.cos(sine/60)), math.rad(-10)),.2)
- LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1+0.15*math.cos(sine/60), 0) * CFrame.Angles(math.rad(0), math.rad(3), math.rad(-4)), 0.1)
- RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1+0.15*math.cos(sine/60), 0) * CFrame.Angles(math.rad(0), math.rad(-3), math.rad(4)), 0.1)
- wld1.C0=euler(0,0,1.57*math.cos(sine/60))*cf(0,2.1-1.7*math.sin(sine/30),-1.6*i)
- --wld1.C0=euler(0,0,1.57)*cf(0,2.1,0)
- end
- end
- end
- elseif torvel>2 and torvel<22 and hitfloor~=nil then
- Anim="Walk"
- if attack==false and equipped == false then
- Humanoid.CameraOffset = Vector3.new(0,0,0)
- RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(10),math.rad(0),math.rad(0)),.2)
- Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1-0.05*math.cos(sine/7.5), 0) * CFrame.Angles(math.rad(-10+2*math.cos(sine/15)), 0, 0), 0.1)
- Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-4+2*math.sin(sine/18)),math.rad(0),math.rad(0)),.2)
- RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-20*math.cos(sine/20)), math.rad(0), math.rad(0)),.2)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(20*math.cos(sine/20)), math.rad(0), math.rad(0)),.2)
- LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1-0.05*math.cos(sine/15), 0+0.25*math.sin(sine/15)) * CFrame.Angles(math.rad(0-20*math.sin(sine/15)), math.rad(3), math.rad(0)), 0.1)
- RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1+0.05*math.cos(sine/15), 0-0.25*math.sin(sine/15)) * CFrame.Angles(math.rad(0+20*math.sin(sine/15)), math.rad(-3), math.rad(0)), 0.1)
- wld1.C0=euler(1.57,0,0)*cf(-1,1,-0.6)
- else
- if attack==false and equipped == true then
- Humanoid.CameraOffset = Vector3.new(0,0,0)
- RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(10),math.rad(0),math.rad(0)),.2)
- Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1-0.05*math.cos(sine/7.5), 0) * CFrame.Angles(math.rad(-10+2*math.cos(sine/15)), 0, 0), 0.1)
- Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-4+2*math.sin(sine/18)),math.rad(0),math.rad(0)),.2)
- RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-20*math.cos(sine/20)), math.rad(0), math.rad(0)),.2)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(20*math.cos(sine/20)), math.rad(0), math.rad(0)),.2)
- LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1-0.05*math.cos(sine/15), 0+0.25*math.sin(sine/15)) * CFrame.Angles(math.rad(0-20*math.sin(sine/15)), math.rad(3), math.rad(0)), 0.1)
- RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1+0.05*math.cos(sine/15), 0-0.25*math.sin(sine/15)) * CFrame.Angles(math.rad(0+20*math.sin(sine/15)), math.rad(-3), math.rad(0)), 0.1)
- wld1.C0=euler(0,0,1.57)*cf(0,1.1,0)
- end
- end
- elseif torvel>=22 and hitfloor~=nil then
- Anim="Run"
- if attack==false and equipped == false then
- Humanoid.CameraOffset = Vector3.new(0,0,0)
- RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,-0.2)* angles(math.rad(20),math.rad(0),math.rad(0)),.2)
- Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1-0.05*math.cos(sine/3), 0) * CFrame.Angles(math.rad(-20+2*math.cos(sine/6)), 0, 0), 0.8)
- Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-12+5*math.cos(sine/5)),math.rad(0),math.rad(0)),.2)
- RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(35 + 70 *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(35 - 70 *math.cos (sine / -5)),math.rad(0),math.rad(0)),.2)
- LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1-0.4*math.cos(sine/4)/2, 0 *math.sin(sine/4)/2) * CFrame.Angles(math.rad(0) + -math.sin(sine/4)/1.2, math.rad(0), 0), .4)
- RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1+0.4*math.cos(sine/4)/2,0 *-math.sin(sine/4)/2) * CFrame.Angles(math.rad(0) + math.sin(sine/4)/1.2, math.rad(0), 0), .4)
- wld1.C0=euler(1.57,0,0)*cf(-1,1,-0.6)
- else
- if attack==false and equipped == true then
- Humanoid.CameraOffset = Vector3.new(0,0,0)
- RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,-0.2)* angles(math.rad(20),math.rad(0),math.rad(0)),.2)
- Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1-0.05*math.cos(sine/3), 0) * CFrame.Angles(math.rad(-20+2*math.cos(sine/6)), 0, 0), 0.8)
- Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-12+5*math.cos(sine/5)),math.rad(0),math.rad(0)),.2)
- RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(35 + 70 *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(35 - 70 *math.cos (sine / -5)),math.rad(0),math.rad(0)),.2)
- LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1-0.4*math.cos(sine/4)/2, 0 *math.sin(sine/4)/2) * CFrame.Angles(math.rad(0) + -math.sin(sine/4)/1.2, math.rad(0), 0), .4)
- RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1+0.4*math.cos(sine/4)/2,0 *-math.sin(sine/4)/2) * CFrame.Angles(math.rad(0) + math.sin(sine/4)/1.2, math.rad(0), 0), .4)
- wld1.C0=euler(0,0,1.57)*cf(0,1.1,0)
- end
- end
- end
- end
- end
- --Thanks for using this :) -KillerDarkness0105
Add Comment
Please, Sign In to add comment