Recently i started to research more about the ProfileService module and I’ve recently ran into an error. I can’t seem to get info that should be stored in the profile even though it prints it out in the output ( as seen below ). I might be stupid but i cant really think of any reason why this could happen
Here’s the code that should get data from a profile
function pdh:Get(plr: Player, key: string) : {}
local profile = getProfile(plr)
print(profile.Data)
assert(profile.Data[key], string.format("Data does not exist for key %s", key))
return profile.Data[key]
end
( value exists in the default data table but cant be found??? )