✓ Accepted answer
Use UserInputService, it Fires when any Input is received from either the Mouse or Keyboard and more. It provides an argument holding the Input information, which in this case we can place into a Conditional for C. It would look something like this
local UserInputService = game:GetService("UserInputService")
UserInputService.InputBegan:Connect(function(InputObject)
if (InputObject.UserInputType == Enum.UserInputType.Keyboard) then
if (InputObject.KeyCode == Enum.KeyCode.C) then
end
end
end)
Hope this helps, read up on UserInputService as it can be of great use. Remember to accept this answer if it helps!
1 comment
Thank you that works!