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

How can I save PlayerGui with DataStore or else?

Asked by 4 years ago

Im trying for 8 hours can someone help me. How can i save PlayerGui with DataStore?

1 answer

Log in to vote
0
Answered by 4 years ago

In order to save Instances (objects/things in Roblox) to a DataStore, you need to serialize them. This means that you cannot just save the object, you have to put all of the object's important properties (position, size, color) into a dictionary, turn that dictionary into a JSON, and then save it to the DataStore.

If you need more help understanding what this means, let me know.

0
How will it load when player joins? I mean how i can change it to gui again? CrazyeeJ_TR 2 — 4y
0
You would have to take all of the information you stored about the GUI, and use it to construct a new GUI. IStarConquestI 414 — 4y
Ad

Answer this question