				wait(0.08)

	weld55.C1 = CFrame.new(-0.35, 0.7, 0.7) * CFrame.fromEulerAnglesXYZ(math.rad(275), 0.25, math.rad(-90))
	weld33.C1 = CFrame.new(-0.75, 0.5, 0.35) * CFrame.fromEulerAnglesXYZ(math.rad(-70), math.rad(-15),0)
				wait(0.08)
	weld55.C1 = CFrame.new(-0.35, 0.8, 0.7) * CFrame.fromEulerAnglesXYZ(math.rad(275), 0.15, math.rad(-90))
	Tool.BAR1.Mesh.Offset = Vector3.new(-0.1, 0, -0.2)
	Tool.BAR2.Mesh.Offset = Vector3.new(-0.1, 0, -0.2)
	Tool.BAR3.Mesh.Offset = Vector3.new(-0.1, 0, -0.2)
	Tool.BAR4.Mesh.Offset = Vector3.new(-0.1, 0, -0.2)
	Tool.BAR5.Mesh.Offset = Vector3.new(-0.1, 0, -0.2)
	Tool.BAR6.Mesh.Offset = Vector3.new(-0.1, 0, -0.2)
	Tool.BARCenter.Mesh.Offset = Vector3.new(-0.1, 0, -0.2)
	Tool.BARCenter2.Mesh.Offset = Vector3.new(-0.1, 0, -0.2)
				wait(0.08)
	Tool.BAR1.Mesh.Offset = Vector3.new(-0.0, 0, -0.)
	Tool.BAR2.Mesh.Offset = Vector3.new(-0., 0, -0.)
	Tool.BAR3.Mesh.Offset = Vector3.new(-0., 0, -0.)
	Tool.BAR4.Mesh.Offset = Vector3.new(-0., 0, -0.)
	Tool.BAR5.Mesh.Offset = Vector3.new(-0., 0, -0.)
	Tool.BAR6.Mesh.Offset = Vector3.new(-0., 0, -0.)
	Tool.BARCenter.Mesh.Offset = Vector3.new(-0., 0, -0.)
	Tool.BARCenter2.Mesh.Offset = Vector3.new(-0., 0, -0.)
				wait(0.1)
	weld55.C1 = CFrame.new(-0.35, 0.8, 0.6) * CFrame.fromEulerAnglesXYZ(math.rad(275), 0.15, math.rad(-90))
				wait(0.08)
	weld55.C1 = CFrame.new(-0.35, 0.7, 0.6) * CFrame.fromEulerAnglesXYZ(math.rad(280), 0.1, math.rad(-90))
				wait(0.08)
	Tool.Reload:play()
	weld55.C1 = CFrame.new(-0.35, 0.5, 0.6) * CFrame.fromEulerAnglesXYZ(math.rad(285), 0.05, math.rad(-90))
				wait(0.08)
	weld33.C1 = CFrame.new(-0.75, 0.5, 0.35) * CFrame.fromEulerAnglesXYZ(math.rad(-80), math.rad(-15),0)
				wait(0.08)
	weld33.C1 = CFrame.new(-0.75, 0.5, 0.35) * CFrame.fromEulerAnglesXYZ(math.rad(-90), math.rad(-15),0)
	weld55.C1 = CFrame.new(-0.35, 0.5, 0.6) * CFrame.fromEulerAnglesXYZ(math.rad(290), 0, math.rad(-90))

--bullets all in! =D
				script.Amo.Value = 6 -- amount of ammunition that can be discharged before reloading
				m.Text = "Ammo /"..script.Amo.Value


			end
		end
	end
end



function unequip1()
	print("Unequipped")
	if game.Players.LocalPlayer ~= nil then
		print("localplayer found")
		local m = game.Players.LocalPlayer:FindFirstChild("Message")
		if m ~= nil then
			m:remove()
		end
	end
end



Tool.Enabled = true

function onActivated()



	if not Tool.Enabled then

		return

	end



	Tool.Enabled = false

	local character = Tool.Parent;

	local humanoid = character.Humanoid

	if humanoid == nil then

		print("Humanoid not found")

		return 

	end



	local targetPos = humanoid.TargetPoint

	local lookAt = (targetPos - character.Head.Position).unit



	fire(lookAt)



	wait(.01)



	Tool.Enabled = true

end





script.Parent.Activated:connect(onActivated)
Tool.Equipped:connect(Equip)
Tool.Unequipped:connect(Unequip)
script.Parent.Equipped:connect(equip1)
script.Parent.Unequipped:connect(unequip1)


