This has been driving me crazy lately and I can’t find what’s wrong. It’s literally supposed to work but it doesn’t.
Single line of script:
This is happening for some odd reason:
It’s there for Clientside:
Serverside also:
So what could possibly be wrong here? There’s nothing that deletes the Item or something. Before that line of code I am checking if there’s an instance called “Item” in the PlayersItem folder. It detects it. But then it suddendly doesn’t anymore?
What I see though is that if I check the type of the Item, it prints this:
I expect the item to be an instance, right? (I used type() above) But it prints Userdata instead?
As @DoorsPro_Bacon and @BeneBDev mentioned try using waitforchild() for the instance Item as the folder is being created on the character which may take longer and you forgot to parent Item using item.Parent.