Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --FE Template
- if (game:GetService('RunService'):IsServer()) then return error('This script cannot be ran server-sided, please use hl/',0); end;
- local remote = NS ([=[
- Player = owner
- Character = Player.Character
- PlayerGui = Player.PlayerGui
- Backpack = Player.Backpack
- Torso = Character.Torso
- mana=0
- Head = Character.Head
- local effectz = Instance.new('Model', Character)
- effectz.Name = "effects"
- Humanoid = Character.Humanoid
- 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"]
- Neck = Torso.Neck
- it=Instance.new
- vt=Vector3.new
- cf=CFrame.new
- 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)
- RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
- attack = false
- attacktype = 1
- damage = 5
- oridamage = 50
- attackdebounce = false
- ssdebounce=false
- MMouse=nil
- combo=0
- magic=true
- RootPart=Character.HumanoidRootPart
- RootJoint=RootPart.RootJoint
- RootCF=euler(-1.57,0,3.14)
- local Effects = {}
- local RbxUtility = LoadLibrary("RbxUtility")
- local Create = RbxUtility.Create
- --player
- player = nil
- --save shoulders
- RSH, LSH = nil, nil
- --welds
- RW, LW = Instance.new("Weld"), Instance.new("Weld")
- RW.Name="Right Shoulder" LW.Name="Left Shoulder"
- if Character:findFirstChild("Rapier",true) ~= nil then
- Character:findFirstChild("Rapier",true).Parent = nil
- end
- if Character:findFirstChild("Block",true) ~= nil then
- Character:findFirstChild("Block",true).Parent = nil
- end
- function so(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 = Sounds[id].Id
- swait()
- sou:play()
- swait(6)
- sou:Remove()
- end))
- 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
- function rayCast(Pos, Dir, Max, Ignore)
- 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
- 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 pwait(num)
- if num==0 or num==nil then
- game:service'RunService'.Heartbeat:wait()
- else
- for i=0,num do
- game:service'RunService'.Heartbeat:wait()
- end
- end
- 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
- local modelzorz = Instance.new("Model")
- modelzorz.Parent = Character
- modelzorz.Name = "Rapier"
- local prt1=part(3,modelzorz,0,0,BrickColor.new("Really black"),"Part1",vt(1,1,1))
- local prt2=part(3,modelzorz,0,0,BrickColor.new("Really black"),"Part2",vt(1,1,1))
- local prt3=part(3,modelzorz,0,0,BrickColor.new("Really black"),"Part3",vt(1,1,1))
- local prt4=part(3,modelzorz,0,0,BrickColor.new("Really black"),"Part4",vt(1,1,1))
- local prt5=part(3,modelzorz,0,0,BrickColor.new("Really black"),"Part5",vt(1,1,1))
- local prt6=part(3,modelzorz,0,0,BrickColor.new("Really black"),"Part6",vt(1,1,1))
- local prt7=part(3,modelzorz,0,0,BrickColor.new("Really black"),"Part7",vt(1,1,1))
- local prt8=part(3,modelzorz,0,0,BrickColor.new("Really black"),"Part8",vt(1,1,1))
- local prt9=part(3,modelzorz,0,0,BrickColor.new("Really black"),"Part9",vt(1,1,1))
- local prt10=part(3,modelzorz,0,0,BrickColor.new("Really black"),"Part10",vt(1,1,1))
- local prt11=part(3,modelzorz,0,0,BrickColor.new("Really black"),"Part11",vt(1,1,1))
- local prt12=part(3,modelzorz,0,0,BrickColor.new("Really black"),"Part12",vt(1,1,1))
- local prt13=part(3,modelzorz,0,1,BrickColor.new("Black"),"Part13",vt(0.5,4,0.5))
- local msh1=mesh("CylinderMesh",prt1,"","",vt(0,0,0),vt(0.2,1,0.2))
- local msh2=mesh("SpecialMesh",prt2,"FileMesh","http://www.roblox.com/asset/?id=1778999",vt(0,0,0),vt(0.2,0.5,0.2))
- local msh3=mesh("SpecialMesh",prt3,"Sphere","",vt(0,0,0),vt(0.1,0.6,0.1))
- local msh4=mesh("BlockMesh",prt4,"","",vt(0,0,0),vt(0.3,0.2,0.05))
- local msh5=mesh("BlockMesh",prt5,"","",vt(0,0,0),vt(0.05,0.2,0.3))
- local msh6=mesh("SpecialMesh",prt6,"Sphere","",vt(0,0,0),vt(0.4,0.4,0.4))
- local msh7=mesh("CylinderMesh",prt7,"","",vt(0,0,0),vt(0.1,0.5,0.1))
- local msh8=mesh("CylinderMesh",prt8,"","",vt(0,0,0),vt(0.4,0.5,0.4))
- local msh9=mesh("CylinderMesh",prt9,"","",vt(0,0,0),vt(0.3,0.05,0.3))
- local msh10=mesh("BlockMesh",prt10,"","",vt(0,0,0),vt(0.2,0.1,0.2))
- local msh11=mesh("SpecialMesh",prt11,"FileMesh","http://www.roblox.com/asset/?id=1778999",vt(0,0,0),vt(0.2,1,0.2))
- local msh12=mesh("SpecialMesh",prt12,"FileMesh","http://www.roblox.com/asset/?id=1778999",vt(0,0,0),vt(0.2,3,0.2))
- local msh13=mesh("BlockMesh",prt13,"","",vt(0,0,0),vt(1,1,1))
- local wld1=weld(prt1,prt1,Torso,euler(-2,0,0)*cf(1,0.5,1.5))
- local wld2=weld(prt2,prt2,prt1,cf(0,0.3,0))
- local wld3=weld(prt3,prt3,prt2,cf(0,0.3,0))
- local wld4=weld(prt4,prt4,prt2,cf(0,0.3,0))
- local wld5=weld(prt5,prt5,prt2,cf(0,0.3,0))
- local wld6=weld(prt6,prt6,prt1,cf(0,-0.5,0))
- local wld7=weld(prt7,prt7,prt6,cf(0,-0.25,0))
- local wld8=weld(prt8,prt8,prt7,cf(0,0,0))
- local wld9=weld(prt9,prt9,prt7,cf(0,-0.3,0))
- local wld10=weld(prt10,prt10,prt9,cf(0,-0.05,0))
- local wld11=weld(prt11,prt11,prt10,cf(0,-0.5,0))
- local wld12=weld(prt12,prt12,prt11,cf(0,-1.5,0))
- local wld13=weld(prt13,prt13,prt12,cf(0,0,0))
- numb=0
- for i=1,4 do
- local prt13=part(3,modelzorz,0,0,BrickColor.new("Really black"),"Part13",vt(1,1,1))
- local prt14=part(3,modelzorz,0,0,BrickColor.new("Really black"),"Part14",vt(1,1,1))
- local prt15=part(3,modelzorz,0,0,BrickColor.new("Really black"),"Part15",vt(1,1,1))
- local prt16=part(3,modelzorz,0,0,BrickColor.new("Really black"),"Part16",vt(1,1,1))
- local msh13=mesh("SpecialMesh",prt13,"Wedge","",vt(0,0,0),vt(0.05,0.5,0.5))
- local msh14=mesh("SpecialMesh",prt14,"Wedge","",vt(0,0,0),vt(0.051,0.5,0.3))
- local msh15=mesh("BlockMesh",prt15,"","",vt(0,0,0),vt(0.052,0.3,0.2))
- local msh16=mesh("SpecialMesh",prt16,"Wedge","",vt(0,0,0),vt(0.051,0.5,0.5))
- local wld13=weld(prt13,prt13,prt6,euler(0,0,3.14)*cf(0,0.2,0.3)*euler(0,numb,0))
- local wld14=weld(prt14,prt14,prt13,euler(-0.3,0,3.14)*cf(0,0.4,0.2))
- local wld15=weld(prt15,prt15,prt14,euler(-0.2,0,0)*cf(0,-0.3,-0.1))
- local wld16=weld(prt16,prt16,prt15,euler(0.5,0,0)*cf(0,-0.3,0))
- numb=numb+1.57
- end
- numb=0
- color="Bright red"
- for i=1,6 do
- if i==1 then color="White" elseif i==2 then color="Bright blue" elseif i==3 then color="Bright green" elseif i==4 then color="Black" elseif i==5 then color="Bright red" elseif i==6 then color="Bright yellow" end
- local prt17=part(3,modelzorz,0,0,BrickColor.new(color),"Part17",vt(1,1,1))
- local msh17=mesh("BlockMesh",prt17,"","",vt(0,0,0),vt(0.1,0.2,0.1))
- local wld17=weld(prt17,prt17,prt7,cf(0.15,0.13,0)*euler(0,numb,0))
- numb=numb+1.046
- end
- Bin = script.Parent
- local bg = it("BodyGyro")
- bg.maxTorque = Vector3.new(4e+005,4e+005,4e+005)*math.huge
- bg.P = 20e+003
- bg.Parent = nil
- bp=it("BodyPosition")
- bp.P=2000
- bp.D=100
- bp.maxForce=Vector3.new(math.huge,math.huge,math.huge)
- so = function(id,par,dong,pit)
- coroutine.resume(coroutine.create(function()
- local sou = Instance.new("Sound",par or workspace)
- sou.Volume=1
- sou.Pitch=pit or 1
- sou.SoundId=id
- swait()
- sou:play()
- wait(6)
- sou:Remove()
- end))
- end
- function unequipweld()
- wld1.Part1=Torso
- wld1.C0=euler(-2,0,0)*cf(1,0.5,1.5)
- end
- function equipweld()
- wld1.Part1=LeftArm
- wld1.C0=euler(1.57,0,0)*cf(0,1,0)
- end
- function hideanim()
- equipped=false
- wait(0.1)
- Torso.Neck.C0=necko
- RootJoint.C0=RootCF
- unequipweld()
- end
- function equipanim()
- equipped=true
- wait(0.1)
- equipweld()
- Torso.Neck.C0=necko*euler(0,0,1)
- RootJoint.C0=RootCF*euler(0,0,-1)
- RW.C0=cf(1.5, 0.5, 0) * euler(0,0,0.3)
- RW.C1=cf(0, 0.5, 0) * euler(0,0,0)
- LW.C0=cf(-1.5, 0.5, 0) * euler(0.5,-1.57,0)
- LW.C1=cf(0, 0.5, 0) * euler(0.2,0,0)
- end
- function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
- return game.Workspace:FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
- end
- function oneslash()
- attack=true
- for i=0,1,0.1 do
- swait()
- LW.C0=cf(-1.5+0.5*i, 0.5, -0.5*i) * euler(0.5+1.5*i,-1.57+0.2*i,0)
- LW.C1=cf(0, 0.5, 0) * euler(0.2-0.8*i,0,0)
- end
- so("http://roblox.com/asset/?id=10209640",prt12,1,1)
- --local LastPoint = prt12.CFrame * CFrame.new(0,prt12.Size.Y*2.5,0)
- con1=prt13.Touched:connect(function(hit) Damagefunc1(hit,10,10) end)
- for i=0,1,0.2 do
- swait()
- Torso.Neck.C0 = clerp(Torso.Neck.C0,necko*euler(0,0,1-2*i),.3)
- RootJoint.C0 = clerp(RootJoint.C0,RootCF*euler(0,0,-1+2*i),.3)
- wld1.C0 = clerp(wld1.C0,euler(1.57+1*i,0,0)*cf(0,1,0),.3)
- LW.C0 = clerp(LW.C0,cf(-1-0.5*i, 0.5, -0.5+0.5*i) * euler(2-0.5*i,-1.37,0),.3)
- LW.C1 = clerp(LW.C1,cf(0, 0.5, 0) * euler(0.2-0.8+1.6*i,0,0),.3)
- --[[local Point = prt12.CFrame * CFrame.new(0,prt12.Size.Y*2.5,0)
- local Point2 = prt12.CFrame
- effect("White",0.5,0.1,LastPoint,Point)
- LastPoint = Point]]
- end
- con1:disconnect()
- attack=false
- end
- function twoslash()
- attack=true
- for i=0,1,0.1 do
- swait()
- RootJoint.C0=RootCF*euler(0,0,1+3.14*i)
- wld1.C0=euler(1.57+1-1*i,0,0)*cf(0,1,0)
- LW.C0=cf(-1.5+0.5*i, 0.5, -0.5*i) * euler(1.5+0.07*i,-1.37-0.2*i,0)
- LW.C1=cf(0, 0.5, 0) * euler(1-2*i,0,0)
- end
- so("http://roblox.com/asset/?id=10209640",prt12,1,1.1)
- --local LastPoint = prt12.CFrame * CFrame.new(0,prt12.Size.Y*2.5,0)
- con1=prt13.Touched:connect(function(hit) Damagefunc1(hit,10,10) end)
- for i=0,1,0.2 do
- swait()
- RootJoint.C0=RootCF*euler(0,0,1+3.14+3.14*i)
- wld1.C0=euler(1.57+1*i,0,0)*cf(0,1,0)
- LW.C0=cf(-1.5+0.5-0.5*i, 0.5, -0.5+0.5*i) * euler(1.57,-1.57,0)
- LW.C1=cf(0, 0.5, 0) * euler(-1+2*i,0,0)
- --[[local Point = prt12.CFrame * CFrame.new(0,prt12.Size.Y*2.5,0)
- effect("White",0.5,0.1,LastPoint,Point)
- LastPoint = Point]]
- end
- con1:disconnect()
- attack=false
- end
- function threeslash()
- attack=true
- for i=0,1,0.1 do
- swait()
- RootJoint.C0=RootCF*euler(0,0,1-1*i)
- Torso.Neck.C0=necko*euler(0,0,-1+1*i)
- wld1.C0=euler(1.57+1-1*i,0,0)*cf(0,1,0)
- LW.C0=cf(-1.5, 0.5, 0) * euler(1.57+3.64*i,-1.57+1*i,0)
- LW.C1=cf(0, 0.5, 0) * euler(1,0,0)
- end
- so("http://roblox.com/asset/?id=10209640",prt12,1,1)
- --local LastPoint = prt12.CFrame * CFrame.new(0,prt12.Size.Y*2.5,0)
- con1=prt13.Touched:connect(function(hit) Damagefunc1(hit,10,10) end)
- for i=0,1,0.2 do
- swait()
- RootJoint.C0=RootCF*euler(0,0,-1*i)
- Torso.Neck.C0=necko*euler(0,0,1*i)
- LW.C0=cf(-1.5+0.5*i, 0.5, -0.5*i) * euler(5.21-0.3*i,-0.57,0)
- LW.C1=cf(0, 0.5, 0) * euler(1+4*i,0,0)
- --[[local Point = prt12.CFrame * CFrame.new(0,prt12.Size.Y*2.5,0)
- effect("White",0.5,0.1,LastPoint,Point)
- LastPoint = Point]]
- end
- con1:disconnect()
- attack=false
- end
- function fourslash()
- attack=true
- so("rbxasset://sounds\\swordlunge.wav",prt12,1,1.5)
- --local LastPoint = prt12.CFrame * CFrame.new(0,prt12.Size.Y*2.5,0)
- con1=prt13.Touched:connect(function(hit) Damagefunc1(hit,15,10) end)
- for i=0,1,0.2 do
- swait()
- RootJoint.C0=RootCF*euler(0,0,-1-0.57*i)
- Torso.Neck.C0=necko*euler(0,0,1+0.57*i)
- wld1.C0=euler(1.57+1*i,0,0)*cf(0,1,0)
- LW.C0=cf(-1.5+0.5-0.5*i, 0.5, -0.5+0.5*i) * euler(4.91+1.57*i,-0.57+0.57*i,0)
- LW.C1=cf(0, 0.5, 0) * euler(5,-1.57*i,0)
- --[[local Point = prt12.CFrame * CFrame.new(0,prt12.Size.Y*2.5,0)
- effect("White",0.5,0.1,LastPoint,Point)
- LastPoint = Point]]
- end
- for i=0,1,0.2 do
- swait()
- --[[local Point = prt12.CFrame * CFrame.new(0,prt12.Size.Y*2.5,0)
- effect("White",0.5,0.1,LastPoint,Point)
- LastPoint = Point]]
- end
- con1:disconnect()
- attack=false
- end
- function FlameBarrage()
- if mana>=30 then mana=mana-30 else return end
- attack=true
- magic=true
- for i=0,1,0.1 do
- swait()
- Torso.Neck.C0=necko*euler(0.5*i,0,1-1*i)
- wld1.C0=euler(1.57+0.2*i,0,0)*cf(0,1,0)
- RW.C0=cf(1.5-1*i, 0.5, -0.5*i) * euler(1*i,0,0.3-1*i)
- RW.C1=cf(0, 0.5, 0) * euler(0,0,0)
- LW.C0=cf(-1.5, 0.5, 0) * euler(0.5+0.5*i,-1.57,0)
- LW.C1=cf(0, 0.5, 0) * euler(0.2-0.4*i,0,0)
- end
- for i=0,1,0.1 do
- swait()
- RW.C0=cf(1.5-1, 0.5, -0.5) * euler(1-0.4*i,0,0.3-1)
- RW.C1=cf(0, 0.5, 0) * euler(0,0,0)
- wld7.C0=wld7.C0*euler(0,-0.2,0)
- so("http://roblox.com/asset/?id=28445431",prt7,1,20)
- end
- coroutine.resume(coroutine.create(function()
- for i=1,10 do
- so("http://roblox.com/asset/?id=131382140",prt12,1,10)
- swait()
- end
- end))
- reffect=prt12:Clone()
- reffect.Parent=modelzorz
- reffect.Transparency=1
- reffect.Mesh.Scale=vt(0.3,3,0.3)
- reffect.BrickColor=BrickColor.new("Bright red")
- local efwld=weld(reffect,reffect,prt12,cf(0,-0.4,0))
- coroutine.resume(coroutine.create(function(Part)
- for i=0,1,0.1 do
- swait()
- Part.Transparency=Part.Transparency-0.05
- end
- while magic==true do
- swait()
- MagicBlock(BrickColor.new("Bright red"),prt12.CFrame*cf((math.random()/4)-(math.random()/4),math.random(-2,1)+math.random(),(math.random()/4)-(math.random()/4)),.5,.5,.5,.05,.05,.05)
- end
- for i=0,1,0.1 do
- swait()
- Part.Transparency=Part.Transparency+0.1
- end
- Part.Parent=nil
- end),reffect)
- for i=0,1,0.05 do
- swait()
- Torso.Neck.C0=necko*euler(0.5-0.5*i,0,1*i)
- RW.C0=cf(1.5-1+0.5*i, 0.5, -0.5+0.3*i) * euler(0.6,0,-0.7)
- RW.C1=cf(0, 0.5, 0) * euler(-0.4*i,0,0)
- LW.C0=cf(-1.5, 0.5, 0) * euler(1+0.2*i,-1.57,0)
- LW.C1=cf(0, 0.5, 0) * euler(-0.2-0.2*i,0,0)
- end
- so("http://roblox.com/asset/?id=10209640",prt12,1,1)
- local LastPoint = prt12.CFrame * CFrame.new(0,prt12.Size.Y*2.5,0)
- con1=prt13.Touched:connect(function(hit) Damagefunc1(hit,10,10) end)
- for i=1,3 do
- so("http://roblox.com/asset/?id=130865054",Torso,1,1.5)
- end
- for i=0,0.2,0.1 do
- swait()
- RootJoint.C0=RootCF*euler(0,0,-1+7.28*i)
- Torso.Neck.C0=necko*euler(0,0,1-1*i)
- RW.C0=cf(1.5-0.5, 0.5, -0.5+0.3-0.3*i) * euler(0.6,0,-0.7-0.5*i)
- RW.C1=cf(0, 0.5, 0) * euler(-0.4,0,0)
- LW.C0=cf(-1.5, 0.5, 0) * euler(1.2+0.37*i,-1.57,0)
- LW.C1=cf(0, 0.5, 0) * euler(-0.4+2.4*i,0,0)
- local Point = prt12.CFrame * CFrame.new(0,prt12.Size.Y*2.5,0)
- effect("Bright red",0.5,0.3,LastPoint,Point)
- LastPoint = Point
- end
- local exprt=part(3,modelzorz,0,1,BrickColor.new("Bright red"),"Explosion Part",vt(1,1,1))
- exprt.Anchored=true
- exprt.CFrame=RootPart.CFrame*cf(0,0,-7)
- so("http://www.roblox.com/asset/?id=2101148",exprt,1,0.6)
- game:GetService("Debris"):AddItem(exprt,1)
- MagicCircle(BrickColor.new("Bright red"),exprt.CFrame,3,3,3,3,3,3)
- for i=1,4 do
- MagicRing(BrickColor.new("Bright red"),exprt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)),3,3,0.1,1,1,0.05)
- end
- local c = game.Workspace:GetChildren()
- for i = 1, #c do
- local hum = c[i]:findFirstChild("Humanoid")
- if hum ~= nil and hum.Health ~= 0 then
- local head = c[i]:findFirstChild("Head")
- if head ~= nil then
- local targ = head.Position - exprt.Position
- local mag = targ.magnitude
- if mag <= 10 and c[i].Name ~= Player.Name then
- attackdebounce=false
- Damagefunc1(head,15,50)
- end
- end
- end
- end
- for i=0.2,1,0.1 do
- swait()
- RootJoint.C0=RootCF*euler(0,0,-1+7.28*i)
- Torso.Neck.C0=necko*euler(0,0,1-1*i)
- RW.C0=cf(1.5-0.5, 0.5, -0.5+0.3-0.3*i) * euler(0.6,0,-0.7-0.5*i)
- RW.C1=cf(0, 0.5, 0) * euler(-0.4,0,0)
- LW.C0=cf(-1.5, 0.5, 0) * euler(1.2+0.37*i,-1.57,0)
- LW.C1=cf(0, 0.5, 0) * euler(-0.4+2.4*i,0,0)
- local Point = prt12.CFrame * CFrame.new(0,prt12.Size.Y*2.5,0)
- effect("Bright red",0.5,0.3,LastPoint,Point)
- LastPoint = Point
- end
- con1:disconnect()
- for i=0,1,0.1 do
- swait()
- RootJoint.C0=RootCF*euler(0,0,1*i)
- Torso.Neck.C0=necko*euler(0,0,-1*i)
- wld1.C0=euler(1.77-1.2*i,0,0)*cf(0,1,0)
- RW.C0=cf(1.5-0.5, 0.5, -0.5) * euler(0.6,0,-1.2)
- RW.C1=cf(0, 0.5, 0) * euler(-0.4,0,0)
- LW.C0=cf(-1.5, 0.5, 0) * euler(1.57,-1.57,0)
- LW.C1=cf(0, 0.5, 0) * euler(2-0.43*i,0,0)
- end
- so("rbxasset://sounds\\swordlunge.wav",prt12,1,1.2)
- local LastPoint = prt12.CFrame * CFrame.new(0,prt12.Size.Y*2.5,0)
- con1=prt13.Touched:connect(function(hit) Damagefunc1(hit,20,30) end)
- for i=0,1,0.2 do
- swait()
- RootJoint.C0=RootCF*euler(0,0,1-2.57*i)
- Torso.Neck.C0=necko*euler(0,0,-1+2.57*i)
- wld1.C0=euler(0.57+2.57*i,0,0)*cf(0,1,0)
- RW.C0=cf(1.5-0.5+0.5*i, 0.5, -0.5+0.5*i) * euler(0.6,0,-1.2+2.4*i)
- RW.C1=cf(0, 0.5, 0) * euler(-0.4,0,0)
- LW.C0=cf(-1.5, 0.5, 0) * euler(1.57,-1.57,0)
- LW.C1=cf(0, 0.5, 0) * euler(1.57,0,0)
- local Point = prt12.CFrame * CFrame.new(0,prt12.Size.Y*2.5,0)
- effect("Bright red",0.5,0.3,LastPoint,Point)
- LastPoint = Point
- end
- con1:disconnect()
- numb=-7
- for i=1,3 do
- local exprt=part(3,modelzorz,0,1,BrickColor.new("Bright red"),"Explosion Part",vt(1,1,1))
- exprt.Anchored=true
- exprt.CFrame=RootPart.CFrame*cf(0,0,numb)
- so("http://www.roblox.com/asset/?id=2101148",exprt,1,1)
- game:GetService("Debris"):AddItem(exprt,1)
- MagicCircle(BrickColor.new("Bright red"),exprt.CFrame,3,3,3,3,3,3)
- coroutine.resume(coroutine.create(function(Part)
- for i=1,4 do
- MagicBlock(BrickColor.new("Bright red"),Part.CFrame,3,3,3,2,2,2)
- wait(0.1)
- end
- end),exprt)
- local c = game.Workspace:GetChildren()
- for i = 1, #c do
- local hum = c[i]:findFirstChild("Humanoid")
- if hum ~= nil and hum.Health ~= 0 then
- local head = c[i]:findFirstChild("Head")
- if head ~= nil then
- local targ = head.Position - exprt.Position
- local mag = targ.magnitude
- if mag <= 10 and c[i].Name ~= Player.Name then
- attackdebounce=false
- Damagefunc1(head,5,30)
- end
- end
- end
- end
- numb=numb-5
- wait(0.2)
- end
- wait(1)
- Torso.Neck.C0=necko*euler(0,0,1)
- RootJoint.C0=RootCF*euler(0,0,-1)
- magic=false
- attack=false
- end
- function IcePrison()
- if mana>=35 then mana=mana-35 else return end
- attack=true
- magic=true
- for i=0,1,0.1 do
- swait()
- Torso.Neck.C0=necko*euler(0,0,1-1*i)
- RootJoint.C0=RootCF*euler(0,0,-1+1*i)
- wld1.C0=euler(1.57,0,0)*cf(0,1,0)
- RW.C0=cf(1.5-0.5*i, 0.5, -0.5*i) * euler(1.9*i,0,0.3-0.8*i)
- RW.C1=cf(0, 0.5, 0) * euler(0,0,0)
- LW.C0=cf(-1.5+0.5*i, 0.5, -0.5*i) * euler(0.5+1.07*i,-1.57+1.57*i,0.7*i)
- LW.C1=cf(0, 0.5, 0) * euler(0.2-0.2*i,0,0)
- end
- for i=0,1,0.1 do
- swait()
- RW.C0=cf(1.5-0.5, 0.5, -0.5) * euler(1.9,0,-0.5-0.2*i)
- RW.C1=cf(0, 0.5, 0) * euler(0,0,0)
- wld7.C0=wld7.C0*euler(0,0.2,0)
- so("http://roblox.com/asset/?id=28445431",prt7,1,20)
- end
- reffect=prt12:Clone()
- reffect.Parent=modelzorz
- reffect.Transparency=1
- reffect.Mesh.Scale=vt(0.3,3,0.3)
- reffect.BrickColor=BrickColor.new("Bright blue")
- local efwld=weld(reffect,reffect,prt12,cf(0,-0.4,0))
- coroutine.resume(coroutine.create(function(Part)
- for i=0,1,0.1 do
- swait()
- Part.Transparency=Part.Transparency-0.05
- end
- while magic==true do
- swait()
- MagicBlock(BrickColor.new("Bright blue"),prt12.CFrame*cf((math.random()/4)-(math.random()/4),math.random(-2,1)+math.random(),(math.random()/4)-(math.random()/4)),.5,.5,.5,.05,.05,.05)
- end
- for i=0,1,0.1 do
- swait()
- Part.Transparency=Part.Transparency+0.1
- end
- Part.Parent=nil
- end),reffect)
- for i=1,3 do
- so("http://roblox.com/asset/?id=25605551",prt12,1,1)
- end
- wait(0.5)
- for i=0,1,0.1 do
- swait()
- wld1.C0=euler(1.57+1*i,0,0)*cf(0,1,0)
- RW.C0=cf(1.5-0.5, 0.5, -0.5) * euler(1.9-0.6*i,0,-0.7)
- RW.C1=cf(0, 0.5, 0) * euler(0,0,0)
- LW.C0=cf(-1.5+0.5, 0.5, -0.5) * euler(1.57-0.57*i,0,0.7-0.2*i)
- LW.C1=cf(0, 0.5, 0) * euler(0,1.57*i,0)
- end
- local LastPoint = prt12.CFrame * CFrame.new(0,prt12.Size.Y*2.5,0)
- con1=prt13.Touched:connect(function(hit) Damagefunc1(hit,10,10) end)
- for i=1,3 do
- so("http://roblox.com/asset/?id=10209640",prt12,1,1)
- for i=0,1,0.2 do
- swait()
- RootJoint.C0=RootCF*euler(0,0,6.32*i)
- local Point = prt12.CFrame * CFrame.new(0,prt12.Size.Y*2.5,0)
- effect("Bright blue",0.5,0.3,LastPoint,Point)
- LastPoint = Point
- end
- end
- so("http://roblox.com/asset/?id=10209640",prt12,1,1)
- for i=0,1,0.2 do
- swait()
- RootJoint.C0=RootCF*euler(0,0,3.14*i)
- local Point = prt12.CFrame * CFrame.new(0,prt12.Size.Y*2.5,0)
- effect("Bright blue",0.5,0.3,LastPoint,Point)
- LastPoint = Point
- end
- con1:disconnect()
- for i=0,1,0.1 do
- swait()
- wld1.C0=euler(2.57-1*i,3.14*i,0)*cf(0,1,0)
- RootJoint.C0=RootCF*euler(0,0,3.14+3.14*i)
- RW.C0=cf(1.5-0.5, 0.5, -0.5) * euler(1.3+1.2*i,0,-0.7)
- RW.C1=cf(0, 0.5, 0) * euler(0,0,0)
- LW.C0=cf(-1.5+0.5, 0.5, -0.5) * euler(1+1.5*i,0,0.5+0.2*i)
- LW.C1=cf(0, 0.5, 0) * euler(0,1.57-1.57*i,0)
- end
- local LastPoint = prt12.CFrame * CFrame.new(0,prt12.Size.Y*2.5,0)
- so("http://roblox.com/asset/?id=10209640",prt12,1,1.1)
- bg.Parent=Torso
- bg.cframe=Torso.CFrame
- local bp = Instance.new("BodyPosition")
- bp.maxForce = Vector3.new(math.huge,math.huge,math.huge)
- bp.P = 10000
- local CF = Torso.CFrame
- bp.position = CF.p
- bp.Parent=Torso
- for i=0,1,0.2 do
- swait()
- bp.position = CF.p - Vector3.new(0,1.5,0)
- Torso["Left Hip"].C0=LHC0*cf(-0.7*i,1.2*i,0)
- Torso["Right Hip"].C0=RHC0*cf(0,1.2*i,0)*euler(0,0,-0.5*i)
- RW.C0=cf(1.5-0.5, 0.5, -0.5) * euler(2.5-1*i,0,-0.7)
- RW.C1=cf(0, 0.5, 0) * euler(0,0,0)
- LW.C0=cf(-1.5+0.5, 0.5, -0.5) * euler(2.5-1*i,0,0.7)
- LW.C1=cf(0, 0.5, 0) * euler(0,0,0)
- local Point = prt12.CFrame * CFrame.new(0,prt12.Size.Y*2.5,0)
- effect("Bright blue",0.5,0.3,LastPoint,Point)
- LastPoint = Point
- end
- numb=-3
- numb2=0
- for i=1,20 do
- local exprt=part(3,modelzorz,0,1,BrickColor.new("Bright red"),"Explosion Part",vt(1,1,1))
- exprt.Anchored=true
- exprt.CFrame=RootPart.CFrame*cf(numb2,0,numb)
- so("http://www.roblox.com/asset/?id=32656754",exprt,0.5,1)
- game:GetService("Debris"):AddItem(exprt,3)
- for i=1,5 do
- --Icicle(exprt.CFrame*euler(math.random(-2,1)+math.random(),0,math.random(-2,1)+math.random()),2,5,2)
- MagicFreeze(BrickColor.new("Bright blue"),exprt.CFrame*cf(0,-3,0),0.5,0.5,0.5,0.1,0.3,0.1)
- end
- local c = game.Workspace:GetChildren()
- for i = 1, #c do
- local hum = c[i]:findFirstChild("Humanoid")
- if hum ~= nil and hum.Health ~= 0 then
- local head = c[i]:findFirstChild("Head")
- if head ~= nil then
- local targ = head.Position - exprt.Position
- local mag = targ.magnitude
- if mag <= 5 and c[i].Name ~= Player.Name then
- attackdebounce=false
- freezeDamagefunc(head,0,0)
- end
- end
- end
- end
- numb=numb-1
- if numb2==1 then
- swait()
- numb2=0
- end
- numb2=numb2+1
- end
- wait(0.5)
- bg.Parent=nil
- bp.Parent=nil
- Torso["Left Hip"].C0=LHC0
- Torso["Right Hip"].C0=RHC0
- Torso.Neck.C0=necko*euler(0,0,1)
- RootJoint.C0=RootCF*euler(0,0,-1)
- magic=false
- attack=false
- end
- function DarkWave()
- if mana>=60 then mana=mana-60 else return end
- attack=true
- magic=true
- for i=0,1,0.1 do
- swait()
- Torso.Neck.C0=necko*euler(0.5*i,0,1-1*i)
- wld1.C0=euler(1.57+0.2*i,0,0)*cf(0,1,0)
- RW.C0=cf(1.5-1*i, 0.5, -0.5*i) * euler(1*i,0,0.3-1*i)
- RW.C1=cf(0, 0.5, 0) * euler(0,0,0)
- LW.C0=cf(-1.5, 0.5, 0) * euler(0.5+0.5*i,-1.57,0)
- LW.C1=cf(0, 0.5, 0) * euler(0.2-0.4*i,0,0)
- end
- for i=0,1,0.1 do
- swait()
- RW.C0=cf(1.5-1, 0.5, -0.5) * euler(1-0.4*i,0,0.3-1)
- RW.C1=cf(0, 0.5, 0) * euler(0,0,0)
- wld7.C0=wld7.C0*euler(0,-0.2,0)
- so("http://roblox.com/asset/?id=28445431",prt7,1,20)
- end
- coroutine.resume(coroutine.create(function()
- for i=1,10 do
- so("http://roblox.com/asset/?id=131382140",prt12,1,10)
- swait()
- end
- end))
- reffect=prt12:Clone()
- reffect.Parent=modelzorz
- reffect.Transparency=1
- reffect.Mesh.Scale=vt(0.3,3,0.3)
- reffect.BrickColor=BrickColor.new("Black")
- local efwld=weld(reffect,reffect,prt12,cf(0,-0.4,0))
- coroutine.resume(coroutine.create(function(Part)
- for i=0,2,0.1 do
- swait()
- Part.Transparency=Part.Transparency-0.05
- end
- while magic==true do
- swait()
- MagicBlock(BrickColor.new("Black"),prt12.CFrame*cf((math.random()/4)-(math.random()/4),math.random(-2,1)+math.random(),(math.random()/4)-(math.random()/4)),.5,.5,.5,.05,.05,.05)
- end
- for i=0,2,0.1 do
- swait()
- Part.Transparency=Part.Transparency+0.1
- end
- Part.Parent=nil
- end),reffect)
- for i=0,2,0.05 do
- swait()
- Torso.Neck.C0=necko*euler(0.5-0.5*i/2,0,1*i/2)RW.C0=cf(1.5-1+0.5*i, 0.5, -0.5+0.3*i) * euler(0.6,0,-0.7)
- RW.C1=cf(0, 0.5, 0) * euler(-0.4*i,0,0)LW.C0=cf(-1.5, 0.5, 0) * euler(1+0.2*i,-1.57,0)
- LW.C1=cf(0, 0.5, 0) * euler(-0.2-0.2*i,0,0)end
- for i=0,1,0.1 do
- swait()
- LW.C0=cf(-1.5+0.5*i, 0.5, -0.5*i) * euler(0.5+1.5*i,-1.57+0.2*i,0)
- LW.C1=cf(0, 0.5, 0) * euler(0.2-0.8*i,0,0)
- end
- so("http://roblox.com/asset/?id=10209640",prt12,1,1)
- local LastPoint = prt12.CFrame * CFrame.new(0,prt12.Size.Y*2.5,0)
- con1=prt13.Touched:connect(function(hit) Damagefunc1(hit,10,10) end)
- for i=0,1,0.2 do
- swait()
- Torso.Neck.C0=necko*euler(0,0,1-2*i)
- RootJoint.C0=RootCF*euler(0,0,-1+2*i)
- wld1.C0=euler(1.57+2*i,0,0)*cf(0,1,0)
- LW.C0=cf(-1-0.5*i, 0.5, -0.5+0.5*i) * euler(2-0.5*i,-1.37,0)
- LW.C1=cf(0, 0.5, 0) * euler(0.2-0.8+1.6*i,0,0)
- local Point = prt12.CFrame * CFrame.new(0,prt12.Size.Y*2.5,0)
- local Point2 = prt12.CFrame
- effect("Black",0.5,0.1,LastPoint,Point)
- LastPoint = Point
- end
- con1:disconnect()
- Spawn(function()
- local Parts = {}
- for Y = -2,2 do
- local P = Instance.new("Part",Character)
- P.Anchored = true
- P.FormFactor = "Custom"
- P.CanCollide = false
- P.Size = Vector3.new(1,2,1)
- P.TopSurface = "SmoothNoOutlines"
- P.BottomSurface = "SmoothNoOutlines"
- P.BrickColor = BrickColor.new("Really black")
- P.Name = tostring(Y)
- local i = (Y+1)/(3)
- i = 1-math.cos(math.pi*i-(math.pi/2))
- P.CFrame = Character.HumanoidRootPart.CFrame*CFrame.new(0,Y,-15+(i*1.5))*CFrame.Angles(math.rad(Y*5),0,0)
- --[[P.Touched:connect(function(ht)
- local hit = ht.Parent
- if hit:FindFirstChild("Humanoid") then
- hit.Humanoid:TakeDamage(math.random(20,50))
- end
- end)]]--
- s = Instance.new("Sound",P)
- s.SoundId = "rbxassetid://228343271"
- s.Volume = .7
- s.Pitch = 0.9
- s:Play()
- --[[P.Touched:connect(function(ht)
- hit = ht.Parent
- if ht and hit:IsA("Model") then
- if hit:FindFirstChild("Humanoid") then
- if hit.Name ~= p.Name then
- if Debounces.Slashing == true and Debounces.Slashed == false then
- Debounces.Slashed = true
- hit:FindFirstChild("Humanoid"):TakeDamage(math.random(1,3))
- hit:FindFirstChild("Humanoid").PlatformStand = true
- wait(1)
- --Debounces.Slashed = false
- --end
- end
- end
- elseif ht and hit:IsA("Accessoryy") then
- if hit.Parent.Name ~= p.Name then
- if hit.Parent:FindFirstChild("Humanoid") then
- if Debounces.Slashing == true and Debounces.Slashed == false then
- Debounces.Slashed = true
- hit.Parent:FindFirstChild("Humanoid"):TakeDamage(math.random (1,3))
- hit:FindFirstChild("Humanoid").PlatformStand = true
- wait(1)
- --Debounces.Slashed = false
- --end
- end
- end
- end
- end)]]
- P.Touched:connect(function(hit) Damagefunc1(hit,30,30) end)
- Parts[#Parts+1] = P
- end
- local BREAKIT = false
- local CParts = {}
- local Rocks = {}
- local LastPos = nil
- for i = 1,70 do
- for i2,v in pairs(Parts) do
- v.CFrame = v.CFrame*CFrame.new(0,0,-4)
- local cf = v.CFrame
- v.Size = v.Size+Vector3.new(0.4,0.35,0)
- v.CFrame = cf
- v.Transparency = v.Transparency+0.02
- if v.Transparency >= 0.975 then BREAKIT = true end
- if v.Name == "0" then
- local Ignore = {}
- for i,v in pairs(game:GetService("Players"):GetPlayers()) do
- if v.Character ~= nil then
- Ignore[#Ignore+1] = v.Character
- end
- end
- local ray = Ray.new(v.Position+Vector3.new(0,20,0),Vector3.new(0,-200,0))
- local Hit,Pos,SurfaceNorm = Workspace:FindPartOnRayWithIgnoreList(ray,Ignore)
- if Hit ~= nil then
- if #Rocks == 0 then
- for i = 1,5 do
- local P = Instance.new("Part",Character)
- Rocks[#Rocks+1] = P
- P.Anchored = true
- P.FormFactor = "Custom"
- P.BrickColor = Hit.BrickColor
- P.Material = Hit.Material
- P.TopSurface = "Smooth"
- P.BottomSurface = "Smooth"
- P.Size = Vector3.new(1,1,1)*(math.random(50,90)/10)
- end
- end
- for i,P in pairs(Rocks) do
- P.CFrame = ((CFrame.new(Pos)*(v.CFrame-v.Position))*CFrame.new(math.random(-math.ceil(v.Size.X/2),math.ceil(v.Size.X/2)),0,-math.random(5,8))-Vector3.new(0,0.25,0))*CFrame.Angles(math.rad(math.random(-50,50)),math.rad(math.random(-50,50)),math.rad(math.random(20,50)))
- end
- local P = Instance.new("Part",Character)
- CParts[#CParts+1] = {P,tick()}
- P.Anchored = true
- P.FormFactor = "Custom"
- P.BrickColor = Hit.BrickColor
- P.Material = Hit.Material
- P.TopSurface = "Smooth"
- P.BottomSurface = "Smooth"
- P.Size = Vector3.new(1,1,1)*(math.random(100,300)/100)
- Pos = CFrame.new(Pos)*(v.CFrame-v.Position)*CFrame.new(v.Size.X/2,0,0)
- Pos = Pos.p
- P.CFrame = ((CFrame.new(Pos,Pos+SurfaceNorm)*CFrame.Angles(math.rad(90),0,0))-Vector3.new(0,0.25,0))*CFrame.Angles(math.rad(math.random(-50,50)),math.rad(math.random(-50,50)),math.rad(math.random(20,50)))
- local P = P:Clone()
- CParts[#CParts+1] = {P,tick()}
- P.Parent = Character
- Pos = CFrame.new(Pos)*(v.CFrame-v.Position)*CFrame.new(-v.Size.X,0,0)
- Pos = Pos.p
- P.CFrame = ((CFrame.new(Pos,Pos+SurfaceNorm)*CFrame.Angles(math.rad(90),0,0))-Vector3.new(0,0.25,0))*CFrame.Angles(math.rad(math.random(-50,50)),math.rad(math.random(-50,50)),math.rad(math.random(-50,-20)))
- if LastPos ~= nil then
- local P = P:Clone()
- CParts[#CParts+1] = {P,tick()}
- P.Parent = Character
- P.BrickColor = BrickColor.new("Really black")
- Pos = CFrame.new(Pos)*(v.CFrame-v.Position)*CFrame.new(v.Size.X/2,0,0)
- Pos = Pos.p
- local CFr = (CFrame.new(Pos)*(v.CFrame-v.Position))-Vector3.new(0,0.4,0)
- P.Size = Vector3.new(v.Size.X-0.25,1,(CFr.p-LastPos.p).Magnitude+0.25)
- --P.Velocity = Vector3.new(0,-1000,0)
- P.CFrame = CFrame.new(CFr.p,LastPos.p)*CFrame.new(0,0,-((CFr.p-LastPos.p).Magnitude+0.25)/2)
- end
- LastPos = (CFrame.new(Pos)*(v.CFrame-v.Position))-Vector3.new(0,0.4,0)
- end
- end
- end
- if BREAKIT then break end
- wait(0.002)
- end
- for i,v in pairs(Rocks) do
- CParts[#CParts+1] = {v,tick()}
- end
- for i,v in pairs(Parts) do
- v:Destroy()
- end
- Parts = nil
- while true do
- local t = tick()
- local p = nil
- for i,v in pairs(CParts) do
- if t-v[2] > 4 then
- v[1].Transparency = v[1].Transparency+0.05
- if v[1].Transparency >= 1 then
- v[1]:Destroy()
- CParts[i] = nil
- end
- end
- p = v
- end
- if p == nil then break end
- wait(0.002)
- end
- for i,v in pairs(CParts) do
- v:Destroy()
- end
- CParts = {}
- end)
- wait(3)
- Torso.Neck.C0=necko*euler(0,0,1)
- RootJoint.C0=RootCF*euler(0,0,-1)
- wld1.C0=euler(1.57,0,0)*cf(0,1,0)
- RW.C0=cf(1.5, 0.5, 0) * euler(0,0,0.3)
- RW.C1=cf(0, 0.5, 0) * euler(0,0,0)
- LW.C0=cf(-1.5, 0.5, 0) * euler(0.5,-1.57,0)
- LW.C1=cf(0, 0.5, 0) * euler(0.2,0,0)
- attack=false
- magic=false
- end
- function AirDash()
- if mana>=20 then mana=mana-20 else return end
- attack=true
- magic=true
- for i=0,1,0.1 do
- swait()
- wld1.C0=euler(1.57-1.2*i,0,0)*cf(0,1,0.3*i)
- Torso.Neck.C0=necko*euler(0,0,1+0.57*i)
- RootJoint.C0=RootCF*euler(0,0,-1-0.57*i)
- RW.C0=cf(1.5, 0.5, 0) * euler(0.7*i,0,0.3-0.9*i)
- RW.C1=cf(0, 0.5, 0) * euler(0,0,0)
- LW.C0=cf(-1.5+1*i, 0.5, -0.5*i) * euler(0.5+1.07*i,-1.57+3.16*i,0)
- LW.C1=cf(0, 0.5, 0) * euler(0.2+0.8*i,0,0)
- end
- for i=0,1,0.1 do
- swait()
- wld7.C0=wld7.C0*euler(0,0.2,0)
- so("http://roblox.com/asset/?id=28445431",prt7,1,20)
- end
- so("http://roblox.com/asset/?id=10209640",prt12,1,0.7)
- for i = 0,1, 0.1 do
- Torso.Velocity = Head.CFrame.lookVector *100
- end
- local LastPoint = prt12.CFrame * CFrame.new(0,prt12.Size.Y*2.5,0)
- bg.Parent = Head
- bg.cframe=Head.CFrame
- jointhit=false
- con1=prt13.Touched:connect(function(hit)
- coroutine.resume(coroutine.create(function()
- if hit.Parent==nil then
- return
- end
- h=hit.Parent:FindFirstChild("Humanoid")
- if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil and jointhit==false then
- jointhit=true
- bp.position=RootPart.Position
- -- bp.Parent=RootPart
- bg.Parent=RootPart
- bg.cframe=RootPart.CFrame
- for i=0,1,0.1 do
- swait()
- RootJoint.C0=RootCF*cf(0,-5*i,5*i)*euler(1.57*i,0,-1.57)
- end
- for i=0,1,0.1 do
- swait()
- Torso.Neck.C0=necko*euler(0,0,1.57-1.57*i)
- RW.C0=cf(1.5, 0.5, 0) * euler(0,0,0.6+0.97*i)
- RW.C1=cf(0, 0.5, 0) * euler(0,0,0)
- LW.C0=cf(-1.5, 0.5, 0) * euler(1.57,1.57,0)
- LW.C1=cf(0, 0.5, 0) * euler(-1.57,0,0)
- RootJoint.C0=RootCF*cf(0,-5-5*i,5+5*i)*euler(1.57+1.57*i,0,-1.57-3.14*i)
- end
- coroutine.resume(coroutine.create(function()
- while attack==true do
- swait()
- Torso.Neck.C0=necko
- wld1.C0=euler(1.57-1.2+2.77,0,0)*cf(0,1,0)
- RW.C0=cf(1.5, 0.5, 0) * euler(0,0,1.57)
- RW.C1=cf(0, 0.5, 0) * euler(0,0,0)
- LW.C0=cf(-1.5, 0.5, 0) * euler(1.57,1.57,0)
- LW.C1=cf(0, 0.5, 0) * euler(-1.57,0,0)
- end
- end))
- for i=0,1,0.1 do
- swait()
- RootJoint.C0=RootCF*cf(0,-10,10-3*i)*euler(3.14+1.57*i,0,-1.57-3.14-1.57*i)
- end
- for i=0,1,0.15 do
- swait()
- RootJoint.C0=RootCF*cf(0,-10,7-3*i)*euler(3.14+1.57+1.57*i,0,-1.57-3.14-1.57+1.57*i)
- end
- for i=0,1,0.2 do
- swait()
- RootJoint.C0=RootCF*cf(0,-10,4-4*i)*euler(3.14+3.14,0,-1.57-3.14-1.57+1.57+1.57*i)
- end
- RootPart.CFrame=Torso.CFrame*euler(0,1,0)
- RootJoint.C0=RootCF*euler(0,0,-1)
- bg.Parent=nil
- bp.Parent=nil
- wait(0.5)
- attack=false
- swait()
- Torso.Neck.C0=necko*euler(0,0,1)
- end
- end))
- Damagefunc1(hit,10,10)
- end)
- numb=-1
- for i=0,1,0.2 do
- swait()
- so("http://roblox.com/asset/?id=10209640",prt12,1,numb)
- numb=numb+0.2
- wld1.C0=euler(1.57-1.2+2.77*i,0,0)*cf(0,1,0.3-0.3*i)
- Torso.Neck.C0=necko*euler(0,0,1.57)
- RW.C0=cf(1.5, 0.5, 0) * euler(0.7-0.7*i,0,-0.6+1.2*i)
- RW.C1=cf(0, 0.5, 0) * euler(0,0,0)
- LW.C0=cf(-1.5+1-1*i, 0.5, -0.5+0.5*i) * euler(1.57,1.57,0)
- LW.C1=cf(0, 0.5, 0) * euler(1-2.57*i,0,0)
- local Point = prt12.CFrame * CFrame.new(0,prt12.Size.Y*2.5,0)
- local Point2 = prt12.CFrame
- effect("White",0.5,0.1,LastPoint,Point)
- LastPoint = Point
- end
- for i=0,1,0.1 do
- swait()
- local Point = prt12.CFrame * CFrame.new(0,prt12.Size.Y*2.5,0)
- local Point2 = prt12.CFrame
- effect("White",0.5,0.1,LastPoint,Point)
- LastPoint = Point
- end
- con1:disconnect()
- if jointhit==false then
- end
- wait(1)
- Torso.Neck.C0=necko*euler(0,0,1)
- if jointhit==false then
- bg.Parent=nil
- RootJoint.C0=RootCF*euler(0,0,-1)
- attack=false
- end
- magic=false
- end
- local LastPoint = prt12.CFrame * CFrame.new(0,-prt12.Size.Y*2.5,0)
- local Point = prt12.CFrame * CFrame.new(0,prt12.Size.Y*2.5,0)
- function effect(Color,Ref,Size,LP,P1,returnn)
- local effectsmsh = Instance.new("BlockMesh")
- effectsmsh.Scale = Vector3.new(0.4,1,0.4)
- effectsmsh.Name = "Mesh"
- local effectsg = Instance.new("Part")
- effectsg.formFactor = 3
- effectsg.CanCollide = false
- effectsg.Name = "Eff"
- effectsg.Locked = true
- effectsg.Anchored = true
- effectsg.Size = Vector3.new(0.2,1,0.2)
- effectsg.Parent = effectz
- effectsmsh.Parent = effectsg
- effectsg.BrickColor = BrickColor.new(Color)
- effectsg.Reflectance = Ref
- local point1 = P1
- local mg = (LP.p - point1.p).magnitude
- effectsg.Size = Vector3.new(Size,mg,Size)
- effectsg.CFrame = CFrame.new((LP.p+point1.p)/2,point1.p) * CFrame.Angles(math.rad(90),0,0)
- if returnn then return effectsg end
- coroutine.resume(coroutine.create(function()
- if not returnn then
- for i = 0 , 1 , 0.1 do
- swait()
- effectsg.Transparency = 1*i
- effectsmsh.Scale = Vector3.new(Size-Size*i,1,Size-Size*i)
- end
- swait()
- effectsg.Parent = nil
- end
- end))
- end
- function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3)
- local prt=part(3,effectz,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
- prt.Anchored=true
- prt.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
- local msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
- coroutine.resume(coroutine.create(function(Part,Mesh)
- for i=0,1,0.1 do
- swait()
- Part.CFrame=Part.CFrame
- Part.Transparency=i
- Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
- end
- Part.Parent=nil
- end),prt,msh)
- end
- function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3)
- local prt=part(3,effectz,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
- prt.Anchored=true
- prt.CFrame=cframe
- local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
- coroutine.resume(coroutine.create(function(Part,Mesh)
- for i=0,1,0.1 do
- swait()
- Part.CFrame=Part.CFrame
- Part.Transparency=i
- Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
- end
- Part.Parent=nil
- end),prt,msh)
- end
- function MagicRing(brickcolor,cframe,x1,y1,z1,x3,y3,z3)
- local prt=part(3,effectz,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
- prt.Anchored=true
- prt.CFrame=cframe
- local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=3270017",vt(0,0,0),vt(x1,y1,z1))
- coroutine.resume(coroutine.create(function(Part,Mesh)
- for i=0,1,0.03 do
- swait()
- Part.CFrame=Part.CFrame
- Part.Transparency=i
- Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
- end
- Part.Parent=nil
- end),prt,msh)
- end
- function MagicFreeze(brickcolor,cframe,x1,y1,z1,x3,y3,z3)
- local prt=part(3,effectz,0.4,0.3,brickcolor,"Effect",vt(0.5,0.5,0.5))
- prt.Anchored=true
- prt.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
- local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=1778999",vt(0,0,0),vt(x1,y1,z1))
- coroutine.resume(coroutine.create(function(Part,Mesh)
- for i=0,1,0.1 do
- Part.CFrame=Part.CFrame*cf(0,0.3,0)
- Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
- end
- wait(5)
- Part.Parent=nil
- end),prt,msh)
- end
- Damagefunc1=function(hit,Damage,Knockback)
- if hit.Parent==nil then
- return
- end
- CPlayer=Bin
- h=hit.Parent:FindFirstChild("Humanoid")
- if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
- if attackdebounce == false then
- attackdebounce = true
- coroutine.resume(coroutine.create(function()
- wait(0.2)
- attackdebounce = false
- end))
- Damage=Damage
- --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
- return
- end]]
- -- hs(hit,1.2)
- c=Instance.new("ObjectValue")
- c.Name="creator"
- c.Value=owner
- c.Parent=h
- game:GetService("Debris"):AddItem(c,.5)
- Damage=Damage+math.random(0,10)
- -- h:TakeDamage(Damage)
- blocked=false
- block=hit.Parent:findFirstChild("Block")
- if block~=nil then
- print("herp")
- if block.Value>0 then
- blocked=true
- block.Value=block.Value-1
- print(block.Value)
- end
- end
- if blocked==false then
- -- h:TakeDamage(Damage)
- h.Health=h.Health-Damage
- showDamage(hit.Parent,Damage,.5)
- else
- h:TakeDamage(1)
- showDamage(hit.Parent,1,.5)
- end
- vp=Instance.new("BodyVelocity")
- vp.P=500
- vp.maxForce=Vector3.new(math.huge,0,math.huge)
- -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback
- vp.velocity=RootPart.CFrame.lookVector*Knockback+RootPart.Velocity/1.05
- if Knockback>0 then
- vp.Parent=hit.Parent.Torso
- end
- game:GetService("Debris"):AddItem(vp,.25)
- game:GetService("Debris"):AddItem(r,.5)
- 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
- end
- freezeDamagefunc=function(hit,Damage,Knockback)
- if hit.Parent==nil then
- return
- end
- CPlayer=Bin
- h=hit.Parent:FindFirstChild("Humanoid")
- if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
- if attackdebounce == false then
- attackdebounce = true
- coroutine.resume(coroutine.create(function()
- wait(0.2)
- attackdebounce = false
- end))
- Damage=Damage
- --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
- return
- end]]
- -- hs(hit,1.2)
- c=Instance.new("ObjectValue")
- c.Name="creator"
- c.Value=owner
- c.Parent=h
- game:GetService("Debris"):AddItem(c,.5)
- Damage=Damage+math.random(0,5)
- -- h:TakeDamage(Damage)
- blocked=false
- block=hit.Parent:findFirstChild("Block")
- if block~=nil then
- print("herp")
- if block.Value>0 then
- blocked=true
- block.Value=block.Value-1
- print(block.Value)
- end
- end
- if blocked==false then
- -- h:TakeDamage(Damage)
- HitHealth=h.Health
- h.Health=h.Health-Damage
- if HitHealth~=h.Health and HitHealth~=0 and h.Health<=0 and h.Parent.Name~="Hologram" then
- print("gained spree")
- end
- showDamage(hit.Parent,Damage,.5)
- else
- h:TakeDamage(1)
- showDamage(hit.Parent,1,.5)
- end
- if math.random(1,1)==1 then
- BodPos=Instance.new("BodyPosition")
- BodPos.P=50000
- BodPos.D=1000
- BodPos.maxForce=Vector3.new(math.huge,math.huge,math.huge)
- BodPos.position=hit.Parent.Torso.Position
- BodPos.Parent=hit.Parent.Torso
- BodGy = it("BodyGyro")
- BodGy.maxTorque = Vector3.new(4e+005,4e+005,4e+005)*math.huge
- BodGy.P = 20e+003
- BodGy.Parent=hit.Parent.Torso
- BodGy.cframe = hit.Parent.Torso.CFrame
- showDamage(hit.Parent,Damage,.5)
- so("http://www.roblox.com/asset/?id=41763367",hit,1,2)
- --[[ for i=1,10 do
- local freezepart=part(3,hit.Parent,0.5,0.5,BrickColor.new("Bright blue"),"Ice Part",vt(math.random(2,3)+math.random(),math.random(2,3)+math.random(),math.random(2,3)+math.random()))
- freezepart.Anchored=true
- freezepart.CFrame=hit.Parent.Torso.CFrame*cf(math.random(-1,0)+math.random(),-2.5,math.random(-1,0)+math.random())*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
- coroutine.resume(coroutine.create(function(Part)
- wait(5)
- Part.Anchored=false
- Part.Velocity=vt(math.random(-20,20),math.random(20,30),math.random(-20,20))
- wait(5)
- Part.Parent=nil
- end),freezepart)
- end]]
- coroutine.resume(coroutine.create(function(BodyPos,BodyGy,Hitted)
- wait(5)
- BodyPos.Parent=nil
- BodyGy.Parent=nil
- end),BodPos,BodGy,hit)
- end
- vp=Instance.new("BodyVelocity")
- vp.P=500
- vp.maxForce=Vector3.new(math.huge,0,math.huge)
- -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback
- vp.velocity=Torso.CFrame.lookVector*Knockback+Torso.Velocity/1.05
- if Knockback>0 then
- vp.Parent=hit.Parent.Torso
- end
- game:GetService("Debris"):AddItem(vp,.25)
- 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
- end
- showDamage=function(Char,Dealt,du)
- 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=BrickColor:Red()
- if CRIT==true then
- c.BrickColor=BrickColor.new("Really red")
- end
- 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
- c.CFrame=CFrame.new(Char["Head"].CFrame.p+Vector3.new(0,1.5,0))
- 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=effectz
- c.CanCollide=false
- end
- function ob1d(mouse)
- if attack == true then return end
- hold=true
- if combo==0 then
- combo=1
- oneslash()
- elseif combo==1 then
- combo=2
- twoslash()
- elseif combo==2 then
- combo=3
- threeslash()
- elseif combo==3 then
- combo=4
- fourslash()
- end
- end
- function ob1u(mouse)
- hold = false
- end
- buttonhold = false
- function key(key)
- if attack == true then return end
- --attack=true
- if key=="z" then
- FlameBarrage()
- end
- if key=="x" then
- IcePrison()
- end
- if key=="c" then
- AirDash()
- end
- if key=="v" then
- DarkWave()
- end
- --[[if key=="f" then
- --so("http://roblox.com/asset/?id=130839563",Torso,1,1)
- so("http://www.roblox.com/asset/?id=10209810",Torso,1,1)
- wait(5)
- for i=0,1,0.1 do
- swait()
- so("http://www.roblox.com/asset/?id=10209810",Torso,.8,2)
- end
- end]]
- combo=0
- wld1.C0=euler(1.57,0,0)*cf(0,1,0)
- RW.C0=cf(1.5, 0.5, 0) * euler(0,0,0.3)
- RW.C1=cf(0, 0.5, 0) * euler(0,0,0)
- LW.C0=cf(-1.5, 0.5, 0) * euler(0.5,-1.57,0)
- LW.C1=cf(0, 0.5, 0) * euler(0.2,0,0)
- Humanoid.WalkSpeed=16
- end
- function key2(key)
- end
- game:GetService("RunService").Heartbeat:Connect(function()
- wait(1)
- if mana <= 100 then
- mana = mana + 1
- elseif mana >= 100 then
- mana = 100
- end
- end)
- function s()
- unsheathed = true
- player = Player
- ch = Character
- MMouse = mouse
- 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.5)
- 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.8)
- LW.C1 = CFrame.new(0, 0.5, 0)
- LW.Part1 = ch["Left Arm"]
- LW.Parent = ch.Torso
- --_G.L = LW
- --
- equipanim()
- end
- function ds()
- hideanim()
- swait()
- RW.Parent = nil
- LW.Parent = nil
- RSH.Parent = player.Character.Torso
- LSH.Parent = player.Character.Torso
- end
- print("Spell Rapier loaded.")
- local sine = 0
- local change = 1
- local val = 0
- local idle = 0
- local donum = 0
- while true do
- pwait()
- 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
- if donum >= .5 then
- handidle = true
- elseif donum <= 0 then
- handidle = false
- end
- if handidle == false then
- donum = donum + 0.003
- else
- donum = donum - 0.003
- end
- if RootPart.Velocity.y > 1 and hitfloor == nil then
- Anim = "Jump"
- if attack == false then
- RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 2) * angles(math.rad(30), math.rad(0), math.rad(0)), .3)
- Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * 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(0), math.rad(20), math.rad(70)), 0.3)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(-20), math.rad(-70)), 0.3)
- RH.C0 = clerp(RH.C0, cf(1, -.5, -.5) * angles(math.rad(0), math.rad(90), math.rad(-30)), .3)
- LH.C0 = clerp(LH.C0, cf(-1, -.8, -.5) * angles(math.rad(0), math.rad(-90), math.rad(20)), .3)
- end
- elseif RootPart.Velocity.y < -1 and hitfloor == nil then
- Anim = "Fall"
- if attack == false then
- 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(30), math.rad(0), math.rad(0)), .3)
- RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.7, 0) * angles(math.rad(0), math.rad(0), math.rad(130)), 0.3)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.7, 0) * angles(math.rad(0), math.rad(0), math.rad(-130)), 0.3)
- RH.C0 = clerp(RH.C0, cf(1, -.7, -.5) * angles(math.rad(0), math.rad(90), math.rad(-20)), .3)
- LH.C0 = clerp(LH.C0, cf(-1, -1, -.5) * angles(math.rad(0), math.rad(-90), math.rad(10)), .3)
- end
- elseif torvel < 1 and hitfloor ~= nil then
- Anim = "Idle"
- if attack == false then
- RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(2), math.rad(0), math.rad(-30)), .3)
- Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(5), math.rad(0), math.rad(30)), .3)
- RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0) + donum / 2, math.rad(0) + donum / 2, math.rad(10)), 0.3)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.5, 0) * angles(math.rad(0) + donum / 2, math.rad(-30) - donum / 2, math.rad(-20)), 0.3)
- RH.C0 = clerp(RH.C0, cf(1, -1, 0) * angles(math.rad(0), math.rad(90), math.rad(-2)) * angles(math.rad(-3), math.rad(0), math.rad(0)), .3)
- LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(0), math.rad(-70), math.rad(-2)) * angles(math.rad(-3), math.rad(0), math.rad(0)), .3)
- end
- elseif torvel > 2 and hitfloor ~= nil then
- Anim = "Walk"
- if attack == false then
- change = 3
- RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(20), 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(-20), math.rad(0), math.rad(15)), 0.3)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-15)), 0.3)
- RH.C0 = clerp(RH.C0, cf(1, -1, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(-5), math.rad(0), math.rad(0)), .3)
- LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(-5), math.rad(0), math.rad(0)), .3)
- end
- end
- end
- if #Effects > 0 then
- for e = 1, #Effects do
- if Effects[e] ~= nil then
- local Thing = Effects[e]
- if Thing ~= nil then
- local Part = Thing[1]
- local Mode = Thing[2]
- local Delay = Thing[3]
- local IncX = Thing[4]
- local IncY = Thing[5]
- local IncZ = Thing[6]
- if Thing[1].Transparency <= 1 then
- if Thing[2] == "Block1" then
- Thing[1].CFrame = Thing[1].CFrame * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
- Mesh = Thing[1].Mesh
- Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6])
- Thing[1].Transparency = Thing[1].Transparency + Thing[3]
- elseif Thing[2] == "Cylinder" then
- Mesh = Thing[1].Mesh
- Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6])
- Thing[1].Transparency = Thing[1].Transparency + Thing[3]
- elseif Thing[2] == "Blood" then
- Mesh = Thing[7]
- Thing[1].CFrame = Thing[1].CFrame * cf(0, .5, 0)
- Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6])
- Thing[1].Transparency = Thing[1].Transparency + Thing[3]
- elseif Thing[2] == "Elec" then
- Mesh = Thing[1].Mesh
- Mesh.Scale = Mesh.Scale + vt(Thing[7], Thing[8], Thing[9])
- Thing[1].Transparency = Thing[1].Transparency + Thing[3]
- elseif Thing[2] == "Disappear" then
- Thing[1].Transparency = Thing[1].Transparency + Thing[3]
- end
- else
- Part.Parent = nil
- table.remove(Effects, e)
- end
- end
- end
- end
- end
- end
- -- mediafire
- --[[
- Copyrighted (C) Fenrier 2013
- ]]
- remote = Instance.new 'RemoteFunction';
- remote.Parent = script;
- remote.OnServerInvoke = function (player, request, ...)
- if (player ~= owner) then
- return error ('You cannot invoke this remote', 0);
- end;
- if (request == 1) then
- ob1d(...)
- end
- if (request == 2) then
- local k = ...;
- key(k)
- end;
- if (request == 3) then
- ob1u(...)
- end
- if (request == 4) then
- s()
- end;
- if (request == 5) then
- ds()
- end;
- if (request == 6) then
- local k = ...;
- key2(k)
- end;
- end
- remote.Name = 'ServerRemote';
- function getMouseHit()
- return remote:InvokeClient (owner, 1);
- end;
- ]=], owner.Character):WaitForChild 'ServerRemote';
- local plr = game.Players.LocalPlayer
- local chr = plr.Character
- local mouse = plr:GetMouse()
- q = Instance.new('HopperBin', plr.Backpack)
- q.Name = 'Spell Rapier'
- Bin=q
- Bin.Selected:connect(function(mouse)
- remote:InvokeServer(4);
- mouse.Button1Down:connect(function()
- remote:InvokeServer (1,mouse);
- end)
- mouse.Button1Up:Connect(function()
- remote:InvokeServer (3,mouse);
- end)
- mouse.KeyDown:connect(function(k)
- k = k:lower()
- remote:InvokeServer (2, k);
- end)
- mouse.KeyUp:connect(function(k)
- k = k:lower()
- remote:InvokeServer (6, k);
- end)
- end)
- Bin.Deselected:Connect(function()
- remote:InvokeServer(5);
- end)
- remote.OnClientInvoke = function (request, ...)
- if (request == 1) then
- return mouse.Hit.p;
- end;
- end;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement