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
|
  |
| 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
|
  |
| 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 |
|
|
|
| 09 Mar 2014 02:28 PM |
| I think that is exactly what it does... |
|
|
| Report Abuse |
|
|
nikolaaa4
|
  |
| Joined: 20 Apr 2012 |
| Total Posts: 298 |
|
| |
|
nikolaaa4
|
  |
| Joined: 20 Apr 2012 |
| Total Posts: 298 |
|
| |
|
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
|
  |
| 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
|
  |
| 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
|
  |
| Joined: 20 Apr 2012 |
| Total Posts: 298 |
|
| |
|
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
|
  |
| 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
|
  |
| Joined: 06 Aug 2008 |
| Total Posts: 585 |
|
| |
|
|
| 11 Mar 2014 11:01 AM |
| I really am questioning that right now @cy lol. |
|
|
| Report Abuse |
|
|
nikolaaa4
|
  |
| Joined: 20 Apr 2012 |
| Total Posts: 298 |
|
| |
|
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
|
  |
| Joined: 28 Sep 2012 |
| Total Posts: 1292 |
|
| |
|
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
|
  |
| 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
|
  |
| 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
|
  |
| Joined: 20 Apr 2012 |
| Total Posts: 298 |
|
|
| 12 Mar 2014 03:44 PM |
| No, not leave the place, just reset. |
|
|
| Report Abuse |
|
|
|
| 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 |
|
|
|
| 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 |
|
|