local Tool = script.Parent
wut = Tool.Parent

function onEquipped(mouse2)
	mouse2.KeyDown:connect(onkeyDown)
	mouse = mouse2
end
function onkeyDown(key) 
	if key == "z" then
	if not a then 
		Tool.Recoil.Value = 5
		Tool.Aim.Value = 0.1
		Tool.ZoomedIn.Value = true
		Tool.Parent.Humanoid.WalkSpeed = 7
		a=true
		Tool.GripPos = Vector3.new(0, 0.1, 0)
	wait(0.07)
		Tool.GripPos = Vector3.new(0.2,-0.,0)
	wait(0.07)
		Tool.GripPos = Vector3.new(0.4,-0.14,0)
	wait(0.07)
		Tool.GripPos = Vector3.new(0.6,-0.36,0)
	else
		Tool.ZoomedIn.Value = false
		Tool.Recoil.Value = 7.5
		Tool.Aim.Value = 25
		Tool.Parent.Humanoid.WalkSpeed = 10
		a=false
		Tool.GripPos = Vector3.new(0.6,-0.36,0)
	wait(0.07)
		Tool.GripPos = Vector3.new(0.4,-0.14,0)
	wait(0.07)
		Tool.GripPos = Vector3.new(0.2,-0.,0)
	wait(0.07)
		Tool.GripPos = Vector3.new(0, 0.1, 0)
	end
end 
end




script.Parent.Equipped:connect(onEquipped)

my aim is on left of the rpg, not the middle... and plus, it doesnt zoom wen I press z

2 comments

0

I think am getting the hang of this :)

0

am nearly done fixing the position of the rpg, need to just edit the grip position to the right