How would I create a function where 3% of transactions gets sent to an address I assign?

Hey, welcome!

Just like abcoathup mentioned before:

If you create a fee on transfer or deflationary token (burn a percentage on transfer) 
this can cause issues with use in other contracts such as: 

Also I recommend looking at Points to consider when creating a fungible token (ERC20, ERC777)