Hello. There is no failing Code that I could show here. That is because I want to know how write a specific set of code. What I am trying to do: I am making a keycard door that is basically looking in the entire backpack of the LocalPlayer for the highest Keycard.
I don't want to go into detail because I just want some simple help how I could write this Code. I have 6 Keycards, and a few other Tools. The Door is supposed to check the entire Backpack for the highest Keycard it can find and then act on that. The Function is activated upon a proximity prompt being triggered, but that shouldn't change anything.
How would I write that code?