This isn't a solution, just guesses.
I haven't seen a single solution yet. It's all vague and indirect.
If the scripts behave differently in single-player and multiplayer, then there must be a sequence of actions that will work differently in both. All you have to do is find it through trial and error.