Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Click key to equip weapon problem, can anyone help?

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

This discussion is preserved as it was. New answers, comments, and votes are closed.