I’m trying to store Data in a unique location in a Datastore for a Reserved Server, However, the only unique value available at the time of creation is the string that the Reserved Server returns, which had a length of 55 and can’t be used as the key since it exceeds the max 50 characters limit placed on keys in a datastore.
6 Likes
Perhaps you could get around the limit by converting the ReservedServer access code to a higher base (like base 100)?
4 Likes
this is what I’m currently going to do:
local DHS = game:GetService("DataStoreService"):GetDataStore("DumbHack",string.sub(PrivCode,1,40))
DHS:SetAsync(string.sub(PrivCode,41),TT)
Technically using something like high bases would be a better idea, but given probability and such, your way works almost just as well.
Oh, clever – I feel bad I didn’t think of that.