#How to make Tools save/load on join and persist on death?

1 messages · Page 1 of 1 (latest)

thin comet
#

I tried everything, to do it myself, chatGPT, Youtube videos.

What I basically want that your tools save/load on join, and when you die you still keep them

My issues were

1- it either didnt save/load at all
2- When I died whilst holding a tool I lost that tool/or somehow it wiped the whole inventory
3- When you left while holding a tool its also lost.
4- Duplication issues
5- There is a Starterpack with 2 tool and those were sometimes duplicated too
6- When a consumable too was used up, then you died you still had the tools that you used up e.g Medkit

opaque lily
#

Do you have any of those attempts? Non-AI attempts of course

thin comet
#

No since I published the game a few times to test it live

celest trench
haughty robin
#

You can put the tools inside the player in startergear so they persist on death and save / load them using datastore

weary bough
#

For duplication, you'll have to code the logic yourself. You can keep a cap (max number of similar items) or just unique items, and check if the backpack or character has more than 1 tool

thin comet
weary bough
#

Yes?

chilly ember
#

So you mean that when a player leaves, their tools save, so like a saving and loading system? Look at a datastore tutorial on how to save inventory

#

Also fyi your account needs to be verified for datastores to work outside of studio

weary bough
#

I thought you only needed the 'allow access to api'

celest trench