Error getting text placed in a text box (nil output)

Hi! Im making a system in which users could type in their gamepass ID and my game will find it, thats not the point, the point is, when I try to print the text, its nil. Im not sure why!



1 Like

Your issue is that you put

Enum.InfoType.Product

--When it should be this
Enum.InfoType.Gamepass -- Because you are finding a GamepassID, NOT a developer product!

Hope I helped somewhat! :slight_smile:

1 Like

Let me try it really quick! I will get back to you.

Are you getting the value with a Local Script?

A Server Script will ignore any input by the client.

1 Like

Im sure this would work, it may have fixed a future issue lol ty, but it still returns nill from the text.

Im am accessing this via server script.

You need to send the posid through a RemoteEvent to the Server Script.

Okay! Let me try this really quick.

I got the info fine though. Just make sure the “gamepassid” is in quotations. Also, yes you should send the posid through remotes.
image
(I got the info fine on both client and server side.)

That is certainly weird! but did you obtain the ID through the textbox?

THANK YOU SO MUCH!!!

abcdefghi

No, but i think it doesn’t really matter now that im looking at it. but im glad u found a solution

Thanks! It matters because the server script can’t detect changes made from the client. I did not know that until know! ty for your help though, as a future error would’ve occurred if it weren’t for you!