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: Help

Previous Thread :: Next Thread 
TheMrRadioActiveMan is not online. TheMrRadioActiveMan
Joined: 11 Dec 2010
Total Posts: 974
20 Aug 2014 06:38 PM
i explain in comments
(yes i know data persistence is old but it still works)

game.Players.PlayerAdded:connect(function( PLAYER )
PLAYER:WaitForDataReady()

local backpack = PLAYER.Backpack
local tool = script.Healing:Clone() -- it clones the thing i need it to fine
tool.Parent = backpack



local bob = Instance.new("IntValue") -- this doesn't get added
bob.Name = "gamestuff"
bob.Value = 0



local cash = Instance.new("BoolValue") -- or this
cash.Name = "IsATeam"
cash.Value = false



bob.Parent = PLAYER
cash.Parent = bob


if PLAYER:LoadNumber("A") then
--cash.Value = PLAYER:LoadNumber("A")
end

end)

game.Players.PlayerRemoving:connect(function( PLYR )
--PLYR:SaveNumber("A", PLYR.leaderstats.Cash.Value)
end)

--i get no errors
Report Abuse
TheMrRadioActiveMan is not online. TheMrRadioActiveMan
Joined: 11 Dec 2010
Total Posts: 974
20 Aug 2014 06:45 PM
Bump
Report Abuse
TheMrRadioActiveMan is not online. TheMrRadioActiveMan
Joined: 11 Dec 2010
Total Posts: 974
20 Aug 2014 06:57 PM
b
Report Abuse
TheMrRadioActiveMan is not online. TheMrRadioActiveMan
Joined: 11 Dec 2010
Total Posts: 974
20 Aug 2014 07:05 PM
B
Report Abuse
TheMrRadioActiveMan is not online. TheMrRadioActiveMan
Joined: 11 Dec 2010
Total Posts: 974
20 Aug 2014 07:11 PM
OMG NO ONE???
Report Abuse
TheMrRadioActiveMan is not online. TheMrRadioActiveMan
Joined: 11 Dec 2010
Total Posts: 974
20 Aug 2014 07:37 PM
bump
Report Abuse
TheMrRadioActiveMan is not online. TheMrRadioActiveMan
Joined: 11 Dec 2010
Total Posts: 974
20 Aug 2014 07:41 PM
B
Report Abuse
TheMrRadioActiveMan is not online. TheMrRadioActiveMan
Joined: 11 Dec 2010
Total Posts: 974
20 Aug 2014 07:48 PM
B
Report Abuse
TheMrRadioActiveMan is not online. TheMrRadioActiveMan
Joined: 11 Dec 2010
Total Posts: 974
20 Aug 2014 07:53 PM
B
Report Abuse
TheMrRadioActiveMan is not online. TheMrRadioActiveMan
Joined: 11 Dec 2010
Total Posts: 974
20 Aug 2014 08:01 PM
Bump
Report Abuse
Duelingwarlord is not online. Duelingwarlord
Joined: 15 Feb 2010
Total Posts: 22333
20 Aug 2014 08:02 PM
data persistance is old
Report Abuse
TheMrRadioActiveMan is not online. TheMrRadioActiveMan
Joined: 11 Dec 2010
Total Posts: 974
20 Aug 2014 08:06 PM
Thats not what i needed help with lol
Report Abuse
Duelingwarlord is not online. Duelingwarlord
Joined: 15 Feb 2010
Total Posts: 22333
20 Aug 2014 08:13 PM
--cash.Value = PLAYER:LoadNumber("A")

hmm i wonder y it wont work
Report Abuse
TheMrRadioActiveMan is not online. TheMrRadioActiveMan
Joined: 11 Dec 2010
Total Posts: 974
20 Aug 2014 08:22 PM
If you read the comments in the code you would see that the problem is not that it isn't loading the code won't create the instances LOL
Report Abuse
TheMrRadioActiveMan is not online. TheMrRadioActiveMan
Joined: 11 Dec 2010
Total Posts: 974
20 Aug 2014 08:29 PM
B
Report Abuse
TheMrRadioActiveMan is not online. TheMrRadioActiveMan
Joined: 11 Dec 2010
Total Posts: 974
20 Aug 2014 08:36 PM
BUMP
Report Abuse
Duelingwarlord is not online. Duelingwarlord
Joined: 15 Feb 2010
Total Posts: 22333
21 Aug 2014 05:35 AM
it wont work cuz ur bad at scripturing
Report Abuse
Laedere is online. Laedere
Joined: 17 Jun 2013
Total Posts: 23601
21 Aug 2014 05:47 AM
Hey, Dueling, This Is a Christian Community, Please Don't Bullie Others Jesus Doesent Like it..
Report Abuse
DataStore is not online. DataStore
Joined: 07 Feb 2012
Total Posts: 8540
21 Aug 2014 05:53 AM
@Laedere,
No, it's really not. Religion really doesn't matter here, and the forum isn't a place to express it.

@OP,
You've never parented the new instance.

Instance.new("IntValue", Workspace) --// This would instance an 'IntValue' to Workspace.

Report Abuse
Laedere is online. Laedere
Joined: 17 Jun 2013
Total Posts: 23601
21 Aug 2014 05:55 AM
Most OF The World Is Christian, Making The Primary Religion Christianity, If You Defy it You Will Burn
Report Abuse
DataStore is not online. DataStore
Joined: 07 Feb 2012
Total Posts: 8540
21 Aug 2014 06:04 AM
Toasty.

Now shuu. Go talk to people who care.
Report Abuse
Laedere is online. Laedere
Joined: 17 Jun 2013
Total Posts: 23601
21 Aug 2014 06:04 AM
:(
Report Abuse
TheMrRadioActiveMan is not online. TheMrRadioActiveMan
Joined: 11 Dec 2010
Total Posts: 974
21 Aug 2014 09:02 AM
i did set the parent later on in the script


bob.Parent = PLAYER
Report Abuse
TheMrRadioActiveMan is not online. TheMrRadioActiveMan
Joined: 11 Dec 2010
Total Posts: 974
21 Aug 2014 09:21 AM
B
Report Abuse
TheMrRadioActiveMan is not online. TheMrRadioActiveMan
Joined: 11 Dec 2010
Total Posts: 974
21 Aug 2014 09:32 AM
B
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