[Solved] Get a field of a document, not working,

I have a clicker game and I am making a way to switch between a local and online save, i am using Firebase cloud Firestore database, I am having a problem with “get a field of a document”
it is not writing data to a variable,
here are my current rules to show that I don’t think it is a problem with my rules (these rules should allow anything to happen, I have tried multiple methods, and everything works but not setting the variable, the variable that tells me the status says “ok”)

current rules (v2)
rules_version = '2';
service cloud.firestore {
  match /databases/{database}/documents {
    match /game/{document=**} {
      allow read, write: if request.time > timestamp.date(2023, 1, 1);
      allow create: if request.time > timestamp.date(2023, 1, 1);
      allow update, delete: if request.time > timestamp.date(2023, 1, 1);
      allow write: if request.time > timestamp.date(2023, 1, 1);
    }
  }
}
old rules (v1)
rules_version = '2';
service cloud.firestore {
  match /databases/{database}/documents {
    match /{document=**} {
      allow create, update, delete, read, write: if
          request.time > timestamp.date(2023, 1, 1);
    }
  }
}

if this is not wrong and I’m just an idiot and its not configured properly let me know and ill try that. (the rules should be allowing ANY reading or writing to happen)
here is also the database and configuration of the Get a field of a document block

images


i changed the fields name to “RedactedEmail” for privacy but it is the one that is used to login

Check the value of loadstate to know for sure if it is your rules (in which case it would be “error”) or if it’s something with your events.

In this example, I am trying to get the variable from “test” document, when I press load it should get the variable which is set to “420” (yes I know childish) This was recorded as a screen recording to make it easier on me lol cant here so it is linked to another page

edit forgot to add the image of the database for extra info ig

image

Firebase::GetUserEmail() does not seem to be set to the field you are trying to get (or to anything at all). Make sure you are authenticating the user before trying to get the authenticated users email ;p

well i do authentacate the user, Firebase::GetUserUID() is working for it so I guess that’s just broken, thanks for the help