ak47 = Instance.new("Tool") ak47.Parent = game.Players.meunumbertwo.Backpack ak47.GripPos = Vector3.new(-0,-0.10000000149012,0.69999998807907) ak47.Grip = CFrame.new(-0,-0.10000000149012,0.69999998807907) * CFrame.Angles(-9.9999997171807e-010, -1.0000000133514e-010, 1.0000912714276e-015) ak47.GripForward = Vector3.new(1.0000000133514e-010,-9.9999997171807e-010,-1) ak47.Name = "AK47" ak47.GripRight = Vector3.new(1,1.0001912213153e-015,1.0000000133514e-010) ak47.GripUp = Vector3.new(-1.0000912714276e-015,1,-9.9999997171807e-010) handle = Instance.new("Part",ak47) handle.FormFactor = Enum.FormFactor.Plate handle.TopSurface = Enum.SurfaceType.Smooth handle.Size = Vector3.new(1,2,5) handle.Name = "Handle" handle.CFrame = CFrame.new(-25.213916778564,0.48495537042618,-61.464176177979) * CFrame.Angles(-0.024566793814301, -1.4979313611984, 1.5458176136017) handle.BrickColor = BrickColor.new("Black") handle.Friction = 0.30000001192093 handle.BottomSurface = Enum.SurfaceType.Smooth mesh = Instance.new("SpecialMesh",handle) mesh.Scale = Vector3.new(2,1.5,1.5) mesh.MeshId = "http://www.roblox.com/asset/?id=3824749" mesh.TextureId = "http://www.roblox.com/asset/?id=3824746" mesh.VertexColor = Vector3.new(0.40000000596046,0.40000000596046,0.40000000596046) mesh.MeshType = Enum.MeshType.FileMesh Tool = ak47; local arms = nil local torso = nil local welds = {} function Equip(mouse) wait(0.01) arms = {Tool.Parent:FindFirstChild("Left Arm"), Tool.Parent:FindFirstChild("Right Arm")} torso = Tool.Parent:FindFirstChild("Torso") if arms ~= nil and torso ~= nil then local sh = {torso:FindFirstChild("Left Shoulder"), torso:FindFirstChild("Right Shoulder")} if sh ~= nil then local yes = true if yes then yes = false sh[1].Part1 = nil sh[2].Part1 = nil local weld1 = Instance.new("Weld") weld1.Part0 = torso weld1.Parent = torso weld1.Part1 = arms[1] weld1.C1 = CFrame.new(-0.249, 1.35, 0.6) * CFrame.fromEulerAnglesXYZ(math.rad(290), 0, math.rad(-90)) welds[1] = weld1 local weld2 = Instance.new("Weld") weld2.Part0 = torso weld2.Parent = torso weld2.Part1 = arms[2] weld2.C1 = CFrame.new(-1, -0.2, 0.35) * CFrame.fromEulerAnglesXYZ(math.rad(-90), math.rad(-15), 0) welds[2] = weld2 end else print("sh") end else print("arms") end end function Unequip(mouse) if arms ~= nil and torso ~= nil then local sh = {torso:FindFirstChild("Left Shoulder"), torso:FindFirstChild("Right Shoulder")} if sh ~= nil then local yes = true if yes then yes = false sh[1].Part1 = arms[1] sh[2].Part1 = arms[2] welds[1].Parent = nil welds[2].Parent = nil end else print("sh") end else print("arms") end end Tool.Equipped:connect(Equip) Tool.Unequipped:connect(Unequip) local Tool = ak47; enabled = true function onButton1Down(mouse) if not enabled then return end enabled = true mouse.Icon = "rbxasset://textures\\GunCursor.png" --wait(.5) --mouse.Icon = "rbxasset://textures\\GunCursor.png" --enabled = true --mouse.Button1Up:connect(function() onButton1Up(mouse) end) end function onButton1Up(mouse) enabled = false Tool.Enabled = false mouse.Icon = "rbxasset://textures\\GunWaitCursor.png" wait(1) mouse.Icon = "rbxasset://textures\\GunCursor.png" enabled = true Tool.Enabled = true end function onEquippedLocal(mouse) if mouse == nil then print("Mouse not found") return end mouse.Icon = "rbxasset://textures\\GunCursor.png" mouse.Button1Down:connect(function() onButton1Down(mouse) end) mouse.Button1Up:connect(function() onButton1Up(mouse)end) end Tool.Equipped:connect(onEquippedLocal)