Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Is it possible to save values? (For Example: NumberValue, BoolValue, Etc.)

Asked by 7 years ago

Is it possible to save values when they ARE NOT a leaderstat/leaderboard? (For Example: NumberValue, BoolValue, Etc.)

0
i gave an example User#17125 0 — 7y

1 answer

Log in to vote
0
Answered by 7 years ago
Edited 7 years ago

What do you mean by save. If you mean data stores then yes, completely possible.

Value = game.Workspace.StringValue

local DataStoreService = game:GetService("DataStoreService")
local playerExperienceStore = DataStoreService:GetDataStore("PlayerExperience")

pcall(function()
    playerExperienceStore:SetAsync("player_1234", Value.Value)
end)
0
Can you link me to a tutorial or put some script in your answer, please? IfIWasntSoSwag 98 — 7y
0
K, did it User#17125 0 — 7y
0
Thanks IfIWasntSoSwag 98 — 7y
0
Can you explain more how i use it? I don't get what the "player_1234" is for. Also, Does it need to be in a localscript or normal? IfIWasntSoSwag 98 — 7y
0
and what is "PlayerExperience" IfIWasntSoSwag 98 — 7y
Ad

Answer this question