-
What do you want to achieve?
Testing outUserInputService
. -
What is the issue?
Apparently when I run the script, it saysKeycode is not a valid member of InputObject "InputObject" - Client - KeybindScript:6
Here’s the script:
local UserInputService = game:GetService(“UserInputService”)
– Function –
UserInputService.InputBegan:Connect(function(Key)
if Key.Keycode == Enum.KeyCode.A then
print("You pressed A!")
end
end)
-
What solutions have you tried so far?
I tried finding solutions and tutorials but they don’t show how to use Keycode.