I have an NPC that is it’s own actor (the NPC character model is a child of an Actor instance). I’m getting an error in the library that the controller script includes which says that “Function PVInstance.PivotTo is not safe to call in parallel”. Is there a way to disable this since I can guarantee that nothing else is accessing this? Or is there some other reason as to why this isn’t parallel safe?
An error message stating that “The PVInstance.PivotTo function is not safe to call in parallel” indicates that this particular function in Roblox Studio is not designed to be called by multiple threads or instances simultaneously. This is a precautionary measure to avoid potential synchronization and resource access issues.
If you are sure that in your case there is no risk of conflicts and parallel access, but you still want to disable this control, you can use some techniques to bypass this warning. However, it is always advisable to be cautious, as this can lead to instability and difficulties in debugging games in the future.
I am well aware of the risks. As I said, I can guarantee that nothing else will be accessing the object’s properties. So what are these techniques that you mentioned?
You ever figure out how to change those properties in parallel?
Nope.
task.synchronize()
and task.desynchronize()
so far are the best options.