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

How can I save Int and String values that aren't in a leaderboard for a player?

Asked by
imaski4 42
7 years ago

It is in their StarterGui as it is an Inventory system. Can someone help? Thanks.

1 answer

Log in to vote
0
Answered by
theCJarmy7 1293 Moderation Voter
7 years ago

All you have to do is put the values in a table and save them.

01local val1 = player.AValueIdk
02 
03 
04 
05local function savePlayerData()
06    local stuffToSave = {}
07    -- if you have a lot of values, I would recommend a for loop
08    table.insert(stuffToSave,val1.Value)
09    --save the data here
10end
0
thx babe imaski4 42 — 7y
Ad

Answer this question