Is there a way to equip a tool give a tool and equip when press the number 1 in the keyboard? i dont want try this and dont work, and i dont know too much about KeyDown function, so i dont waste my time trying, is there a way to do this?
now i know that i need use this script as base:
function onKeyPress(actionName, userInputState, inputObject)
if userInputState == Enum.UserInputState.Begin then
print("R was pressed")
end
end
game.ContextActionService:BindAction("keyPress", onKeyPress, false, Enum.KeyCode.R)
but where i put this? in staterplayerscript? in a personalscript?

3 comments
That's confusing. If possible, could you elaborate? Other than that, I can only help you with this: http://wiki.roblox.com/index.php?title=Keyboard_input
Please elaborate more on this question. Give some background information, and please post any code snippits you have.
reset, that was what i was looking for, thx ^^