local replicatedStorage = game:GetService("ReplicatedStorage") local generalAbilityEvent = replicatedStorage:WaitForChild("GeneralAbility") local userInputService = game:GetService("UserInputService") userInputService.InputBegan:Connect(function(input, gameProcessedEvent) if gameProcessedEvent then return end -- ignore keys that are already being used by Roblox if input.KeyCode == Enum.KeyCode.R then generalAbilityEvent:FireServer() end end)