Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How can i transfer data from different game places?

Asked by
NexeusX 137
7 years ago

So lets say i make a "teleport pad" and it makes itself a random color, the teleport pad **creates a new place**, and then teleport's the player to that game place, but i want the color **of the teleport pad** in the new 'place' to be the same as the original? How could i do this?

1 answer

Log in to vote
0
Answered by 7 years ago

Check out TeleportService. While teleporting someone, you can attach data to the player you're teleporting and receive it in the new place.

Alternatively, you might try saving the information in a DataStore. Use a key with the same name as the new server's job-id (as returned by ReserveServer or whatever function you used to create the new place.)

0
DataStores are a good way to go. xXLegendarySoldierXx 129 — 7y
Ad

Answer this question