I started scripting and learning a month or two ago, and I have come across an issue.
Why does this script not work? I believe it is all correct, and I found a bug by myself and fixed it.
UserInputService = game:GetService("UserInputService")
UserInputService.InputBegann:Connect(function(input,gameProccesedEvent)
if input.KeyCode == Enum.KeyCode.R then
warn("R was pressed")
end
end)