#How can i add Hotkeys to my ui
1 messages · Page 1 of 1 (latest)
Hey. You can use the UserInputService to get a client's input. You can call the service with this line: local UIS = game:GetService("UserInputService") and use the InputBegan event: UIS.InputBegan:Connect(function(input, gameProcessed)
if gameProcessed then return end --return if the player is chatting
if input.KeyCode == Enum.KeyCode.One then
--Your logic goes here
end
end)
** You are now Level 6! **