How can I make the instrument pick up when I press the E button (on the keyboard)?
COMMUNITY QUESTION
Tool, keystroke! Help, please! How to do it?lllllllllll
2 answers
local UserInputService = game:GetService("UserInputService")
UserInputService.InputBegan:Connect(function(input)
if input.KeyCode == Enum.KeyCode .E then
--Here the behavior of the tool
end
end)
This discussion is preserved as it was. New answers, comments, and votes are closed.

2 comments
UserInputService
use InputBegan from UserInputService