How to test with random UserId

Is it even possible? if not what workarounds could there be.

What are you trying to test? If you mean like testing your game via Studio, then no, its not possible to test with random UserIds. Why exactly would you want to test with random UserId’s anyways? I mean testing with the 2 or more player option should be enough to test functionalities that require more then one player.

1 Like

For testing datastores :shallow_pan_of_food:

Perhaps you could edit you datastore script to see how different things are handled, e.g having nil data and seeing how that is handled, etc. But AFAIK, no, you will need people to test it for you.

Put a random key like
:SetAsync(123456789, data)

1 Like

By the way, is the UserId a number or a string?

You should not use a random user ID (if your going to use a fake one, use a negative number) since there is a chance that that user will join.

1 Like

I already decided on adding a line that errors the pcall for datastore if i join, resetting my datastore