I quite know How to detect specific key but However, this one Has to detect any key that player pressed and then convert it into Enum.KeyCode to use with another script.
✓ ANSWER ACCEPTED
How to detect which key that player pressed and convert them into Enum.KeyCode?
1 answer
✓ Accepted answer
game:GetService("UserInputService").InputBegan:Connect(function(key, IsChatting)
if key.KeyCode == Enum.KeyCode.R and not IsChatting then
print("Your pressed "..key) -- Would print "You pressed R"
end
end)
This discussion is preserved as it was. New answers, comments, and votes are closed.

2 comments
Hm... This one is specific key detect, Then... If I use "print(key.KeyCode)" will given result of key that player detect. Did I'm right? However then How to convert it into Enum.KeyCode?
Well forget about this question anyway. Thank you very much...