Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Cant make RPG aim properly... [closed]

Asked by 10 years ago
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

0
I think am getting the hang of this :) LokHsuLi 10 — 10y
0
am nearly done fixing the position of the rpg, need to just edit the grip position to the right LokHsuLi 10 — 10y

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?