GetAttributes() not returning all attributes

Hi all,

For some unknown reason, GetAttributes does not seem to return all attributes; It returns every attribute except for the “Attacking” attribute (shown in the gif). I’m wondering if anyone has any issues like this?

(The array printed out is literally just done by this repeated over and over again)
image

nearestplayer.Character might be nil

It isn’t; It’s printing out the actual value

image

But it refuses to show the “Attacking” attribute for some reason

Is there any relation to the thing in the video where the attributes are appearing and disappearing?

Oh the attributes are controlled by the player; Pressing M1 sets it to attacking and holding F sets it to blocking etc.

It works with the other attributes too
image
image

So they’re meant to appear and disappear?

Yes, they are; The script above is trying to get the current attributes of the player.

the print() was just meant for me to troubleshoot