before you read this don't throw up at the structure of my script (i'm not that good at organizing my variables)
for context i've made this datastore script a while ago and i've been adding things for the datastore to save over time; saving leaderstats and tools owned didn't cause too many issues but when i tried saving the tool they have equipped many issues arise
the following print statements print:
-# when joining:
line 31 prints normally
line 49 gets printed because its has just been set
-# when leaving:
line 89 prints normally
i think the issue lies in saving the primary (for now i only have the primary) since the value of primary is nil
i'm gonna try sending the code as a message but discord doesn't really like it when i do that and just deletes the message
#Datastore not storing equipped tools
4 messages · Page 1 of 1 (latest)
ToolsEquipped is a folder in ServerStorage that gets added to the player when they join, it contains stringvalues of all weapons they have equipped at the moment
yep discord doesn't like my script for some reason
or the issue might be that the primary hasn't loaded in yet for that person