|
| 17 May 2017 10:25 PM |
| How can I data save what's in a text label? Like.. a text box's changes a textlabel and I want that text label to datasave. Any ideas? |
|
|
| Report Abuse |
|
|
| |
|
A1_exe
|
  |
| Joined: 07 Aug 2013 |
| Total Posts: 716 |
|
|
| 17 May 2017 11:47 PM |
Will there be intervals? You need to have intervals. I'd suggest saving the text when the player leaves and on intervals while they are in the server.
Send the text to the server to be saved and load it on join and send it to the client to be displayed.
|
|
|
| Report Abuse |
|
|
| |
|
|
| 18 May 2017 07:42 AM |
| Hey i actually need this too so please help |
|
|
| Report Abuse |
|
|
| |
|
|
| 18 May 2017 08:53 AM |
pls join in teh place: https://www.roblox.com/games/797145620/Roblox-Scripting?rbxp=47044491
'DataStores :P |
|
|
| Report Abuse |
|
|
| |
|
|
| 18 May 2017 09:01 AM |
| hehe naw ur name is saved in a DataStore there naw :PPppPp |
|
|
| Report Abuse |
|
|
|
| 18 May 2017 09:02 AM |
That doesn't tell me how I could datastore textlabels
|
|
|
| Report Abuse |
|
|
A1_exe
|
  |
| Joined: 07 Aug 2013 |
| Total Posts: 716 |
|
|
| 18 May 2017 09:19 AM |
You can't save an instance... Although, you can save information for the instance.
|
|
|
| Report Abuse |
|
|
| |
|
|
| 18 May 2017 09:44 AM |
| u can put TABLEz,STRINGz and NUMBERz in a DATASTORE,but not USERDATAz :P |
|
|
| Report Abuse |
|
|
|
| 18 May 2017 09:46 AM |
'
print(type(Workspace.Baseplate)) |
|
|
| Report Abuse |
|
|
|
| 18 May 2017 09:47 AM |
Can someone actually help with this?
|
|
|
| Report Abuse |
|
|
AIicks
|
  |
| Joined: 10 Apr 2012 |
| Total Posts: 788 |
|
|
| 18 May 2017 09:49 AM |
"Can someone actually help with this?" lol
mate... just... mate... duuude... Are you serious.
You can't save an objects. You can save properties about the object to then load up a new object and apply the saved properties next time you want to load it up. |
|
|
| Report Abuse |
|
|
|
| 18 May 2017 09:58 AM |
So what you are say is... Im screwed and I have to make a table for every letter.
|
|
|
| Report Abuse |
|
|
CWRA0444
|
  |
| Joined: 14 Jan 2010 |
| Total Posts: 6013 |
|
|
| 18 May 2017 10:21 AM |
no. Save the string that is the text, and then everytime the player loads in, set the text labels text to that saved string value
|
|
|
| Report Abuse |
|
|
CWRA0444
|
  |
| Joined: 14 Jan 2010 |
| Total Posts: 6013 |
|
|
| 18 May 2017 10:22 AM |
If you can't wrangle with DataStores that's your own problem.
|
|
|
| Report Abuse |
|
|
|
| 18 May 2017 10:28 AM |
--[[SAVE TEXTLABEL'S TEXT!--cmds: TLloadtext(tehDS,@TextLabel@,@key@) & TLsavetext(tehDS,@TextLabel@,@key@) ! ]]tehDS=Game:service'DataStoreService':GetDataStore'textlabel#1';function TLloadtext(ds,tl,n)tl.Text=ds:GetAsync(n)end;function TLsavetext(ds,tl,n)ds:SetAsync(n,tl.Text)end;-- --EXAMPLE: mytextlabel=game.Players.Noob123.ScreenGui.TextLabel mytextlabel.Text="bye" TLsavetext(tehDS,mytextlabel,1) mytextlabel.Text="hi" TLsavetext(tehDS,mytextlabel,2) mytextlabel.Text='test' TLsavetext(tehDS,mytextlabel,44) wait(2) TLloadtext(tehDS,mytextlabel,1) wait(2) TLloadtext(tehDS,mytextlabel,2) wait(2) TLloadtext(tehDS,mytextlabel,44) |
|
|
| Report Abuse |
|
|
RogueMage
|
  |
| Joined: 28 Jan 2012 |
| Total Posts: 1235 |
|
|
| 18 May 2017 10:46 AM |
wiki.roblox.com/index.php?title=API:Class/GlobalDataStore/SetAsync
wiki.roblox.com/index.php?title=API:Class/GlobalDataStore/GetAsync
wiki.roblox.com/index.php?title=API:Class/TextLabel/Text |
|
|
| Report Abuse |
|
|