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

Click key to equip weapon problem, can anyone help?

Asked by
Akozta 40
9 years ago

So I have a hard time with coding, like I know the words, I just don't know the structure. If someone could help me structure this better I would appreciate it.

script.Parent.Selected:connect(function(k)
        m.KeyDown:connect(function(k)
                print(k)
                        if k=="q" then
local tool=script.parent
tool.Equipped:connect(function(KeyDown)
m.KeyDown:connect(function(k)     
end)
end)
end)
end)
script.Parent.Selected:connect(function() 
end)

1 answer

Log in to vote
0
Answered by
xuefei123 214 Moderation Voter
9 years ago

What is the local user?

Ad

Answer this question