How to make client own a script

I have an object/prefab which has a script attached. The object gets spawned by the server and is thus owned by the server.

I want to make the script which is attached to the object owned by the client but have yet to succeed. How can I go about doing this?

So, just to be clear.
prefab = server owned
prefab.script = client owned

have a var owner and just fill it with the player name or something like that? and then check it before executing other code

I forgot to add that I already tried that and couldn’t get it to work as it says .owner is read only.

Anyone?
I thought it be as simple as changing the .owner to the name of the client but I can’t seem to do anything with it cause it says it’s read only.