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
6 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
6 years ago

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

local val1 = player.AValueIdk



local function savePlayerData()
    local stuffToSave = {}
    -- if you have a lot of values, I would recommend a for loop
    table.insert(stuffToSave,val1.Value)
    --save the data here
end
0
thx babe imaski4 42 — 6y
Ad

Answer this question