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 » Scripting Helpers
Home Search
 

Save files gui?

Previous Thread :: Next Thread 
epicpatrick123 is not online. epicpatrick123
Joined: 08 Sep 2010
Total Posts: 15039
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
epicpatrick123 is not online. epicpatrick123
Joined: 08 Sep 2010
Total Posts: 15039
01 Jun 2012 07:03 PM
bump, please help i spent 2 hours positioning and resizing the gui buttons
Report Abuse
1pie23 is not online. 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 is not online. 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
epicpatrick123 is not online. epicpatrick123
Joined: 08 Sep 2010
Total Posts: 15039
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 is not online. 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 is not online. 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
epicpatrick123 is not online. epicpatrick123
Joined: 08 Sep 2010
Total Posts: 15039
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
epicpatrick123 is not online. epicpatrick123
Joined: 08 Sep 2010
Total Posts: 15039
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
epicpatrick123 is not online. epicpatrick123
Joined: 08 Sep 2010
Total Posts: 15039
01 Jun 2012 07:24 PM
bump sry for all the qustions, i only have basic understanding.
Report Abuse
epicpatrick123 is not online. epicpatrick123
Joined: 08 Sep 2010
Total Posts: 15039
01 Jun 2012 07:54 PM
bump
Report Abuse
ElectricBlaze is not online. ElectricBlaze
Joined: 18 Jul 2011
Total Posts: 22930
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
epicpatrick123 is not online. epicpatrick123
Joined: 08 Sep 2010
Total Posts: 15039
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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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