Here is what im trying to do. I have a Gui that pops up when someone sits in a seat, in that Gui I have a Text box. When someone type into that text box I have a script that changes the text in a TextLabel. Im trying to make it so that the text this "Player" has typed will save so that if a new server opens another player can see what the player typed in the other server along with the people in the persons who typed it serer.
The script will run and print the things but it doesnt save the text.
DataStore = game:GetService("DataStoreService")
02
ds1 = DataStore:GetDataStore("WordLog")
03
NewWords = game.StarterGui.Value
04
Gui = game.StarterGui.Computer.Frame.TextLabel.Text
05
Data = game.StarterGui.Data.Value
06
07
08
Gui = ds1:GetAsync(Data) or "0"
09
ds1:SetAsync(game.StarterGui.Computer.Frame.TextLabel.Text,Data)
10
NewWords.Changed:connect(function()
11
print("Saving Data")
12
ds1:SetAsync(game.StarterGui.Computer.Frame.TextLabel.Text,Data)
13
print("DataSaved")
14
end)

1 comment
please help