I dont know why but the crouch works with both left control and command button on macs, anyone know how to fix this?
game:GetService("UserInputService").InputBegan:Connect(function(input, isProcessed)
if input.KeyCode == Enum.KeyCode.LeftControl and not isProcessed then
startCrouch()
end
end)
-- Connect the InputEnded event
game:GetService("UserInputService").InputEnded:Connect(function(input, isProcessed)
if input.KeyCode == Enum.KeyCode.LeftControl and not isProcessed then
stopCrouch()
end
end)