|
| 01 Jun 2012 06:49 PM |
| I just finished a gui for it, and i go to scripting the buttons, and i'm having trouble, so first i need to know if it's possible, to have three different saves, like if you share your acc with three different people, they each save and load their different progress. If this is possible can anyone give me an example? |
|
|
| Report Abuse |
|
|
|
| 01 Jun 2012 07:03 PM |
| bump, please help i spent 2 hours positioning and resizing the gui buttons |
|
|
| Report Abuse |
|
|
1pie23
|
  |
| Joined: 11 Jul 2010 |
| Total Posts: 1865 |
|
|
| 01 Jun 2012 07:05 PM |
| I don't understand, what do you want. |
|
|
| Report Abuse |
|
|
Shoqwave
|
  |
| Joined: 13 May 2012 |
| Total Posts: 215 |
|
|
| 01 Jun 2012 07:06 PM |
| The files for the first account may be under the model "account1", the second one may be under "account2", and the third may be under "account3". The player chooses whatever account they would like, and the stats from "accountX" is taken and placed into the player. Before they leave, the files would be placed back into "accountX" and saved. |
|
|
| Report Abuse |
|
|
|
| 01 Jun 2012 07:11 PM |
@both,
The three users share one account, i need it so they can save and load their data.
to dumb it down:
From all three files, i need them to save/load their different data. |
|
|
| Report Abuse |
|
|
Shoqwave
|
  |
| Joined: 13 May 2012 |
| Total Posts: 215 |
|
|
| 01 Jun 2012 07:13 PM |
| Exactly. What I had said would seem to work flawlessly. |
|
|
| Report Abuse |
|
|
1pie23
|
  |
| Joined: 11 Jul 2010 |
| Total Posts: 1865 |
|
|
| 01 Jun 2012 07:14 PM |
game.Players.PlayerAdded:connect(function(p) local valuepack = Instance.new("Model",p) valuepack.Name = "ValuePack1"
local val = Instance.new("NumberValue") val.Name = "Kills" val.Parent = valuepack val.Value = 0
-------------------------------------
p:WaitForDataReady()
repeat wait() until player.DataReady
local model1 = player:LoadInstance("values")
local ch = model1:GetChildren() local model2 = p.ValuePack1 local ch2 = model2:GetChildren()
for i = 1,#ch do values = ch[i] end
for x = 1,#ch2 do ch2[x].Value = values.Value end
end)
|
|
|
| Report Abuse |
|
|
|
| 01 Jun 2012 07:17 PM |
| i don't get that :(, you think you can give me an example? or just more details? |
|
|
| Report Abuse |
|
|
|
| 01 Jun 2012 07:19 PM |
| Was talking to the other guy in last post, but i don't get the new script ether. this is advanced for me, they are guis with save/load buttons. |
|
|
| Report Abuse |
|
|
|
| 01 Jun 2012 07:24 PM |
| bump sry for all the qustions, i only have basic understanding. |
|
|
| Report Abuse |
|
|
| |
|
|
| 01 Jun 2012 07:59 PM |
> Exactly. What I had said would seem to work flawlessly. >> What I had said would seem to work flawlessly. >>> seem to work flawlessly. >>>> work flawlessly. >>>>> flawlessly. >>>>>> flawlessly
What?
> The files for the first account may be under the model "account1", the second one may be under "account2", and the third may be under "account3". The player chooses whatever account they would like, and the stats from "accountX" is taken and placed into the player. Before they leave, the files would be placed back into "accountX" and saved. >> The files for the first account may be under the model "account1" >>> files
|
|
|
| Report Abuse |
|
|
|
| 01 Jun 2012 08:02 PM |
Okay. So what i do is put that script into workspace, and make three models named account1, account2, account3? |
|
|
| Report Abuse |
|
|