Plugin work with plugin tab but not on script

i made a plugin its work on plugin tab but when i use it on script its not working properly. i tried to use it with condition tab and its work only problem is its not working properly on script .

So what’s the question? Fix your plugin

i cant find whats wrong with it . when i use it on plugin tab with button its works perfectly . selecting npc and opening it. but when i try it within script its stucking after selecting npc.

even with script command plugin its same :frowning: