You can write your topic however you want, but you need to answer these questions:
What do you want to achieve? Keep it simple and clear!
I’m making a global matchmaking system, and to actually teleport players, I’d need to get the player instances.
What is the issue? Include screenshots / videos if possible!
The issue is that the documentation of GetPlayerByUserId specifically does not allow this as it only uses a simple loop script for this function. Testing also proves that it doesn’t work, as it returns nil for getting player objects in different servers.
What solutions have you tried so far? Did you look for solutions on the Developer Hub?
I’ve tried to look at devforum solutions, their mainly just people saying, “I didn’t need a player instance for this, thank you.”
After that, you should include more details if you have any. Try to make your topic as descriptive as possible, so that it’s easier for people to help you!
Keep in mind that I’m not really looking for pre-set modules, I’m looking for ideas so I can achieve this by myself.
Please do not ask people to write entire scripts or design entire systems for you. If you can’t answer the three questions above, you should probably pick a different category.
I’m currently using MessagingService for my Matchmaking system, the problem is that when you turn a UserId to a player and that player is not in the current server, it returns nil.
You don’t know what I mean. I need to turn it into a player for TeleportService. Using an if statement doesn’t matter because like @IAmBanFor_Devforum said, it’s impossible. I’m looking for other functions or other methods that can achieve what I’m asking, Eg: Function that teleports player’s to a different game without Player instance array.