-
What do you want to achieve?
I want to create a DataStore using DataStore2. -
What is the issue?
When creating the DataStore, it returns the error “DataStore name too long.” -
What solutions have you tried so far?
Changing the length of the mainKey when combining with another string.
The length of the main key is 4 characters and the string I’m combining with is 11.
local success, errormessage = pcall(function()
print("I changed the userdata datastore name.")
UserData = dataStore2("UserData", player):Get(setDataTable())
end)
if success then
print("Successfully got UserData table.")
else
warn("Error while getting UserData table: "..errormessage)
end