1 person found this helpful
Similar questions has been raised on this forum before you can do a quick search should be able to see a few threads on it.
Also you can consult the guide on scripting options and examples:
As always after you build something if you run into issues you can post the error you getting and members on the board can seek to provide recommendation.
An option might be looking at POV locking rather than scripting but again you know your requirements so the belief is you have done your due dillengence
Hope that helps. Good Luck