I am trying to create a thing for a gun and you are supposed to press r to reload but when an input has been given, it sees it as "InputObject" Here is the local script:
local service = game:GetService("UserInputService") service.InputBegan:Connect(function(key) if key == Enum.KeyCode.R then game.Players.LocalPlayer.Character:FindFirstChildOfClass("Tool").Reload:FireServer() end end)