Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Made by BonnieKunG1s --
- local player=game.Players.LocalPlayer
- local char=player.Character
- repeat wait() until player and char
- local torso=char.Torso
- local head=char.Head
- local human=char.Humanoid
- local arm={Left=char["Left Arm"], Right=char["Right Arm"]}
- local leg={Left=char["Left Leg"], Right=char["Right Leg"]}
- local c=function(f) coroutine.resume(coroutine.create(f)) end
- local p=function(f) pcall(f) end
- local add={
- Part=function(par, a, c, col, t, s, cf, ms)
- local p=Instance.new("Part", par) pcall(function() p.TopSurface="Smooth" p.BottomSurface="Smooth" p.formFactor="Custom" p.Anchored=a p.CanCollide=c p.BrickColor=BrickColor.new(col) p.Transparency=t p.Size=s p.CFrame=cf or CFrame.new() end)
- local m=Instance.new("BlockMesh", p) pcall(function() m.Scale=ms or Vector3.new(1, 1, 1) end)
- return p
- end,
- Wedge=function(par, a, c, col, t, s, cf, ms)
- local p=Instance.new("WedgePart", par) pcall(function() p.TopSurface="Smooth" p.BottomSurface="Smooth" p.formFactor="Custom" p.Anchored=a p.CanCollide=c p.BrickColor=BrickColor.new(col) p.Transparency=t p.Size=s p.CFrame=cf or CFrame.new() end)
- local m=Instance.new("SpecialMesh", p) pcall(function() m.Scale=ms or Vector3.new(1, 1, 1) m.MeshType="Wedge" end)
- return p
- end,
- Gui=function(ins, par, bc, bg, tc, fs, text, t, s, pos)
- local g=Instance.new(ins, par) pcall(function() g.BorderColor=BridckColor.new(bc) g.BackgroundColor=BrickColor.new(bg) g.TextColor=BrickColor.new(tc) g.FontSize=fs g.Font="ArialBold" g.Text=text g.Transparency=t g.Size=s g.Position=pos end)
- return g
- end,
- Weld=function(par, p1, cf)
- local w=Instance.new("Weld", par) pcall(function() w.Part0=w.Parent or par w.Part1=p1 w.C1=cf or CFrame.new() end)
- return w
- end,
- Mesh=function(ins, par, s, of, t)
- local m=Instance.new(ins, par) pcall(function() m.Scale=s or Vector3.new() m.Offset=of or Vector3.new() m.MeshType=t end)
- return m
- end,
- Sound=function(parent, id, volume, pitch)
- local s=Instance.new("Sound", parent) pcall(function() s.SoundId=id s.Volume=volume s.Pitch=pitch end)
- return s
- end,
- }
- local scriptname="Bonnie Knife" --Name here
- pcall(function() player.Backpack[scriptname]:remove() char[scriptname]:remove() char["Objects"]:remove() player.PlayerGui[scriptname]:remove() end)
- local model=Instance.new("Model", char) model.Name="Objects"
- local modelB=Instance.new("Model", char) modelB.Name=scriptname
- local gui=Instance.new("ScreenGui", player.PlayerGui) gui.Name=scriptname
- local bin=Instance.new("HopperBin", player.Backpack) bin.Name=scriptname
- local skincolor="Really black"
- local body={}
- local animate={}
- local obj={}
- function createParts()
- -- PARTS --
- body.Torso=add.Part(model, false, false, skincolor, 1, Vector3.new(2, 2, 1), nil)
- body.ArmLeft, body.ArmRight=add.Part(model, false, false, skincolor, 1, Vector3.new(1, 1, 1), nil), add.Part(model, false, false, skincolor, 1, Vector3.new(1, 1, 1), nil)
- body.LegLeft, body.LegRight=add.Part(model, false, false, skincolor, 1, Vector3.new(1, 1, 1), nil), add.Part(model, false, false, skincolor, 1, Vector3.new(1, 1, 1), nil)
- -- WELDS --
- body.TorsoW=add.Weld(body.Torso, torso, nil)
- body.ArmLeftW, body.ArmRightW=add.Weld(body.ArmLeft, body.Torso, CFrame.new(-1.5, .5, 0)), add.Weld(body.ArmRight, body.Torso, CFrame.new(1.5, .5, 0))
- body.LegLeftW, body.LegRightW=add.Weld(body.LegLeft, body.Torso, CFrame.new(-.5, -1.5, 0)), add.Weld(body.LegRight, body.Torso, CFrame.new(.5, -1.5, 0))
- -- MESHES --
- add.Weld(arm.Left, body.ArmLeft, CFrame.new(0, -.5, 0))
- add.Weld(arm.Right, body.ArmRight, CFrame.new(0, -.5, 0))
- torso["Left Hip"].Part0=body.Torso
- torso["Right Hip"].Part0=body.Torso
- ---------------------------------------------------------------------------------------
- animate={
- ["Torso"]=function(cf) body.Torso.Transparency=0 torso.Transparency=1
- body.TorsoW.C1=cf
- end;
- ["ArmLeft"]=function(cf)
- body.ArmLeftW.C1=CFrame.new(-1.5, .5, 0)*cf
- end;
- ["ArmRight"]=function(cf)
- body.ArmRightW.C1=CFrame.new(1.5, .5, 0)*cf
- end;
- ["LegLeft"]=function(cf)
- body.LegLeftW.C1=CFrame.new(-.5, -1.5, 0)*cf
- end;
- ["LegRight"]=function(cf)
- body.LegRightW.C1=CFrame.new(.5, -1.5, 0)*cf
- end;
- }
- -- Objects --
- obj.HandleBack=add.Part(modelB, false, false, "Really black", 0, Vector3.new(.2, 1, .2), nil)
- obj.HandleBackW=add.Weld(obj.HandleBack, body.ArmRight, CFrame.new(0, -1.5, 0)*CFrame.Angles(-math.rad(90), 0, 0))
- obj.EdgeBot=add.Part(modelB, false, false, "Really black", 0, Vector3.new(.2, .2, .2), nil)
- obj.EdgeBotM=add.Mesh("CylinderMesh", obj.EdgeBot, Vector3.new(1, 1, 1), nil, nil)
- obj.EdgeBotW=add.Weld(obj.EdgeBot, obj.HandleBack, CFrame.new(0, -.5, 0)*CFrame.Angles(math.rad(90), 0, math.rad(90)))
- obj.EdgeTopR=add.Part(modelB, false, false, "Really black", 0, Vector3.new(.2, .2, .2), nil)
- obj.EdgeTopRM=add.Mesh("CylinderMesh", obj.EdgeTopR, Vector3.new(1, 1, 1), nil, nil)
- obj.EdgeTopRW=add.Weld(obj.EdgeTopR, obj.HandleBack, CFrame.new(0, .5, 0)*CFrame.Angles(math.rad(90), 0, math.rad(90)))
- obj.Blade=add.Part(modelB, false, false, "Mid gray", 0, Vector3.new(.2, .8, .2), nil)
- obj.BladeM=add.Mesh("BlockMesh", obj.Blade, Vector3.new(.5, 1, 1), nil, nil)
- obj.BladeW=add.Weld(obj.Blade, obj.EdgeTopR, CFrame.new(-.1, 0, -.4)*CFrame.Angles(-math.rad(90), math.rad(90), 0))
- obj.Point=add.Part(modelB, false, false, "Mid gray", 0, Vector3.new(.2, .4, .2), nil)
- obj.PointM=add.Mesh("SpecialMesh", obj.Point, Vector3.new(.5, 1, .5), nil, "Wedge")
- obj.PointW=add.Weld(obj.Point, obj.Blade, CFrame.new(0, .6, .05)*CFrame.Angles(0, math.rad(180), 0))
- obj.Point2=add.Part(modelB, false, false, "Mid gray", 0, Vector3.new(.2, .4, .2), nil)
- obj.Point2M=add.Mesh("SpecialMesh", obj.Point2, Vector3.new(.5, 1, .5), nil, "Wedge")
- obj.Point2W=add.Weld(obj.Point2, obj.Blade, CFrame.new(0, .6, -.05))
- obj.Joints=add.Part(modelB, false, false, "Medium mid-gray", 0, Vector3.new(.2, .25, .2), nil)
- obj.JointsM=add.Mesh("CylinderMesh", obj.Joints, Vector3.new(.5, 1, .5), nil, nil)
- obj.JointsW=add.Weld(obj.Joints, obj.EdgeBot, nil)
- obj.Joints=add.Part(modelB, false, false, "Medium mid-gray", 0, Vector3.new(.2, .25, .2), nil)
- obj.JointsM=add.Mesh("CylinderMesh", obj.Joints, Vector3.new(.5, 1, .5), nil, nil)
- obj.JointsW=add.Weld(obj.Joints, obj.EdgeTopR, nil)
- obj.EdgeTopR2=add.Part(modelB, false, false, "Really black", 0, Vector3.new(.2, .2, .2), nil)
- obj.EdgeTopR2M=add.Mesh("CylinderMesh", obj.EdgeTopR2, Vector3.new(1, 1, 1), nil, nil)
- obj.EdgeTopR2W=add.Weld(obj.EdgeTopR2, obj.Blade, CFrame.new(0, -.4, -.1)*CFrame.Angles(math.rad(90), 0, math.rad(90)))
- obj.HandleFor=add.Part(modelB, false, false, "Really black", 0, Vector3.new(.2, 1, .2), nil)
- obj.HandleForW=add.Weld(obj.HandleFor, obj.EdgeTopR2, CFrame.new(0, 0, .5)*CFrame.Angles(-math.rad(90), -math.rad(90), 0))
- obj.EdgeBot=add.Part(modelB, false, false, "Really black", 0, Vector3.new(.2, .2, .2), nil)
- obj.EdgeBotM=add.Mesh("CylinderMesh", obj.EdgeBot, Vector3.new(1, 1, 1), nil, nil)
- obj.EdgeBotW=add.Weld(obj.EdgeBot, obj.HandleFor, CFrame.new(0, -.5, 0)*CFrame.Angles(math.rad(90), 0, math.rad(90)))
- obj.Joints=add.Part(modelB, false, false, "Medium mid-gray", 0, Vector3.new(.2, .25, .2), nil)
- obj.JointsM=add.Mesh("CylinderMesh", obj.Joints, Vector3.new(.5, 1, .5), nil, nil)
- obj.JointsW=add.Weld(obj.Joints, obj.EdgeBot, nil)
- obj.Joints=add.Part(modelB, false, false, "Medium mid-gray", 0, Vector3.new(.2, .25, .2), nil)
- obj.JointsM=add.Mesh("CylinderMesh", obj.Joints, Vector3.new(.5, 1, .5), nil, nil)
- obj.JointsW=add.Weld(obj.Joints, obj.EdgeTopR2, nil)
- end
- function removeParts()
- p(function()
- if torso then
- torso["Left Hip"].Part0=torso
- torso["Right Hip"].Part0=torso
- end
- for i, v in pairs(model:children()) do v:remove() end for i, v in pairs(modelB:children()) do v:remove() end for i, v in pairs(char:children()) do v.Transparency=0 end
- end)
- end
- -- Variables --
- local trailDeb=false
- local using=false
- local combo=1
- local onStab=false
- local keyDeb=false
- local switch=false
- local switch2=false
- local keyDeb2=false
- local hitDeb=false
- local dmg=math.random(99999, 999999)
- local speed=50
- local pitch=.8
- local Slash=add.Sound(torso, "rbxasset://sounds//swordslash.wav", 1, pitch)
- local Hit=add.Sound(torso, "http://www.roblox.com/asset/?id=30715280", 1, 1)
- local Abscond=add.Sound(torso, "http://www.roblox.com/asset/?id=2767090", 1, 1)
- local Equip=add.Sound(torso, "http://www.roblox.com/asset/?id=13510737", 1, 1)
- local attackLabel=add.Gui("TextLabel", gui, "Really black", "Really black", "White", "Size18", "Invisible(Q)", 0, UDim2.new(0, 150, 0, 50), UDim2.new(0, 0, 0, 150))
- local attackLabel2=add.Gui("TextLabel", attackLabel, "Really black", "Really black", "White", "Size18", "Disguise(E)", 0, UDim2.new(1, 0, 1, 0), UDim2.new(0, 0, 1, 0))
- function lightningGen(startPos, endPos)
- local magnitude=(startPos-endPos).magnitude
- local distance=(startPos+endPos)/2
- local pattern=add.Part(workspace, true, false, "White", 1, Vector3.new(.2, .2, magnitude), CFrame.new(distance, startPos))
- local startPosProx=startPos
- for i=1, 9 do
- local startPosProx2=startPosProx
- local random=Vector3.new(math.random(-1, 1), math.random(-1, 1), math.random(-1, 1))
- local findSize=pattern.Size.z/10
- local findOffSet=pattern.CFrame.lookVector*-1
- local compute=i*findSize*findOffSet
- local newStartPos=startPos
- local newEndPos=CFrame.new(random+compute+newStartPos).p
- local magnitude=(startPosProx2-newEndPos).magnitude
- local distance=(startPosProx2+newEndPos)/2
- local lightning=add.Part(workspace, true, false, "Bright yellow", 0, Vector3.new(.2, .2, magnitude), CFrame.new(distance, startPosProx2))
- c(function()
- for i=0, 1, .1 do wait()
- lightning.Transparency=i
- end
- lightning:remove()
- end)
- startPosProx=newEndPos
- end
- pattern:remove()
- end
- function computePos(pos, pos2)
- local pos3=Vector3.new(pos2.x, pos.y, pos2.z)
- torso.CFrame=CFrame.new(pos, pos3)
- return pos3
- end
- function nearTorso(pos, dis)
- local temp
- local distance=dis
- for i, v in pairs(workspace:children()) do
- if v:isA("Model") then
- temp=v:findFirstChild("Torso")
- local humanoid=v:findFirstChild("Humanoid")
- if temp and humanoid and v~=char and (temp.CFrame.p-pos).magnitude<distance then
- distance=(temp.CFrame.p-pos).magnitude
- return temp
- end
- end
- end
- end
- function trail(pos, cf, col)
- c(function()
- local old=(pos.CFrame*cf).p
- while trailDeb==true do
- wait()
- local new=(pos.CFrame*cf).p
- local mag=(old-new).magnitude
- local dis=(old+new)/2
- local trail=add.Part(workspace, true, false, col, 0, Vector3.new(.2, mag, .2), CFrame.new(dis, new)*CFrame.Angles(math.pi/2, 0, 0)) trail.Name="Trail"
- local tMesh=add.Mesh("CylinderMesh", trail, Vector3.new(.5, 1, .5), nil, nil)
- old=new
- c(function()
- for i=1, 0, -.1 do
- wait()
- tMesh.Scale=tMesh.Scale*Vector3.new(i, 1, i)
- end
- trail:remove()
- end)
- c(function()
- for i=0, 1, .1 do
- wait()
- trail.Transparency=i
- end
- end)
- end
- end)
- end
- function running()
- animate.ArmLeft(CFrame.Angles(-math.rad(45), 0, -math.rad(15)))
- animate.ArmRight(CFrame.Angles(math.rad(45), 0, math.rad(15)))
- obj.HandleBackW.C1=CFrame.new(0, -1.5, 0)*CFrame.Angles(-math.rad(90), 0, 0)
- end
- function hit(h)
- if using==true then
- if switch==false then
- if onStab==false and h.Parent:findFirstChild("Humanoid") and h.Parent~=char and hitDeb==false then hitDeb=true print("NormalStab") Hit:play()
- local hHuman=h.Parent:findFirstChild("Humanoid")
- hHuman.Health=hHuman.Health-dmg
- local fakeM=Instance.new("Model", workspace) fakeM.Name=-dmg
- local fakeH=Instance.new("Humanoid", fakeM) fakeH.MaxHealth=0 fakeH.Health=0
- local effect=add.Part(fakeM, false, false, "Bright red", 0, Vector3.new(1, 1, 1), h.CFrame) effect.Name="Head"
- local fakeMesh=add.Mesh("CylinderMesh", effect, Vector3.new(1, .5, 1), nil, nil)
- local bp=Instance.new("BodyPosition", effect) bp.maxForce=Vector3.new(math.huge, math.huge, math.huge) bp.position=h.Position+Vector3.new(0, 4, 0)
- game.Debris:addItem(fakeM, 2)
- wait(1)
- hitDeb=false
- end
- if onStab==true and h.Parent~=char and h.Parent:findFirstChild("Humanoid") and hitDeb==false then hitDeb=true print("NormalStab") Hit:play()
- h.Parent:breakJoints()
- local fakeM=Instance.new("Model", workspace) fakeM.Name="BACKSTABBED"
- local fakeH=Instance.new("Humanoid", fakeM) fakeH.MaxHealth=0 fakeH.Health=0
- local effect=add.Part(fakeM, false, false, "Bright red", 0, Vector3.new(1, 1, 1), h.CFrame) effect.Name="Head"
- local fakeMesh=add.Mesh("CylinderMesh", effect, Vector3.new(1, .5, 1), nil, nil)
- local bp=Instance.new("BodyPosition", effect) bp.maxForce=Vector3.new(math.huge, math.huge, math.huge) bp.position=h.Position+Vector3.new(0, 4, 0)
- game.Debris:addItem(fakeM, 2)
- wait(1)
- hitDeb=false
- end
- end
- end
- end
- function findStab()
- while using==false do wait()
- --pcall(function()
- local nTorso=nearTorso(torso.CFrame.p, 3)
- if nTorso then
- local offSet=nTorso.CFrame:toObjectSpace(torso.CFrame)
- if offSet.z>0 then
- onStab=true
- animate.ArmRight(CFrame.Angles(math.rad(135), 0, 0))
- obj.HandleBackW.C1=CFrame.new(0, -1.5, 0)*CFrame.Angles(math.rad(90), 0, 0)
- else
- onStab=false
- running()
- end
- else
- onStab=false
- running()
- end
- --end)
- end
- end
- function attack() combo=combo+1
- if using==false then using=true for i, v in pairs(modelB:children()) do v.Touched:connect(hit) end
- if combo==1 and onStab==false then Slash:play()
- --[[trailDeb=true
- trail(obj.Blade, CFrame.new(0, 1, 0), "White")]]
- for i=0, 1, .2 do wait()
- animate.Torso(CFrame.Angles(0, math.rad(45)*i, 0))
- animate.ArmRight(CFrame.Angles(math.rad(90)*i, 0, 0))
- obj.HandleBackW.C1=CFrame.new(0, -1.5, 0)*CFrame.Angles(-math.rad(90), 0, math.rad(45)*i)
- end
- for i=1, 0, -.2 do wait()
- animate.Torso(CFrame.Angles(0, math.rad(45)*i, 0))
- animate.ArmRight(CFrame.Angles(math.rad(90)*i, 0, 0))
- obj.HandleBackW.C1=CFrame.new(0, -1.5, 0)*CFrame.Angles(-math.rad(90), 0, math.rad(45)*i)
- end
- if combo>1 and onStab==false then combo=2 Slash:play()
- for i=0, 1, .2 do wait()
- animate.Torso(CFrame.Angles(0, math.rad(45)*i, 0))
- animate.ArmRight(CFrame.Angles(math.rad(90)*i, 0, math.rad(45)*i))
- obj.HandleBackW.C1=CFrame.new(0, -1.5, 0)*CFrame.Angles(-math.rad(90+(90*i)), 0, 0)
- end
- for i=1, 0, -.2 do wait()
- animate.Torso(CFrame.Angles(0, math.rad(45)*i, 0))
- animate.ArmRight(CFrame.Angles(math.rad(90)*i, 0, math.rad(45)*i))
- obj.HandleBackW.C1=CFrame.new(0, -1.5, 0)*CFrame.Angles(-math.rad(90+(90*i)), 0, 0)
- end
- end
- end
- if onStab==true then
- for i=0, 1, .2 do wait()
- animate.ArmRight(CFrame.Angles(math.rad(135-(45*i)), 0, 0))
- obj.HandleBackW.C1=CFrame.new(0, -1.5, 0)*CFrame.Angles(math.rad(90), 0, 0)
- end
- onStab=false
- end
- using=false
- --trailDeb=false
- combo=0
- body.Torso.Transparency=1 torso.Transparency=0
- running()
- findStab()
- end
- end
- bin.Selected:connect(function(mouse) createParts()
- human.WalkSpeed=speed
- running()
- using=true
- Equip:play()
- for i=1, 0, -.1 do wait()
- obj.HandleBackW.C1=CFrame.new(0, -1.5, 0)*CFrame.Angles(-math.rad(90), math.rad(180)*i, 0)
- obj.EdgeTopRW.C1=CFrame.new(0, .5, 0)*CFrame.Angles(math.rad(90)+math.rad(180)*i, 0, math.rad(90))
- obj.EdgeTopR2W.C1=CFrame.new(0, -.4, -.1)*CFrame.Angles(math.rad(90)+math.rad(180)*i, 0, math.rad(90))
- end
- using=false
- mouse.Button1Down:connect(attack)
- mouse.KeyDown:connect(function(key)
- local key=key:lower()
- --INVISBLE--
- if key=="q" and keyDeb==false and switch==false and using==false then keyDeb=true switch=true using=true
- attackLabel.Text="Visible(Q)" print("1") Abscond:play()
- pcall(function() char.Sound.Disabled=true end)
- for i, v in pairs(char:children()) do
- c(function()
- for i=0, 1, .2 do wait()
- pcall(function()
- c(function() if v.Head~=nil then head.Transparency=1 end end)
- v.Transparency=i
- end)
- pcall(function() v.Handle.Transparency=i end)
- pcall(function() v.face.Transparency=i end)
- pcall(function() v.roblox.Transparency=i end)
- pcall(function() v.Head.Transparency=i end)
- end
- end)
- end
- for i, v in pairs(modelB:children()) do
- c(function()
- for i=0, 1, .2 do wait()
- pcall(function()
- v.Transparency=i
- end)
- pcall(function() v.Handle.Transparency=i end)
- pcall(function() v.face.Transparency=i end)
- end
- end)
- end
- wait(.5)
- local fakeModel=Instance.new("Model", workspace.CurrentCamera) fakeModel.Name="YOU"
- local fakeHumanoid=Instance.new("Humanoid", fakeModel) fakeHumanoid.Health=0 fakeHumanoid.MaxHealth=0
- local fakeHead=add.Part(fakeModel, false, false, "Bright green", 0, Vector3.new(1, 1, 1), nil) fakeHead.Name="Head"
- local fakeHeadM=add.Mesh("SpecialMesh", fakeHead, Vector3.new(1, 1.5, 1), nil, "File")
- fakeHeadM.MeshId="http://www.roblox.com/Asset/?id=9756362"
- local fakeHeadW=add.Weld(fakeHead, torso, CFrame.new(0, 1.5, 0))
- modelB.Parent=workspace.CurrentCamera
- for i, v in pairs(modelB:children()) do
- c(function()
- for i=0, 1, .2 do wait()
- pcall(function()
- v.Transparency=.5
- end)
- pcall(function() v.Handle.Transparency=.5 end)
- pcall(function() v.face.Transparency=.5 end)
- end
- end)
- end
- keyDeb=false
- elseif key=="q" and keyDeb==false and switch==true and using==true then keyDeb=true switch=false using=false
- attackLabel.Text="Invisible(Q)" print("2") Abscond:play()
- pcall(function() char.Sound.Disabled=false end)
- modelB.Parent=char
- for i, v in pairs(char:children()) do
- c(function()
- for i=1, 0, -.2 do wait()
- pcall(function()
- c(function() if v.Head~=nil then head.Transparency=1 end end)
- v.Transparency=i
- end)
- pcall(function() v.Handle.Transparency=i end)
- pcall(function() v.face.Transparency=i end)
- pcall(function() v.roblox.Transparency=i end)
- pcall(function() v.Head.Transparency=i end)
- end
- end)
- end
- for i, v in pairs(modelB:children()) do
- c(function()
- for i=1, 0, -.2 do wait()
- pcall(function()
- v.Transparency=i
- end)
- pcall(function() v.Handle.Transparency=i end)
- pcall(function() v.face.Transparency=i end)
- end
- end)
- end
- for i, v in pairs(workspace.CurrentCamera:children()) do pcall(function() v:remove() end) end
- wait(.5)
- keyDeb=false
- findStab()
- end
- --DISGUISE MENU--
- local xSpace=0
- if key=="e" and keyDeb2==false and switch2==false then keyDeb2=true switch2=true
- attackLabel2.Text="Menu:"
- for i, v in pairs(game.Players:children()) do
- if v~=player then xSpace=xSpace+1
- local playersLabel=add.Gui("TextButton", attackLabel2, "Really black", "Really black", "Bright red", "Size18", v.Name, 0, UDim2.new(1, 0, 1, 0), UDim2.new(xSpace, 0, 0, 0))
- playersLabel.MouseButton1Click:connect(function() Abscond:play()
- pcall(function()
- for i, v in pairs(char:children()) do
- pcall(function() v.face:remove() end)
- pcall(function() v.roblox:remove() end)
- pcall(function() v.Head:remove() end)
- if v:IsA("BodyColors") then v:remove() end
- if v:IsA("Hat") then v:remove() end
- if v:IsA("ShirtGraphic") then v:remove() end
- if v:IsA("Pants") then v:remove() end
- if v:IsA("Shirt") then v:remove() end
- if v:IsA("CharacterMesh") then v:remove() end
- if v:IsA("BodyColors") then v:remove() end
- end
- for i, v in pairs(game.Players[playersLabel.Text].Character:children()) do
- pcall(function() local cloned=v.face:clone() cloned.Parent=head if switch==true then pcall(function() cloned.Transparency=1 end) end end)
- pcall(function() v.roblox:clone().Parent=torso end)
- if v:IsA("BodyColors") then v:clone().Parent=char end
- if v:IsA("Hat") then local cloned=v:clone() cloned.Parent=char if switch==true then pcall(function() cloned.Handle.Transparency=1 end) end end
- if v:IsA("ShirtGraphic") then v:clone().Parent=char end
- if v:IsA("Pants") then v:clone().Parent=char end
- if v:IsA("Shirt") then v:clone().Parent=char end
- if v:IsA("CharacterMesh") then v:clone().Parent=char end
- if v:IsA("BodyColors") then v:clone().Parent=char end
- end
- head.Transparency=1
- local fakeModel=Instance.new("Model", char) fakeModel.Name=playersLabel.Text
- local fakeHumanoid=Instance.new("Humanoid", fakeModel) fakeHumanoid.Health=100 fakeHumanoid.MaxHealth=100
- local fakeHead=add.Part(fakeModel, false, false, game.Players[playersLabel.Text].Character.Head.Color, 0, Vector3.new(1, 1, 1), nil) fakeHead.Name="Head"
- if switch==true then fakeHead.Transparency=1 end
- local fakeHeadM=add.Mesh("SpecialMesh", fakeHead, Vector3.new(1.25, 1.25, 1.25), nil, "Head")
- local fakeHeadW=add.Weld(fakeHead, torso, CFrame.new(0, 1.5, 0))
- end)
- end)
- end
- end
- keyDeb2=false
- elseif key=="e" and keyDeb2==false and switch2==true then keyDeb2=true switch2=false
- attackLabel2.Text="Disguise(E)"
- for i, v in pairs(attackLabel2:children()) do
- pcall(function()v:remove()end)
- end
- keyDeb2=false
- end
- end)
- findStab()
- end)
- bin.Deselected:connect(function()
- Equip:play()
- for i=0, 1, .1 do wait()
- obj.HandleBackW.C1=CFrame.new(0, -1.5, 0)*CFrame.Angles(-math.rad(90), math.rad(180)*i, 0)
- obj.EdgeTopRW.C1=CFrame.new(0, .5, 0)*CFrame.Angles(math.rad(90)+math.rad(180)*i, 0, math.rad(90))
- obj.EdgeTopR2W.C1=CFrame.new(0, -.4, -.1)*CFrame.Angles(math.rad(90)+math.rad(180)*i, 0, math.rad(90))
- end
- switch2=false using=false for i, v in pairs(attackLabel2:children()) do pcall(function()v:remove()end) end removeParts() end)--mediafire
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement