Unable to cast instance to int64

Hello, I am making a tool gamepass, but when I check if the player has the gamepass or not it gives me an error sating “Unable to cast instance to int64”
Here is my code:

In the UserOwnsGamepassAsync function, are you using the player? If you are, change it to player.UserId.

Please add your code. As you said you provide.

Just to save everyones time, this is a double-post and has already been solved here:

2 Likes