February 18, 2021, 1:40am
So I am trying to get a Username from a UserId for a textlabel but when I use the
GetUserIdFromNameAsync service, I just keep getting the error “Unable to cast Instance to int64” and it breaks the script.
I am wondering if anyone can help me.
Can you show the code, it sounds like its getting an instance.
And it’s :GetNameFromUserIdAsync() (From the link), are you sure this is the correct function?
Yes, because you’re probably putting the player argument as Player instance instead of putting the UserId. Can you share the script?
February 18, 2021, 1:52am
Its for a statue that I have in game
You forgot .Value I think.
Try this if the “userid” is a type of Value Instance
February 18, 2021, 1:56am
Yes, I did, thank you.
Well, today’s listen to is double-check your work.