So I have quite a strange script at the moment. A player inputs their groupID and then that groupID is then sorta "bound" to the user with the following code:
function GroupStorage.setSelectedGroupId(playerUserId, groupId)
playerGroupData[playerUserId] = groupId
end
However, whenever I try and return this information to a different script with the following function, it seems to output "nil" instead of the "updated/bound" information (that being the groupID) and idk why:
function GroupStorage.getSelectedGroupId(playerUserId)
return playerGroupData[playerUserId] or nil
end
So I was wondering if there was a way for me to kinda read this information while I test my game to see if the information is being correctly bound to the data or not. Sorry if I am being a bit nonsensical- I am quite noobish. I'll be happy to explain things better.