PDATA Not Saving

PData resets after a server restarts. Here’s the relevant portion of the code.



--#/lua/autorun/server/
for k, v in pairs(player.GetAll()) do
    v:SetPData("classunlocked", 1)
end


Any ideas?

Does PData work on listen servers? See if the error persists on a dedicated server if you haven’t already.

It is a dedicated server. Not mine, but a client is having issues with some code I sold him.

Currently testing on my server

Edit: Works on my server. Not going to troubleshoot his stuff, if his server is bad there’s nothing I can do to help him.