#Help my game plss

1 messages · Page 1 of 1 (latest)

opal stirrup
#

How to save your stats when you quit the game and come back to the game

sleek agate
#

Use "DataStoreService"

opal stirrup
lofty ferryBOT
#

studio** You are now Level 1! **studio

sleek agate
# opal stirrup What is it

local DataStoreService = game:GetService("DataStoreService")
it store data for your game

Player_Data = DataStoreService:GetDataStore("Player_Data")
this is for the name of dataset.

GetAsync(key)
this is to get the data

SetAsync(key, newdata)
this is to save new data

Player_Data:GetAsync(Key) --Key == "string"
you can name the key. like player name or player userid or both combine

Player_Data:SetAsync(key, newdata) --Key == "string" | newdata == "anything"

snow basin
# opal stirrup How to save your stats when you quit the game and come back to the game

Managing player data on Roblox usually means combining ProfileService for saving/loading, Replica for replication, and custom signals for change detection. DataService handles all of this in an extremely easy to use way.

Roblox Creator Store: https://create.roblox.com/store/asset/81002536597861/DataService
Wally: DataService = "leifstout/datase...

▶ Play video
magic parrot
snow basin