Trying to shoot a bullet but it won't take in a Z rotation value

Try just putting another socket in front of the gun. No math needed, just spawn at that socket.