of     1   

cxuu
#227269920Monday, November 06, 2017 3:35 AM GMT

So I have a Data Store: playerMessages1 = DataStoreService:GetDataStore("playerMessages1") And it saves messages player's leave in this format: playerMessages1:SetAsync(plr.Name,message) Now, my question is how can I get all of the messages saved in the Data-Store so I can display them on a Gui showing the messages besides the player who sent them?
cxuu
#227272214Monday, November 06, 2017 5:02 AM GMT

Could someone please help me with this?
spinywind
#227273179Monday, November 06, 2017 5:44 AM GMT

Your getting the wrong idea. You can save data as a table, string, or number. SetAsync(Key, DataBeingSaved) Key = Anything you want it to be DataBeingSaved = {}, "", #
cxuu
#227273296Monday, November 06, 2017 5:50 AM GMT

@spinywind Thanks for the clarification, but how can I achieve what I want to do then? All players have saved data of a message, how can I allow the server to pull all of their data at once and store it on a message board?
spinywind
#227273328Monday, November 06, 2017 5:51 AM GMT

You need to elaborate more, I dont really understand what your going for here.
cxuu
#227273372Monday, November 06, 2017 5:53 AM GMT

Okay imagine it like this; Each individual player has a Gui with a TextBox and a Button, they type text into the text box, press the button and that data is saved. I then want a global noticeboard for example, showing all of the messages players have sent (globally across all servers) Example of what the notice board would look like: Player1: "Hello" Player2: "Random text here" Player3: "What is this!?!?"
spinywind
#228408381Monday, December 04, 2017 12:38 AM GMT

You would need to send the info to the server using a remove event and do something like this: game.ReplicatedStorage.SaveText.OnServerEvent:Connect(function(Player, Text) DataStore:SetAsync(Player.UserId, Text) end);

    of     1