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

How do you save a data with DataStore service when you press on a GUI Button?

Asked by 4 years ago
Edited 4 years ago

Hello,

I would like to know how to save Data with the DataStore service when pressing a button in a GUI? Please help, thanks.

This might help:

Explorer

1 answer

Log in to vote
0
Answered by 4 years ago

You can always use remote events to detect what player fired it and have it save the players data from the GUI, simply connect the button to a remote event and in the event script have it store the players data.

Here is some extra information that may help you. Have fun scripting

Remote Function and Events for the button

Datastore to store the players data which you can always use in the button too

Have the event fire towards you datastore inside the serverscriptstorage folder, you can fire it from whatever button your using. Sorry for being so bland with the information, that is simply because I usualy rarely have time to script anything for people, and I simply want people to learn to script on there own and understand. Hope you understand the top information, if you got any questions Im usualy active on Discord, (SergioMontani10#8810) I dont accept freind request but do have my messages set to everyone. Anyways, good luck on your datastore working, have fun.

Ad

Answer this question