Anyway to change something locally with a plugin

So I have a plugin that I want to lock all the parts in your studio file for a certain thing, now if you are doing a team test I dont want it to lock for them too so is there anyway to just do it for the user of the plugin