generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: DataSave-A-TextLabel

Previous Thread :: Next Thread 
stephenthefox is not online. stephenthefox
Joined: 11 Mar 2011
Total Posts: 1123
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
stephenthefox is not online. stephenthefox
Joined: 11 Mar 2011
Total Posts: 1123
17 May 2017 10:38 PM
Bump
Report Abuse
A1_exe is not online. 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
stephenthefox is not online. stephenthefox
Joined: 11 Mar 2011
Total Posts: 1123
18 May 2017 07:21 AM
What does that mean???^^^


Report Abuse
mrbobbilly3 is not online. mrbobbilly3
Joined: 02 Apr 2010
Total Posts: 1481
18 May 2017 07:42 AM
Hey i actually need this too so please help
Report Abuse
stephenthefox is not online. stephenthefox
Joined: 11 Mar 2011
Total Posts: 1123
18 May 2017 08:51 AM
Agreed! Plz?
Report Abuse
Milenveliki is not online. Milenveliki
Joined: 14 Aug 2013
Total Posts: 1097
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
stephenthefox is not online. stephenthefox
Joined: 11 Mar 2011
Total Posts: 1123
18 May 2017 08:59 AM
I did...



Report Abuse
Milenveliki is not online. Milenveliki
Joined: 14 Aug 2013
Total Posts: 1097
18 May 2017 09:01 AM
hehe naw ur name is saved in a DataStore there naw :PPppPp
Report Abuse
stephenthefox is not online. stephenthefox
Joined: 11 Mar 2011
Total Posts: 1123
18 May 2017 09:02 AM
That doesn't tell me how I could datastore textlabels


Report Abuse
A1_exe is not online. 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
stephenthefox is not online. stephenthefox
Joined: 11 Mar 2011
Total Posts: 1123
18 May 2017 09:29 AM
Go on...


Report Abuse
Milenveliki is not online. Milenveliki
Joined: 14 Aug 2013
Total Posts: 1097
18 May 2017 09:44 AM
u can put TABLEz,STRINGz and NUMBERz in a DATASTORE,but not USERDATAz :P
Report Abuse
Milenveliki is not online. Milenveliki
Joined: 14 Aug 2013
Total Posts: 1097
18 May 2017 09:46 AM
'

print(type(Workspace.Baseplate))
Report Abuse
stephenthefox is not online. stephenthefox
Joined: 11 Mar 2011
Total Posts: 1123
18 May 2017 09:47 AM
Can someone actually help with this?


Report Abuse
AIicks is not online. 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
stephenthefox is not online. stephenthefox
Joined: 11 Mar 2011
Total Posts: 1123
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 is online. 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 is online. 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
Milenveliki is not online. Milenveliki
Joined: 14 Aug 2013
Total Posts: 1097
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 is not online. 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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image