Why this script don't save table?

i noticed that if i remove humanoid:UnequipTools() then it will save

As i was wondering Now here is what you can do get a Character Removed event in Your script and do the

there
You can then later just save it in main function

Have you activated the HTTPS Service in Studio? You can try in-game (not studio) if this can help.

This doesnā€™t use HttpService, so HttpEnabled is not relevant.

2 Likes

Using :UnequipTools() is not required and the reason why it errors is because your character is already removed by the time PlayerRemoving fires.

@megatank58 using CharacterRemoved can be hazardous as it fires every time you die. Never do this for anything involving anything but in game death.

This is datastore, and datastore need the https service to be activted.

Nvm, go to: HomeĀ»GameSettingsĀ»Options and enable ā€žEnable Studio Access to API Servicesā€œ

You might want to use pcall() so it finishes the code properly.

1 Like

I know I havenā€™t recommended it here and i have also started itā€™s back effects