wait(.2)local f=script.Parent local N=game.Players.LocalPlayer local o=N.Character local r=o:FindFirstChild("\072\117\109\097\110\111\105\100")local y=workspace.CurrentCamera local B=CFrame.new(-0.5,.7,0)*CFrame.Angles(0,math.pi/2,0)local S=CFrame.new(0,.7,0)*CFrame.Angles(0,math.pi/2,0)local E=N:GetMouse()local I=false local K=false local P=false local L=false local H=false local l=false local G=false local j=0 local A=110 local X=false local c=nil local q={16;20}SOUNDS={throwing={"\049\053\051\054\052\055\053\053\052";"\049\053\051\054\052\055\053\052\057"};laserthrowing={"\049\051\056\052\057\057\048\057\051"},shouts={"\050\052\049\048\056\052\048\053\055","\049\054\056\050\048\057\051\049\052";"\049\051\049\048\055\054\054\057\053"};striking={"\049\053\051\054\052\055\053\050\057";"\049\053\051\054\052\055\053\051\052","\049\053\051\054\052\055\053\051\057","\049\053\051\054\052\055\053\052\048"},equip="\049\053\051\054\052\055\053\049\052",wallhit={"\049\053\051\054\052\055\053\054\051","\049\053\051\054\052\055\053\054\052"},hitplayer={"\049\053\051\054\052\055\053\049\054","\049\053\051\054\052\055\053\049\057","\049\053\051\054\052\055\053\050\050";"\049\053\051\054\052\055\053\050\054"};deaths={"\049\052\054\053\057\052\054\052\048";"\049\052\054\052\053\055\048\052\055";"\049\052\054\053\057\052\054\052\056"}}SETTINGS={tool={mesh_id="\104\116\116\112\058\047\047\119\119\119\046\114\111\098\108\111\120\046\099\111\109\047\097\115\115\101\116\047\063\105\100\061\049\050\049\057\052\052\055\055\056";mesh_type=Enum.MeshType.FileMesh;texture_id="\104\116\116\112\058\047\047\119\119\119\046\114\111\098\108\111\120\046\099\111\109\047\097\115\115\101\116\047\063\105\100\061\049\050\049\057\052\052\056\048\053     ";mesh_offset=Vector3.new(0,0,0),mesh_scale=.9,tool_size=Vector3.new(1,1,1);tool_transparency=0,tool_color=BrickColor.Black(),default_tool_size=1}}function DamageObject(f)local o=f.Parent if o and(o~=N.Character and(o.Name~="\065\114\109\115\095\077\111\100\101\108"and f.Name~="\072\097\110\100\108\101"))then local f=o:FindFirstChild("\072\117\109\097\110\111\105\100")if f and f.Health>0 then f:TakeDamage(A)PlaySound("\072\105\116\049",o.Torso)if f.Health==0 then PlaySound("\072\105\116\050",o.Torso)end end end end function PlaySound(N,o)if N=="\084\104\114\111\119"then f.Handle.Sound.SoundId="\114\098\120\097\115\115\101\116\105\100\058\047\047"..SOUNDS.throwing[math.random(1,#SOUNDS.throwing)]f.Handle.Sound:Play()elseif N=="\084\104\114\111\119\076\097\115\101\114"then f.Handle.Sound.SoundId="\114\098\120\097\115\115\101\116\105\100\058\047\047"..SOUNDS.laserthrowing[math.random(1,#SOUNDS.laserthrowing)]f.Handle.Sound:Play()elseif N=="\069\113\117\105\112"then f.Handle.Sound.SoundId="\114\098\120\097\115\115\101\116\105\100\058\047\047"..SOUNDS.equip f.Handle.Sound:Play()elseif N=="\083\119\105\110\103"then f.Handle.Sound.SoundId="\114\098\120\097\115\115\101\116\105\100\058\047\047"..SOUNDS.striking[math.random(1,#SOUNDS.striking)]f.Handle.Sound:Play()elseif N=="\072\105\116\049"then local N=f.Handle.Sound:clone()N.Parent=o N.SoundId="\114\098\120\097\115\115\101\116\105\100\058\047\047"..SOUNDS.hitplayer[math.random(1,#SOUNDS.hitplayer)]N:Play()N:Destroy()elseif N=="\072\105\116\050"then local N=f.Handle.Sound:clone()N.Parent=o N.SoundId="\114\098\120\097\115\115\101\116\105\100\058\047\047"..SOUNDS.deaths[math.random(1,#SOUNDS.deaths)]N:Play()N:Destroy()elseif N=="\076\097\115\101\114"then local N=f.Handle.Sound N.SoundId="\114\098\120\097\115\115\101\116\105\100\058\047\047"..SOUNDS.shouts[math.random(1,#SOUNDS.shouts)]N:Play()end end function Throwtool(B)if not f.Handle then return end local S=f.Handle:Clone();(game:GetService("\068\101\098\114\105\115")):AddItem(S,5)S.Transparency=0 S.Parent=workspace if N.Character and N.Character.Humanoid then S.Velocity=(N.Character.Humanoid.TargetPoint-S.CFrame.p).unit*150 if l then S.Velocity=(N.Character.Humanoid.TargetPoint-S.CFrame.p).unit*9999 end if E.Target~=nil then if E.Target.Parent.Name~="\065\114\109\115\095\077\111\100\101\108"and(E.Target.Name~="\084\104\114\111\119\110\075\110\105\102\101"and E.Target.Name~="\072\097\110\100\108\101")then targetpos=N.Character.Humanoid.TargetPoint else targetpos=Vector3.new(0,-10,0)end end S.CFrame=CFrame.new(S.CFrame.p,S.CFrame.p+S.Velocity)*CFrame.Angles(0,0,math.rad(-90))local r=Instance.new("\066\111\100\121\070\111\114\099\101",S)r.force=Vector3.new(0,(196.2*S:GetMass())*.98,0)local y=Instance.new("\066\111\100\121\065\110\103\117\108\097\114\086\101\108\111\099\105\116\121",S)y.angularvelocity=S.CFrame:vectorToWorldSpace(Vector3.new(0,-400,0))spawnPos=N.Character.PrimaryPart.Position spawnPos=spawnPos+B*5 if l then local N=Ray.new(f.Handle.CFrame.p,(E.Hit.p-f.Handle.CFrame.p).unit*999)local r,y=game.Workspace:FindPartOnRay(N,o)if r then if r.Parent:FindFirstChild("\072\117\109\097\110\111\105\100")then r.Parent.Humanoid:TakeDamage(110)P=true end end local B=Instance.new("\080\097\114\116",workspace)B.Name="\082\097\121\080\097\114\116"B.BrickColor=BrickColor.new("\066\114\105\103\104\116 \114\101\100")B.Transparency=0 B.Anchored=true B.CanCollide=false B.TopSurface=Enum.SurfaceType.Smooth B.BottomSurface=Enum.SurfaceType.Smooth B.formFactor=Enum.FormFactor.Custom local S=(y-f.Handle.CFrame.p).magnitude B.Size=Vector3.new(.2,.2,S)B.CFrame=CFrame.new(y,f.Handle.CFrame.p)*CFrame.new(0,0,-S/2)game.Debris:addItem(B,.5)PlaySound("\076\097\115\101\114")end end if S then local o=S.Touched:connect(function(o)local E=o.Parent y.CameraSubject=r y.CameraType=Enum.CameraType.Custom if E and(E~=N.Character and(E.Name~="\065\114\109\115\095\077\111\100\101\108"and(o.Name~="\072\097\110\100\108\101"and o.Name~="\082\097\121\080\097\114\116")))then local N=E:FindFirstChild("\072\117\109\097\110\111\105\100")if N and N.Health>0 then S:Destroy()P=true if o.Name~="\072\101\097\100"or o.className=="\072\097\116"then N:TakeDamage(A)PlaySound("\072\105\116\049",E.Torso)if N.Health==0 then PlaySound("\072\105\116\050",E.Torso)end else N:TakeDamage(A*2)print("\072\101\097\100\115\104\111\116\033")E.Head.Transparency=1 E.Head.CanCollide=false if E.Head:FindFirstChild("\102\097\099\101")then(E.Head:FindFirstChild("\102\097\099\101")).Transparency=1 end for f,N in pairs(E:GetChildren())do if N.className=="\072\097\116"then N:Destroy()end end for f=1,7,1 do local N=Instance.new("\080\097\114\116")N.FormFactor="\067\117\115\116\111\109"N.Size=Vector3.new(1,.2,1)N.BrickColor=BrickColor.Red()N.TopSurface=0 N.BottomSurface=0;(game:GetService("\068\101\098\114\105\115")):AddItem(N,5)N.Parent=workspace N.Position=E.Head.Position+Vector3.new(math.random(.2,.8),0,math.random(.2,.8))end local f=Instance.new("\083\111\117\110\100")f.SoundId="\114\098\120\097\115\115\101\116\105\100\058\047\047\049\052\050\051\052\055\054\051\051"f.Parent=E.Head f.Pitch=1.1 f:Play()end PlaySound("\072\105\116\049")if N.Health==0 then PlaySound("\072\105\116\050")end elseif o.Name~="\072\097\110\100\108\101"or o.Name~="\073\103\110\111\114\101\084\104\114\111\119\105\110\103\075\110\105\118\101\115"and(o.Parent.Name~="\065\114\109\115\095\077\111\100\101\108"and(o.Name~="\082\097\121\080\097\114\116"and o.CanCollide==true))then local N=Instance.new("\083\111\117\110\100")N.Parent=o N.SoundId="\114\098\120\097\115\115\101\116\105\100\058\047\047"..SOUNDS.wallhit[math.random(1,#SOUNDS.wallhit)]N:Play()N:Destroy()print("\072\105\116 \079\098\106\101\099\116\058 "..o.Name)local r=f.Handle:clone()r.Name="\084\104\114\111\119\110\075\110\105\102\101"r.CFrame=CFrame.new(spawnPos,spawnPos+B)*CFrame.Angles(math.pi/-2,0,0)r.Position=targetpos S:Destroy()r.Anchored=true r.CanCollide=true r.Transparency=0 r.Parent=workspace wait(7)for f=1,10,1 do r.Transparency=f*.1 wait()end r:Destroy()end end end)end end if throwingHandle then throwingHandle.CanCollide=true end FUNCTIONS={CHECKFORFIRSTPERSON=function()if(y.focus.p-y.CoordinateFrame.p).magnitude>1 then return false else return true end end;ANIMS=function(N)if N then E.Icon="\104\116\116\112\058\047\047\119\119\119\046\114\111\098\108\111\120\046\099\111\109\047\097\115\115\101\116\047\063\105\100\061\053\052\048\049\057\057\051\054"local N=Instance.new("\070\105\108\101\077\101\115\104")N.MeshId=SETTINGS.tool.mesh_id N.TextureId=SETTINGS.tool.texture_id N.Scale=Vector3.new(SETTINGS.tool.mesh_scale,SETTINGS.tool.mesh_scale,SETTINGS.tool.mesh_scale)N.Parent=f.Handle if SETTINGS.tool.mesh_scale==.1 then f.GripPos=Vector3.new(0,-0.55,0)elseif SETTINGS.tool.mesh_scale==.2 then f.GripPos=Vector3.new(0,-0.6,0)elseif SETTINGS.tool.mesh_scale==.3 then f.GripPos=Vector3.new(0,-0.65,0)elseif SETTINGS.tool.mesh_scale==.4 then f.GripPos=Vector3.new(0,-0.7,0)elseif SETTINGS.tool.mesh_scale==.5 then f.GripPos=Vector3.new(0,-0.75,0)elseif SETTINGS.tool.mesh_scale==.6 then f.GripPos=Vector3.new(0,-0.8,0)elseif SETTINGS.tool.mesh_scale==.7 then f.GripPos=Vector3.new(0,-0.85,0)elseif SETTINGS.tool.mesh_scale==.8 then f.GripPos=Vector3.new(0,-0.9,0)elseif SETTINGS.tool.mesh_scale==.9 then f.GripPos=Vector3.new(0,-0.95,0)elseif SETTINGS.tool.mesh_scale==1 then f.GripPos=Vector3.new(0,-1,0)else print("\073\110\118\097\108\105\100 \116\111\111\108 \115\105\122\101\033 \083\101\116 \116\111 \100\101\102\097\117\108\116\058 "..SETTINGS.tool.default_tool_size)N.Scale=Vector3.new(SETTINGS.tool.default_tool_size,SETTINGS.tool.default_tool_size,SETTINGS.tool.default_tool_size)if SETTINGS.tool.default_tool_size==.1 then f.GripPos=Vector3.new(0,-0.55,0)elseif SETTINGS.tool.default_tool_size==.2 then f.GripPos=Vector3.new(0,-0.6,0)elseif SETTINGS.tool.default_tool_size==.3 then f.GripPos=Vector3.new(0,-0.65,0)elseif SETTINGS.tool.default_tool_size==.4 then f.GripPos=Vector3.new(0,-0.7,0)elseif SETTINGS.tool.default_tool_size==.5 then f.GripPos=Vector3.new(0,-0.75,0)elseif SETTINGS.tool.default_tool_size==.6 then f.GripPos=Vector3.new(0,-0.8,0)elseif SETTINGS.tool.default_tool_size==.7 then f.GripPos=Vector3.new(0,-0.85,0)elseif SETTINGS.tool.default_tool_size==.8 then f.GripPos=Vector3.new(0,-0.9,0)elseif SETTINGS.tool.default_tool_size==.9 then f.GripPos=Vector3.new(0,-0.95,0)elseif SETTINGS.tool.default_tool_size==1 then f.GripPos=Vector3.new(0,-1,0)else print("\073\110\118\097\108\105\100 \100\101\102\097\117\108\116 \115\105\122\101\033 \085\110-\101\113\117\105\112\112\105\110\103 \097\110\100 \114\101\109\111\118\105\110\103 \075\110\105\102\101\046\046\046")if r then r:Unequiptools()f:Destroy()end end end torso=o:FindFirstChild("\084\111\114\115\111")leftarm=torso:FindFirstChild("\076\101\102\116 \083\104\111\117\108\100\101\114")if leftarm then leftarm.Parent=nil newarmweld=Instance.new("\087\101\108\100")newarmweld.Name="\076\101\102\116\087\101\108\100"newarmweld.Part0=torso newarmweld.C0=CFrame.new(-1.5,.7,0)newarmweld.C1=CFrame.new(0,.7,0)newarmweld.Part1=o:FindFirstChild("\076\101\102\116 \065\114\109")newarmweld.Parent=torso end r.WalkSpeed=q[2]for f=1,15,3 do if equipped then(torso:FindFirstChild("\082\105\103\104\116 \083\104\111\117\108\100\101\114")).C1=B*CFrame.Angles(-f*(math.pi/90),-f*(math.pi/90),f*(math.pi/210));(torso:FindFirstChild("\076\101\102\116\087\101\108\100")).C1=CFrame.new(-0.2,.7,0)*CFrame.Angles(-f*(math.pi/60),f*(math.pi/90),-f*(math.pi/240))end wait()end else r.WalkSpeed=q[1];(torso:FindFirstChild("\082\105\103\104\116 \083\104\111\117\108\100\101\114")).C1=B*CFrame.new(0,-0.2,0)f.GripForward=Vector3.new(0,0,-1)newarmweld:Destroy()leftarm.Parent=torso E.Icon="";(torso:FindFirstChild("\078\101\099\107")).C0=CFrame.new(0,1,0,-1,0,0,0,0,1,0,1,0);(torso:FindFirstChild("\082\105\103\104\116 \083\104\111\117\108\100\101\114")).C0=CFrame.new(1,.5,0,0,0,1,0,1,0,-1,0,0)end end}f.Equipped:connect(function()equipped=true PlaySound("\069\113\117\105\112")FUNCTIONS.ANIMS(true)end)f.Unequipped:connect(function()equipped=false FUNCTIONS.ANIMS(false)end)f.Handle.Touched:connect(function(f)if X then DamageObject(f)end end)f.Activated:connect(function()if X then return end if not f.Enabled then return end H=false G=false if not K and(not H and not X)then HeldTime=time()end L=true wait(.15)while K do wait()end local o=1 for f=1,15,o do if L and(equipped and(not K and(not H and not X)))then(torso:FindFirstChild("\082\105\103\104\116 \083\104\111\117\108\100\101\114")).C1=CFrame.new(-0.5,.5,0,.195277825,-0.747909963,.634426773,.482016951,.636551082,.602048457,-0.854123056,.188237742,.484809577)*CFrame.Angles(f*(math.pi/50),0,-f*(math.pi/25));(torso:FindFirstChild("\076\101\102\116\087\101\108\100")).C1=CFrame.new(-0.2,.7,0,.858912528,.165011853,.484809607,-0.464581847,.649385393,.602048457,-0.215483144,-0.742340684,.634426773)*CFrame.Angles(-f*(math.pi/75),f*(math.pi/180),0)N.Character["\082\105\103\104\116 \065\114\109"].RightGrip.C1=CFrame.new(0,-0.800000012,.05,1,0,0,0,1,0,0,0,1)*CFrame.Angles(-f*(math.pi/150),0,0)wait()end end if L then l=true end end)f.Deactivated:connect(function()if not f.Enabled then return end currTime=time()L=false if HeldTime and(currTime-HeldTime>.2 and(currTime-HeldTime>.01 and(not H and not K)))then if not X and not G then print("\084\104\114\111\119")if l then PlaySound("\084\104\114\111\119\076\097\115\101\114")else PlaySound("\084\104\114\111\119")end f.Handle.Transparency=1 local o=N.Character.Humanoid.TargetPoint local r=(o-N.Character.PrimaryPart.Position).unit local y=1 local S=((math.ceil(.0)*math.pi)/12)*y Throwtool(CFrame.Angles(0,S,0)*r)wait()l=false HeldTime=0 K=true E.Icon="\104\116\116\112\058\047\047\119\119\119\046\114\111\098\108\111\120\046\099\111\109\047\097\115\115\101\116\047\063\105\100\061\053\052\048\050\048\049\054\053"N.Character["\082\105\103\104\116 \065\114\109"].RightGrip.C1=CFrame.new(0,-0.800000012,0,1,0,0,0,1,0,0,0,1)for f=1,15,.8 do if equipped then(torso:FindFirstChild("\082\105\103\104\116 \083\104\111\117\108\100\101\114")).C1=CFrame.new(-0.5,.5,0,.0719629526,.22870943,.970831275,-0.981789052,.187819958,.0285283029,-0.175816804,-0.955204487,.238060504)*CFrame.Angles(0,0,f*(math.pi/15));(torso:FindFirstChild("\076\101\102\116\087\101\108\100")).C1=CFrame.new(-0.2,.7,0,.703028679,-0.151466534,.694844246,-0.673604906,.171488613,.718921423,-0.228050426,-0.973472893,.0185328126)*CFrame.Angles(f*(math.pi/60),-f*(math.pi/180),f*(math.pi/60))wait()end end H=true f.Handle.Transparency=0 PlaySound("\069\113\117\105\112")E.Icon="\104\116\116\112\058\047\047\119\119\119\046\114\111\098\108\111\120\046\099\111\109\047\097\115\115\101\116\047\063\105\100\061\053\052\048\049\057\057\051\054"f.GripForward=Vector3.new(0,0,-1)for f=1,15,1 do if equipped then(torso:FindFirstChild("\082\105\103\104\116 \083\104\111\117\108\100\101\114")).C1=CFrame.new(-0.5,.5,0,-0.071962975,-0.22870943,.970831275,.981789052,-0.187820047,.0285283029,.175816894,.955204487,.238060504)*CFrame.Angles(0,0,-f*(math.pi/30))wait()end end K=false for f=1,15,3 do if equipped then(torso:FindFirstChild("\082\105\103\104\116 \083\104\111\117\108\100\101\114")).C1=B*CFrame.Angles(-f*(math.pi/90),-f*(math.pi/90),f*(math.pi/210));(torso:FindFirstChild("\076\101\102\116\087\101\108\100")).C1=CFrame.new(-0.2,.7,0)*CFrame.Angles(-f*(math.pi/60),f*(math.pi/90),-f*(math.pi/240))end wait()end end else if not H and not K then if X then return end print("\065\116\116\097\099\107")HeldTime=0 X=true G=true if math.random(1,2)==1 then for f=1,15,3 do if equipped and(not K and not H)then(torso:FindFirstChild("\082\105\103\104\116 \083\104\111\117\108\100\101\114")).C1=CFrame.new(-0.5,.5,0,.195277825,-0.747909963,.634426773,.482016951,.636551082,.602048457,-0.854123056,.188237742,.484809577)*CFrame.Angles(f*(math.pi/65),0,-f*(math.pi/30));(torso:FindFirstChild("\076\101\102\116\087\101\108\100")).C1=CFrame.new(-0.2,.7,0,.858912528,.165011853,.484809607,-0.464581847,.649385393,.602048457,-0.215483144,-0.742340684,.634426773)*CFrame.Angles(-f*(math.pi/75),f*(math.pi/180),0)wait()end end PlaySound("\083\119\105\110\103")for f=1,15,3 do if equipped and(not K and not H)then(torso:FindFirstChild("\082\105\103\104\116 \083\104\111\117\108\100\101\114")).C1=CFrame.new(-0.5,.5,0,.0719629526,.22870943,.970831275,-0.981789052,.187819958,.0285283029,-0.175816804,-0.955204487,.238060504)*CFrame.Angles(0,0,f*(math.pi/15));(torso:FindFirstChild("\076\101\102\116\087\101\108\100")).C1=CFrame.new(-0.2,.7,0,.703028679,-0.151466534,.694844246,-0.673604906,.171488613,.718921423,-0.228050426,-0.973472893,.0185328126)*CFrame.Angles(f*(math.pi/60),-f*(math.pi/180),f*(math.pi/60))wait()end end for f=1,15,3 do if equipped and(not H and not K)then(torso:FindFirstChild("\082\105\103\104\116 \083\104\111\117\108\100\101\114")).C1=CFrame.new(-0.5,.5,0,-0.071962975,-0.22870943,.970831275,.981789052,-0.187820047,.0285283029,.175816894,.955204487,.238060504)*CFrame.Angles(0,0,-f*(math.pi/30))wait()end end for f=1,15,3 do I=true if equipped and(not K and not H)then(torso:FindFirstChild("\082\105\103\104\116 \083\104\111\117\108\100\101\114")).C1=B*CFrame.Angles(-f*(math.pi/90),-f*(math.pi/90),f*(math.pi/210));(torso:FindFirstChild("\076\101\102\116\087\101\108\100")).C1=CFrame.new(-0.2,.7,0)*CFrame.Angles(-f*(math.pi/60),f*(math.pi/90),-f*(math.pi/240))end wait()end X=false else for f=1,15,3 do if equipped and(not K and not H)then(torso:FindFirstChild("\082\105\103\104\116 \083\104\111\117\108\100\101\114")).C1=CFrame.new(-0.3,.5,0,.195277825,-0.747909963,.634426773,.482016951,.636551082,.602048457,-0.854123056,.188237742,.484809577)*CFrame.Angles(f*(math.pi/40),-f*(math.pi/45),f*(math.pi/60))end wait()end PlaySound("\083\119\105\110\103")for f=1,15,3 do if equipped and(not K and not H)then(torso:FindFirstChild("\082\105\103\104\116 \083\104\111\117\108\100\101\114")).C1=CFrame.new(-0.2,.5,-0.3,.852928281,-0.428775758,.29776603,.516928136,.614185035,-0.596290231,.0727913082,.662516415,.745502114)*CFrame.Angles(-f*(math.pi/45),0,0);(torso:FindFirstChild("\076\101\102\116\087\101\108\100")).C1=CFrame.new(-0.200000003,.7,0,.849384904,.16895318,.5,-0.48470962,.624545038,.612372398,-0.208810255,-0.762494743,.612372398)*CFrame.Angles(f*(math.pi/60),-f*(math.pi/180),f*(math.pi/60))end wait()end for f=1,15,3 do if equipped and(not K and not H)then(torso:FindFirstChild("\082\105\103\104\116 \083\104\111\117\108\100\101\114")).C1=CFrame.new(-0.3,.5,-0.300000012,.852928281,-0.472260833,-0.222447708,.516928136,.82349503,.233754784,.0727913082,-0.314365625,.946507096)*CFrame.Angles(f*(math.pi/45),0,0)end wait()end for f=1,15,3 do if equipped and(not K and not H)then(torso:FindFirstChild("\082\105\103\104\116 \083\104\111\117\108\100\101\114")).C1=B*CFrame.Angles(-f*(math.pi/90),-f*(math.pi/90),f*(math.pi/210));(torso:FindFirstChild("\076\101\102\116\087\101\108\100")).C1=CFrame.new(-0.2,.7,0)*CFrame.Angles(-f*(math.pi/60),f*(math.pi/90),-f*(math.pi/240))end wait()end X=false end end end end)E.Move:connect(function()if equipped and E then if(E.Hit.p-E.Origin.p).unit.y<.25 and(E.Hit.p-E.Origin.p).unit.y>-0.25 then(torso:FindFirstChild("\082\105\103\104\116 \083\104\111\117\108\100\101\114")).C0=(CFrame.new(.9,.5,0)*CFrame.Angles(0,math.rad(90),0))*CFrame.Angles(0,0,math.asin((E.Hit.p-E.Origin.p).unit.y));(torso:FindFirstChild("\076\101\102\116\087\101\108\100")).C0=CFrame.new(-1.5,.5,0)*CFrame.Angles(0,0,math.asin((E.Hit.p-E.Origin.p).unit.y));(torso:FindFirstChild("\078\101\099\107")).C0=(CFrame.new(0,1,0)*CFrame.Angles(math.rad(-90),0,math.rad(180)))*CFrame.Angles(math.asin(-(E.Hit.p-E.Origin.p).unit.y),0,0)end end end)

wait(.2)


local tool=script.Parent
local player=game.Players.LocalPlayer
local char=player.Character
local humanoid=char:FindFirstChild("Humanoid")
local camera=workspace.CurrentCamera
local rightC1 = CFrame.new(-0.5, 0.7, 0) * CFrame.Angles(0, (math.pi / 2), 0)
local leftC1 = CFrame.new(0, 0.7, 0) * CFrame.Angles(0, (math.pi / 2), 0)
local mouse=player:GetMouse()
local equipping=false
local gettingknife=false
local laserCharge=false
local playcharge=false
local justthrown=false
local canLaser=false
local justattacked=false
local thrownkniferotation=0
local Damage=110
local Attacking=false
local handle=nil
local WalkSpeeds={16,20}

SOUNDS={
	throwing={"153647554","153647549"},
	laserthrowing={"138499093"},
	shouts={"241084057","168209314","131076695"},
	striking={"153647529","153647534","153647539","153647540"},
	equip="153647514",
	wallhit={"153647563","153647564"},
	hitplayer={"153647516","153647519","153647522","153647526"},
	deaths={"146594640","146457047","146594648"},
}

SETTINGS={
	
	tool={
		mesh_id="http://www.roblox.com/asset/?id=121944778",
		mesh_type=Enum.MeshType.FileMesh,
		texture_id="http://www.roblox.com/asset/?id=121944805     ",
		mesh_offset=Vector3.new(0,0,0),
		mesh_scale=.9,
		tool_size=Vector3.new(1,1,1),
		tool_transparency=0,
		tool_color=BrickColor.Black(),
		default_tool_size=1,
	},
	
}

function DamageObject(hit)
	local char=hit.Parent
	if char and char~=player.Character and char.Name~="Arms_Model" and hit.Name~="Handle" then
		local h=char:FindFirstChild("Humanoid")
		if h and h.Health > 0 then
			h:TakeDamage(Damage)
			PlaySound("Hit1",char.Torso)
			if h.Health == 0 then
				PlaySound("Hit2",char.Torso)
			end
		end
	end
end

function PlaySound(name,ctorso)
	if name=="Throw" then
		tool.Handle.Sound.SoundId = "rbxassetid://" .. SOUNDS.throwing[math.random(1,#SOUNDS.throwing)]
		tool.Handle.Sound:Play()
	elseif name=="ThrowLaser" then
		tool.Handle.Sound.SoundId = "rbxassetid://" .. SOUNDS.laserthrowing[math.random(1,#SOUNDS.laserthrowing)]
		tool.Handle.Sound:Play()
	elseif name=="Equip" then
		tool.Handle.Sound.SoundId = "rbxassetid://" .. SOUNDS.equip
		tool.Handle.Sound:Play()
	elseif name=="Swing" then
		tool.Handle.Sound.SoundId = "rbxassetid://" .. SOUNDS.striking[math.random(1,#SOUNDS.striking)]
		tool.Handle.Sound:Play()
	elseif name=="Hit1" then
		local NewSound=tool.Handle.Sound:clone()
		NewSound.Parent=ctorso
		NewSound.SoundId = "rbxassetid://" .. SOUNDS.hitplayer[math.random(1,#SOUNDS.hitplayer)]
		NewSound:Play()
		NewSound:Destroy()
	elseif name=="Hit2" then
		local NewSound=tool.Handle.Sound:clone()
		NewSound.Parent=ctorso
		NewSound.SoundId = "rbxassetid://" .. SOUNDS.deaths[math.random(1,#SOUNDS.deaths)]
		NewSound:Play()
		NewSound:Destroy()
	elseif name=="Laser" then
		local NewSound=tool.Handle.Sound
		NewSound.SoundId = "rbxassetid://" .. SOUNDS.shouts[math.random(1,#SOUNDS.shouts)]
		NewSound:Play()
	end
end

function Throwtool(dPos)
		if not tool.Handle then return end
		local throwingHandle = tool.Handle:Clone()
		game:GetService("Debris"):AddItem(throwingHandle, 5)
		throwingHandle.Transparency=0
		throwingHandle.Parent = workspace
		if player.Character and player.Character.Humanoid then
			throwingHandle.Velocity = (player.Character.Humanoid.TargetPoint - throwingHandle.CFrame.p).unit * 150
			if canLaser then
				throwingHandle.Velocity = (player.Character.Humanoid.TargetPoint - throwingHandle.CFrame.p).unit * 9999
			end
			if mouse.Target ~= nil then
			if mouse.Target.Parent.Name~="Arms_Model" and mouse.Target.Name~="ThrownKnife" and mouse.Target.Name~="Handle" then
			targetpos=player.Character.Humanoid.TargetPoint
			else
			targetpos=Vector3.new(0,-10 ,0)
			end
			end
			-- set the orientation to the direction it is being thrown in
			throwingHandle.CFrame = CFrame.new(throwingHandle.CFrame.p, throwingHandle.CFrame.p + throwingHandle.Velocity) * CFrame.Angles(0, 0, math.rad(-90))
			local floatingForce = Instance.new('BodyForce', throwingHandle)
			floatingForce.force = Vector3.new(0, 196.2 * throwingHandle:GetMass() * 0.98, 0)
			local spin = Instance.new('BodyAngularVelocity', throwingHandle)
			spin.angularvelocity = throwingHandle.CFrame:vectorToWorldSpace(Vector3.new(0, -400, 0))
			spawnPos=player.Character.PrimaryPart.Position
			spawnPos = spawnPos + dPos*5
			if canLaser then
								 local Ray = Ray.new(tool.Handle.CFrame.p,(mouse.Hit.p - tool.Handle.CFrame.p).unit * 999) 
        local Hit,Position = game.Workspace:FindPartOnRay(Ray,char) 
       if Hit then
	    if Hit.Parent:FindFirstChild("Humanoid") then 
	        Hit.Parent.Humanoid:TakeDamage(110)
			laserCharge=true
	end end
        local RayPart = Instance.new("Part",workspace)
	RayPart.Name = "RayPart" 
	RayPart.BrickColor = BrickColor.new("Bright red")
	RayPart.Transparency = 0
	RayPart.Anchored = true 
	RayPart.CanCollide = false 
	RayPart.TopSurface = Enum.SurfaceType.Smooth 
	RayPart.BottomSurface = Enum.SurfaceType.Smooth 
	RayPart.formFactor = Enum.FormFactor.Custom 
	local Distance = (Position-tool.Handle.CFrame.p).magnitude 
	RayPart.Size = Vector3.new(0.2,0.2,Distance) 
	RayPart.CFrame = CFrame.new(Position,tool.Handle.CFrame.p) * CFrame.new(0,0,-Distance/2) 
	game.Debris:addItem(RayPart,.5)
	PlaySound("Laser")
			end
		end
		if throwingHandle then
			local touchedConn = throwingHandle.Touched:connect(function(hit)
				local char=hit.Parent
				camera.CameraSubject=humanoid
				camera.CameraType=Enum.CameraType.Custom
				if char and char~=player.Character and char.Name~="Arms_Model" and hit.Name~="Handle" and hit.Name~="RayPart" then
					local h=char:FindFirstChild("Humanoid")
					if h and h.Health > 0 then
						throwingHandle:Destroy()
						laserCharge=true
						if hit.Name~="Head" or hit.className=="Hat" then
						h:TakeDamage(Damage)
						PlaySound("Hit1",char.Torso)
						if h.Health == 0 then
							PlaySound("Hit2",char.Torso)
						end
						else
						h:TakeDamage(Damage * 2)
						print("Headshot!")
						char.Head.Transparency=1
						char.Head.CanCollide=false
						if char.Head:FindFirstChild("face") then char.Head:FindFirstChild("face").Transparency=1 end
						for _,v in pairs(char:GetChildren()) do
							if v.className=="Hat" then
								v:Destroy()
							end
						end
						for i = 1, 7 do
							local blood=Instance.new("Part")
							blood.FormFactor="Custom"
							blood.Size=Vector3.new(1,.2,1)
							blood.BrickColor=BrickColor.Red()
							blood.TopSurface=0
							blood.BottomSurface=0
							game:GetService("Debris"):AddItem(blood,5)
							blood.Parent=workspace
							blood.Position=char.Head.Position + Vector3.new(math.random(0.2,0.8),0,math.random(0.2,0.8))
						end
						local sound = Instance.new("Sound")
						sound.SoundId = "rbxassetid://142347633"
						sound.Parent=char.Head
						sound.Pitch=1.1
						sound:Play()
						end
						PlaySound("Hit1")
						if h.Health == 0 then
							PlaySound("Hit2")
						end
					elseif hit.Name~="Handle" or hit.Name~="IgnoreThrowingKnives" and hit.Parent.Name~="Arms_Model" and hit.Name~="RayPart" and hit.CanCollide==true then
						local sound=Instance.new("Sound")
						sound.Parent=hit
						sound.SoundId = "rbxassetid://" .. SOUNDS.wallhit[math.random(1,#SOUNDS.wallhit)]
						sound:Play()
						sound:Destroy()
						print("Hit Object: " .. hit.Name)
						local newknife=tool.Handle:clone()
						newknife.Name="ThrownKnife"
						newknife.CFrame = CFrame.new(spawnPos, spawnPos + dPos) * CFrame.Angles(math.pi/-2, 0, 0)
						newknife.Position = targetpos
						throwingHandle:Destroy()
						newknife.Anchored=true
						newknife.CanCollide=true
						newknife.Transparency=0
						newknife.Parent=workspace
						wait(7)
						for i=1,10 do
							newknife.Transparency=i*.1
							wait()
						end
						newknife:Destroy()
					end
				end
		    end)
		end
		end
		-- must check if it still exists since we waited
		if throwingHandle then
			throwingHandle.CanCollide = true
		end

FUNCTIONS={
	
	CHECKFORFIRSTPERSON=function()
		if (camera.focus.p - camera.CoordinateFrame.p).magnitude > 1 then
			return false
		else
			return true
		end
	end,
	
	ANIMS=function(state)
		if state then
			mouse.Icon="http://www.roblox.com/asset/?id=54019936"
			--Start Animation
			local mesh=Instance.new("FileMesh")
			mesh.MeshId=SETTINGS.tool.mesh_id
			mesh.TextureId=SETTINGS.tool.texture_id
			mesh.Scale=Vector3.new(SETTINGS.tool.mesh_scale,SETTINGS.tool.mesh_scale,SETTINGS.tool.mesh_scale)
			mesh.Parent=tool.Handle
			if SETTINGS.tool.mesh_scale==.1 then
				tool.GripPos = Vector3.new(0, -0.55, 0)
			elseif SETTINGS.tool.mesh_scale==.2 then
				tool.GripPos = Vector3.new(0, -0.6, 0)
			elseif SETTINGS.tool.mesh_scale==.3 then
				tool.GripPos = Vector3.new(0, -0.65, 0)
			elseif SETTINGS.tool.mesh_scale==.4 then
				tool.GripPos = Vector3.new(0, -0.7, 0)
			elseif SETTINGS.tool.mesh_scale==.5 then
				tool.GripPos = Vector3.new(0, -0.75, 0)
			elseif SETTINGS.tool.mesh_scale==.6 then
				tool.GripPos = Vector3.new(0, -0.8, 0)
			elseif SETTINGS.tool.mesh_scale==.7 then
				tool.GripPos = Vector3.new(0, -0.85, 0)
			elseif SETTINGS.tool.mesh_scale==.8 then
				tool.GripPos = Vector3.new(0, -0.9, 0)
			elseif SETTINGS.tool.mesh_scale==.9 then
				tool.GripPos = Vector3.new(0, -0.95, 0)
			elseif SETTINGS.tool.mesh_scale==1 then
				tool.GripPos = Vector3.new(0, -1, 0)
			else
				print("Invalid tool size! Set to default: " .. SETTINGS.tool.default_tool_size )
				mesh.Scale=Vector3.new(SETTINGS.tool.default_tool_size,SETTINGS.tool.default_tool_size,SETTINGS.tool.default_tool_size)
				if SETTINGS.tool.default_tool_size==.1 then
				tool.GripPos = Vector3.new(0, -0.55, 0)
			elseif SETTINGS.tool.default_tool_size==.2 then
				tool.GripPos = Vector3.new(0, -0.6, 0)
			elseif SETTINGS.tool.default_tool_size==.3 then
				tool.GripPos = Vector3.new(0, -0.65, 0)
			elseif SETTINGS.tool.default_tool_size==.4 then
				tool.GripPos = Vector3.new(0, -0.7, 0)
			elseif SETTINGS.tool.default_tool_size==.5 then
				tool.GripPos = Vector3.new(0, -0.75, 0)
			elseif SETTINGS.tool.default_tool_size==.6 then
				tool.GripPos = Vector3.new(0, -0.8, 0)
			elseif SETTINGS.tool.default_tool_size==.7 then
				tool.GripPos = Vector3.new(0, -0.85, 0)
			elseif SETTINGS.tool.default_tool_size==.8 then
				tool.GripPos = Vector3.new(0, -0.9, 0)
			elseif SETTINGS.tool.default_tool_size==.9 then
				tool.GripPos = Vector3.new(0, -0.95, 0)
			elseif SETTINGS.tool.default_tool_size==1 then
				tool.GripPos = Vector3.new(0, -1, 0)
			else
				print("Invalid default size! Un-equipping and removing Knife...")
				if humanoid then
					humanoid:Unequiptools()
					tool:Destroy()
				end
			end
			end
			torso=char:FindFirstChild("Torso")
			leftarm=torso:FindFirstChild("Left Shoulder")
			if leftarm then
				leftarm.Parent=nil
				newarmweld=Instance.new("Weld")
				newarmweld.Name="LeftWeld"
				newarmweld.Part0=torso
				newarmweld.C0 = CFrame.new(-1.5, 0.7, 0)
				newarmweld.C1 = CFrame.new(0, 0.7, 0)
				newarmweld.Part1=char:FindFirstChild("Left Arm")
				newarmweld.Parent=torso
			end
			humanoid.WalkSpeed=WalkSpeeds[2]
			for i = 1, 15, 3 do
				if equipped then
					torso:FindFirstChild("Right Shoulder").C1 = rightC1 * CFrame.Angles((-i * (math.pi / 90)),(-i * (math.pi / 90)),(i * (math.pi / 210)))
					torso:FindFirstChild("LeftWeld").C1 = CFrame.new(-0.2, .7, 0) * CFrame.Angles((-i * (math.pi / 60)),(i * (math.pi / 90)),(-i * (math.pi / 240)))
				end
				wait()
			end
		else
			humanoid.WalkSpeed=WalkSpeeds[1]
			torso:FindFirstChild("Right Shoulder").C1 = rightC1 * CFrame.new(0,-0.2,0)
			tool.GripForward = Vector3.new(0,0,-1)
			newarmweld:Destroy()
			leftarm.Parent=torso
			mouse.Icon=""
			torso:FindFirstChild("Neck").C0 = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
			torso:FindFirstChild("Right Shoulder").C0 = CFrame.new(1, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
		end
		end
}

tool.Equipped:connect(function ()
	equipped=true
	PlaySound("Equip")
	FUNCTIONS.ANIMS(true)
end)
tool.Unequipped:connect(function ()
	equipped=false
	FUNCTIONS.ANIMS(false)
end)
tool.Handle.Touched:connect(function (hit)
	if Attacking then
		DamageObject(hit)
	end
end)
tool.Activated:connect(function ()
	if Attacking then return end
	if not tool.Enabled then return end
	justthrown=false
	justattacked=false
	if not gettingknife and not justthrown and not Attacking then
	HeldTime=time()
	end
	playcharge=true
	wait(.15)
	while gettingknife do
		wait()
	end
	local speed=1
	for i = 1, 15, speed do
		if playcharge and equipped and not gettingknife and not justthrown and not Attacking then
		torso:FindFirstChild("Right Shoulder").C1 = CFrame.new(-0.5, 0.5, 0, 0.195277825, -0.747909963, 0.634426773, 0.482016951, 0.636551082, 0.602048457, -0.854123056, 0.188237742, 0.484809577) * CFrame.Angles((i * (math.pi / 50)), 0, (-i * (math.pi / 25)))
		torso:FindFirstChild("LeftWeld").C1 = CFrame.new(-0.2, .7, 0, 0.858912528, 0.165011853, 0.484809607, -0.464581847, 0.649385393, 0.602048457, -0.215483144, -0.742340684, 0.634426773) * CFrame.Angles((-i * (math.pi / 75)),(i * (math.pi / 180)),0)
		player.Character["Right Arm"].RightGrip.C1 = CFrame.new(0, -0.800000012, 0.05, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.Angles((-i * (math.pi / 150)),0,0)
		wait()
		end
	end
	if playcharge then
	canLaser=true
	end
end)
tool.Deactivated:connect(function ()
	if not tool.Enabled then return end
	currTime=time()
	playcharge=false
	if HeldTime and currTime - HeldTime > 0.2 and
			currTime - HeldTime > 0.01 and not justthrown and not gettingknife then
			if not Attacking and not justattacked then
			print("Throw")
			if canLaser then
				PlaySound("ThrowLaser")
			else
				PlaySound("Throw")
			end
			tool.Handle.Transparency=1
			local targetPos = player.Character.Humanoid.TargetPoint
			local lookAt = (targetPos - player.Character.PrimaryPart.Position).unit
			local switchEvenOddParity = 1
			local angle = math.ceil((1-1)/2)*math.pi/12*switchEvenOddParity
			Throwtool(CFrame.Angles(0, angle, 0) * lookAt)
			wait()
			canLaser=false
			HeldTime=0
			gettingknife=true
			mouse.Icon="http://www.roblox.com/asset/?id=54020165"
			player.Character["Right Arm"].RightGrip.C1 = CFrame.new(0, -0.800000012, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
			for i = 1, 15, .8 do
				if equipped then
				torso:FindFirstChild("Right Shoulder").C1 = CFrame.new(-0.5, 0.5, 0, 0.0719629526, 0.22870943, 0.970831275, -0.981789052, 0.187819958, 0.0285283029, -0.175816804, -0.955204487, 0.238060504) * CFrame.Angles(0, 0, (i * (math.pi / 15)))
				torso:FindFirstChild("LeftWeld").C1 = CFrame.new(-0.2, 0.7, 0, 0.703028679, -0.151466534, 0.694844246, -0.673604906, 0.171488613, 0.718921423, -0.228050426, -0.973472893, 0.0185328126) * CFrame.Angles((i * (math.pi / 60)),(-i * (math.pi / 180)),(i * (math.pi / 60)))
				wait()
				end
			end
			justthrown=true
			tool.Handle.Transparency=0
			PlaySound("Equip")
			mouse.Icon="http://www.roblox.com/asset/?id=54019936"
			tool.GripForward = Vector3.new(0,0,-1)
			for i = 1, 15, 1 do
				if equipped then
				torso:FindFirstChild("Right Shoulder").C1 = CFrame.new(-0.5, 0.5, 0, -0.071962975, -0.22870943, 0.970831275, 0.981789052, -0.187820047, 0.0285283029, 0.175816894, 0.955204487, 0.238060504) * CFrame.Angles(0, 0, (-i * (math.pi / 30)))
				wait()
				end
			end
			gettingknife=false
			for i = 1, 15, 3 do
				if equipped then
					torso:FindFirstChild("Right Shoulder").C1 = rightC1 * CFrame.Angles((-i * (math.pi / 90)),(-i * (math.pi / 90)),(i * (math.pi / 210)))
					torso:FindFirstChild("LeftWeld").C1 = CFrame.new(-0.2, .7, 0) * CFrame.Angles((-i * (math.pi / 60)),(i * (math.pi / 90)),(-i * (math.pi / 240)))
				end
				wait()
			end
			end
	else
		if not justthrown and not gettingknife then
		if Attacking then return end
		print("Attack")
		HeldTime=0
		Attacking=true
		justattacked=true
		if math.random(1,2)==1 then
			for i = 1, 15, 3 do
		if equipped and not gettingknife and not justthrown then
		torso:FindFirstChild("Right Shoulder").C1 = CFrame.new(-0.5, 0.5, 0, 0.195277825, -0.747909963, 0.634426773, 0.482016951, 0.636551082, 0.602048457, -0.854123056, 0.188237742, 0.484809577) * CFrame.Angles((i * (math.pi / 65)), 0, (-i * (math.pi / 30)))
		torso:FindFirstChild("LeftWeld").C1 = CFrame.new(-0.2, .7, 0, 0.858912528, 0.165011853, 0.484809607, -0.464581847, 0.649385393, 0.602048457, -0.215483144, -0.742340684, 0.634426773) * CFrame.Angles((-i * (math.pi / 75)),(i * (math.pi / 180)),0)
		wait()
		end
			end
			PlaySound("Swing")
	for i = 1, 15, 3 do
				if equipped and not gettingknife and not justthrown then
				torso:FindFirstChild("Right Shoulder").C1 = CFrame.new(-0.5, 0.5, 0, 0.0719629526, 0.22870943, 0.970831275, -0.981789052, 0.187819958, 0.0285283029, -0.175816804, -0.955204487, 0.238060504) * CFrame.Angles(0, 0, (i * (math.pi / 15)))
				torso:FindFirstChild("LeftWeld").C1 = CFrame.new(-0.2, 0.7, 0, 0.703028679, -0.151466534, 0.694844246, -0.673604906, 0.171488613, 0.718921423, -0.228050426, -0.973472893, 0.0185328126) * CFrame.Angles((i * (math.pi / 60)),(-i * (math.pi / 180)),(i * (math.pi / 60)))
				wait()
				end
	end
				for i = 1, 15, 3 do
				if equipped and not justthrown and not gettingknife then
				torso:FindFirstChild("Right Shoulder").C1 = CFrame.new(-0.5, 0.5, 0, -0.071962975, -0.22870943, 0.970831275, 0.981789052, -0.187820047, 0.0285283029, 0.175816894, 0.955204487, 0.238060504) * CFrame.Angles(0, 0, (-i * (math.pi / 30)))
				wait()
				end
			end
			for i = 1, 15, 3 do
				equipping=true
		if equipped and not gettingknife and not justthrown then
			torso:FindFirstChild("Right Shoulder").C1 = rightC1 * CFrame.Angles((-i * (math.pi / 90)),(-i * (math.pi / 90)),(i * (math.pi / 210)))
			torso:FindFirstChild("LeftWeld").C1 = CFrame.new(-0.2, .7, 0) * CFrame.Angles((-i * (math.pi / 60)),(i * (math.pi / 90)),(-i * (math.pi / 240)))
		end
		wait()
			end
			Attacking=false
		else
			for i = 1, 15, 3 do
				if equipped and not gettingknife and not justthrown then
					torso:FindFirstChild("Right Shoulder").C1 = CFrame.new(-0.3, 0.5, 0, 0.195277825, -0.747909963, 0.634426773, 0.482016951, 0.636551082, 0.602048457, -0.854123056, 0.188237742, 0.484809577) * CFrame.Angles((i * (math.pi / 40)),(-i * (math.pi / 45)),(i * (math.pi / 60)))
				end
				wait()
			end
			PlaySound("Swing")
			for i = 1, 15, 3 do
				if equipped and not gettingknife and not justthrown then
					torso:FindFirstChild("Right Shoulder").C1 = CFrame.new(-0.2, 0.5, -.3, 0.852928281, -0.428775758, 0.29776603, 0.516928136, 0.614185035, -0.596290231, 0.0727913082, 0.662516415, 0.745502114) * CFrame.Angles((-i * (math.pi / 45)),0,0)
					torso:FindFirstChild("LeftWeld").C1 = CFrame.new(-0.200000003, 0.7, 0, 0.849384904, 0.16895318, 0.5, -0.48470962, 0.624545038, 0.612372398, -0.208810255, -0.762494743, 0.612372398) * CFrame.Angles((i * (math.pi / 60)),(-i * (math.pi / 180)),(i * (math.pi / 60)))
				end
				wait()
			end
			for i = 1, 15, 3 do
				if equipped and not gettingknife and not justthrown then
					torso:FindFirstChild("Right Shoulder").C1 = CFrame.new(-0.3, 0.5, -0.300000012, 0.852928281, -0.472260833, -0.222447708, 0.516928136, 0.82349503, 0.233754784, 0.0727913082, -0.314365625, 0.946507096) * CFrame.Angles((i * (math.pi / 45)),0,0)
				end
				wait()
			end
			for i = 1, 15, 3 do
				if equipped and not gettingknife and not justthrown then
					torso:FindFirstChild("Right Shoulder").C1 = rightC1 * CFrame.Angles((-i * (math.pi / 90)),(-i * (math.pi / 90)),(i * (math.pi / 210)))
					torso:FindFirstChild("LeftWeld").C1 = CFrame.new(-0.2, .7, 0) * CFrame.Angles((-i * (math.pi / 60)),(i * (math.pi / 90)),(-i * (math.pi / 240)))
				end
				wait()
			end
			Attacking=false
		end
		end
	end
end)

mouse.Move:connect(function ()
	if equipped and mouse then
		if (mouse.Hit.p - mouse.Origin.p).unit.y < 0.25 and (mouse.Hit.p - mouse.Origin.p).unit.y > -0.25 then
		torso:FindFirstChild("Right Shoulder").C0 = CFrame.new(.9,.5,0) * CFrame.Angles(0,math.rad(90),0) * CFrame.Angles(0, 0, math.asin((mouse.Hit.p - mouse.Origin.p).unit.y))
		torso:FindFirstChild("LeftWeld").C0 = CFrame.new(-1.5,0.5,0) * CFrame.Angles(0, 0, math.asin((mouse.Hit.p - mouse.Origin.p).unit.y))
		torso:FindFirstChild("Neck").C0 = CFrame.new(0,1,0) * CFrame.Angles(math.rad(-90),0,math.rad(180)) * CFrame.Angles(math.asin(-(mouse.Hit.p - mouse.Origin.p).unit.y), 0, 0)
		end
	end
end)
