The question says it all. I want to do this because I want a function on the server script to be activated when a key is pressed. How would I make this possible? This is the method that I tried(this was on the server side script)
function onKeyPress(input)
if input.KeyCode == Enum.KeyCode.R then
Reload()
end
end
game:GetService("UserInputService").InputBegan:connect(onKeyPress)
