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

Help with Data store?

Asked by 10 years ago

Can someone help? Is this how u would save a string value for player id 3123 using data stores? and do I have to create a data store first? if so how?

ds = game:GetService("DataStoreService"):GetDataStore("Pokstor")

function onTouched(hit)
    ds:SetAsync("number 1", string, 3123)
    end

script.Parent.Touched:connect(onTouched)

Answer this question