After many days of suffering, I have realized that I need help, so the problem is: How do I get the exact input from a keyboard?
This includes special characters ($, @ or ~), but it also includes unique language keys: (ß, Ě, Ç, Ŝ, Đ) that cannot be accessed by specific keyboards (not going with chinese or russian keyboards, that for me is impossible)
Solutions I have tried
Using a Textbox which works but this is for a plugin and I prefer not to go that way.
Detect multiple keys with InputBegan to get special characters (doesn’t comply with the languages part, it’s my last bet)
Record the keys (doesn’t comply with the language part either)
It would return which input on the keyboard that was pressed.
for example pressing ال on the arabic language will return H and G. That’s the only way to check special language characters.
Yes but you would to replace the keys in table with enums instead.
game:GetService("UserInputService").InputBegan:Connect(function(Input)
if Input.KeyCode == table.find(keycodes, Input.KeyCode) then
print(true)
end
end)
Or are you talking about a textbox?
game:GetService("UserInputService").InputBegan:Connect(function(Input)
if Input.KeyCode == Enum.KeyCode[Textbox.Text] then
print(true)
end
end)