Script deletes all code when Duplicated or Pasted

Hi there! Now I have been wanting to create some NPCs for my game. The only problem is that when I duplicate an NPC (or really any script) all the code in it gets deleted and goes to default
print(“Hello World!”)

I am very sorry if I am in the wrong category. If I am, I would like to know what category this should be in

Maybe you need to commit it in drafts? Sometimes that happens to me too but it usually fixes when I commit it

1 Like