Transferring of Instances between different places and servers

Hey guys,
So for the past few days I’ve been attempting to create a portal system which transports you to a different place and transfers your inventory and other player data with you. I have most the systems finished. However, I’ve hit a snag.

My first thoughts for the transferring of the player’s inventory, was to send it through messaging service (more secure than teleport data), though I hit one main issue: You can only send strings as messages. So I used serialization to transfer the team, but I can’t serialize the tools due to them having scripts.

Another idea I had was to simply use IDs for the different tools and have a copy in server storage at the destination, but this would require the constant transferring of new tools into the new place. This same system could be used for any vehicles the player is driving.

So I come here to ask for input, is there any other way I could transfer the tools and vehicles the player has? Or do I just have to manually add them all to the place.

Thanks in advance,
CanineData

Use TeleportService, there are many methods that allow to send and receive data between places when teleporting.

All the methods TeleportService offers for this are client sided and thus can’t be trusted. In addition to this, I’m fairly sure instances can’t be sent through it.

There’s no way to send instances unless you serialize them into a string format, but this wouldn’t work because you mentioned they require scripts to function.

I’d suggest having the tools/vehicles available in the place(s) the player is going to teleport to and then cloning it from ServerStorage based on an ID.

You might be able to use packages to keep everything synchronized:

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.