Rights and obligations of the robot

Sophia is a social humanoid robot that got citizenship In Saudi Arabia. Related to citizenship rights and obligations.

Can robots have rights? In order for someone to have a right, someone else must have a responsibility to guarantee them.

If the robot is in a situation where its operation causes harm to a human being, who should be responsible for what happened? Think and justify.