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
 

Re: Save tools

Previous Thread :: Next Thread 
nikolaaa4 is not online. nikolaaa4
Joined: 20 Apr 2012
Total Posts: 298
09 Mar 2014 12:45 PM
I'm having difficulties scripting the script, cause i always fail.
Trying to find a script, when i get a gear, and i reset it's still in backpack.
Tried data persistance, and failed.
Any help?
Report Abuse
Goulstem is not online. Goulstem
Joined: 04 Jul 2012
Total Posts: 7177
09 Mar 2014 12:50 PM
Put gear in lighting

local gear = --Put the name of the gear

game.Players.PlayerAdded:connect(function(plr)
plr.CharacterAdded:connect(function(char)
if char.Name == "NameHere" then
game.Lighting.gear:Clone().Parent = game.Players:GetPlayerFromCharacter(char)
end end) end)
Report Abuse
nikolaaa4 is not online. nikolaaa4
Joined: 20 Apr 2012
Total Posts: 298
09 Mar 2014 02:25 PM
.... I didn't mean it like that.
I have a gear machine, that when you put in a code, it will give you the gear any in catalog.
And except of doing it everytime i reset, i want to keep it, like in Catalog heaven.
Report Abuse
USAGroupHolder is not online. USAGroupHolder
Joined: 26 Jul 2013
Total Posts: 513
09 Mar 2014 02:28 PM
I think that is exactly what it does...
Report Abuse
nikolaaa4 is not online. nikolaaa4
Joined: 20 Apr 2012
Total Posts: 298
09 Mar 2014 04:54 PM
Bump
Report Abuse
nikolaaa4 is not online. nikolaaa4
Joined: 20 Apr 2012
Total Posts: 298
10 Mar 2014 08:19 AM
Bump
Report Abuse
Kingmouli is not online. Kingmouli
Joined: 28 Sep 2012
Total Posts: 1292
10 Mar 2014 08:20 AM
Put one in StarterPack and another one in BackPack
Report Abuse
Cyaneus is not online. Cyaneus
Joined: 06 Aug 2008
Total Posts: 585
10 Mar 2014 08:29 AM
Tool persistence can be found in Kitteh6660's RPG StarterPack.
Report Abuse
nikolaaa4 is not online. nikolaaa4
Joined: 20 Apr 2012
Total Posts: 298
10 Mar 2014 08:43 AM
As said, i need it for any gear in ROBLOX!
Report Abuse
nikolaaa4 is not online. nikolaaa4
Joined: 20 Apr 2012
Total Posts: 298
11 Mar 2014 07:36 AM
Bump
Report Abuse
vlekje513 is not online. vlekje513
Joined: 28 Dec 2010
Total Posts: 9057
11 Mar 2014 07:42 AM
Answer already set, PUT ONE IN STARTERGEAR TOO member of player) and it will work.
Report Abuse
nikolaaa4 is not online. nikolaaa4
Joined: 20 Apr 2012
Total Posts: 298
11 Mar 2014 08:15 AM
I cant do it!
It's a frkin gui in the startergui LIKE OPEN CATALOG IN CATALOG HEAVEN, BUT THIS IS DIFFERENT, IT GETS GEAR FROM CATALOG
And i need gear save!
Report Abuse
Cyaneus is not online. Cyaneus
Joined: 06 Aug 2008
Total Posts: 585
11 Mar 2014 08:51 AM
Can you even script? lol.
Report Abuse
DeSpizer27 is not online. DeSpizer27
Joined: 13 Jul 2012
Total Posts: 2679
11 Mar 2014 11:01 AM
I really am questioning that right now @cy lol.
Report Abuse
nikolaaa4 is not online. nikolaaa4
Joined: 20 Apr 2012
Total Posts: 298
12 Mar 2014 12:19 PM
God help me.
Report Abuse
janthran is not online. janthran
Joined: 15 May 2009
Total Posts: 17429
12 Mar 2014 12:21 PM
don't store things in lighting store them in replicatedstorage omg this is 2014 guys
Report Abuse
Kingmouli is not online. Kingmouli
Joined: 28 Sep 2012
Total Posts: 1292
12 Mar 2014 01:57 PM
ServerStorage*
Report Abuse
trogyssy is not online. trogyssy
Joined: 29 Oct 2010
Total Posts: 2322
12 Mar 2014 02:10 PM
No, ReplicatedStorage would be better suited to the purposes here.

~~trogyssy, Scripting Helper and S&I Activist~~
Report Abuse
velibor is not online. velibor
Joined: 24 Nov 2009
Total Posts: 1003
12 Mar 2014 02:12 PM
Does it needs to save when the Player leaves our 'Place' ? Since then you need to use DP, else you can simply use a Clone of the Backpack and a few simple functions.


~ Juriaan
Report Abuse
Kingmouli is not online. Kingmouli
Joined: 28 Sep 2012
Total Posts: 1292
12 Mar 2014 02:16 PM
Well if he uses a script, server storage is the best but if he uses a local script (which cant access DP) then the only option is Replicated storage.

Sorry if i made typos/ etc... Im on my mobile.
Report Abuse
nikolaaa4 is not online. nikolaaa4
Joined: 20 Apr 2012
Total Posts: 298
12 Mar 2014 03:44 PM
No, not leave the place, just reset.
Report Abuse
Duelingwarlord is not online. Duelingwarlord
Joined: 15 Feb 2010
Total Posts: 22333
12 Mar 2014 03:55 PM
game.Players.PlayerAdded:connect(function(player)
backpack = player:WaitForChild("Backpack")
for i,v in pairs(backpack:GetChildren()) do
if not (player.StarterGear:findFirstChild(v.Name)) then
v:Clone().Parent = player.StarterGear
end
end
end)
Report Abuse
Duelingwarlord is not online. Duelingwarlord
Joined: 15 Feb 2010
Total Posts: 22333
12 Mar 2014 03:56 PM
game.Players.PlayerAdded:connect(function(player)
backpack = player:WaitForChild("Backpack")
backpack.ChildAdded:connect(function()
for i,v in pairs(backpack:GetChildren()) do
if not (player.StarterGear:findFirstChild(v.Name)) then
v:Clone().Parent = player.StarterGear
end
end
end)
end)

Improved.
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