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: Data save string

Previous Thread :: Next Thread 
stephenthefox is not online. stephenthefox
Joined: 11 Mar 2011
Total Posts: 1123
01 Nov 2016 10:21 AM
Can someone help me find a way to save a string value?
Report Abuse
C_Sharper is online. C_Sharper
Joined: 03 Oct 2011
Total Posts: 6405
01 Nov 2016 10:22 AM
datastore:SetAsync(player.userId,"Hello world")
Report Abuse
stephenthefox is not online. stephenthefox
Joined: 11 Mar 2011
Total Posts: 1123
01 Nov 2016 10:27 AM
@C_Sharper

That only saves "Hello world" I want a data save of a string value. Like an int value but the string value.


Report Abuse
C_Sharper is online. C_Sharper
Joined: 03 Oct 2011
Total Posts: 6405
01 Nov 2016 10:28 AM
You want to save the byte characters of the string?


Report Abuse
stephenthefox is not online. stephenthefox
Joined: 11 Mar 2011
Total Posts: 1123
01 Nov 2016 10:30 AM
Yes, I have a textbox that when someone types in it I want it to save so when I shut down the server and someone joins a new one it will show what they typed.


Report Abuse
C_Sharper is online. C_Sharper
Joined: 03 Oct 2011
Total Posts: 6405
01 Nov 2016 10:33 AM
Can you just save the string instead?
Report Abuse
stephenthefox is not online. stephenthefox
Joined: 11 Mar 2011
Total Posts: 1123
01 Nov 2016 10:35 AM
No... I've tried



Report Abuse
stephenthefox is not online. stephenthefox
Joined: 11 Mar 2011
Total Posts: 1123
01 Nov 2016 12:02 PM
Bump


Report Abuse
stephenthefox is not online. stephenthefox
Joined: 11 Mar 2011
Total Posts: 1123
01 Nov 2016 12:20 PM
Bump2


Report Abuse
YouFoundJojo is not online. YouFoundJojo
Joined: 02 Jun 2016
Total Posts: 120
01 Nov 2016 12:22 PM
http://wiki.roblox.com/index.php?title=Data_store#GetAsync


Report Abuse
stephenthefox is not online. stephenthefox
Joined: 11 Mar 2011
Total Posts: 1123
01 Nov 2016 12:25 PM
That doesn't save string values......


Report Abuse
YouFoundJojo is not online. YouFoundJojo
Joined: 02 Jun 2016
Total Posts: 120
01 Nov 2016 12:31 PM
########################################################################################################################################################################################################################################################################################################################
Report Abuse
stephenthefox is not online. stephenthefox
Joined: 11 Mar 2011
Total Posts: 1123
01 Nov 2016 12:33 PM
hashtags


Report Abuse
YouFoundJojo is not online. YouFoundJojo
Joined: 02 Jun 2016
Total Posts: 120
01 Nov 2016 12:33 PM
#############################################################################################################################################################################################################################################################################################################################
Report Abuse
stephenthefox is not online. stephenthefox
Joined: 11 Mar 2011
Total Posts: 1123
01 Nov 2016 12:34 PM
Just PM what you are trying to say cuz its showing hashtags


Report Abuse
YouFoundJojo is not online. YouFoundJojo
Joined: 02 Jun 2016
Total Posts: 120
01 Nov 2016 12:35 PM
ht
tp:/
/pas
teb
in.c
om/f
VY7z
GYf


Report Abuse
stephenthefox is not online. stephenthefox
Joined: 11 Mar 2011
Total Posts: 1123
01 Nov 2016 12:37 PM
I dont want it to save to the player tho. I want it to save the text so anyone can see what they typed anytime.


Report Abuse
YouFoundJojo is not online. YouFoundJojo
Joined: 02 Jun 2016
Total Posts: 120
01 Nov 2016 03:05 PM
Replace this:
local plr = game.Players.Player1

With:
local plr = "ServerKey1"


Report Abuse
YouFoundJojo is not online. YouFoundJojo
Joined: 02 Jun 2016
Total Posts: 120
01 Nov 2016 03:06 PM
Also, replace:
plr.UserId

with:
plr


Report Abuse
stephenthefox is not online. stephenthefox
Joined: 11 Mar 2011
Total Posts: 1123
01 Nov 2016 03:07 PM
But wouldnt it have to be a set word sentence? Like key1, "Hi people"


Report Abuse
Briicks is online. Briicks
Joined: 03 Apr 2015
Total Posts: 1796
01 Nov 2016 03:07 PM
umm... save it to a table then just load it?
i can do it for you if you need...

Instant Profit Finder: https://www.roblox.com/games/486614503/SFPF
Report Abuse
stephenthefox is not online. stephenthefox
Joined: 11 Mar 2011
Total Posts: 1123
01 Nov 2016 03:10 PM
Sure can you? just to see what you mean


Report Abuse
Briicks is online. Briicks
Joined: 03 Apr 2015
Total Posts: 1796
01 Nov 2016 03:13 PM
well first, tell me exactly what you're trying to do...
from what I read my thoughts are that you want to save whatever a user inputs into a text box, is that correct?

Instant Profit Finder: https://www.roblox.com/games/486614503/SFPF
Report Abuse
stephenthefox is not online. stephenthefox
Joined: 11 Mar 2011
Total Posts: 1123
01 Nov 2016 03:15 PM
Yes, and when someone from a different or new server looks at the text they can see what that other person put



Report Abuse
Briicks is online. Briicks
Joined: 03 Apr 2015
Total Posts: 1796
01 Nov 2016 03:21 PM
"when someone from a different or new server looks at the text they can see what that other person put"

i'm not doing all that, but to save it just do this

local t = {text = {};};
t.text = gui.TextBox.Text
datastore:SetAsync(player.userId,t)

you should get the point

Instant Profit Finder: https://www.roblox.com/games/486614503/SFPF
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