I am trying to save data from one server to another, but I don't know how I would do such. I was thinking HttpService but I don't know how to do that. I can not give a script but I think you have a pretty good idea of what I want.
How can I access a datastore from one place into another place?
1 answer
Hi! You can accomplish this locally, with TeleportService:GetLocalPlayerTeleportData()
or 2,
player:GetJoinData()
i would do the second. Both return everything in a table that you teleported with. Example:
local data = {game.PlaceId, "Hello world!"}
game.Players.PlayerAdded:Connect(function(player)
game:GetService('TeleportService'):Teleport(gameId, player, data)
end)
in the second option, you would do this:
game.Players.PlayerAdded:Connect(function(player)
local JoinData = player:GetJoinData()
local Data = JoinData.TeleportData
local SourceGameId = JoinData.SourcePlaceId --this gets the game id of the game you were tp'd from.
print(Data[2]) -- would print the second table in "data:, which is "Hello world!")
game:GetService('TeleportService'):Teleport(Data[1], player) -- would redirect back to the game you were teleported from.
end)
you will have to make it match with your game. I hoped this helped!
Edit: Make sure "Third Party Teleports" are enabled in both games, (game settings, security)
3 comments
One reminder: NEVER send important data through teleports, as exploiters have FULL control over what is sent over teleports.
Thank you for this! Can they control what is sent only client sided or server sided as well?
Zamd how would I go about transfering data to a place from the same owner.
This discussion is preserved as it was. New answers, comments, and votes are closed.

1 comment
This is what I would want but how would I get the data from the other place?