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
Closed as Not Constructive by User#2
This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.
Why was this question closed?