Hello ive been trying this for a while now. I want to be able to teleport a string value between 2 different places. So if you change what the value says in one place and then teleport to another, it will have the same value. The problem with tutorials is that they all teleport from a serverscript, but i teleport from a local script. Thats why im coming here for help. So please consider that i have looked online for tutorials.
Firstly, you will need to send the string the the server using remote events and functions. Then after it has been sent you can then transfer it to another place to a different server. Lastly, you should then using another remote event or function to send the string to the client.
mmmm. I completely understand this. Never worked with data before.
It’s quite simple once you know what you are trying to do with it. When sending from different places they requires datastore to save the data within Roblox. There are many articles here about remote events and datastore that you can search for and find.
Hiya! You can send data with TeleportService
and receive with GetLocalPlayerTeleportData
.
https://developer.roblox.com/en-us/api-reference/function/TeleportService/GetLocalPlayerTeleportData
https://developer.roblox.com/en-us/api-reference/function/TeleportService/Teleport
Hope this helps. Remember that transfering data using the client is not necessarily safe as mentioned below.
mmm. Not really, doesnt really show me how to add the datastore to the teleporting script and how to set the value in the teleported to place
Transfer the data using those, then on the other server (do a script in starterplayerservices) with the data receiver, and fire it to the server and save to the datastore / whatever you need to do there.
I hate datastore, im sorry, its too hard for me to understand, ive been trying to understand for so long
I recommend watching a tutorial and reading the documentation related to it