Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

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

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

✓ Accepted answer

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.

This discussion is preserved as it was. New answers, comments, and votes are closed.