Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --------------------------This is an Official script from Duelist--------------------------
- ---{-------------------- -------------------}---
- ---{-------------------- / \ -------------------}---
- ---{-------------------- II -------------------}---
- ---{-------------------- II -------------------}---
- ---{-------------------- II -------------------}---
- ---{-------------------- A========A -------------------}---
- ---{-------------------- II -------------------}---
- ---{-------------------- II -------------------}---
- ---{-------------------- W -------------------}---
- -------------------------------------------------------------------------------------------------------------
- -- Made by PPATTA/Cass/Inkyy/lynkss - I name change alot ---
- plr=game:service'Players'.LocalPlayer
- ch=plr.Character
- tor,torso,rootpart,rj=ch.Torso,ch.Torso,ch.HumanoidRootPart,ch.HumanoidRootPart.RootJoint
- m,mouse=plr:GetMouse(),plr:GetMouse()
- cfn,ang,mr,int=CFrame.new,CFrame.Angles,math.rad,Instance.new
- clr='White'
- sz=0.2
- mag=0.5
- undotable={}
- if ch:findFirstChild("Draw") then
- ch.Draw:Destroy()
- end
- local tube=int("Model",ch)
- tube.Name='Draw'
- getSound=function(id)
- local s=int("Sound",ch.Head)
- s.Volume=1
- s.SoundId=id
- return s
- end
- local spray=getSound('rbxassetid://137065982')
- spray.Volume=0.5
- Weld = function(p0,p1,x,y,z,rx,ry,rz,par)--recommend to use this with my weld. use this function only with arm lockers.
- p0.Position = p1.Position
- local w = Instance.new('Motor',par or p0)
- w.Part0 = p1
- w.Part1 = p0
- w.C0 = CFrame.new(x or 0,y or 0,z or 0)*CFrame.Angles(rx or 0,ry or 0,rz or 0)
- w.MaxVelocity = .1
- return w
- end
- weld=function(p0,p1,c0)--basic weld function
- local w=Instance.new("Weld",p0)
- w.Part0=p0
- w.Part1=p1
- w.C0=c0
- return w
- end
- cp=function(parent,color,size,anchored,cancollide)--creates a part. automagically returns the part so you can edit it manually.
- local newp=Instance.new("Part",parent)
- newp.TopSurface='Smooth'
- newp.BottomSurface='Smooth'
- newp.FormFactor="Custom"
- newp.Material='SmoothPlastic'
- newp.BrickColor=BrickColor.new(color)
- newp.Size=size
- newp.Anchored=anchored
- newp.CanCollide=cancollide
- newp:BreakJoints()
- return newp
- end
- Tween = function(Weld, Stop, Step,a)
- ypcall(function()
- local func = function()
- local Start = Weld.C1
- local X1, Y1, Z1 = Start:toEulerAnglesXYZ()
- local Stop = Stop
- local X2, Y2, Z2 = Stop:toEulerAnglesXYZ()
- for i = 0, 1, Step or .1 do
- Weld.C1 = CFrame.new( (Start.p.X * (1 - i)) + (Stop.p.X * i),
- (Start.p.Y * (1 - i)) + (Stop.p.Y * i),
- (Start.p.Z * (1 - i)) + (Stop.p.Z * i)) * CFrame.fromEulerAnglesXYZ(
- (X1 * (1 - i)) + (X2 * i), (Y1 * (1 - i)) + (Y2 * i),
- (Z1 * (1 - i)) + (Z2 * i) )
- wait()
- end
- Weld.C1 = Stop
- end
- if a then coroutine.wrap(func)() else func() end
- end)
- end
- cyl=function(prt)
- local c=int("CylinderMesh",prt)
- return c
- end
- blo=function(prt)
- local c=int("BlockMesh",prt)
- return c
- end
- rabr = cp(tube,'White',Vector3.new(1,1,1),false,false) rabr.Transparency = 1 rabr.Name='Locker'
- rabr.Position = torso.Position
- rw = Weld(rabr,torso,1.5,.5,0,0,0,0) rw.Parent = tube rw.Name = 'rw'
- w = Instance.new("Weld",tube)
- w.Part0,w.Part1 = ch['Right Arm'],rabr
- w.C1 = CFrame.new(0,-.5,0)
- mh=cp(tube,"White",Vector3.new(0.6,1,0.6))
- cyl(mh)
- mw=weld(ch['Right Arm'],mh,cfn(0,-1,0)*ang(mr(-90),0,0))
- mha=cp(tube,"Really black",Vector3.new(0.6,0.2,0.6))
- cyl(mha).Scale=Vector3.new(0.85,1,0.85)
- weld(mh,mha,cfn(0,0.6,0))
- local pz=cp(tube,"White",Vector3.new(0.6,0.2,0.6))
- cyl(pz).Scale=Vector3.new(0.9,0.4,0.9)
- weld(mha,pz,cfn(0,0,0))
- local p=cp(tube,"Dark stone grey",Vector3.new(0.6,0.2,0.6))
- cyl(p).Scale=Vector3.new(0.95,0.4,0.95)
- weld(mh,p,cfn(0,0.5,0))
- local pa=cp(tube,"Dark stone grey",Vector3.new(0.6,0.3,0.6))
- pa.Material='Plastic'
- cyl(pa).Scale=Vector3.new(1.1,1,1.1)
- weld(mh,pa,cfn(0,0,0))
- local p=cp(tube,"Really black",Vector3.new(0.6,0.2,0.6))
- p.Material='Plastic'
- cyl(p).Scale=Vector3.new(1.05,0.4,1.05)
- weld(pa,p,cfn(0,0.18,0))
- local p=cp(tube,"Really black",Vector3.new(0.6,0.2,0.6))
- p.Material='Plastic'
- cyl(p).Scale=Vector3.new(1.05,0.4,1.05)
- weld(pa,p,cfn(0,-0.18,0))
- mha2=cp(tube,"White",Vector3.new(0.2,0.2,0.2))
- cyl(mha2).Scale=Vector3.new(1,1,1)
- weld(mha,mha2,cfn(0,0,-0.3)*ang(mr(-90),0,0))
- mha2b=cp(tube,"Really black",Vector3.new(0.2,0.2,0.2))
- cyl(mha2b).Scale=Vector3.new(0.9,1.02,0.9)
- weld(mha2,mha2b,cfn(0,0,0)*ang(0,0,0))
- local filtr=int("Model",ch)
- filtr.Name='TargetFilter'
- m.TargetFilter=filtr
- drawLine=function(point_a,point_b,bc_code)
- local dist=(point_a-point_b).magnitude;
- local rad=dist/2;
- local line=Instance.new('Part',filtr)--reparent as u wish
- line.Anchored=true;
- line.FormFactor='Custom';
- --line.Transparency=0.4
- line.Color=BrickColor.new(bc_code).Color;
- line.CanCollide=false;
- line.Size=Vector3.new(sz,.1,dist);
- Instance.new("BlockMesh",line).Name='blok'
- line.CFrame=CFrame.new(point_a,point_b)*CFrame.new(0,0,-rad);
- return line;
- end;
- draw=false
- mha3=nil
- m.Button1Down:connect(function()
- if sheathed==false then
- for _,v in pairs(undotable) do
- ypcall(function()
- for i=1,10 do
- table.remove(undotable,_)
- end
- end)
- table.remove(undotable,_)
- end
- draw=true
- spray.Looped=true
- spray:Play()
- mha3=cp(tube,clr,Vector3.new(0.2,0.2,0.2),true,false)
- cyl(mha3).Scale=Vector3.new(1,1,1)
- position=m.Hit
- game:service'RunService'.RenderStepped:connect(function()
- position=m.Hit
- local distance = (position.p - mha2.CFrame.p).magnitude
- mha3.Size=Vector3.new(0.2,distance,02)
- mha3.CFrame=CFrame.new(position.p, mha2.CFrame.p) * CFrame.new(0, 0, -distance/2)*ang(mr(-90),0,0)
- end)
- end
- end)
- m.Button1Up:connect(function()
- spray:Stop()
- spray.Looped=false
- draw=false
- ypcall(function()
- mha3:Destroy()
- end)
- end)
- plr.Chatted:connect(function(chat)
- if chat:sub(1,4)=='col;' and sheathed==false then
- ypcall(function()
- clr=string.sub(chat,5)
- mh.BrickColor=BrickColor.new(clr)
- pz.BrickColor=BrickColor.new(clr)
- Tween(rw,cfn()*ang(mr(-110),mr(-20),mr(-10)),0.3)
- Tween(rw,cfn()*ang(mr(-90),mr(-20),mr(-10)),0.3)
- Tween(rw,cfn()*ang(mr(-110),mr(-20),mr(-10)),0.3)
- Tween(rw,cfn()*ang(mr(-90),mr(-20),mr(-10)),0.3)
- end)
- elseif chat:sub(1,3)=='sz;' then
- sz=tonumber(string.sub(chat,4))
- elseif chat:sub(1,4)=='mag;' then
- mag=tonumber(string.sub(chat,5))
- end
- end)
- tttable={}
- sheathed=false
- m.KeyUp:connect(function(key)
- if key=='z' then
- for i=1,10 do
- for _,v in pairs(undotable) do
- v:Destroy()
- table.remove(undotable,_)
- end
- end
- elseif key=='c' then
- for i=1,10 do
- for _,v in pairs(tttable) do
- ypcall(function()
- v:Destroy()
- end)
- table.remove(tttable,_)
- end
- end
- elseif key=='e' and sheathed==false then
- clr=tostring(BrickColor.Random())
- mh.BrickColor=BrickColor.new(clr)
- pz.BrickColor=BrickColor.new(clr)
- Tween(rw,cfn()*ang(mr(-110),mr(-20),mr(-10)),0.3)
- Tween(rw,cfn()*ang(mr(-90),mr(-20),mr(-10)),0.3)
- Tween(rw,cfn()*ang(mr(-110),mr(-20),mr(-10)),0.3)
- Tween(rw,cfn()*ang(mr(-90),mr(-20),mr(-10)),0.3)
- elseif key=='q' and sheathed==false then
- Tween(rw,cfn()*ang(0,0,0),0.2)
- mw:Destroy()
- mw=weld(torso,mh,CFrame.new(1.3,-1.6,0.16)*ang(math.rad(-30),0,0))
- rabr:Destroy()
- -- w:Destroy()
- --labr:Destroy()
- --ww:Destroy()
- sheathed=true
- elseif key=='q' and sheathed==true then
- mw:Destroy()
- ypcall(function()
- mw:Destroy()
- end)
- mw=weld(ch['Right Arm'],mh,cfn(0,-1,0)*ang(mr(-90),0,0))
- rabr = cp(tube,'White',Vector3.new(1,1,1),false,false) rabr.Transparency = 1 rabr.Name='Locker'
- rabr.Position = torso.Position
- rw = Weld(rabr,torso,1.5,.5,0,0,0,0) rw.Parent = tube rw.Name = 'rw'
- w = Instance.new("Weld",tube)
- w.Part0,w.Part1 = ch['Right Arm'],rabr
- w.C1 = CFrame.new(0,-.5,0)
- Tween(rw,cfn()*ang(mr(-90),mr(-20),mr(-10)))
- sheathed=false
- end
- end)
- Tween(rw,cfn()*ang(mr(-90),mr(-20),mr(-10)))
- last=m.Hit
- game:service'RunService'.RenderStepped:connect(function()
- if draw==false then
- last=m.Hit
- --Tween(rw,cfn()*ang(mr(-70),mr(-40),0),0.02)
- --Tween(rw,cfn()*ang(mr(-60),mr(-30),0),0.02)
- else
- ypcall(function()
- if m.Target and m.Target.Parent and m.Target.Parent:findFirstChild('Humanoid') then
- m.Target.Parent.Humanoid:TakeDamage(1)
- end
- end)
- coroutine.resume(coroutine.create(function()
- if m.Hit and m.Target then
- local c=m.Hit
- local m=(c.p-last.p).magnitude;
- if(m>mag)then
- local l=drawLine(last.p,c.p,clr);
- Instance.new("PointLight",l).Color=l.BrickColor.Color
- l.Material='Neon'
- table.insert(undotable,l)
- table.insert(tttable,l)
- last=c;
- end;
- end
- end));
- end
- end)
- local plr = game:GetService('Players').LocalPlayer;
- local char = plr.Character;
- color1 = "Sand red"
- color2 = "Black"
- local weld = function(p0,p1,x,y,z,ax,ay,az)
- p0.Position=p1.Position
- local w = Instance.new("Motor",p0)
- w.Part0=p0
- w.Part1=p1
- w.C0=CFrame.new(x,y,z)*CFrame.Angles(ax,ay,az)
- return w
- end
- local strap1 = Instance.new("Part",char)
- strap1.Locked = true
- strap1.BrickColor = BrickColor.new(color2)
- strap1.Material = 'Fabric'
- strap1.Size = Vector3.new(.1,2.5,.1)
- weld(strap1,char['Torso'],0,0,.45,0,0,.8)
- local strap2 = Instance.new("Part",char)
- strap2.Locked = true
- strap2.BrickColor = BrickColor.new(color2)
- strap2.Material = 'Fabric'
- strap2.Size = Vector3.new(.1,2.5,.1)
- weld(strap2,char['Torso'],0,0,-.45,0,0,.8)
- local strap3 = Instance.new("Part",char)
- strap3.Locked = true
- strap3.BrickColor = BrickColor.new(color1)
- strap3.Material = 'Fabric'
- strap3.Size = Vector3.new(.3,.1,1.21)
- weld(strap3,char['Torso'],-.9,-.95,0,0,0,0)
- local strap4 = Instance.new("Part",char)
- strap4.Locked = true
- strap4.CanCollide = false
- strap4.BrickColor = BrickColor.new(color1)
- strap4.Material = 'Fabric'
- strap4.Size = Vector3.new(.3,.4,.1)
- weld(strap4,char['Torso'],0,-1.13,.5,0,0,.8)
- local strap5 = Instance.new("Part",char)
- strap5.Locked = true
- strap5.CanCollide = false
- strap5.BrickColor = BrickColor.new(color1)
- strap5.Material = 'Fabric'
- strap5.Size = Vector3.new(.3,.4,.1)
- weld(strap5,char['Torso'],0,-1.13,-.5,0,0,.8)
- local bagwall1 = Instance.new("Part",char)
- bagwall1.Locked = true
- bagwall1.CanCollide = false
- bagwall1.BrickColor = BrickColor.new(color2)
- bagwall1.Material = 'Fabric'
- bagwall1.Size = Vector3.new(.1,1,.1)
- weld(bagwall1,char['Torso'],1,1.4,.8,0,0,0)
- local bagwall2 = Instance.new("Part",char)
- bagwall2.Locked = true
- bagwall2.CanCollide = false
- bagwall2.BrickColor = BrickColor.new(color2)
- bagwall2.Material = 'Fabric'
- bagwall2.Size = Vector3.new(.1,1,.1)
- weld(bagwall2,char['Torso'],1,1.4,-.8,0,0,0)
- local bagwall3 = Instance.new("Part",char)
- bagwall3.Locked = true
- bagwall3.CanCollide = false
- bagwall3.BrickColor = BrickColor.new(color2)
- bagwall3.Material = 'Fabric'
- bagwall3.Size = Vector3.new(.1,.1,1.4)
- weld(bagwall3,char['Torso'],1,1,0,0,0,0)
- local bagwall4 = Instance.new("Part",char)
- bagwall4.Locked = true
- bagwall4.CanCollide = false
- bagwall4.BrickColor = BrickColor.new(color2)
- bagwall4.Material = 'Fabric'
- bagwall4.Size = Vector3.new(.1,.1,1.4)
- weld(bagwall4,char['Torso'],1,1.8,0,0,0,0)
- local bagwall5 = Instance.new("Part",char)
- bagwall5.Locked = true
- bagwall5.CanCollide = false
- bagwall5.BrickColor = BrickColor.new(color1)
- bagwall5.Material = 'Fabric'
- bagwall5.Size = Vector3.new(.1,.6,1.4)
- weld(bagwall5,char['Torso'],1,1.4,0,0,0,0)
- local bagwall6 = Instance.new("Part",char)
- bagwall6.Locked = true
- bagwall6.CanCollide = false
- bagwall6.BrickColor = BrickColor.new(color2)
- bagwall6.Material = 'Fabric'
- bagwall6.Size = Vector3.new(.8,.1,.1)
- weld(bagwall6,char['Torso'],1.5,1,.8,0,0,0)
- local bagwall7 = Instance.new("Part",char)
- bagwall7.Locked = true
- bagwall7.CanCollide = false
- bagwall7.BrickColor = BrickColor.new(color2)
- bagwall7.Material = 'Fabric'
- bagwall7.Size = Vector3.new(.8,.1,.1)
- weld(bagwall7,char['Torso'],1.5,1,-.8,0,0,0)
- local bagwall8 = Instance.new("Part",char)
- bagwall8.Locked = true
- bagwall8.CanCollide = false
- bagwall8.BrickColor = BrickColor.new(color2)
- bagwall8.Material = 'Fabric'
- bagwall8.Size = Vector3.new(.8,.1,.1)
- weld(bagwall8,char['Torso'],1.5,1.8,-.8,0,0,0)
- local bagwall9 = Instance.new("Part",char)
- bagwall9.Locked = true
- bagwall9.CanCollide = false
- bagwall9.BrickColor = BrickColor.new(color2)
- bagwall9.Material = 'Fabric'
- bagwall9.Size = Vector3.new(.8,.1,.1)
- weld(bagwall9,char['Torso'],1.5,1.8,.8,0,0,0)
- local bagwall10 = Instance.new("Part",char)
- bagwall10.Locked = true
- bagwall10.CanCollide = false
- bagwall10.BrickColor = BrickColor.new(color1)
- bagwall10.Material = 'Fabric'
- bagwall10.Size = Vector3.new(.8,.6,.1)
- weld(bagwall10,char['Torso'],1.5,1.4,.8,0,0,0)
- local bagwall11 = Instance.new("Part",char)
- bagwall11.Locked = true
- bagwall11.CanCollide = false
- bagwall11.BrickColor = BrickColor.new(color1)
- bagwall11.Material = 'Fabric'
- bagwall11.Size = Vector3.new(.8,.6,.1)
- weld(bagwall11,char['Torso'],1.5,1.4,-.8,0,0,0)
- local bagwall12= Instance.new("Part",char)
- bagwall12.Locked = true
- bagwall12.CanCollide = false
- bagwall12.BrickColor = BrickColor.new(color2)
- bagwall12.Material = 'Fabric'
- bagwall12.Size = Vector3.new(.1,1,.1)
- weld(bagwall12,char['Torso'],2,1.4,.8,0,0,0)
- local bagwall13 = Instance.new("Part",char)
- bagwall13.Locked = true
- bagwall13.CanCollide = false
- bagwall13.BrickColor = BrickColor.new(color2)
- bagwall13.Material = 'Fabric'
- bagwall13.Size = Vector3.new(.1,1,.1)
- weld(bagwall13,char['Torso'],2,1.4,-.8,0,0,0)
- local bagwall14 = Instance.new("Part",char)
- bagwall14.Locked = true
- bagwall14.CanCollide = false
- bagwall14.BrickColor = BrickColor.new(color2)
- bagwall14.Material = 'Fabric'
- bagwall14.Size = Vector3.new(.1,.1,1.4)
- weld(bagwall14,char['Torso'],2,1,0,0,0,0)
- local bagwall15 = Instance.new("Part",char)
- bagwall15.Locked = true
- bagwall15.CanCollide = false
- bagwall15.BrickColor = BrickColor.new(color2)
- bagwall15.Material = 'Fabric'
- bagwall15.Size = Vector3.new(.1,.1,1.4)
- weld(bagwall15,char['Torso'],2,1.8,0,0,0,0)
- local bagwall16 = Instance.new("Part",char)
- bagwall16.Locked = true
- bagwall16.CanCollide = false
- bagwall16.BrickColor = BrickColor.new(color1)
- bagwall16.Material = 'Fabric'
- bagwall16.Size = Vector3.new(.1,.6,1.4)
- weld(bagwall16,char['Torso'],2,1.4,0,0,0,0)
- local bagwall17 = Instance.new("Part",char)
- bagwall17.Locked = true
- bagwall17.CanCollide = false
- bagwall17.BrickColor = BrickColor.new(color1)
- bagwall17.Material = 'Fabric'
- bagwall17.Size = Vector3.new(.8,.1,1.4)
- weld(bagwall17,char['Torso'],1.5,1,0,0,0,0)
- local bagwall18 = Instance.new("Part",char)
- bagwall18.Locked = true
- bagwall18.CanCollide = false
- bagwall18.BrickColor = BrickColor.new(color1)
- bagwall18.Material = 'Fabric'
- bagwall18.Size = Vector3.new(.8,.1,1.4)
- weld(bagwall18,char['Torso'],1.5,1.8,0,0,0,0)
- local bagwall19 = Instance.new("Part",char)
- bagwall19.Locked = true
- bagwall19.CanCollide = false
- bagwall19.BrickColor = BrickColor.new("Gray")
- bagwall19.Material = 'Fabric'
- bagwall19.Size = Vector3.new(.1,.3,.6)
- bagwalldecal = Instance.new("Decal",bagwall19)
- bagwalldecal.Texture = "http://www.roblox.com/asset/?id=148882403"
- bagwalldecal.Face = 'Left'
- weld(bagwall19,char['Torso'],2,1.25,0,0,0,0)
Add Comment
Please, Sign In to add comment