#HELP!!! PlayerStore, DataStore

1 messages · Page 1 of 1 (latest)

velvet remnant
#

Can anyone help me with using PlayerStore with DataStore to save player data like health, level, xp, gold. I tried finding videos but none are clear on how they work and why, they just tell you "write this oh wow it works" if your willing to vc and help me that would be an even bigger help.

paper willow
#

It store data

velvet remnant
#

well nah

safe oasis
#

local Datastore = DataStoreService:GetDatastore()

local key = ‘anything’
local data = {coins = 100, gems = 25}

Datastore:SetAsync(key, data)

Remember to use pcall to protect if anything goes wrong

#

I’m on phone so the quatations are weird ik