|
| 01 Nov 2016 10:21 AM |
| Can someone help me find a way to save a string value? |
|
|
| Report Abuse |
|
|
C_Sharper
|
  |
| Joined: 03 Oct 2011 |
| Total Posts: 6405 |
|
|
| 01 Nov 2016 10:22 AM |
| datastore:SetAsync(player.userId,"Hello world") |
|
|
| Report Abuse |
|
|
|
| 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
|
  |
| 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 |
|
|
|
| 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
|
  |
| Joined: 03 Oct 2011 |
| Total Posts: 6405 |
|
|
| 01 Nov 2016 10:33 AM |
| Can you just save the string instead? |
|
|
| Report Abuse |
|
|
| |
|
| |
|
| |
|
|
| 01 Nov 2016 12:22 PM |
http://wiki.roblox.com/index.php?title=Data_store#GetAsync
|
|
|
| Report Abuse |
|
|
|
| 01 Nov 2016 12:25 PM |
That doesn't save string values......
|
|
|
| Report Abuse |
|
|
|
| 01 Nov 2016 12:31 PM |
| ######################################################################################################################################################################################################################################################################################################################## |
|
|
| Report Abuse |
|
|
| |
|
|
| 01 Nov 2016 12:33 PM |
| ############################################################################################################################################################################################################################################################################################################################# |
|
|
| Report Abuse |
|
|
|
| 01 Nov 2016 12:34 PM |
Just PM what you are trying to say cuz its showing hashtags
|
|
|
| Report Abuse |
|
|
|
| 01 Nov 2016 12:35 PM |
ht tp:/ /pas teb in.c om/f VY7z GYf
|
|
|
| Report Abuse |
|
|
|
| 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 |
|
|
|
| 01 Nov 2016 03:05 PM |
Replace this: local plr = game.Players.Player1
With: local plr = "ServerKey1"
|
|
|
| Report Abuse |
|
|
|
| 01 Nov 2016 03:06 PM |
Also, replace: plr.UserId
with: plr
|
|
|
| Report Abuse |
|
|
|
| 01 Nov 2016 03:07 PM |
But wouldnt it have to be a set word sentence? Like key1, "Hi people"
|
|
|
| Report Abuse |
|
|
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 |
|
|
|
| 01 Nov 2016 03:10 PM |
Sure can you? just to see what you mean
|
|
|
| Report Abuse |
|
|
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 |
|
|
|
| 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
|
  |
| 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 |
|
|