Is it possible to figure out which game a user teleported from?

If another dev teleports a user to my game, is there a way I can find which game that user came from?

Can I use teleport data for this? Is there a way to make it work without the other dev needing to specify teleport data?

7 Likes

You could use Player:GetJoinData for that. Then check for SourcePlaceId

7 Likes
game:GetService("Players").PlayerAdded:Connect(function(Player)
local TeleportData = Player:GetJoinData();
print(TeleportData.SourcePlaceId);
end);
1 Like

Wow thanks. I was afraid the answer was “no”. This is awesome.

6 Likes

Exploiters have been doing this in their “Loading” places for a while.
@sjr04 is GetJoinData different from this TeleportService method?

You can call it from the server

1 Like

What is a “loading” place? I don’t understand the exploit.

3 Likes

I think he meant a backdoor that teleports you to a Loading place.

Anyways, @Blokav that function is called only on the client. That’s the way you retrieve data when you teleport the player in a local script.

I believe it’s where you’re sent to a loop of places pretending it to be “Loading” when in reality it’s just racking up place visits. Could be wrong but I’ve seen it.

A lot of recent lua viruses (often hidden inside free models or plugins) send joining users to some “Loading” place that collects data on which game they teleported from, so the exploiter can build a list of places that have the backdoor in them, and know which ones they can go in and do their cheating.

edit: found another thread.

@sjr04 @Quwanterz Thanks for clearing that up for me!

2 Likes